| Summary: | expired products in installed tabs hits undefined variable | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Adrian Likins <alikins> | ||||||
| Component: | subscription-manager | Assignee: | Adrian Likins <alikins> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Entitlement Bugs <entitlement-bugs> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 6.3 | CC: | bkearney, jmolet, jsefler | ||||||
| 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: | 2012-06-20 13:08:46 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: | |||||||
| Bug Depends On: | |||||||||
| Bug Blocks: | 738066 | ||||||||
| Attachments: |
|
||||||||
|
Description
Adrian Likins
2012-04-03 19:32:04 UTC
commit 74c9899b9c1e3e1b2c898fa5bb40e9752917a20c
Author: Adrian Likins <alikins>
Date: Tue Apr 3 14:01:23 2012 -0400
809611: Fix undefined variable in installedtab for expired
entitlement_certificate got removed in a refactor, and
was causing an undefined variable error in
installedtab.py:InstalledProductsTab.update_products()
for expired products.
But, the previous code was also ignore cases where
there could be multiple entitlements or orders, so
fix that as well by join()'ing the subscription
numbers together for the info string.
Verifying version...
[root@jsefler-r63-server ~]# rpm -q subscription-manager-gnome
subscription-manager-gnome-0.99.14-1.el6.x86_64
[root@jsefler-r63-server ~]# subscription-manager list --installed
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Awesome OS Server Bits
Product ID: 37060
Version: 6.1
Arch: ALL
Status: Not Subscribed
Starts:
Expires:
[root@jsefler-r63-server ~]# subscription-manager register --username testuser1 --password password --org admin
The system has been registered with id: f2f9eabf-82af-456c-bf2a-029eab1c9931
[root@jsefler-r63-server ~]# subscription-manager list --avail | egrep "(awesomeos-server-basic-me|awesomeos-server-2-socket-std)" -A1
Product Id: awesomeos-server-basic-me
Pool Id: 8a90f81436b879570136b87a5cdb029e
--
Product Id: awesomeos-server-basic-me
Pool Id: 8a90f81436b879570136b87a5ca90291
--
Product Id: awesomeos-server-2-socket-std
Pool Id: 8a90f81436b879570136b87a5e9f030c
--
Product Id: awesomeos-server-2-socket-std
Pool Id: 8a90f81436b879570136b87a5e6302fa
[root@jsefler-r63-server ~]# subscription-manager subscribe --pool 8a90f81436b879570136b87a5cdb029e --pool 8a90f81436b879570136b87a5e9f030c
Successfully consumed a subscription from the pool with id 8a90f81436b879570136b87a5cdb029e.
Successfully consumed a subscription from the pool with id 8a90f81436b879570136b87a5e9f030c.
[root@jsefler-r63-server ~]#
[root@jsefler-r63-server ~]# subscription-manager-gui &
[1] 17485
See attached screenshot showing "My Installed Software" covered by two subscriptions until 4/14/2013
kill subscription-manager-gui and advance date beyond 4/14/2013
[root@jsefler-r63-server ~]# date
Mon Apr 16 11:51:32 EDT 2012
[root@jsefler-r63-server ~]# date -s "Apr 1 12:00:00 EDT 2015"
Wed Apr 1 12:00:00 EDT 2015
[root@jsefler-r63-server ~]# subscription-manager-gui&
[2] 17609
See attached screenshot showing "My Installed Software" with "Subscription is expired"
moving to VERIFIED
Created attachment 577762 [details]
"My Installed Software" covered by two subscriptions until 4/14/2013
Created attachment 577763 [details]
"My Installed Software" with "Subscription is expired"
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-2012-0804.html |