Open KarlAustin opened 1 year ago
Is this still an issue just for 3005.1 or is it also present in 3006.1?
Yes it was still present in 3006.1 as well as I had to update for something else yesterday evening:
Salt Version:
Salt: 3006.1
Python Version:
Python: 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0]
Dependency Versions:
cffi: 1.15.1
cherrypy: Not Installed
dateutil: 2.8.2
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 3.1.2
libgit2: Not Installed
looseversion: 1.2.0
M2Crypto: Not Installed
Mako: 1.2.4
msgpack: 1.0.5
msgpack-pure: Not Installed
mysql-python: Not Installed
packaging: 23.1
pycparser: 2.21
pycrypto: Not Installed
pycryptodome: 3.18.0
pygit2: Not Installed
python-gnupg: Not Installed
PyYAML: 6.0
PyZMQ: 25.0.2
relenv: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.3.4
System Versions:
dist: ubuntu 22.04.2 jammy
locale: utf-8
machine: x86_64
release: 5.15.0-75-generic
system: Linux
version: Ubuntu 22.04.2 jammy
PR is in and accepted for it though.
Description Creating an OpenNebula VM fails with an error:
Setup (Please provide relevant configs and/or SLS files (be sure to remove sensitive info. There is no general set-up of Salt.)
Please be as specific as possible and give set-up details.
Steps to Reproduce the behavior /usr/local/bin/salt-run' 'cloud.map_run' 'map_data={"one-ubuntu-profile":[{"hostname.example.org":{"cpu":1,"vcpu":1,"memory":512}}]}'
Expected behavior The VM is created.
Versions Report
salt --versions-report
```yaml Salt Version: Salt: 3005.1 Dependency Versions: cffi: 1.15.1 cherrypy: Not Installed dateutil: 2.8.2 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed Jinja2: 3.1.2 libgit2: Not Installed M2Crypto: Not Installed Mako: 1.2.4 msgpack: 1.0.5 msgpack-pure: Not Installed mysql-python: Not Installed pycparser: 2.21 pycrypto: Not Installed pycryptodome: 3.17 pygit2: Not Installed Python: 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0] python-gnupg: Not Installed PyYAML: 6.0 PyZMQ: 20.0.0 smmap: Not Installed timelib: Not Installed Tornado: 4.5.3 ZMQ: 4.3.3 System Versions: dist: ubuntu 22.04 Jammy Jellyfish locale: utf-8 machine: x86_64 release: 5.15.0-75-generic system: Linux version: Ubuntu 22.04 Jammy Jellyfish ```Additional context Referenced a couple of years ago here: https://github.com/saltstack/salt/issues/60239#issuecomment-957801409
Fix The fix is to change: https://github.com/saltstack/salt/blob/2d02017d6c8e2b950eec959ba25ffe62f72214e3/salt/cloud/clouds/opennebula.py#L1080 From:
data = __utils__["cloud.wait_for_ip"](
todata = salt.utils.cloud.wait_for_ip(
I've tested this out dozens of times whilst adding the vm_disk_resize feature.