Bug 1146286 - agent package/errata actions throw traceback on client (but still work)
Summary: agent package/errata actions throw traceback on client (but still work)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: sthirugn@redhat.com
URL:
Whiteboard:
: 1146294 (view as bug list)
Depends On: 1146294
Blocks: sat6-pulp-blocker
TreeView+ depends on / blocked
 
Reported: 2014-09-24 23:09 UTC by Justin Sherrill
Modified: 2021-04-06 18:03 UTC (History)
20 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1146294 (view as bug list)
Environment:
Last Closed: 2015-08-12 13:56:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Pulp Redmine 544 0 High CLOSED - CURRENTRELEASE the rpm bind (agent) handler should not require python-pulp-bindings Never
Red Hat Knowledge Base (Article) 1354653 0 None None None Never

Description Justin Sherrill 2014-09-24 23:09:36 UTC
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:

Comment 1 Justin Sherrill 2014-09-24 23:14:47 UTC
Note this is a pulp packaging issue that may require a pulp code change

Comment 4 Brian Bouterse 2015-03-05 21:52:05 UTC
*** Bug 1146294 has been marked as a duplicate of this bug. ***

Comment 7 Jeff Ortel 2015-03-20 16:49:18 UTC
The pulp.bindings import error logged by the handler container was fixed in 2.6.0-0.2.beta per: https://bugzilla.redhat.com/show_bug.cgi?id=1146294.

Comment 9 pulp-infra@redhat.com 2015-04-23 16:40:08 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.

Comment 10 Bryan Kearney 2015-04-27 20:32:57 UTC
Upstream is showing this as resolved in pulp 2.6.0 which is shipped as part of Satellite 6.1. I am moving this to ON_QA.

Comment 12 sthirugn@redhat.com 2015-06-02 14:44:59 UTC
Verified in Sat 6.1 GA Snap 6

Installed RHBA-2014:0946 in content host via Satellite UI:

/var/log/messages in content host:
Jun  1 17:07:40 ibm-x3550m3-08 goferd: [INFO][worker-0] gofer.rmi.dispatcher:600 - call: Content.install() sn=1c9a4508-f5f4-492d-9444-69363f99d337 data={u'task_id': u'ba2de102-bc8a-493c-9181-90f81615b60d', u'consumer_id': u'e2040504-0e96-4c5c-bbea-feb8feeaa0d4'}
Jun  1 17:08:26 ibm-x3550m3-08 goferd: [INFO][worker-0] gofer.agent.rmi:128 - sn=1c9a4508-f5f4-492d-9444-69363f99d337 processed in: 47.453 (seconds)

# yum history info 16
Loaded plugins: package_upload, product-id, subscription-manager
Transaction ID : 16
Begin time     : Mon Jun  1 17:08:10 2015
Begin rpmdb    : 720:0d929ae7d3bb85cd2060863c4ebc16492a5cba92
End time       :            17:08:24 2015 (14 seconds)
End rpmdb      : 720:8eede763803a3604ecbfae640eb0321a81e74542
User           : System <unset>
Return-Code    : Success
Transaction performed with:
    Installed     rpm-4.11.1-25.el7.x86_64                  @beaker-Server/7.1
    Installed     subscription-manager-1.13.22-1.el7.x86_64 @beaker-Server/7.1
    Installed     yum-3.4.3-125.el7.noarch                  @beaker-Server/7.1
    Installed     yum-metadata-parser-1.1.4-10.el7.x86_64   @beaker-Server/7.1
Packages Altered:
    Updated unzip-6.0-13.el7.x86_64 @beaker-Server/7.1
    Update        6.0-14.el7.x86_64 @rhel-7-server-rpms
history info



Installed emacs package in content host via Satellite UI:

/var/log/messages in content host:
yum Jun  2 10:41:49 mgmt2 goferd: [INFO][worker-0] gofer.rmi.dispatcher:600 - call: Content.install() sn=2365a54f-d1bd-4284-866b-05a4ad39caed data={u'task_id': u'6a8058d2-0cc7-4dca-891c-75f9a73fa4e1', u'consumer_id': u'60259382-010e-4c00-a5bb-8c1505a102e7'}
Jun  2 10:42:19 mgmt2 goferd: [INFO][worker-0] gofer.agent.rmi:128 - sn=2365a54f-d1bd-4284-866b-05a4ad39caed processed in: 31.050 (seconds)


# yum history info 19
Loaded plugins: package_upload, product-id, subscription-manager
Transaction ID : 19
Begin time     : Tue Jun  2 10:42:05 2015
Begin rpmdb    : 874:c6c171de79ffeea1ca2cd2ca973c4133974794e6
End time       :            10:42:17 2015 (12 seconds)
End rpmdb      : 876:749d1329cfd9844fdf97a519ea90bafa4f4da74a
User           : System <unset>
Return-Code    : Success
Transaction performed with:
    Installed     rpm-4.11.1-25.el7.x86_64                  @beaker-Server/7.1
    Installed     subscription-manager-1.13.22-1.el7.x86_64 @beaker-Server/7.1
    Installed     yum-3.4.3-125.el7.noarch                  @beaker-Server/7.1
    Installed     yum-metadata-parser-1.1.4-10.el7.x86_64   @beaker-Server/7.1
Packages Altered:
    Install emacs-1:24.3-11.el7.x86_64       @rhel-7-server-rpms
    Install emacs-gnuplot-4.6.2-3.el7.noarch @rhel-7-server-rpms
history info

Comment 13 Bryan Kearney 2015-08-11 13:29:54 UTC
This bug is slated to be released with Satellite 6.1.

Comment 14 Bryan Kearney 2015-08-12 13:56:09 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.


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