-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Open
Labels
Description
Description
When using a salt-cloud 3006.14 (onedir installation) with pyvmomi 9 on a Rocky Linux 9 with the following provider setup:
vcenter:
driver: vmware
user: 'salt'
password: 'xxxxxx'
url: '1.1.1.1'
protocol: 'https'
port: 443
verify_ssl: False
Fails with the following error:
2025-07-24 10:30:54,029 [salt.cloud :2353][DEBUG ][261216] Failed to execute 'vmware.list_nodes()' while querying for running nodes: Could not connect to host '1.1.1.1'. Please check the debug log for more information.
Traceback (most recent call last):
File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/vmware.py", line 316, in _get_service_instance
service_instance = SmartConnect(
File "/opt/saltstack/salt/extras-3.10/pyVim/connect.py", line 989, in SmartConnect
return Connect(host=host,
File "/opt/saltstack/salt/extras-3.10/pyVim/connect.py", line 310, in Connect
raise Exception(
Exception: 'b64token' and 'mechanism' are no longer supported. The default connection type uses credentials. If you want to authenticate with a token,set 'token' and 'tokenType'.
The pyvmomi is installed as:
/opt/saltstack/salt/salt-call pip.install pyvmomi
And the version used:
/opt/saltstack/salt/salt-call pip.list
local:
----------
CherryPy:
18.10.0
IPy:
1.1
Jinja2:
3.1.6
MarkupSafe:
2.1.2
PyYAML:
6.0.1
autocommand:
2.2.2
backports.tarfile:
1.2.0
certifi:
2024.7.4
cffi:
1.14.6
charset-normalizer:
3.2.0
cheroot:
8.5.2
contextvars:
2.4
croniter:
2.0.5
cryptography:
42.0.5
distro:
1.5.0
idna:
3.7
immutables:
0.15
importlib_metadata:
6.0.0
jaraco.classes:
3.2.1
jaraco.collections:
3.4.0
jaraco.context:
6.0.1
jaraco.functools:
4.2.1
jaraco.text:
4.0.0
jmespath:
1.0.1
looseversion:
1.0.2
more-itertools:
10.7.0
msgpack:
1.0.2
packaging:
24.0
pip:
23.3.2
portend:
2.4
psutil:
5.8.0
pyOpenSSL:
24.0.0
pycparser:
2.21
pycryptodomex:
3.19.1
python-dateutil:
2.8.1
python-gnupg:
0.4.8
pytz:
2022.1
pyvmomi:
9.0.0.0 <---------- pyvmomi 9
pyzmq:
23.2.0
relenv:
0.19.4
requests:
2.32.3
rpm_vercmp:
0.1.2
salt:
3006.14
setproctitle:
1.3.2
setuptools:
79.0.1
six:
1.16.0
tempora:
4.1.1
timelib:
0.2.5
urllib3:
2.5.0
wheel:
0.45.1
zc.lockfile:
1.4
zipp:
3.6.0
Versions of salt (onedir installation):
salt-3006.14-0.x86_64
salt-master-3006.14-0.x86_64
salt-api-3006.14-0.x86_64
salt-cloud-3006.14-0.x86_64
salt-minion-3006.14-0.x86_64
salt-ssh-3006.14-0.x86_64
OS:
Rocky Linux 9.6
As a workaround, pyvmomi can be downgraded to 8:
/opt/saltstack/salt/salt-call pip.install pyvmomi==8.0.3.0