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

Overcloud deployment for train failed in ansible with Traceback. #388

Open
sai438 opened this issue Apr 6, 2020 · 0 comments
Open

Overcloud deployment for train failed in ansible with Traceback. #388

sai438 opened this issue Apr 6, 2020 · 0 comments

Comments

@sai438
Copy link

sai438 commented Apr 6, 2020

TASK [Refresh the overcloud node facts] ********************************************************************************************************************************************************************
task path: /root/.infrared/plugins/tripleo-overcloud/update_inventory.yml:24
<<>>
The full traceback is:
WARNING: The below traceback may not be related to the actual failure.
File "/tmp/ansible_os_server_facts_payload_j1SKHi/ansible_os_server_facts_payload.zip/ansible/module_utils/openstack.py", line 116, in openstack_cloud_from_module
sdk = importlib.import_module('openstack')
File "/usr/lib64/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/var/tmp/venv_shade/lib/python2.7/site-packages/openstack/init.py", line 16, in
import openstack.config
File "/var/tmp/venv_shade/lib/python2.7/site-packages/openstack/config/init.py", line 17, in
from openstack.config.loader import OpenStackConfig # noqa
File "/var/tmp/venv_shade/lib/python2.7/site-packages/openstack/config/loader.py", line 33, in
from openstack.config import cloud_region
File "/var/tmp/venv_shade/lib/python2.7/site-packages/openstack/config/cloud_region.py", line 44, in
from openstack import proxy
File "/var/tmp/venv_shade/lib/python2.7/site-packages/openstack/proxy.py", line 24, in
from openstack import resource
File "/var/tmp/venv_shade/lib/python2.7/site-packages/openstack/resource.py", line 49, in
from openstack import utils
File "/var/tmp/venv_shade/lib/python2.7/site-packages/openstack/utils.py", line 13, in
import queue

fatal: [undercloud-0 -> stack-apac-lab-04.lab.eng.rdu2.redhat.com]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"api_timeout": null,
"auth": null,
"auth_type": null,
"availability_zone": null,
"cacert": null,
"cert": null,
"cloud": "undercloud",
"detailed": null,
"interface": "public",
"key": null,
"region_name": null,
"server": null,
"timeout": 180,
"validate_certs": false,
"verify": false,
"wait": true
}
},
"msg": "openstacksdk is required for this module"
}

Then Ran following:

(.venv_infrared) [root@stack-apac-lab-04 ~]# /var/tmp/venv_shade/bin/python
Python 2.7.5 (default, Jun 11 2019, 14:33:56)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import importlib
sdk = importlib.import_module('openstack')
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib64/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/var/tmp/venv_shade/lib/python2.7/site-packages/openstack/init.py", line 16, in
import openstack.config
File "/var/tmp/venv_shade/lib/python2.7/site-packages/openstack/config/init.py", line 17, in
from openstack.config.loader import OpenStackConfig # noqa
File "/var/tmp/venv_shade/lib/python2.7/site-packages/openstack/config/loader.py", line 33, in
from openstack.config import cloud_region
File "/var/tmp/venv_shade/lib/python2.7/site-packages/openstack/config/cloud_region.py", line 44, in
from openstack import proxy
File "/var/tmp/venv_shade/lib/python2.7/site-packages/openstack/proxy.py", line 24, in
from openstack import resource
File "/var/tmp/venv_shade/lib/python2.7/site-packages/openstack/resource.py", line 49, in
from openstack import utils
File "/var/tmp/venv_shade/lib/python2.7/site-packages/openstack/utils.py", line 13, in
import queue
ImportError: No module named queue

Looks like its missing queue module

(venv_shade) [root@stack-apac-lab-04 ]# cp ./venv_infrared/lib/python2.7/site-packages/queue /var/tmp/venv_shade/lib/python2.7/site-packages/ -r

(venv_shade) [root@stack-apac-lab-04 ~]# python
Python 2.7.5 (default, Jun 11 2019, 14:33:56)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import importlib
sdk = importlib.import_module('openstack')

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