Bug 851330 - packagge install fails on consumer with No handler error
Summary: packagge install fails on consumer with No handler error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: consumers
Version: 2.0.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jeff Ortel
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On: 850930
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-23 20:09 UTC by Preethi Thomas
Modified: 2013-01-07 14:09 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 850930
Environment:
Last Closed: 2013-01-07 14:09:24 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2012-08-23 20:09:14 UTC
+++ This bug was initially created as a clone of Bug #850930 +++

Description of problem:
Package install seems to be failing on consumer

Version-Release number of selected component (if applicable):
[root@pulp-candidate ~]# rpm -q pulp-rpm-server
pulp-rpm-server-2.0.1-1.fc17.noarch


How reproducible:


Steps to Reproduce:
1. create a repo
2. register a consumer and bind the repo
3. try to install a package on the consumer
  
Actual results:

root@pulp-candidate ~]# pulp-admin consumer package install -n unsigned --consumer-id=fred
Install task created with id [e34646dc-ec8b-11e1-acfa-5452003c7b52]

This command may be exited via ctrl+c without affecting the install.

Install failed

No handler for: {'type': 'rpm'}


Expected results:


Additional info:

2012-08-22 15:08:13,344 20530:139672630044416: gofer.rmi.policy:INFO: policy:364 sent (fred):
{'classname': 'Content', 'kws': {}, 'args': ([{u'unit_key': {u'name': u'unsigned'}, u'type_id': u'rpm'}], {u'apply': True, u'reboot': False, u'importkeys': False}), 'method': 'install', 'cntr': None}
2012-08-22 15:08:13,345 20530:139672630044416: gofer.rmi.async:INFO: async:369 tracking: {'replyto': 'pulp.task;{create:always,node:{type:queue,durable:True,},link:{durable:True,reliability:at-least-once,x-subscribe:{exclusive:True}}}', 'ts': (1345662503.344641, 1345663093.344641), 'any': 'b87bfca3-ec8c-11e1-a245-5452003c7b52', 'idx': 0, 'sn': '5afa0084-a7ff-4f61-b52a-4ab3a524dedb'}
2012-08-22 15:08:13,362 20530:139672873334528: gofer.rmi.async:INFO: async:380 5afa0084-a7ff-4f61-b52a-4ab3a524dedb
2012-08-22 15:08:13,409 20530:139672873334528: gofer.rmi.async:INFO: async:380 5afa0084-a7ff-4f61-b52a-4ab3a524dedb
2012-08-22 15:08:13,410 20530:139672873334528: pulp.server.agent.direct.services:INFO: services:161 Task RMI (succeeded)
Succeeded
  sn : 5afa0084-a7ff-4f61-b52a-4ab3a524dedb
  origin : 906cf37f-7fcc-4174-aff4-154d908eea13
  user data : b87bfca3-ec8c-11e1-a245-5452003c7b52
  retval:
{'status': False, 'chgcnt': 0, 'details': {'rpm': {'status': False, 'details': {'message': "No handler for: {'type': 'rpm'}", 'trace': 'Traceback (most recent call last):\n\n  File "/usr/lib/python2.7/site-packages/pulp/agent/lib/dispatcher.py", line 66, in install\n    handler = self.__handler(typeid, CONTENT)\n\n  File "/usr/lib/python2.7/site-packages/pulp/agent/lib/dispatcher.py", line 307, in __handler\n    raise HandlerNotFound(type=typeid)\n\nHandlerNotFound: No handler for: {\'type\': \'rpm\'}\n'}}}, 'reboot': {'scheduled': False, 'details': {}}}
2012-08-22 15:08:13,410 20530:139672873334528: pulp.server.dispatch.task:INFO: task:148 Task b87bfca3-ec8c-11e1-a245-5452003c7b52: CallRequest: AgentManager.install_content(u'fred', [{u'unit_key': {u'name': u'unsigned'}, u'type_id': u'rpm'}], {u'apply': True, u'reboot': False, u'importkeys': False}) SUCCEEDED

Comment 1 Preethi Thomas 2012-08-23 20:09:40 UTC
clone for master

Comment 2 Jeff Ortel 2012-08-23 20:10:59 UTC
The rpm handler is not loading because it requires: python-rhsm for package profiles.  The pulp-rpm.spec needed to have this as a Requires:.

Fixed: 632d3a00192a6b2924c42f76bed5ca37a436efa9

Comment 3 Jeff Ortel 2012-09-11 13:31:24 UTC
build: 0.327

Comment 4 Preethi Thomas 2012-11-06 14:12:47 UTC
verified

[root@preethi ~]#  pulp-admin consumer package install -n crow  --consumer-id preethi
Install task created with id [0457a3f7-d81e-49cd-9731-4f66a956cc42]

This command may be exited via ctrl+c without affecting the install.

Refresh Repository Metadata             [ OK ]
Downloading Packages                    [ OK ]
Check Package Signatures                [ OK ]
Running Test Transaction                [ OK ]
Running Transaction                     [ OK ]
Install Succeeded

+----------------------------------------------------------------------+
                               Installed
+----------------------------------------------------------------------+

Name:    crow
Version: 0.8
Arch:    noarch
Repoid:  zoo

Comment 5 Preethi Thomas 2013-01-07 14:09:24 UTC
Pulp 2.0 released.


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