Bug 715186 - Accessing rhui-manager after 'exit' throws "sslv3 alert bad cert" error
Summary: Accessing rhui-manager after 'exit' throws "sslv3 alert bad cert" error
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: Tools
Version: 2.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Jay Dobies
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-22 06:35 UTC by Sachin Ghai
Modified: 2011-06-22 07:41 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-22 07:41:48 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Sachin Ghai 2011-06-22 06:35:37 UTC
Description of problem:
Exit from rhui-manager using 'exit' then login again and then select any option like "list cds instances". This will throw an error.


rhui (repo) => exit
[root@dhcp201-209 rhui]# tail -f /root/.rhui/rhui.log 
    self.listen(clear=first_run)
  File "/usr/lib/python2.6/site-packages/rhui/tools/shell.py", line 94, 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/repo.py", line 55, in list
    redhat_repos = self.pulp.redhat_repo_list()
  File "/usr/lib/python2.6/site-packages/rhui/tools/pulp_api.py", line 164, in redhat_repo_list
    raise e
ServerRequestError: (None, 'sslv3 alert bad certificate', None)


I checked the user.crt exits under ~/.rhui/<rhui-manager_hostname>

[root@dhcp201-209 rhui]# cd /root/.rhui/
[root@dhcp201-209 .rhui]# ls
dhcp201-209.englab.pnq.redhat.com  rhui-installer.log  rhui.log
[root@dhcp201-209 .rhui]# cd dhcp201-209.englab.pnq.redhat.com/
[root@dhcp201-209 dhcp201-209.englab.pnq.redhat.com]# ls
user.crt
[root@dhcp201-209 dhcp201-209.englab.pnq.redhat.com]# 



Version-Release number of selected component (if applicable):
upgrade from rhui-tools 2.0.30 to 2.0.31
upgrade pulp 0.190 to 0.194

How reproducible:
always

Steps to Reproduce:
1. Removed older entitlements-* under the /etc/pki/rhui
2. Upgrade the setup wiyh new build pulp 0.194 and rhui-tools 2.0.31
3. At login to rhui-manager again pass the CA certs to rhui-manager
4. Logout   << this is required, otherwise u will get another ssl cert error
5. again login to rhui-manager
6. exit
7. rhui-manager and select any option "like list rhui-managed repos"

  
Actual results:
ServerRequestError: (None, 'sslv3 alert bad certificate', None)


Expected results:
rhui-manager should work with all menu options after exit from rhui-manager. As it was working in earlier builds.

Additional info:

Comment 1 Sachin Ghai 2011-06-22 06:37:06 UTC
test screens:
===========

------------------------------------------------------------------------------
rhui (home) => logout
[root@dhcp201-209 rhui]# rhui-manager 
Previous authentication credentials could not be found. Logging into
the RHUI.

If this is the first time using the RHUI, it is recommended to change
the user's password in the User Management section of RHUI Tools.

RHUI Username: admin
RHUI Password: 


------------------------------------------------------------------------------
             -= 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

   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: dhcp201-209.englab.pnq.redhat.com
------------------------------------------------------------------------------
rhui (home) => r


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


-= Repository Management =-

   l   list repositories currently managed by the RHUI
   i   display detailed information on a repository
   a   add a new Red Hat content repository
   c   create a new custom repository
   d   delete a repository from the RHUI
   u   upload content to a custom repository
   p   list packages in a repository

                                  Connected: dhcp201-209.englab.pnq.redhat.com
------------------------------------------------------------------------------
rhui (repo) => l

Red Hat Repositories
  Red Hat Update Infrastructure 1.1 (RPMs) (5Server-x86_64)
  Red Hat Update Infrastructure 1.1 (RPMs) (5Server-i386)
  Red Hat Enterprise Linux Server 6 Optional Updates (RPMs) (6Server-x86_64)
  Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64)
  Red Hat Update Infrastructure 1.2 (RPMs) (5Server-i386)
  Red Hat Enterprise Linux Server 6 Optional Releases (RPMs) (6Server-x86_64)


------------------------------------------------------------------------------
rhui (repo) => exit
[root@dhcp201-209 rhui]# 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

   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: dhcp201-209.englab.pnq.redhat.com
------------------------------------------------------------------------------
rhui (home) => r


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


-= Repository Management =-

   l   list repositories currently managed by the RHUI
   i   display detailed information on a repository
   a   add a new Red Hat content repository
   c   create a new custom repository
   d   delete a repository from the RHUI
   u   upload content to a custom repository
   p   list packages in a repository

                                  Connected: dhcp201-209.englab.pnq.redhat.com
------------------------------------------------------------------------------
rhui (repo) => l


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 =-


-= Repository Management =-

   l   list repositories currently managed by the RHUI
   i   display detailed information on a repository
   a   add a new Red Hat content repository
   c   create a new custom repository
   d   delete a repository from the RHUI
   u   upload content to a custom repository
   p   list packages in a repository

   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: dhcp201-209.englab.pnq.redhat.com
------------------------------------------------------------------------------
rhui (repo) => exit
[root@dhcp201-209 rhui]# tail -f /root/.rhui/rhui.log 
    self.listen(clear=first_run)
  File "/usr/lib/python2.6/site-packages/rhui/tools/shell.py", line 94, 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/repo.py", line 55, in list
    redhat_repos = self.pulp.redhat_repo_list()
  File "/usr/lib/python2.6/site-packages/rhui/tools/pulp_api.py", line 164, in redhat_repo_list
    raise e
ServerRequestError: (None, 'sslv3 alert bad certificate', None)

Comment 2 Sachin Ghai 2011-06-22 07:41:48 UTC
Closing this defect. since this is a configuration issue, my mistake. I tried upgrade and upgrade has renamed the old pulp.conf file as pulp.conf.rpmsave and new one as pulp.conf. And I didn't update the certs and hotsname in new pulp.conf.


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