[Bug 1749944] Re: Broken ubuntu-binary-nova-compute:pike No module named libvirt

Randy randymartini at gmail.com
Thu Mar 1 15:57:14 UTC 2018


The Pike version of Dockerfile.j2 adds these files to the libvirt
container.

        'ceph-common',
        'ebtables',
        'libvirt-clients',
        'libvirt-daemon-system',
        'openvswitch-switch',
        'pm-utils',
        'qemu',
        'qemu-block-extra'
You can view the file here: https://github.com/openstack/kolla/blob/stable/pike/docker/nova/nova-libvirt/Dockerfile.j2

The apt install of libvirt-daemon-system files to install the libvirt-
daemon.  This is using the Ubuntu Pike PPA.

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/1749944

Title:
  Broken ubuntu-binary-nova-compute:pike No module named libvirt

Status in kolla:
  New
Status in nova package in Ubuntu:
  Incomplete

Bug description:
  Hello, I'm trying to deploy Kolla Ansible based on Ubuntu Xenial, all-in-one mode.
  However nova_compute container refuses to start.
  nova compute process reports issue "ImportError: No module named libvirt"

  Detailed error message:
  # tail -20 /var/lib/docker/volumes/kolla_logs/_data/nova/nova-compute.log
  2018-02-16 13:03:33.059 8 ERROR nova.virt.driver     libvirt = importutils.import_module('libvirt')
  2018-02-16 13:03:33.059 8 ERROR nova.virt.driver   File "/usr/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 73, in import_module
  2018-02-16 13:03:33.059 8 ERROR nova.virt.driver     __import__(import_str)
  2018-02-16 13:03:33.059 8 ERROR nova.virt.driver ImportError: No module named libvirt
  2018-02-16 13:03:33.059 8 ERROR nova.virt.driver
  2018-02-16 13:07:02.823 7 INFO os_vif [-] Loaded VIF plugins: ovs, linux_bridge
  2018-02-16 13:07:02.824 7 WARNING oslo_reports.guru_meditation_report [-] Guru meditation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.
  2018-02-16 13:07:03.190 7 INFO nova.virt.driver [req-cf81278e-ad5a-4290-be00-40315726587b - - - - -] Loading compute driver 'libvirt.LibvirtDriver'
  2018-02-16 13:07:03.594 7 ERROR nova.virt.driver [req-cf81278e-ad5a-4290-be00-40315726587b - - - - -] Unable to load the virtualization driver: ImportError: No module named libvirt
  2018-02-16 13:07:03.594 7 ERROR nova.virt.driver Traceback (most recent call last):
  2018-02-16 13:07:03.594 7 ERROR nova.virt.driver   File "/usr/lib/python2.7/dist-packages/nova/virt/driver.py", line 1638, in load_compute_driver
  2018-02-16 13:07:03.594 7 ERROR nova.virt.driver     virtapi)
  2018-02-16 13:07:03.594 7 ERROR nova.virt.driver   File "/usr/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 44, in import_object
  2018-02-16 13:07:03.594 7 ERROR nova.virt.driver     return import_class(import_str)(*args, **kwargs)
  2018-02-16 13:07:03.594 7 ERROR nova.virt.driver   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 312, in __init__
  2018-02-16 13:07:03.594 7 ERROR nova.virt.driver     libvirt = importutils.import_module('libvirt')
  2018-02-16 13:07:03.594 7 ERROR nova.virt.driver   File "/usr/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 73, in import_module
  2018-02-16 13:07:03.594 7 ERROR nova.virt.driver     __import__(import_str)
  2018-02-16 13:07:03.594 7 ERROR nova.virt.driver ImportError: No module named libvirt
  2018-02-16 13:07:03.594 7 ERROR nova.virt.driver

  
  Environment details:
  PIP output:
  kolla (5.0.1)
  kolla-ansible (5.0.1)

  Docker inspect output:

             "Env": [
                  "KOLLA_SERVICE_NAME=nova-compute",
                  "KOLLA_CONFIG_STRATEGY=COPY_ALWAYS",
                  "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/lib/udev",
                  "PIP_INDEX_URL=http://mirror.mtl01.inap.openstack.org:8080/pypi/simple",
                  "PIP_TRUSTED_HOST=mirror.mtl01.inap.openstack.org",
                  "KOLLA_BASE_DISTRO=ubuntu",
                  "KOLLA_INSTALL_TYPE=binary",
                  "KOLLA_INSTALL_METATYPE=rdo",
                  "PS1=$(tput bold)($(printenv KOLLA_SERVICE_NAME))$(tput sgr0)[$(id -un)@$(hostname -s) $(pwd)]$ ",
                  "DEBIAN_FRONTEND=noninteractive"
              ],
              "Cmd": [
                  "kolla_start"
              ],
              "Image": "kolla/ubuntu-binary-nova-compute:pike",

To manage notifications about this bug go to:
https://bugs.launchpad.net/kolla/+bug/1749944/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list