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 1669994 - syspurpose Status on a future date is displayed as mismatched when you attach a future subscription though subscription matches the sla set on the system
Summary: syspurpose Status on a future date is displayed as mismatched when you attach...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: rc
: ---
Assignee: Nikos Moumoulidis
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-28 10:17 UTC by Shwetha Kallesh
Modified: 2020-11-14 12:26 UTC (History)
5 users (show)

Fixed In Version: subscription-manager-1.25.6-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-05 22:15:32 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2054 0 None closed 1669994: Use on_date on syspurpose status if specified; ENT-1217 2020-11-05 06:46:22 UTC
Red Hat Product Errata RHBA-2019:3561 0 None None None 2019-11-05 22:16:24 UTC

Description Shwetha Kallesh 2019-01-28 10:17:20 UTC
Description of problem:
syspurpose Status on a future date is displayed as mismatched when you attach a future subscription though subscription matches the sla set on the system

Version-Release number of selected component (if applicable):
[root@kvm-04-guest04 product]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.6.0-1
subscription management rules: 5.31
subscription-manager: 1.24.2-1.git.182.7dde37c.el8


How reproducible:


Steps to Reproduce:

[root@kvm-04-guest04 product]# syspurpose set-sla Premium
service_level_agreement set to Premium
System purpose successfully sent to subscription management server.
[root@kvm-04-guest04 product]# syspurpose show
{
  "service_level_agreement": "Premium"
}
System purpose successfully sent to subscription management server.
[root@kvm-04-guest04 product]# subscription-manager list --avail --ondate 2020-02-29
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+
Subscription Name:   Instance_product_test
Provides:            SP Addon 1 bits
SKU:                 syspurpose-test
Contract:            610068
Pool ID:             8acce3466893570e0168938533a20080
Provides Management: No
Available:           40
Suggested:           1
Service Level:       Premium
Service Type:        
Subscription Type:   Other
Starts:              02/28/2020
Ends:                07/18/2020
System Type:         Physical

Subscription Name:   Instance_product_test
Provides:            SP Addon 1 bits
SKU:                 syspurpose-test
Contract:            610068
Pool ID:             8acce3466893570e01689384ee61007d
Provides Management: No
Available:           40
Suggested:           1
Service Level:       Premium
Service Type:        
Subscription Type:   Other
Starts:              02/28/2020
Ends:                07/18/2020
System Type:         Physical

[root@kvm-04-guest04 product]# subscription-manager attach --pool 8acce3466893570e0168938533a20080
Successfully attached a subscription for: Instance_product_test
[root@kvm-04-guest04 product]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   SP Addon 1 bits
Product ID:     99003
Version:        3.11
Arch:           x86_64
Status:         Future Subscription
Status Details: Not supported by a valid subscription.
Starts:         
Ends:           

[root@kvm-04-guest04 product]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   Instance_product_test
Provides:            SP Addon 1 bits
SKU:                 syspurpose-test
Contract:            610068
Account:             2222222
Serial:              1761789315571476228
Pool ID:             8acce3466893570e0168938533a20080
Provides Management: No
Active:              False
Quantity Used:       1
Service Level:       Premium
Service Type:        
Status Details:      Subscription has not begun
Subscription Type:   Other
Starts:              02/28/2020
Ends:                07/18/2020
System Type:         Physical


[root@kvm-04-guest04 product]# subscription-manager status --ondate 2020-02-29
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Current

System Purpose Status: Mismatched


Actual results:

System Purpose Status: Mismatched

Expected results:

System Purpose Status: Matched

Additional info:

Comment 4 Shwetha Kallesh 2019-06-20 13:53:28 UTC
Verification:

[root@kvm-01-guest17 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.7.1-1
subscription management rules: 5.37
subscription-manager: 1.25.11-1.el8

[root@kvm-01-guest17 ~]# subscription-manager list --avail --ondate 2020-07-29
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+
Subscription Name:   Instance_product_test
Provides:            Awesome OS Instance Server Bits
SKU:                 awesomeos-product-test
Contract:            610068
Pool ID:             8ac6a3a96b7500f9016b751962f20d0e
Provides Management: No
Available:           40
Suggested:           1
Service Type:        
Roles:               
Service Level:       
Usage:               
Add-ons:             
Subscription Type:   Other
Starts:              07/09/2020
Ends:                07/18/2021
Entitlement Type:    Physical

Subscription Name:   Instance_product_test
Provides:            Awesome OS Instance Server Bits
SKU:                 awesomeos-product-test
Contract:            610068
Pool ID:             8ac6a3a96b7500f9016b75197fe60d10
Provides Management: No
Available:           40
Suggested:           1
Service Type:        
Roles:               
Service Level:       
Usage:               
Add-ons:             
Subscription Type:   Other
Starts:              07/09/2020
Ends:                07/18/2021
Entitlement Type:    Physical

Subscription Name:   Syspurpose_test
Provides:            Awesome OS Instance Server Bits
SKU:                 Status-test
Contract:            610068
Pool ID:             8ac6a3a96b7500f9016b752332580d13
Provides Management: No
Available:           40
Suggested:           1
Service Type:        
Roles:               
Service Level:       Premium
Usage:               
Add-ons:             
Subscription Type:   Other
Starts:              07/09/2020
Ends:                07/18/2021
Entitlement Type:    Physical

[root@kvm-01-guest17 ~]# syspurpose set-sla Premium
service_level_agreement set to "Premium".
[root@kvm-01-guest17 ~]# subscription-manager attach --pool 8ac6a3a96b7500f9016b752332580d13
Successfully attached a subscription for: Syspurpose_test

[root@kvm-01-guest17 ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Awesome OS Instance Server Bits
Product ID:     32060
Version:        6.1
Arch:           ALL
Status:         Future Subscription
Status Details: Not supported by a valid subscription.
Starts:         
Ends:           

[root@kvm-01-guest17 ~]# subscription-manager status --ondate 2020-07-29
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Current

System Purpose Status: Matched

[root@kvm-01-guest17 ~]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Invalid

Awesome OS Instance Server Bits:
- Not supported by a valid subscription.

System Purpose Status: Mismatched
- The service level preference "Premium" is not provided by a currently consumed subscription.

Comment 6 errata-xmlrpc 2019-11-05 22:15:32 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://access.redhat.com/errata/RHBA-2019:3561


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