| Summary: | Accessing rhui-manager after 'exit' throws "sslv3 alert bad cert" error | ||
|---|---|---|---|
| Product: | Red Hat Update Infrastructure for Cloud Providers | Reporter: | Sachin Ghai <sghai> |
| Component: | Tools | Assignee: | Jay Dobies <jason.dobies> |
| Status: | CLOSED NOTABUG | QA Contact: | wes hayutin <whayutin> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.0 | CC: | kbidarka, sghai, tsanders |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-06-22 07:41:48 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
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)
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. |
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: