salt
salt copied to clipboard
[BUG] salt-cloud: Missing dependency: 'pyVmomi'
Description After a fresh install of salt-cloud, salt-cloud says "The vmware driver requires 'pyVmomi' to be installed."
Setup
- Environment: VMware VM: AlmaLinux 8.9 (Midnight Oncilla)
- Salt-cloud version: 3007.1 (Chlorine)
- Python 3.6.8
Salt-cloud provider config: anything with vmware driver.
Python module pyVmomi is already installed, but none of the OS package (python3-pyvmomi-7.0.3-1.el8.noarch), nor the pip3 install helped.
The module can be imported:
# python3 -c "import pyVmomi";echo $?
0
There are the site packages:
# find /usr -iname "*pyvmomi*" -type d
/usr/lib/python3.6/site-packages/pyVmomi
/usr/lib/python3.6/site-packages/pyvmomi-7.0.3-py3.6.egg-info
/usr/share/licenses/python3-pyvmomi
/usr/share/doc/python3-pyvmomi
Even with pip3:
# find /usr -iname "*pyvmomi*" -type d
/usr/local/lib/python3.6/site-packages/pyVmomi
/usr/local/lib/python3.6/site-packages/pyvmomi-8.0.3.0.1-py3.6.egg-info
Steps to Reproduce the behavior
[root@saltmaster-cloud ~]# salt-cloud --list-images MyProvider
[WARNING ] Missing dependency: 'pyVmomi'. The vmware driver requires 'pyVmomi' to be installed.
[WARNING ] The cloud driver, 'vmware', configured under the 'MyProvider' cloud provider alias, could not be loaded. Please check your provider configuration files and ensure all required dependencies are installed for the 'vmware' driver.
In rare cases, this could indicate the 'vmware.get_configured_provider()' function could not be found.
Removing 'vmware' from the available providers list
Error: There was an error listing images: No cloud providers matched 'MyProvider'. Available selections:
[root@saltmaster-cloud ~]#
Expected behavior Find the dependency that is already satisfied.
Versions Report salt-cloud 3007.1 (Chlorine)