You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is a bug exactly, but it's also not exactly a feature request, since there's not really a "new" feature that requires documentation.
Description
The salt-cloud proxmox driver provides misleading error messages on authentication failure and incomplete messages on parameter validation failure.
Pull request with fix and tests to follow.
Setup
salt master (hostname "salt") is running in a container on the Proxmox host.
Proxmox (hostname "pve") is running on bare metal, on-premises.
Set the password in cloud.providers.d/proxmox.conf to the wrong password. salt-cloud --list-images proxmox
Output
[ERROR ] Failed to get the output of 'proxmox.avail_images()': 'NoneType' object is not subscriptable
proxmox:
----------
"'NoneType' object is not subscriptable"... Guess what's wrong with your configuration?
Parameter validation errors:
Set the password in cloud.providers.d/proxmox.conf back to the right password if necessary.
Change the value of "onboot" in cloud.profiles.d/proxmox.conf from "1" to "true". salt-cloud -p ol8 testvm2
Output
[ERROR ] Error creating testvm2 on PROXMOX
The following exception was thrown when trying to run the initial deployment:
400 Client Error: Parameter verification failed. for url: https://pve:8006/api2/json/nodes/pve/lxc
Error: There was a profile error: Failed to deploy VM
What parameter failed? Who knows...
Expected behavior
Authentication errors:
salt-cloud --list-images proxmox
Output
[ERROR ] Failed to get the output of 'proxmox.avail_locations()': 401 Client Error: authentication failure for url: https://pve:8006/api2/json/access/ticket
proxmox:
----------
Oh, there's something wrong with my credentials!
Parameter validation errors:
salt-cloud -p ol8 testvm2
Output
[ERROR ] Error creating testvm2 on PROXMOX
The following exception was thrown when trying to run the initial deployment:
400 Client Error: Parameter verification failed. for url: https://pve:8006/api2/json/nodes/pve/lxc
{"data":null,"errors":{"onboot":"type check ('boolean') failed - got 'True'"}}
Error: There was a profile error: Failed to deploy VM
There's the missing detail provided by the Proxmox server: Proxmox doesn't like textual booleans!
Versions Report
salt --versions-report
Salt Version:
Salt: 3004.1Dependency Versions:
cffi: Not Installedcherrypy: Not Installeddateutil: 2.6.1docker-py: Not Installedgitdb: Not Installedgitpython: Not InstalledJinja2: 2.10.1libgit2: Not InstalledM2Crypto: 0.35.2Mako: Not Installedmsgpack: 0.6.2msgpack-pure: Not Installedmysql-python: Not Installedpycparser: Not Installedpycrypto: Not Installedpycryptodome: Not Installedpygit2: Not InstalledPython: 3.6.8 (default, Apr 11 2022, 08:25:52)python-gnupg: 0.4.6PyYAML: 3.12PyZMQ: 19.0.0smmap: Not Installedtimelib: Not InstalledTornado: 4.5.3ZMQ: 4.3.4System Versions:
dist: oracle 8.6 locale: UTF-8machine: x86_64release: 5.15.35-1-pvesystem: Linuxversion: Oracle Linux Server 8.6
The text was updated successfully, but these errors were encountered:
I'm not sure if this is a bug exactly, but it's also not exactly a feature request, since there's not really a "new" feature that requires documentation.
Description
The salt-cloud proxmox driver provides misleading error messages on authentication failure and incomplete messages on parameter validation failure.
Pull request with fix and tests to follow.
Setup
/etc/salt/cloud.providers.d/proxmox.conf
/etc/salt/cloud.profiles.d/proxmox.conf
Steps to Reproduce the behavior
Authentication errors:
Set the password in cloud.providers.d/proxmox.conf to the wrong password.
salt-cloud --list-images proxmox
Output
Parameter validation errors:
Set the password in cloud.providers.d/proxmox.conf back to the right password if necessary.
Change the value of "onboot" in cloud.profiles.d/proxmox.conf from "1" to "true".
salt-cloud -p ol8 testvm2
Output
Expected behavior
Authentication errors:
salt-cloud --list-images proxmox
Output
Parameter validation errors:
salt-cloud -p ol8 testvm2
Output
Versions Report
salt --versions-report
The text was updated successfully, but these errors were encountered: