Ask Your Question

Ansible-deploy KVM libvirt-python failed

asked 2017-09-15 14:30:18 -0600

prates gravatar image

Hello community! Does anybody faced something like that deploying throught Ansible on KVM servers?

Environment: CentOS 7, 9 VM (3 control, 3 ceph, 2 compute, 1 ansible), Ocata version.

When running the "openstack-ansible setup-infrastructure.yml -vvv" its stop with the failure:

"Failed to build libvirt-python" at TASK [repo_build : Create OpenStack-Ansible requirement wheels]

Here are some logs from inside of container "control02_repo_container-f46a1e28" in a controller/infra node.

Failed command: 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/15.1.8/centos-7.3-x86_64/requirements_constraints.txt --no-binary libvirt-python --build /tmp/openstack-builder --log /var/log/repo/repo_builder.log --requirement /var/www/repo/os-releases/15.1.8/centos-7.3-x86_64/requirements.txt

[root@control02-repo-container-f46a1e28 repo]# tail -15 /var/log/repo/repo_builder.log Removing source in /tmp/openstack-builder/jmespath Removing source in /tmp/openstack-builder/requestsexceptions Removing source in /tmp/openstack-builder/setproctitle Removing source in /tmp/openstack-builder/pycparser Removing source in /tmp/openstack-builder/anyjson Removing source in /tmp/openstack-builder/waitress Removing source in /tmp/openstack-builder/beautifulsoup4 ERROR: Failed to build one or more wheels Exception information: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/pip/", line 215, in main status =, args) File "/usr/lib/python2.7/site-packages/pip/commands/", line 201, in run "Failed to build one or more wheels" CommandError: Failed to build one or more wheels [root@control02-repo-container-f46a1e28 repo]#

Thanks a lot!!!

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2017-09-20 10:32:23 -0600

prates gravatar image

Hi everybody....

I've made a working around... but I do not know if it will create other issues when this libvirt being used... but for now, this task ran OK.

Add: → /opt/openstack-ansible/global-requirement-pins.txt libvirt_python>=3.5.0


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-09-15 14:30:18 -0600

Seen: 302 times

Last updated: Sep 20 '17