Bug 787790

Summary: rhui-manager: unexpected error creating client entitlements
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: mkovacik
Component: RHUAAssignee: James Slagle <jslagle>
Status: CLOSED DUPLICATE QA Contact: wes hayutin <whayutin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0.2CC: jslagle, kbidarka, sghai, tsanders
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-06 21:20:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
log files none

Description mkovacik 2012-02-06 18:26:56 UTC
Created attachment 559711 [details]
log files

Description of problem:
Trying to generate client entitlement following error pops up:
  -= Client Entitlement Management =-

     e   generate an entitlement certificate
     c   create a client configuration RPM from an entitlement certificate

                           Connected: ip-10-51-53-245.eu-west-1.compute.internal
  ------------------------------------------------------------------------------
  rhui (client) => e


  An unexpected error has occurred during the last operation.
  More information can be found in /root/.rhui/rhui.log.


Version-Release number of selected component (if applicable):
2.0.2 (RHEL-6.2-RHUI-2.0.2-20120203.1-Server-x86_64-DVD1.iso) 

How reproducible:
always

Steps to Reproduce:
1. execute rhui-manager
2. follow instructions to generate client entitlement 
3. unexpected error happens
  
Actual results:
Run-time error

Expected results:
Client entitlement generated

Additional info:
Repository synchronization in progress
Contents of log files attached:
 - /root/.rhui/rhui.log
 - /var/log/httpd/*

Screen log:
===========


[root@ip-10-51-53-245 ~]# rhui-manager                                                                                                                                                                                                                             

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= Home =-

   r   manage repositories
   c   manage content delivery servers (CDS)
   s   synchronization status and scheduling
   e   create entitlement certificates and client configuration RPMs
   n   manage Red Hat entitlement certificates
   u   manage users
   i   manage identity certificate

   logout
       removes stored authentication credentials and exits

   <   move to the previous screen
   ^, home
       move to the home screen
   /, clear
       clears the screen
   ?, help
       display help
   q, quit, exit
       exit

                         Connected: ip-10-51-53-245.eu-west-1.compute.internal
------------------------------------------------------------------------------
rhui (home) => e

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= Client Entitlement Management =-

   e   generate an entitlement certificate
   c   create a client configuration RPM from an entitlement certificate

                         Connected: ip-10-51-53-245.eu-west-1.compute.internal
------------------------------------------------------------------------------
rhui (client) => e


An unexpected error has occurred during the last operation.
More information can be found in /root/.rhui/rhui.log.


------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-



-= Client Entitlement Management =-

   e   generate an entitlement certificate
   c   create a client configuration RPM from an entitlement certificate

   logout
       removes stored authentication credentials and exits

   <   move to the previous screen
   ^, home
       move to the home screen
   /, clear
       clears the screen
   ?, help
       display help
   q, quit, exit
       exit

                         Connected: ip-10-51-53-245.eu-west-1.compute.internal
------------------------------------------------------------------------------
rhui (client) => q
[root@ip-10-51-53-245 ~]# tail -20 .rhui/rhui.log
Unexpected OID encountered [1.3.6.1.4.1.2312.9.1.148.1]
Unexpected OID encountered [1.3.6.1.4.1.2312.9.5.1]
Unexpected OID encountered [1.3.6.1.4.1.2312.9.1.147.1]
Unexpected OID encountered [1.3.6.1.4.1.2312.9.4.5]
Unexpected OID encountered [1.3.6.1.4.1.2312.9.4.6]
Unexpected OID encountered [1.3.6.1.4.1.2312.9.1.147.2]
Unexpected OID encountered [1.3.6.1.4.1.2312.9.1.147.3]
Unexpected error caught at the shell level
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/rhui/tools/shell.py", line 87, in safe_listen
    self.listen(clear=first_run)
  File "/usr/lib/python2.6/site-packages/rhui/tools/shell.py", line 113, in listen
    Shell.listen(self)
  File "/usr/lib/python2.6/site-packages/rhui/common/shell.py", line 191, in listen
    item.func(*args, **item.kwargs)
  File "/usr/lib/python2.6/site-packages/rhui/tools/screens/client.py", line 65, in generate
    ent_repo_mappings = self.pulp.custom_repo_entitlements()
  File "/usr/lib/python2.6/site-packages/rhui/tools/pulp_api.py", line 805, in custom_repo_entitlements
    repo_path = repo['notes'][ENTITLEMENT_PATH]
KeyError: 'entitlement-path'

Comment 1 James Slagle 2012-02-06 21:20:05 UTC

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

Comment 2 James Slagle 2012-03-12 19:39:39 UTC
Released in RHUI 2.0.2

Comment 3 James Slagle 2012-03-12 19:45:50 UTC

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