Bug 862882 - /usr/bin/pulp-migrate calls /usr/bin/python explicitly instead of using env
Summary: /usr/bin/pulp-migrate calls /usr/bin/python explicitly instead of using env
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: Master
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 41
Assignee: Randy Barlow
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-03 20:06 UTC by Randy Barlow
Modified: 2013-01-09 17:04 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-09 17:04:54 UTC
Embargoed:


Attachments (Terms of Use)

Description Randy Barlow 2012-10-03 20:06:24 UTC
The /usr/bin/pulp-migrate command uses #!/usr/bin/python to find the scripting environment. This is bad for running Pulp in environments other than the system installed Python (such as virtualenv, or if the user wants to run in a different version of Python.) It should use env instead, which will find which Python interpreter to use by inspecting the environment.

Comment 1 Randy Barlow 2012-10-29 14:15:27 UTC
I completed the work on this ticket in this commit:

https://github.com/pulp/pulp/commit/421a95ca2efb57be1d63593f668933055296abaf

jdob reviewed this work as part of my story about migrations, which is why I am skipping this ticket status ahead to MODIFIED.

Comment 2 Jeff Ortel 2012-10-29 20:22:07 UTC
build: 0.334

Comment 3 Preethi Thomas 2012-11-05 19:42:09 UTC
verified

[root@pulp-master ~]# rpm -q pulp-rpm-server
pulp-rpm-server-0.0.335-1.fc17.noarch
[
[root@pulp-master ~]# 
[root@pulp-master ~]#  pulp-manage-db
Beginning database migrations.
Migration package pulp.server.db.migrations.platform is up to date at version 0
Database migrations complete.
Loading content types.
Content types loaded.
[root@pulp-master ~]#

Comment 4 Preethi Thomas 2013-01-09 17:04:54 UTC
Pulp v2.0 released


Note You need to log in before you can comment on or make changes to this bug.