Bug 1146294

Summary: the rpm bind (agent) handler should not require python-pulp-bindings
Product: Red Hat Satellite Reporter: Justin Sherrill <jsherril>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: high    
Version: 6.0.0CC: aperotti, cduryee, igulina, jortel, katello-bugs, katello-qa-list, mhrivnak
Target Milestone: UnspecifiedKeywords: Reopened
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1146286 Environment:
Last Closed: 2015-03-05 21:52:05 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:
Bug Depends On:    
Bug Blocks: 1145795, 1146286    

Description Justin Sherrill 2014-09-24 23:53:50 UTC
+++ This bug was initially created as a clone of Bug #1146286 +++

Description of problem:

Due to python-pulp-bindings being installed on the satellite server, performing any package action on a client will result in this traceback in /var/log/messages


*Sep 24 19:26:56 centos-6 goferd: [ERROR][worker-0] pulp.agent.lib.container:303 - handler "bind", import failed
*Sep 24 19:26:56 centos-6 goferd: [ERROR][worker-0] pulp.agent.lib.container:303 - Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/pulp/agent/lib/container.py", line 297, in __load mod = self.__import_module(path) File "/usr/lib/python2.6/site-packages/pulp/agent/lib/container.py", line 326, in __import_module mod = __import__(path[0], globals(), locals(), [path[-1]]) File "/usr/lib/python2.6/site-packages/pulp_rpm/handlers/bind.py", line 9, in <module> from pulp_rpm.handlers import repolib File "/usr/lib/python2.6/site-packages/pulp_rpm/handlers/repolib.py", line 12, in <module> from pulp.bindings.server import DEFAULT_CA_PATH ImportError: No module named bindings.server


Note that the action completes just fine, its just the error is printed.

Talking to jortel this the python-pulp-bindings shouldn't even be installed on the sat6 server, however:

	python-pulp-bindings = 2.4.0 is needed by (installed) pulp-nodes-common-2.4.0-1.el6.noarch

So somewhere along the way this dependency was added.


Version-Release number of selected component (if applicable):

6.0.4



How reproducible:
Always

Steps to Reproduce:
1.  Register a client with katello-agent installed
2.  Issue a package install from within satellite6
3.  monitor /var/log/messages on the client

Actual results:
traceback is thrown, package is installed

Expected results:
no traceback thrown


Additional info:

--- Additional comment from Justin Sherrill on 2014-09-24 19:14:47 EDT ---

Note this is a pulp packaging issue that may require a pulp code change

Comment 3 Chris Duryee 2014-11-14 19:54:26 UTC
merged to 2.5-dev and master

Comment 4 Chris Duryee 2014-12-23 20:52:15 UTC
fixed in pulp 2.6.0-0.2.beta

Comment 5 Brian Bouterse 2015-02-28 22:22:33 UTC
Moved to https://pulp.plan.io/issues/544

Comment 6 RHEL Program Management 2015-03-03 20:19:40 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 8 Brian Bouterse 2015-03-05 21:52:05 UTC

*** This bug has been marked as a duplicate of bug 1146286 ***