[Openstack] Devstack installation failed - Newton - libvirt-python error

Silvia Fichera fichera.sil at gmail.com
Wed Sep 6 16:48:59 UTC 2017


Hi all,
since I need to use the networking-onos module and since I know that Mitaka
is now EOL and since it does not work with Ocata (that I've successfully
installed), I'm trying to downgrade to Newton. So I've unstacked removed
the devstack Ocata folder, remove all the files related to the previous
installation (dist-packages, site-packages, /opt/stack, etc) and I've
cloned the Newton branch, created the new local.conf file and stacked.
Now I have this error related to libvirt:

Collecting libvirt-python===2.1.0 (from -c
/opt/stack/requirements/upper-constraints.txt (line 169))
  Using cached libvirt-python-2.1.0.tar.gz
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;__file__='/tmp/pip-build-QIxCV3/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/tmpy6bFGcpip-wheel- --python-tag cp27:
  running bdist_wheel
  running build
  /usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt
  /usr/bin/python generator.py libvirt
/usr/share/libvirt/api/libvirt-api.xml
  Found 415 functions in /usr/share/libvirt/api/libvirt-api.xml
  Found 0 functions in libvirt-override-api.xml
  Generated 344 wrapper functions
  Missing type converters:
  virConnectNodeDeviceEventGenericCallback:1
  ERROR: failed virConnectNodeDeviceEventRegisterAny
  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
  Found existing installation: libvirt-python 3.0.0
    DEPRECATION: Uninstalling a distutils installed project
(libvirt-python) has been deprecated and will be removed in a future
version. This is due to the fact that uninstalling a distutils project will
only partially uninstall the project.
    Uninstalling libvirt-python-3.0.0:
      Successfully uninstalled libvirt-python-3.0.0
  Running setup.py install for libvirt-python ... error
    Complete output from command /usr/bin/python -u -c "import setuptools,
tokenize;__file__='/tmp/pip-build-QIxCV3/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-NPU6Mp-record/install-record.txt
--single-version-externally-managed --compile:
    running install
    running build
    /usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt
    /usr/bin/python generator.py libvirt
/usr/share/libvirt/api/libvirt-api.xml
    Found 415 functions in /usr/share/libvirt/api/libvirt-api.xml
    Found 0 functions in libvirt-override-api.xml
    Generated 344 wrapper functions
    Missing type converters:
    virConnectNodeDeviceEventGenericCallback:1
    ERROR: failed virConnectNodeDeviceEventRegisterAny
    error: command '/usr/bin/python' failed with exit status 1

    ----------------------------------------
  Rolling back uninstall of libvirt-python
Command "/usr/bin/python -u -c "import setuptools,
tokenize;__file__='/tmp/pip-build-QIxCV3/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-NPU6Mp-record/install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in
/tmp/pip-build-QIxCV3/libvirt-python/
+inc/python:pip_install:1                  exit_trap
+./stack.sh:exit_trap:494                  local r=1
++./stack.sh:exit_trap:495                  jobs -p
+./stack.sh:exit_trap:495                  jobs=
+./stack.sh:exit_trap:498                  [[ -n '' ]]
+./stack.sh:exit_trap:504                  kill_spinner
+./stack.sh:kill_spinner:390               '[' '!' -z '' ']'
+./stack.sh:exit_trap:506                  [[ 1 -ne 0 ]]
+./stack.sh:exit_trap:507                  echo 'Error on exit'
Error on exit
+./stack.sh:exit_trap:508                  generate-subunit 1504715723 118
fail
+./stack.sh:exit_trap:509                  [[ -z /opt/stack/logs ]]
+./stack.sh:exit_trap:512
/home/onossona/devstack/tools/worlddump.py -d /opt/stack/logs
World dumping... see /opt/stack/logs/worlddump-2017-09-06-163721.txt for
details
+./stack.sh:exit_trap:518                  exit 1


Someone of you knows how to solve it?
Moreover, when networking-onos will be updated?

Thanks a lot


-- 
Silvia Fichera
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20170906/31eea52e/attachment.html>


More information about the Openstack mailing list