Bug 862882

Summary: /usr/bin/pulp-migrate calls /usr/bin/python explicitly instead of using env
Product: [Retired] Pulp Reporter: Randy Barlow <rbarlow>
Component: z_otherAssignee: Randy Barlow <rbarlow>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: MasterKeywords: Triaged
Target Milestone: ---   
Target Release: Sprint 41   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-09 17:04:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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