Bug 1448855
Summary: | golden ticket entitlement is not removed when you set contentAccessMode to " " back from "org_environment" | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Shwetha Kallesh <skallesh> | |
Component: | subscription-manager | Assignee: | Jiri Hnidek <jhnidek> | |
Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 7.4 | CC: | jhnidek, khowell, redakkan, skallesh | |
Target Milestone: | rc | Keywords: | Triaged | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | subscription-manager-1.19.14-1 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1448897 (view as bug list) | Environment: | ||
Last Closed: | 2017-08-01 19:23:41 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
2017-05-08 12:30:43 UTC
First question is why isn't the content access cert removed on refresh. I suspect this is the root cause of the issue in subscription-manager. Marking verified!! [root@dhcp71-112 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.9.51.23-1 subscription management rules: 5.15.1 subscription-manager: 1.19.14-1.el7 python-rhsm: 1.19.6-1.el7 [root@dhcp71-112 ~]# subscription-manager register --force --serverurl Shwetha-candlepin.usersys.redhat.com:8443/candlepin Registering to: Shwetha-candlepin.usersys.redhat.com:8443/candlepin Username: admin Password: Organization: snowwhite The system has been registered with ID: 19b9dfac-00c6-4ba8-8cc7-0a831fa41b6e [root@dhcp71-112 ~]# rct cat-cert /etc/pki/entitlement/8149841718942640303.pem --no-products --no-content +-------------------------------------------+ Entitlement Certificate +-------------------------------------------+ Certificate: Path: /etc/pki/entitlement/8149841718942640303.pem Version: 3.3 Serial: 8149841718942640303 Start Date: 2017-05-18 08:55:29+00:00 End Date: 2018-05-18 08:55:29+00:00 Pool ID: Not Available Subject: CN: 19b9dfac-00c6-4ba8-8cc7-0a831fa41b6e O: snowwhite Issuer: C: US CN: Shwetha-candlepin.usersys.redhat.com L: Raleigh Order: Name: Content Access Number: SKU: content_access Contract: Account: Service Level: Service Type: Quantity: Quantity Used: 1 Socket Limit: RAM Limit: Core Limit: Virt Only: False Stacking ID: Warning Period: 0 Provides Management: False [root@dhcp71-112 ~]# curl --stderr /dev/null --insecure --user admin:admin --request PUT --data '{"contentAccessMode":""}' --header 'accept: application/json' --header 'content-type: application/json' https://Shwetha-candlepin.usersys.redhat.com:8443/candlepin/owners/snowwhite {"parentOwner":null,"id":"8ac6a3185c0c3e24015c0c41c4520002","key":"snowwhite","displayName":"Snow White","contentPrefix":null,"defaultServiceLevel":null,"upstreamConsumer":null,"logLevel":null,"autobindDisabled":null,"contentAccessMode":null,"contentAccessModeList":"org_environment","href":"/owners/snowwhite","created":"2017-05-15T13:17:35+0000","updated":"2017-05-18T09:57:05+0000"} [root@dhcp71-112 ~]# subscription-manager refresh 1 local certificate has been deleted. All local data refreshed [root@dhcp71-112 ~]# ls /etc/pki/entitlement/ [root@dhcp71-112 ~]# subscription-manager repos --list This system has no repositories available through subscriptions. [root@dhcp71-112 ~]# rct cat-cert /etc/pki/entitlement/8149841718942640303.pem --no-products --no-content The specified certificate file does not exist. 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-2017:2083 |