Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imposibble to remove VMs due to "ModuleNotFoundError: No module named 'ipaddr'" #405

Open
jbadiapa opened this issue Apr 14, 2021 · 1 comment

Comments

@jbadiapa
Copy link
Contributor

Releases

SO (Hypervisor-ansible-executor): Red Hat Enterprise Linux release 8.3 (Ootpa)

$ ansible --version
ansible 2.9.19
config file = None
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /root/infrared/.venv/lib/python3.6/site-packages/ansible
executable location = /root/infrared/.venv/bin/ansible
python version = 3.6.8 (default, Aug 18 2020, 08:33:21) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]

Command

$ infrared virsh -o delete.yml --remove-nodes undercloud-0 --host-address localhost --host-key ~/.ssh/id_rsa

Output

...
TASK [Get VM network info] *******************************************************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'ipaddr'
fatal: [hypervisor]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File "", line 102, in \n File "", line 94, in _ansiballz_main\n File "", line 40, in invoke_module\n File "/usr/lib64/python3.6/runpy.py", line 205, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File "/usr/lib64/python3.6/runpy.py", line 96, in _run_module_code\n mod_name, mod_spec, pkg_name, script_name)\n File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code\n exec(code, run_globals)\n File "/tmp/ansible_virt_util_payload_qtmepmo9/ansible_virt_util_payload.zip/ansible/modules/virt_util.py", line 21, in \nModuleNotFoundError: No module named 'ipaddr'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

NO MORE HOSTS LEFT ***************************************************************************************************************************************************************************************************************************

PLAY RECAP ***********************************************************************************************************************************************************************************************************************************
hypervisor : ok=2 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

ERROR Playbook "/root/.infrared/plugins/virsh/main.yml" failed!

@jbadiapa
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant