Description
Wnen the saltext.vmware extension is installed, the disk module in Salt cannot be loaded:
# salt-call disk.blkid -l trace
...
[TRACE ] Loaded disk as virtual vmware_disk
[DEBUG ] The functions from module 'vmware_disk' are being loaded by dir() on the loaded module
[DEBUG ] The functions from module 'vmc_vm_disks' are being loaded by dir() on the loaded module
...
[DEBUG ] Could not LazyLoad disk.blkid: 'disk.blkid' is not available.
'disk.blkid' is not available.
# salt-pip uninstall saltext.vmware
Found existing installation: saltext.vmware 23.6.29.0rc1
Uninstalling saltext.vmware-23.6.29.0rc1:
Would remove:
/opt/saltstack/salt/extras-3.10/saltext.vmware-23.6.29.0rc1.dist-info/*
/opt/saltstack/salt/extras-3.10/saltext/vmware/*
Proceed (Y/n)? y
Successfully uninstalled saltext.vmware-23.6.29.0rc1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
# salt-call disk.blkid
local:
----------
/dev/mapper/almalinux-home:
----------
BLOCK_SIZE:
512
TYPE:
xfs
UUID:
5b72135d-401d-4f05-8cab-882b24dc8604
/dev/mapper/almalinux-root:
----------
BLOCK_SIZE:
512
TYPE:
xfs
UUID:
9d9ae71e-473b-4c61-b67c-29bd242c7fb1
/dev/mapper/almalinux-swap:
----------
TYPE:
swap
UUID:
a23fc7b6-590a-4925-a707-491c6edd78dc
/dev/mapper/almalinux-tmp:
----------
BLOCK_SIZE:
512
TYPE:
xfs
UUID:
2ee59e1c-2551-4807-8e97-2bca72d39d0f
/dev/sda1:
----------
BLOCK_SIZE:
512
PARTUUID:
3ba51781-01
TYPE:
xfs
UUID:
8256a0b9-70ef-4798-bf83-58859b5702fc
/dev/sda2:
----------
PARTUUID:
3ba51781-02
TYPE:
LVM2_member
UUID:
yVSzYj-cniL-R7KW-OwSq-bsQE-lHTz-s1NayN
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
```yaml
Salt Version:
Salt: 3006.3
Python Version:
Python: 3.10.13 (main, Sep 6 2023, 02:11:27) [GCC 11.2.0]
Dependency Versions:
cffi: 1.14.6
cherrypy: unknown
dateutil: 2.8.1
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 3.1.2
libgit2: 1.5.0
looseversion: 1.0.2
M2Crypto: Not Installed
Mako: Not Installed
msgpack: 1.0.2
msgpack-pure: Not Installed
mysql-python: Not Installed
packaging: 22.0
pycparser: 2.21
pycrypto: Not Installed
pycryptodome: 3.9.8
pygit2: 1.11.1
python-gnupg: 0.4.8
PyYAML: 6.0.1
PyZMQ: 23.2.0
relenv: 0.13.10
smmap: Not Installed
timelib: 0.2.4
Tornado: 4.5.3
ZMQ: 4.3.4
Salt Extensions:
saltext.bitwarden: 0.0.1b15
saltext.vmware: 23.6.29.0rc1
System Versions:
dist: almalinux 8.7 Stone Smilodon
locale: utf-8
machine: x86_64
release: 4.18.0-425.19.2.el8_7.x86_64
system: Linux
version: AlmaLinux 8.7 Stone Smilodon
```
Additional context
Add any other context about the problem here.
Description Wnen the saltext.vmware extension is installed, the
disk
module in Salt cannot be loaded:Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.) ```yaml Salt Version: Salt: 3006.3 Python Version: Python: 3.10.13 (main, Sep 6 2023, 02:11:27) [GCC 11.2.0] Dependency Versions: cffi: 1.14.6 cherrypy: unknown dateutil: 2.8.1 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed Jinja2: 3.1.2 libgit2: 1.5.0 looseversion: 1.0.2 M2Crypto: Not Installed Mako: Not Installed msgpack: 1.0.2 msgpack-pure: Not Installed mysql-python: Not Installed packaging: 22.0 pycparser: 2.21 pycrypto: Not Installed pycryptodome: 3.9.8 pygit2: 1.11.1 python-gnupg: 0.4.8 PyYAML: 6.0.1 PyZMQ: 23.2.0 relenv: 0.13.10 smmap: Not Installed timelib: 0.2.4 Tornado: 4.5.3 ZMQ: 4.3.4 Salt Extensions: saltext.bitwarden: 0.0.1b15 saltext.vmware: 23.6.29.0rc1 System Versions: dist: almalinux 8.7 Stone Smilodon locale: utf-8 machine: x86_64 release: 4.18.0-425.19.2.el8_7.x86_64 system: Linux version: AlmaLinux 8.7 Stone Smilodon ```Additional context Add any other context about the problem here.
See also https://github.com/saltstack/salt/issues/65441