libvirt-python failure on centos-7 + ocata

Bug #1730314 reported by YAMAMOTO Takashi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Confirmed
High
Unassigned
networking-midonet
New
Critical
Unassigned
CentOS
New
Undecided
Unassigned

Bug Description

it seems failing in various projects.http://logstash.openstack.org/#dashboard/file/logstash.json?query=message%3A%20%5C%22Failed%20to%20build%20libvirt-python%5C%22

eg. http://logs.openstack.org/34/505234/1/check/legacy-tempest-dsvm-networking-midonet-aio-ml2-centos-7/c3dc8e7/logs/devstacklog.txt.gz

2017-11-04 23:18:05.041 | Building wheels for collected packages: libvirt-python
2017-11-04 23:18:05.042 | Running setup.py bdist_wheel for libvirt-python: started
2017-11-04 23:18:06.258 | Running setup.py bdist_wheel for libvirt-python: finished with status 'error'
2017-11-04 23:18:06.258 | Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-QsRE1s/libvirt-python/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpDp7ZAypip-wheel- --python-tag cp27:
2017-11-04 23:18:06.258 | running bdist_wheel
2017-11-04 23:18:06.258 | running build
2017-11-04 23:18:06.259 | /usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt
2017-11-04 23:18:06.259 | /usr/bin/python generator.py libvirt /usr/share/libvirt/api/libvirt-api.xml
2017-11-04 23:18:06.259 | Found 420 functions in /usr/share/libvirt/api/libvirt-api.xml
2017-11-04 23:18:06.259 | Found 0 functions in libvirt-override-api.xml
2017-11-04 23:18:06.259 | Generated 346 wrapper functions
2017-11-04 23:18:06.259 | Missing type converters:
2017-11-04 23:18:06.259 | virConnectSecretEventGenericCallback:1
2017-11-04 23:18:06.259 | virStorageVolInfoPtr:1
2017-11-04 23:18:06.259 | ERROR: failed virConnectSecretEventRegisterAny
2017-11-04 23:18:06.259 | ERROR: failed virStorageVolGetInfoFlags
2017-11-04 23:18:06.259 | error: command '/usr/bin/python' failed with exit status 1
2017-11-04 23:18:06.259 |
2017-11-04 23:18:06.259 | ----------------------------------------
2017-11-04 23:18:06.259 | Failed building wheel for libvirt-python
2017-11-04 23:18:06.259 | Running setup.py clean for libvirt-python
2017-11-04 23:18:07.203 | Failed to build libvirt-python
2017-11-04 23:18:07.204 | Installing collected packages: libvirt-python
2017-11-04 23:18:07.205 | Running setup.py install for libvirt-python: started
2017-11-04 23:18:08.434 | Running setup.py install for libvirt-python: finished with status 'error'
2017-11-04 23:18:08.434 | Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-QsRE1s/libvirt-python/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-XwMoPh-record/install-record.txt --single-version-externally-managed --compile:
2017-11-04 23:18:08.434 | running install
2017-11-04 23:18:08.434 | running build
2017-11-04 23:18:08.434 | /usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt
2017-11-04 23:18:08.434 | /usr/bin/python generator.py libvirt /usr/share/libvirt/api/libvirt-api.xml
2017-11-04 23:18:08.434 | Found 420 functions in /usr/share/libvirt/api/libvirt-api.xml
2017-11-04 23:18:08.434 | Found 0 functions in libvirt-override-api.xml
2017-11-04 23:18:08.434 | Generated 346 wrapper functions
2017-11-04 23:18:08.434 | Missing type converters:
2017-11-04 23:18:08.435 | virConnectSecretEventGenericCallback:1
2017-11-04 23:18:08.435 | virStorageVolInfoPtr:1
2017-11-04 23:18:08.435 | ERROR: failed virConnectSecretEventRegisterAny
2017-11-04 23:18:08.435 | ERROR: failed virStorageVolGetInfoFlags
2017-11-04 23:18:08.435 | error: command '/usr/bin/python' failed with exit status 1
2017-11-04 23:18:08.435 |
2017-11-04 23:18:08.435 | ----------------------------------------
2017-11-04 23:18:08.438 | Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-QsRE1s/libvirt-python/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-XwMoPh-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-QsRE1s/libvirt-python/

tags: added: gate-failure midokura-jira-tracked
Changed in networking-midonet:
importance: Undecided → Critical
Revision history for this message
YAMAMOTO Takashi (yamamoto) wrote :

i suspect libvirt version for centos-7 image (libvirt-3.2.0-14.el7_4.3.x86_64)
is incompatible with libvirt-python version for ocata (2.5.0)

Revision history for this message
YAMAMOTO Takashi (yamamoto) wrote :
Changed in openstack-ansible:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Jesse Pretorius (jesse-pretorius) wrote :

We're seeing this consistently with our periodic tests and getting feedback from our users. Their feedback is that using 'libvirt-python==3.5.0' instead of the Ocata upper-constraint of 'libvirt-python==2.5.0' resolves the issue.

For OSA users the workaround is to use the following override in /etc/openstack_deploy/user_variables.yml:
repo_build_upper_constraints_overrides:
  - "libvirt-python==3.5.0"

As a solution, if need be, we may have to add this to global-requirement-pins.txt for Ocata:
libvirt-python==3.5.0

Revision history for this message
Satish Patel (satish-txt) wrote :

I have same issue, in CentOS7 with Pike version 16.0.10 tags

Revision history for this message
Jeff Albert (jralbert) wrote :

Folks who are experiencing this in CentOS7: CentOS 7.5 has recently been released, which bumps the libvirt version to 3.9.0; libvirt-python must match libvirt's version, so capping it at anything lower than 3.9.0 will not work. For now, it's necessary to modify the advice above - in /etc/openstack_deploy/user_variables.yml:

repo_build_upper_constraints_overrides:
  - "libvirt-python==3.9.0"

I think OSA should either pin the libvirt package to a version that fits the OS tested requirements, or else remove the the libvirt-python upper constraint to overcome this issue.

Revision history for this message
Satish Patel (satish-txt) wrote :

following solved my issue.

repo_build_upper_constraints_overrides:
  - "libvirt-python==3.9.0"

Revision history for this message
Muhammad Awais (awais940) wrote :

Hi, Team, I am facing issue to the OpenStack AIO installation. I have run the script (openstack-ansible setup-infrastructure.yml) and facing below error, please advise.

TASK [repo_build : Download requirement pip sources] ****************************************************************************************************************************************

TASK [repo_build : Create OpenStack-Ansible requirement wheels] *****************************************************************************************************************************
fatal: [aio1_repo_container-7d52049f]: FAILED! => {"changed": true, "cmd": "set -o pipefail; /openstack/venvs/repo-build-19.0.0.0b1/bin/pip wheel --timeout 120 --wheel-dir /tmp/openstack-wheel-output --find-links /var/www/repo/links --find-links /tmp/openstack-wheel-output --constraint /var/www/repo/os-releases/19.0.0.0b1/centos-7.5-x86_64/requirements_constraints.txt --no-binary libvirt-python --index-url https://pypi.python.org/simple --trusted-host pypi.python.org --extra-index-url http://mirror.lon1.citycloud.openstack.org/wheel/centos-7-x86_64/ --trusted-host mirror.lon1.citycloud.openstack.org --build /tmp/openstack-builder --requirement /var/www/repo/os-releases/19.0.0.0b1/centos-7.5-x86_64/requirements.txt 2>&1 | ts > /var/log/repo/wheel_build.log", "delta": "0:00:41.197559", "end": "2018-09-14 13:30:58.458624", "msg": "non-zero return code", "rc": 1, "start": "2018-09-14 13:30:17.261065", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

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

PLAY RECAP **********************************************************************************************************************************************************************************
aio1_repo_container-7d52049f : ok=88 changed=8 unreachable=0 failed=1
localhost : ok=1 changed=0 unreachable=0 failed=0

EXIT NOTICE [Playbook execution failure] **************************************
===============================================================================

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.