RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 990916 - subscription-manager-gui can not launch at the first time if register and then make ca cert invalid.
Summary: subscription-manager-gui can not launch at the first time if register and the...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 6.5
Assignee: Devan Goodwin
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel65
TreeView+ depends on / blocked
 
Reported: 2013-08-01 08:23 UTC by qianzhan
Modified: 2013-11-21 21:27 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No description necessary.
Clone Of:
Environment:
Last Closed: 2013-11-21 21:27:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
'rhsm.log' (114.98 KB, text/x-log)
2013-08-01 08:26 UTC, qianzhan
no flags Details
'qianqian-Screenshot from 2013-08-01.png' (87.47 KB, image/png)
2013-08-01 08:27 UTC, qianzhan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1659 0 normal SHIPPED_LIVE subscription-manager and python-rhsm bug fix and enhancement update 2013-11-20 21:53:10 UTC

Description qianzhan 2013-08-01 08:23:46 UTC
Description of problem:
subscription-manager-gui can not launch at the first time if register and then make ca cert invalid.

Version-Release number of selected component (if applicable):
subscription-manager-firstboot-1.8.14-1.el5
subscription-manager-gui-1.8.14-1.el5
subscription-manager-1.8.14-1.el5
python-rhsm-1.8.15-1.el5

How reproducible:
90%

Steps to Reproduce:
1.Prepare to register to SAM
[root@dhcp-65-82 ~]# cat /etc/rhsm/rhsm.conf
hostname = samserv.redhat.com
baseurl= https://samserv.redhat.com:8088

2.Register to SAM
[root@dhcp-65-82 ~]# subscription-manager clean
All local data removed
[root@dhcp-65-82 ~]# subscription-manager register
Username: admin
Password: 
The system has been registered with ID: b83f50ee-10dc-4664-b41f-5d177283f14a 

3.Mv ca cert out of /etc/rhsm/ca
[root@dhcp-65-82 ~]# ls /etc/rhsm/ca/
candlepin-local.pem  candlepin-stage.pem  redhat-uep.pem
[root@dhcp-65-82 ~]# mv /etc/rhsm/ca/* ./

4.Refresh and open gui
[root@dhcp-65-82 ~]# subscription-manager refresh
Your identity certificate has expired
[root@dhcp-65-82 ~]# subscription-manager-gui 

[root@dhcp-65-82 ~]# 

Actual results:
subscription-manager-gui can not launch at the first time if register and then make ca cert invalid.

Expected results:
subscription-manager-gui can launch with invalid ca cert

Additional info:
Additional steps based on step 4:
5.Move the ca cert back to /etc/rhsm/ca and gui can be opened
[root@dhcp-65-82 ~]# mv *.pem /etc/rhsm/ca
[root@dhcp-65-82 ~]# subscription-manager refresh
All local data refreshed
[root@dhcp-65-82 ~]# subscription-manager-gui 

(subscription-manager-gui:15091): libglade-WARNING **: unknown property `has_tooltip' for class `GtkButton'

(subscription-manager-gui:15091): libglade-WARNING **: unknown property `has_tooltip' for class `GtkEventBox'

(subscription-manager-gui:15091): libglade-WARNING **: unknown property `primary_icon_activatable' for class `GtkEntry'

(subscription-manager-gui:15091): libglade-WARNING **: unknown property `secondary_icon_activatable' for class `GtkEntry'

(subscription-manager-gui:15091): libglade-WARNING **: unknown property `primary_icon_sensitive' for class `GtkEntry'

(subscription-manager-gui:15091): libglade-WARNING **: unknown property `secondary_icon_sensitive' for class `GtkEntry'

6.Mv ca cert out of /etc/rhsm/ca again, and gui can be opened.
[root@dhcp-65-82 ~]# mv /etc/rhsm/ca/* ./
[root@dhcp-65-82 ~]# subscription-manager refresh
certificate verify failed
[root@dhcp-65-82 ~]# subscription-manager-gui 

(subscription-manager-gui:15136): libglade-WARNING **: unknown property `has_tooltip' for class `GtkButton'

(subscription-manager-gui:15136): libglade-WARNING **: unknown property `has_tooltip' for class `GtkEventBox'

(subscription-manager-gui:15136): libglade-WARNING **: unknown property `primary_icon_activatable' for class `GtkEntry'

(subscription-manager-gui:15136): libglade-WARNING **: unknown property `secondary_icon_activatable' for class `GtkEntry'

(subscription-manager-gui:15136): libglade-WARNING **: unknown property `primary_icon_sensitive' for class `GtkEntry'

(subscription-manager-gui:15136): libglade-WARNING **: unknown property `secondary_icon_sensitive' for class `GtkEntry'

rhsm.log file is attached as 'rhsm.log'
screenshot of this issue is attached as 'qianqian-Screenshot from 2013-08-01.png'

Comment 1 qianzhan 2013-08-01 08:26:22 UTC
Created attachment 781470 [details]
'rhsm.log'

Comment 2 qianzhan 2013-08-01 08:27:13 UTC
Created attachment 781472 [details]
'qianqian-Screenshot from 2013-08-01.png'

Comment 3 Bryan Kearney 2013-08-01 12:56:06 UTC
moving to rhel 6.5 since this requires manual shenanigans.

Comment 5 Devan Goodwin 2013-08-07 16:32:54 UTC
Seems to have been fixed by other work, problem no longer appears in latest 5.10 build or master, though I can see it with older builds. (1.8.9 for example)

Behaves more like connectivity problem, GUI will start, but status will be grey icons for Unknown.

Comment 6 qianzhan 2013-08-08 05:28:55 UTC
Verified!

[root@dhcp-65-82 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 1.4.2-17.el6sam_splice-Headpin
subscription-manager: 1.8.14-1.el5
python-rhsm: 1.8.15-1.el5
[root@dhcp-65-82 ~]# subscription-manager clean
All local data removed
[root@dhcp-65-82 ~]# subscription-manager register
Username: admin
Password: 
The system has been registered with ID: f7e06bf0-219a-4f9f-9c31-71f423985d41 
[root@dhcp-65-82 ~]# mv /etc/rhsm/ca/* ./
[root@dhcp-65-82 ~]# subscription-manager refresh
certificate verify failed
[root@dhcp-65-82 ~]# subscription-manager-gui 

(subscription-manager-gui:4713): libglade-WARNING **: unknown property `has_tooltip' for class `GtkButton'

(subscription-manager-gui:4713): libglade-WARNING **: unknown property `has_tooltip' for class `GtkEventBox'

(subscription-manager-gui:4713): libglade-WARNING **: unknown property `primary_icon_activatable' for class `GtkEntry'

(subscription-manager-gui:4713): libglade-WARNING **: unknown property `secondary_icon_activatable' for class `GtkEntry'

(subscription-manager-gui:4713): libglade-WARNING **: unknown property `primary_icon_sensitive' for class `GtkEntry'

(subscription-manager-gui:4713): libglade-WARNING **: unknown property `secondary_icon_sensitive' for class `GtkEntry'

Comment 7 qianzhan 2013-08-08 05:31:17 UTC
(In reply to qianzhan from comment #6)
> Verified!
> 
> [root@dhcp-65-82 ~]# subscription-manager version
> server type: Red Hat Subscription Management
> subscription management server: 1.4.2-17.el6sam_splice-Headpin
> subscription-manager: 1.8.14-1.el5
> python-rhsm: 1.8.15-1.el5
> [root@dhcp-65-82 ~]# subscription-manager clean
> All local data removed
> [root@dhcp-65-82 ~]# subscription-manager register
> Username: admin
> Password: 
> The system has been registered with ID: f7e06bf0-219a-4f9f-9c31-71f423985d41 
> [root@dhcp-65-82 ~]# mv /etc/rhsm/ca/* ./
> [root@dhcp-65-82 ~]# subscription-manager refresh
> certificate verify failed
> [root@dhcp-65-82 ~]# subscription-manager-gui 
> 
> (subscription-manager-gui:4713): libglade-WARNING **: unknown property
> `has_tooltip' for class `GtkButton'
> 
> (subscription-manager-gui:4713): libglade-WARNING **: unknown property
> `has_tooltip' for class `GtkEventBox'
> 
> (subscription-manager-gui:4713): libglade-WARNING **: unknown property
> `primary_icon_activatable' for class `GtkEntry'
> 
> (subscription-manager-gui:4713): libglade-WARNING **: unknown property
> `secondary_icon_activatable' for class `GtkEntry'
> 
> (subscription-manager-gui:4713): libglade-WARNING **: unknown property
> `primary_icon_sensitive' for class `GtkEntry'
> 
> (subscription-manager-gui:4713): libglade-WARNING **: unknown property
> `secondary_icon_sensitive' for class `GtkEntry'

I don't know why I can not mark this bug to status 'VERIFIED', and I'll mark it once I am entitled.

Comment 8 Li Bin Liu 2013-08-08 05:52:05 UTC
According to Comment #6, closed this bug as VERIFIED.

Thanks,
Libin

Comment 10 errata-xmlrpc 2013-11-21 21:27:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1659.html


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