No module named privsep.libvirt for stable/pike

Bug #1748643 reported by Memo Garcia
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Expired
Undecided
Unassigned

Bug Description

Description
===========
I'm trying to run nova-compute from stable/pike on archlinux using python 2.7.14 (python 3 I had the same luck) and I keep getting this error when I run it.

Steps to reproduce
==================

git clone -b stable/pike --depth=1 https://github.com/openstack/nova.git /opt/nova
python2 -m pip install -e . && tox -e genconfig
nova.conf configuration and nova-compute.conf configuration
nova-compute

Expected result
===============

nova-compute to start working

Actual result
=============

root@244a210d2240 nova]# nova-compute
2018-02-10 15:05:28.620 42 INFO nova.virt.driver [req-f81acf19-2ebb-46f4-87a3-48fd4ddf45a2 - - - - -] Loading compute driver 'libvirt.LibvirtDriver'
2018-02-10 15:05:28.740 42 ERROR nova.virt.driver [req-f81acf19-2ebb-46f4-87a3-48fd4ddf45a2 - - - - -] Unable to load the virtualization driver: ImportError: No module named privsep.libvirt
2018-02-10 15:05:28.740 42 ERROR nova.virt.driver Traceback (most recent call last):
2018-02-10 15:05:28.740 42 ERROR nova.virt.driver File "/opt/nova/nova/virt/driver.py", line 1638, in load_compute_driver
2018-02-10 15:05:28.740 42 ERROR nova.virt.driver virtapi)
2018-02-10 15:05:28.740 42 ERROR nova.virt.driver File "/usr/lib/python2.7/site-packages/oslo_utils/importutils.py", line 44, in import_object
2018-02-10 15:05:28.740 42 ERROR nova.virt.driver return import_class(import_str)(*args, **kwargs)
2018-02-10 15:05:28.740 42 ERROR nova.virt.driver File "/usr/lib/python2.7/site-packages/oslo_utils/importutils.py", line 30, in import_class
2018-02-10 15:05:28.740 42 ERROR nova.virt.driver __import__(mod_str)
2018-02-10 15:05:28.740 42 ERROR nova.virt.driver File "/opt/nova/nova/virt/libvirt/__init__.py", line 15, in <module>
2018-02-10 15:05:28.740 42 ERROR nova.virt.driver from nova.virt.libvirt import driver
2018-02-10 15:05:28.740 42 ERROR nova.virt.driver File "/opt/nova/nova/virt/libvirt/driver.py", line 87, in <module>
2018-02-10 15:05:28.740 42 ERROR nova.virt.driver import nova.privsep.libvirt
2018-02-10 15:05:28.740 42 ERROR nova.virt.driver ImportError: No module named privsep.libvirt
2018-02-10 15:05:28.740 42 ERROR nova.virt.driver

Environment
===========

Runnning on arch linux with python 2.7 on docker

My last commit is

[root@244a210d2240 nova]# git log
commit b54aa791e26fc32020b03c5ced5c5c8a3c16ac72 (grafted, HEAD -> stable/pike, origin/stable/pike)
Author: Zuul <email address hidden>
Date: Fri Feb 9 04:54:57 2018 +0000

    Merge "Add release note for Aggregate[Core|Ram|Disk]Filter change" into stable/pike

Revision history for this message
jichenjc (jichenjc) wrote :

I tried the command you gave (only the clone) but I can't find the lines you mentioned... maybe wrong method usage?

jichen@blockchain:/opt/nova$ grep privsep * -r
etc/nova/rootwrap.d/compute.filters:# os_brick.privileged.default oslo.privsep context
etc/nova/rootwrap.d/compute.filters:privsep-rootwrap: RegExpFilter, privsep-helper, root, privsep-helper, --config-file, /etc/(?!\.\.).*, --privsep_context, os_brick.privileged.default, --privsep_sock_path, /tmp/.*
nova/cmd/compute.py:from oslo_privsep import priv_context
requirements.txt:oslo.privsep!=1.17.0,>=1.9.0 # Apache-2.0
jichen@blockchain:/opt/nova$ git log
commit b54aa791e26fc32020b03c5ced5c5c8a3c16ac72
Author: Zuul <email address hidden>
Date: Fri Feb 9 04:54:57 2018 +0000

    Merge "Add release note for Aggregate[Core|Ram|Disk]Filter change" into stable/pike

jichenjc (jichenjc)
Changed in nova:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Compute (nova) because there has been no activity for 60 days.]

Changed in nova:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.