Bug 1730702
Summary: | system type overrides all the syspurpose attributes | ||
---|---|---|---|
Product: | [Community] Candlepin | Reporter: | Shwetha Kallesh <skallesh> |
Component: | candlepin | Assignee: | candlepin-bugs |
Status: | CLOSED DUPLICATE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.7 | CC: | abhiskum, csnyder, nmoumoul, redakkan |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-11-22 12:40:33 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: |
Description
Shwetha Kallesh
2019-07-17 11:58:13 UTC
If I set virt.is_guest fact to false then auto-attach attaches right sku [root@kvm-03-guest10 ~]# echo '{"virt.is_guest":"False"}' > /etc/rhsm/facts/override.facts [root@kvm-03-guest10 ~]# subscription-manager facts --update Successfully updated the system facts. [root@kvm-03-guest10 ~]# subscription-manager facts --list | grep is_guest virt.is_guest: False [root@kvm-03-guest10 ~]# syspurpose set-usage "Development" usage set to Development System purpose successfully sent to subscription management server. [root@kvm-03-guest10 ~]# syspurpose show { "usage": "Development" } System purpose successfully sent to subscription management server. [root@kvm-03-guest10 ~]# subscription-manager register --org=13418489 --activationkey=Prod_test --force Unregistering from: subscription.rhsm.stage.redhat.com:443/subscription The system with UUID 295fdf6b-c115-4323-a8fd-2085fc41150d has been unregistered All local data removed The system has been registered with ID: 933eb0ea-fe3e-4419-9bdf-df80517cc1d1 The registered system name is: kvm-03-guest10.hv2.lab.eng.bos.redhat.com Installed Product Current Status: Product Name: Red Hat Enterprise Linux for Scientific Computing Status: Subscribed [root@kvm-03-guest10 ~]# syspurpose show { "usage": "Production" } System purpose successfully sent to subscription management server. [root@kvm-03-guest10 ~]# subscription-manager list --consumed +-------------------------------------------+ Consumed Subscriptions +-------------------------------------------+ Subscription Name: Red Hat Enterprise Linux Server for HPC Compute Node, Self-support (Physical or Virtual Node) Provides: Red Hat Beta Red Hat CodeReady Linux Builder for x86_64 Red Hat Ansible Engine Red Hat Enterprise Linux for Scientific Computing Oracle Java (for RHEL Compute Node) dotNET on RHEL (for RHEL Compute Node) dotNET on RHEL Beta (for RHEL Compute Node) Red Hat Enterprise Linux for x86_64 SKU: RH00559 -----------------------------> auto-attach attaches correct sku here after updating system fact Contract: 11888081 Account: 6216425 Serial: 1162763865529725875 Pool ID: 8a99f9ad6bdf723a016be18d052a011a Provides Management: No Active: True Quantity Used: 1 Service Level: Self-Support Service Type: L1-L3 Status Details: Subscription is current Subscription Type: Instance Based Starts: 07/11/2019 Ends: 07/10/2020 System Type: Physical so changing the summary of the bug to "system type overrides syspurpose attributes" From my testing, this issue might be fixed by https://bugzilla.redhat.com/show_bug.cgi?id=1702383 which has only been fixed in master. Once that issue is ported into Stage (2.7 branch), we should re-test this scenario. *** This bug has been marked as a duplicate of bug 1702383 *** |