Bug 784098

Summary: pulp-0.0.260-1 - pulp throws error when trying to register system to katello server
Product: [Retired] Pulp Reporter: Corey Welton <cwelton>
Component: user-experienceAssignee: Jeff Ortel <jortel>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: pkilambi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
python-isodate-0.4.4-4.pulp.el6.noarch pulp-0.0.260-1.el6.noarch m2crypto-0.21.1.pulp-5.el6.x86_64 katello-glue-pulp-0.1.192-1.git.5.c02fd11.el6.noarch pulp-selinux-server-0.0.260-1.el6.noarch python-oauth2-1.5.170-2.pulp.el6.noarch pulp-common-0.0.260-1.el6.noarch mod_wsgi-3.3-2.pulp.el6.x86_64
Last Closed: 2012-02-24 20:14:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Corey Welton 2012-01-23 19:47:24 UTC
Description of problem:
Users cannot register systems to katello when using 0.260 in the backend. 

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


How reproducible:


Steps to Reproduce:
1. install and appropriately configure katello with pulp 0.260 as the selected version of pulp in the backend
2. attempt to register a system via system-manager: 
3.  subscription-manager register --username=admin --password=admin --org=ACME_Corporation --env=dev  --force
  
Actual results:

* This shows up in /var/log/pulp/pulp.log

2012-01-23 14:34:30,788 6868:140465619855104: pulp.server.webservices.controllers.decorators:ERROR: decorators:52 Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/decorators.py", line 48, in report_error
    return method(self, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/decorators.py", line 127, in _auth_decorator
    value = method(self, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/consumers.py", line 103, in POST
    capabilities=consumer_data['capabilities'],
KeyError: 'capabilities'

* Nothing ever shows up as a registered system

Expected results:
 
* No errors thrown
* Systems can be registered.

Additional info:

Comment 2 Jeff Ortel 2012-01-23 21:38:33 UTC
The "capabilities" parameter was intended to be added as optional but wasn't implemented that way (an oversight).  While correcting this, I also made the "key_value_pairs" optional as documented in the API guide.

Comment 3 Jeff Ortel 2012-01-23 22:22:20 UTC
build: 0.261

Comment 4 Corey Welton 2012-02-01 19:00:13 UTC
This appears to be fixed; I am using 0.263 currently, and I can register; it worked in 0.261 too, iirc.

Comment 5 Preethi Thomas 2012-02-01 20:40:29 UTC
moving to verified as per Corey'd comment.

Comment 6 Preethi Thomas 2012-02-24 20:14:19 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 7 Preethi Thomas 2012-02-24 20:19:13 UTC
Pulp v1.0 is released.