swift-init uses fixed path to Python interpreter, breaking virtualenv

Bug #737979 reported by Ewan Mellor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Low
Ewan Mellor
OpenStack Object Storage (swift)
Fix Released
Low
Unassigned

Bug Description

glance-control uses #!/usr/bin/python, not #!/usr/bin/env python. This breaks virtualenv, which means that tests.unit.test_misc.TestLogging and tests.unit.test_misc.TestMiscellaneous fail under run_tests.sh -V, if the hosting environment does not have the necessary libraries (in my case, PasteDeploy).

This also applies to swift-init.

This bug has now been fixed for glance-control, but not for swift-init.

Related branches

Ewan Mellor (ewanmellor)
Changed in glance:
assignee: nobody → Ewan Mellor (ewanmellor)
status: New → In Progress
Revision history for this message
Jay Pipes (jaypipes) wrote :

Note to Swifties:

This came up because I actually use glance-control (which is a slightly modified copy of swift-init) in my functional tests, which for Glance, can be run in a virtualenv with ./run_tests.sh -V.

Anyway, it's a simple fix, as you can see. Checked, and swift-init still hard-codes Python interpreter location.

Changed in glance:
importance: Undecided → Low
milestone: none → cactus-2011-03-24
Changed in swift:
importance: Undecided → Low
Jay Pipes (jaypipes)
Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: cactus-2011-03-24 → 2011.2
status: Fix Committed → Fix Released
Revision history for this message
Ewan Mellor (ewanmellor) wrote :

I've updated the title and body of this bug, as per Jay's comments that this also applies to swift-init.

summary: - glance-control uses fixed path to Python interpreter, breaking
- virtualenv
+ swift-init uses fixed path to Python interpreter, breaking virtualenv
description: updated
Changed in swift:
status: New → 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.