Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1133647

Summary: messageWindow.py:72: DeprecationWarning
Product: Red Hat Enterprise Linux 6 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.6CC: alikins, redakkan, wpoteat
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: 2015-07-22 06:52:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1125249    
Attachments:
Description Flags
notice DeprecationWarning in console window from where subscription-manager-gui was launched
none
Fixed_Deprecation_Warning none

Description John Sefler 2014-08-25 17:25:59 UTC
Description of problem:
When starting up the subscription-manager-gui and registering with lots of TESTDATA products installed, the "No service level will cover all installed products." will appear as expected.  Currently the console from which the subscription-manager-gui was launched will show a DeprecationWarning...

[root@jsefler-6 ~]# subscription-manager-gui
/usr/share/rhsm/subscription_manager/gui/messageWindow.py:72: DeprecationWarning: use set_markup() instead
  if self.dialog.label.get_text() == '':



Version-Release number of selected component (if applicable):
[root@jsefler-6 ~]# rpm -q subscription-manager-gui
subscription-manager-gui-1.12.13-1.git.3.58ef205.el6.x86_64


How reproducible:


Steps to Reproduce:
1. described above
2.
3.

Actual results:
shown above and in screenshot

Expected results:
no deprecation warnings


Additional info:

Comment 1 John Sefler 2014-08-25 17:31:20 UTC
Created attachment 930602 [details]
notice DeprecationWarning in console window from where subscription-manager-gui was launched

Comment 2 Bryan Kearney 2014-11-03 19:48:29 UTC
Moving bugs to 6.7

Comment 3 Bryan Kearney 2014-11-03 19:49:25 UTC
Moving bugs to 6.7

Comment 4 Bryan Kearney 2014-11-03 19:54:17 UTC
Moving bugs to 6.7

Comment 6 Adrian Likins 2015-03-02 16:38:23 UTC
The deprecation warnings appear to be because of accessing 'self.dialog.label'
(see https://bugzilla.redhat.com/show_bug.cgi?id=596076#c3 and https://bugzilla.gnome.org/show_bug.cgi?id=309180).

But, we are accessing the label because of https://bugzilla.redhat.com/show_bug.cgi?id=865702  (bogus markup in some server error messages were causing the labels markup to not render at all [https://bugzilla.redhat.com/show_bug.cgi?id=865702#c12]). But, those error messages were coming from clonepin, and that doesn't exist any more. 

So we can just remove the client side kluge, and avoid the deprecation warning.

Comment 7 Adrian Likins 2015-03-02 16:48:29 UTC
pr at https://github.com/candlepin/subscription-manager/pull/1150

Comment 9 Rehana 2015-04-10 07:57:15 UTC
Retested on,

# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.48-1
subscription management rules: 5.15
subscription-manager: 1.14.3-1.el6
python-rhsm: 1.14.2-1.el6


No Deprecation warning is observed. PFA [Fixed_Deprecation_Warning.png]

Marking Verified!!

Comment 10 Rehana 2015-04-10 07:58:21 UTC
Created attachment 1013009 [details]
Fixed_Deprecation_Warning

Comment 11 errata-xmlrpc 2015-07-22 06:52:24 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.

https://rhn.redhat.com/errata/RHBA-2015-1345.html