Bug 669449

Summary: Error dialog upon registering
Product: Red Hat Enterprise Linux 6 Reporter: J.C. Molet <jmolet>
Component: subscription-managerAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED NOTABUG QA Contact: J.C. Molet <jmolet>
Severity: medium Docs Contact:
Priority: low    
Version: 6.1CC: dgoodwin
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-13 20:23:15 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: 639436    
Attachments:
Description Flags
register error none

Description J.C. Molet 2011-01-13 17:47:21 UTC
Created attachment 473379 [details]
register error

Description of problem:
An error dialog pops up upon every register.  The system actually does register though.

Version-Release number of selected component (if applicable):
subscription-manager-0.93.11-1.git.2.129c8f2.el6.x86_64
subscription-manager-firstboot-0.93.11-1.git.2.129c8f2.el6.x86_64
subscription-manager-gnome-0.93.11-1.git.2.129c8f2.el6.x86_64

Steps to Reproduce:
1. Install rhsm and it's deps
2. Open the gui
3. Register
  
Actual results:
It registers, but throws an error message.

Expected results:
It registers happily.

Additional info:
see attached screenshot.

rhsm.log:

2011-01-13 12:19:56,622 [ERROR] handle_gui_exception() @utils.py:40 - 'canActivate'
Traceback (most recent call last):
  File "/usr/share/rhsm/gui/managergui.py", line 515, in register
    self.emit_consumer_signal()
  File "/usr/share/rhsm/gui/managergui.py", line 523, in emit_consumer_signal
    method()
  File "/usr/share/rhsm/gui/managergui.py", line 272, in registration_changed
    self.refresh()
  File "/usr/share/rhsm/gui/managergui.py", line 288, in refresh
    self._show_buttons()
  File "/usr/share/rhsm/gui/managergui.py", line 314, in _show_buttons
    can_activate = consumer['canActivate']
KeyError: 'canActivate'

Comment 1 Devan Goodwin 2011-01-13 20:23:15 UTC
I think this is just an issue with the way you're building/testing subscription-manager. It looks like you're doing subscription-manager builds from git master, but hitting a Candlepin server which is tracking the BETA branch. These are now out of sync and won't work.

Both Candlepin and subscription-manager have such a BETA branch, and using the two together should work ok. 

Need to either (a) build subscription-manager from BETA branch in git, or (b) test against a Candlepin server running the latest in candlepin.git master.

(a) is probably what you want in this case. Closing for now, feel free to re-open or let me know if there's any issues.