Bug 695607

Summary: pulp-agent fails on missing uuid module
Product: [Retired] Pulp Reporter: Daniel Mach <dmach>
Component: rel-engAssignee: Jeff Ortel <jortel>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: skarmark
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-24 20:13:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 563609    

Description Daniel Mach 2011-04-12 07:34:25 UTC
Looks like a gofer issue, but not sure where exactly to report it.
Traceback from a RHEL-5 box:

$ service pulp-agent start
Starting goferdTraceback (most recent call last):
  File "/usr/bin/goferd", line 17, in ?
    from gofer.agent.main import main
  File "/usr/lib/python2.4/site-packages/gofer/agent/main.py", line 23, in ?
    from gofer.agent.plugin import PluginLoader, Plugin
  File "/usr/lib/python2.4/site-packages/gofer/agent/plugin.py", line 25, in ?
    from gofer.messaging import Queue
  File "/usr/lib/python2.4/site-packages/gofer/messaging/__init__.py", line 16, in ?
    from uuid import uuid4
ImportError: No module named uuid

Adding uuid to gofer's deps should fix it.

Comment 1 Jeff Ortel 2011-04-12 14:23:00 UTC
I had added /etc/rpm/macro.pulp on our RHEL 5  builders as:

%el5 1
%rhel 5

and on our RHEL 6 builders as:

%el6 1
%rhel 6

to align with brew.

We simply need to change the pulp.spec and gofer.spec and maybe grinder.spec to use:

%if 0%{rhel} == 5 

instead of 

%if 0%{el5}

Comment 2 Sayli Karmarkar 2011-07-15 22:01:12 UTC
Jeff, have you already made this change?

Comment 3 Jeff Ortel 2011-07-18 15:27:33 UTC
Nope.  I'll fix this today.

Comment 4 Jeff Ortel 2011-08-03 17:43:03 UTC
Fixed in gofer 0.44
Fixed in pulp.
Grinder only used {el6} which is defined in brew.

Comment 5 Jeff Ortel 2011-08-03 20:11:25 UTC
build: 0.219

Comment 6 Preethi Thomas 2011-09-02 17:31:09 UTC
verified on rhel5
[root@pulp-qe-rhel5 ~]# service pulp-agent restart
Stopping goferd                                            [  OK  ]
Starting goferd                                            [  OK  ]
[root@pulp-qe-rhel5 ~]# rpm -q pulp
pulp-0.0.229-1
[root@pulp-qe-rhel5 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.6 (Tikanga)

Comment 7 Preethi Thomas 2012-02-24 20:13:25 UTC
Pulp v1.0 is released
Closed Current Release.