Project

General

Profile

Actions

Bug #24168

closed

python-libvirt fails to build against newer libvirt

Added by Dan Mick almost 6 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

Noticed by IRC user rishabh on Centos7 (CentOS-7-x86_64-GenericCloud-1708) and I reproduced on Ubuntu 18.04:

  Running setup.py install for libvirt-python ... error
    Complete output from command /home/dmick/src/ceph/teuthology/virtualenv/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-GiXmZ9/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-record-qQUqOr/install-record.txt --single-version-externally-managed --compile --install-headers /home/dmick/src/ceph/teuthology/virtualenv/include/site/python2.7/libvirt-python:
    running install
    running build
    /usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt
    /home/dmick/src/ceph/teuthology/virtualenv/bin/python2 generator.py libvirt /usr/share/libvirt/api/libvirt-api.xml
    Found 429 functions in /usr/share/libvirt/api/libvirt-api.xml
    Found 0 functions in libvirt-override-api.xml
    Generated 349 wrapper functions
    Missing type converters:
    unsigned long long *:1
    ERROR: failed virDomainMigrateGetMaxDowntime
    error: command '/home/dmick/src/ceph/teuthology/virtualenv/bin/python2' failed with exit status 1

Removing the "==3.4.0" constraint from requirements.txt for libvirt-python made it install 4.3.0 instead, which built and finished bootstrapping. I did not examine versions of libvirt vs libvirt-python.

Actions #1

Updated by Dan Mick almost 6 years ago

  • Assignee set to Zack Cerza

zcerza, maybe you're the right one to track this down

Actions #2

Updated by Dan Mick almost 6 years ago

rishabh reports that the unpinning works for Centos7 and Fedora27 as well

Actions #3

Updated by Zack Cerza almost 6 years ago

  • Status changed from New to In Progress
Actions #4

Updated by Zack Cerza almost 6 years ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF