Installing openstack in venv doesn't work

Bug #1521241 reported by Dmitry Guryanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Ian Wienand

Bug Description

Devstack can install all python packages in python's virtual environments, if you set USE_VENV to True in local.conf. But there is a bug and nova-api service can't run nova-rootwrap, so it fails to start.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

Fix proposed to branch: master
Review: https://review.openstack.org/251444

Changed in devstack:
assignee: nobody → Dmitry Guryanov (dguryanov)
status: New → In Progress
Revision history for this message
Atsushi SAKAI (sakaia) wrote :

I just run stack.sh with adding USE_VENV=True on local.conf
It is succeeded.
Is any other condition to reproduce this problem?

my local.conf is same as samples/local.conf.

Revision history for this message
Dmitry Guryanov (dguryanov) wrote :

I run in on centos 7, maybe sudo on Ubuntu is more permissive.

Changed in devstack:
assignee: Dmitry Guryanov (dguryanov) → Ian Wienand (iwienand)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.openstack.org/251444
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=e0ac37c257bf08db8d220d13773859d9202305d2
Submitter: Jenkins
Branch: master

commit e0ac37c257bf08db8d220d13773859d9202305d2
Author: Dmitry Guryanov <email address hidden>
Date: Mon Nov 30 18:48:23 2015 +0300

    Fix path setup in add_sudo_secure_path

    There are two bugs in add_sudo_secure_path.

    Firstly we don't properly check if the file exists, so always append
    the new line. This will overwrite any existing changes.

    Secondly the logic for checking if the path exists is inverted, so we
    miss adding paths when we should. This particularly causes failures
    when installing with virtualenv's since the paths are inside the
    virtualenv, rather than the standard system locations.

    Change-Id: I646fe0c68958470d464fe4f3d81d5c17dd6f2ab6
    Closes-bug: #1521241

Changed in devstack:
status: In Progress → Fix Released
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.