devstack mitaka installation fails with error "Running setup.py bdist_wheel for libvirt-python: finished with status 'error'" in Ubuntu 16.10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
High
|
Jesse Pretorius | ||
devstack |
Opinion
|
Undecided
|
Unassigned |
Bug Description
devstack mitaka installation fails with error "Running setup.py bdist_wheel for libvirt-python: finished with status 'error'" in Ubuntu 16.10.
Attached are the stack log files.
Srinivas (rsrini) wrote : | #1 |
Ian Wienand (iwienand) wrote : | #2 |
Changed in devstack: | |
status: | New → Invalid |
Jerry Zhao (zhaoxinyu) wrote : | #3 |
i am also seeing the error in centos7 since a couple of days ago when they updated libvirt libvirt-devel version to 2.0.0-10.el7_3.2
SETUPTOOLS_
2016-12-12 19:15:56.726 | Ignoring dnspython3: markers "python_
2016-12-12 19:15:57.013 | Collecting libvirt-
2016-12-12 19:15:57.275 | Downloading libvirt-
2016-12-12 19:15:59.470 | Building wheels for collected packages: libvirt-python
2016-12-12 19:15:59.471 | Running setup.py bdist_wheel for libvirt-python
2016-12-12 19:16:00.881 | Complete output from command /usr/bin/python -c "import setuptools;
2016-12-12 19:16:00.881 | running bdist_wheel
2016-12-12 19:16:00.881 | running build
2016-12-12 19:16:00.881 | /usr/bin/pkg-config --print-errors --atleast-
2016-12-12 19:16:00.881 | /usr/bin/python generator.py libvirt /usr/share/
2016-12-12 19:16:00.881 | Found 413 functions in /usr/share/
2016-12-12 19:16:00.881 | Found 0 functions in libvirt-
2016-12-12 19:16:00.882 | Generated 341 wrapper functions
2016-12-12 19:16:00.882 | Missing type converters:
2016-12-12 19:16:00.882 | virTypedParamet
2016-12-12 19:16:00.882 | virTypedParamet
2016-12-12 19:16:00.882 | virConnectStora
2016-12-12 19:16:00.882 | ERROR: failed virConnectStora
2016-12-12 19:16:00.882 | ERROR: failed virDomainGetGue
2016-12-12 19:16:00.882 | ERROR: failed virDomainGetPer
2016-12-12 19:16:00.882 | ERROR: failed virDomainSetPer
2016-12-12 19:16:00.882 | error: command '/usr/bin/python' failed with exit status 1
2016-12-12 19:16:00.882 |
2016-12-12 19:16:00.882 | -------
2016-12-12 19:16:00.882 | Failed building wheel for libvirt-python
2016-12-12 19:16:00.882 | Failed to build libvirt-python
2016-12-12 19:16:00.884 | Installing collected packages: libvirt-python
2016-12-12 19:16:00.884 | Running setup.py install for libvirt-python
2016-12-12 19:16:02.269 | Complete output from command /usr/bin/python -c "import setuptools, tokenize;
2016-12-12 19:16:02.269 | running install
2016-12-12 19:16:02.269 | running build
2016-12-12 19:16:02.269 | /usr/bin/pkg-config --print-errors --atleast-
2016-12-12 19:16:02.269 | /usr/bin/python generator.py libvirt /usr/share/
2016-12-12 19:16:02.270 | Found 413 funct...
Jerry Zhao (zhaoxinyu) wrote : | #4 |
this also applies to stable/liberty branch
Jerry Zhao (zhaoxinyu) wrote : | #5 |
Changed in devstack: | |
status: | Invalid → Confirmed |
Changed in devstack: | |
status: | Confirmed → Opinion |
mengalong (mengalong) wrote : | #6 |
I'm also met this error when I try to use devstack-
I find that the patch [1] haven't been accepted.
I want to know how to solve this error when we use devstack-
[1] http://
Nataraj (natarajpatra) wrote : | #7 |
log file while installation :
Ignoring dnspython3: markers 'python_version == "3.4"' don't match your environment
Collecting libvirt-
Using cached libvirt-
Building wheels for collected packages: libvirt-python
Running setup.py bdist_wheel for libvirt-python ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;
running bdist_wheel
running build
/usr/
/usr/bin/python generator.py libvirt /usr/share/
Found 413 functions in /usr/share/
Found 0 functions in libvirt-
Generated 341 wrapper functions
Missing type converters:
virTypedParam
virTypedParam
virConnectSto
ERROR: failed virConnectStora
ERROR: failed virDomainGetGue
ERROR: failed virDomainGetPer
ERROR: failed virDomainSetPer
error: command '/usr/bin/python' failed with exit status 1
-----
Failed building wheel for libvirt-python
Running setup.py clean for libvirt-python
Failed to build libvirt-python
Installing collected packages: libvirt-python
Running setup.py install for libvirt-python ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;
running install
running build
/usr/
/usr/bin/python generator.py libvirt /usr/share/
Found 413 functions in /usr/share/
Found 0 functions in libvirt-
Generated 341 wrapper functions
Missing type converters:
virTypedPar
virTypedPar
virConnectS
ERROR: failed virConnectStora
ERROR: failed virDomainGetGue
ERROR: failed virDomainGetPer
ERROR: failed virDomainSetPer
error: command '/usr/bin/python' failed with exit status 1
---
Command "/usr/bin/python -u -c "import setuptools, tokenize;
Andy Hui (yahudev) wrote : | #8 |
Encountering this issue as well, even using stable/newton branch. Any advise?
Mr Okpoyo (unana-okpoyo) wrote : | #9 |
I ran into the same issue stacking in stable/newton in Ubuntu 16. Fixed it by running the following commands before running stack.sh. Hope it helps
sudo apt-get remove --purge -y libvirt*
sudo pip uninstall libvirt-python
sudo apt-get install -y libvirt0=
Karl Kloppenborg (karlkloppenborg) wrote : | #10 |
Confirmed stable/ocata.
Upgrading newton->ocata and repo scripts failing.
@unana-okpoyo's changes work by downgrading but the ansible scripts detect and upgrade this.
Any fix for OpenStack-Ansible?
---- LIBVIRTD FAILED ----
root@controller
root@controller
libvirtd (libvirt) 2.5.0
root@controller
-----------------
---UNinstall and apt get pinned version ----
root@controller
root@controller
----- Now working until I run ansible again ---
pip wheel --timeout 120 --wheel-dir /tmp/openstack-
----
---
Run and works:
---- DUMP ----
Ignoring dnspython3: markers 'python_version == "3.4"' don't match your environment
Ignoring dnspython3: markers 'python_version == "3.5"' don't match your environment
Ignoring ovs: markers 'python_version == "3.4"' don't match your environment
Ignoring ovs: markers 'python_version == "3.5"' don't match your environment
Setting libvirt_
Collecting libvirt_
1 location(s) to search for versions of libvirt-python:
* https:/
Skipping link /var/www/repo/links (from -f); not a file
Skipping link /tmp/openstack-
Getting page https:/
Analyzing links from page https:/
Found link https:/
Found link https:/
Found link https:/
Found link https:/
Found link https:/
Arun S A G (sagarun) wrote : | #11 |
- stack.sh.log.2017-08-02-071701 Edit (798.8 KiB, text/plain)
I am running stable/ocata branch. This affects RHEL/Centos 7 as well, with the latest RPMs it is failing to build libvirt-python 2.5, Any workarounds?
rpm -qa|grep libvirt
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
libvirt-
Abel Lopez (al592b) wrote : | #12 |
Same error in stable/ocata on RHEL 7
Arun S A G (sagarun) wrote : | #13 |
@abel Looks like this is a catch all bug. We probably need to open a separate one.
Silvia (fichera-sil) wrote : | #14 |
Installation with devstack stable/newton.
Previously I had a stable/ocata successfully installed, but ocata does not work with networking-onos (that I need)
+inc/python:
Ignoring dnspython3: markers 'python_version == "3.4"' don't match your environment
Ignoring dnspython3: markers 'python_version == "3.5"' don't match your environment
Ignoring ovs: markers 'python_version == "3.4"' don't match your environment
Ignoring ovs: markers 'python_version == "3.5"' don't match your environment
Collecting libvirt-
Using cached libvirt-
Building wheels for collected packages: libvirt-python
Running setup.py bdist_wheel for libvirt-python ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;
running bdist_wheel
running build
/usr/
/usr/bin/python generator.py libvirt /usr/share/
Found 415 functions in /usr/share/
Found 0 functions in libvirt-
Generated 344 wrapper functions
Missing type converters:
virConnectNod
ERROR: failed virConnectNodeD
error: command '/usr/bin/python' failed with exit status 1
-----
Failed building wheel for libvirt-python
Running setup.py clean for libvirt-python
Failed to build libvirt-python
Installing collected packages: libvirt-python
Running setup.py install for libvirt-python ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;
running install
running build
/usr/
/usr/bin/python generator.py libvirt /usr/share/
Found 415 functions in /usr/share/
Found 0 functions in libvirt-
Generated 344 wrapper functions
Missing type converters:
virConnectN
ERROR: failed virConnectNodeD
error: command '/usr/bin/python' failed with exit status 1
---
Command "/usr/bin/python -u -c "import setuptools, tokenize;
Jesse Pretorius (jesse-pretorius) wrote : | #15 |
We're seeing this consistently with our periodic tests and getting feedback from our users. Their feedback is that using 'libvirt-
For OSA users the workaround is to use the following override in /etc/openstack_
repo_build_
- "libvirt-
As a solution, if need be, we may have to add this to global-
libvirt-
Changed in openstack-ansible: | |
status: | New → Confirmed |
importance: | Undecided → High |
Jesse Pretorius (jesse-pretorius) wrote : | #16 |
FYI, I marked https:/
Jesse Pretorius (jesse-pretorius) wrote : | #17 |
In OSA we've worked around this by simplify using the host package version of libvirt-python: https:/
Changed in openstack-ansible: | |
assignee: | nobody → Jesse Pretorius (jesse-pretorius) |
status: | Confirmed → Fix Released |
Muhammad Awais (awais940) wrote : | #18 |
Hi,
I am facing issue to the OpenStack AIO installation. I have run the script (openstack-ansible setup-infrastru
TASK [repo_build : Download requirement pip sources] *******
TASK [repo_build : Create OpenStack-Ansible requirement wheels] *******
fatal: [aio1_repo_
NO MORE HOSTS LEFT *******
PLAY RECAP *******
aio1_repo_
localhost : ok=1 changed=0 unreachable=0 failed=0
EXIT NOTICE [Playbook execution failure] *******
=======
Jesse Pretorius (jesse-pretorius) wrote : | #19 |
@Muhammed This is an old bug which is closed. I'd suggest registering a new bug, but take a look at /var/log/
It seems that the version of libvirt-python in requirements/ upper-constrain ts.txt for mikata is 1.3.2 which does not work with the version of libvirt present in Ubuntu 16.10 [1]
I think the solution here is to use trusty for mikata branch. You could try proposing a bump to to version in [2] but i'm not sure if it would be accepted for this.
[1] https:/ /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 822384 git.openstack. org/cgit/ openstack/ requirements/ tree/upper- constraints. txt?h=stable/ mitaka# n171
[2] http://