Bug 1450938
Summary: | 'Certcheck' does not remove Expired golden ticket entitlement from the system | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Rehana <redakkan> |
Component: | subscription-manager | Assignee: | Jiri Hnidek <jhnidek> |
Status: | CLOSED DUPLICATE | QA Contact: | John Sefler <jsefler> |
Severity: | medium | 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: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-05-22 11:03:08 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
Rehana
2017-05-15 12:29:57 UTC
Additional info from my observations: Certificate remains on the system but repos are not available [root@dhcp35-160 ~]# subscription-manager register --org snowwhite Registering to: Shwetha-candlepin.usersys.redhat.com:8443/candlepin Username: admin Password: The system has been registered with ID: 15dee85a-6cec-4f1a-902b-caba420a0bd8 [root@dhcp35-160 ~]# rct cc /etc/pki/entitlement/4074590224270831742.pem +-------------------------------------------+ Entitlement Certificate +-------------------------------------------+ Certificate: Path: /etc/pki/entitlement/4074590224270831742.pem Version: 3.3 Serial: 4074590224270831742 Start Date: 2017-05-15 10:30:02+00:00 End Date: 2018-05-15 10:30:02+00:00 Pool ID: Not Available Subject: CN: 1f74def2-ad3e-4f00-91db-b3ddcbf288a3 O: snowwhite Issuer: C: US CN: Shwetha-candlepin.usersys.redhat.com L: Raleigh Product: ID: content_access Name: Content Access Version: Arch: Tags: Brand Type: Brand Name: 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 Content: Type: yum Name: awesomeos Label: awesomeos Vendor: Red Hat URL: /snowwhite/path/to/$basearch/$releasever/awesomeos GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: Content: Type: yum Name: awesomeos-all Label: awesomeos-all Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/all GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: Content: Type: containerImage Name: awesomeos-docker-images Label: awesomeos-docker-images Vendor: Red Hat URL: /snowwhite/path/to/awesomeos-docker-images GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: Required Tags: Arches: Content: Type: yum Name: awesomeos-i386 Label: awesomeos-i386 Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/i386 GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: Content: Type: yum Name: awesomeos-i386-only-content Label: awesomeos-i386-only-content Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/all GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: i386 Content: Type: yum Name: awesomeos-i686 Label: awesomeos-i686 Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/i686 GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: Content: Type: yum Name: awesomeos-ia64 Label: awesomeos-ia64 Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/ia64 GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: Content: Type: yum Name: awesomeos-ia64-only-content Label: awesomeos-ia64-only-content Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/all GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: ia64 Content: Type: ostree Name: awesomeos-ostree Label: awesomeos-ostree Vendor: Red Hat URL: /snowwhite/path/to/awesomeos-ostree GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: Required Tags: Arches: Content: Type: yum Name: awesomeos-ppc Label: awesomeos-ppc Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/ppc GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: Content: Type: yum Name: awesomeos-ppc-only-content Label: awesomeos-ppc-only-content Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/all GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: ppc Content: Type: yum Name: awesomeos-ppc64 Label: awesomeos-ppc64 Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/ppc64 GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: Content: Type: yum Name: awesomeos-ppc64-only-content Label: awesomeos-ppc64-only-content Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/all GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: ppc64 Content: Type: yum Name: awesomeos-s390x Label: awesomeos-s390x Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/s390x GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: Content: Type: yum Name: awesomeos-s390x-only-content Label: awesomeos-s390x-only-content Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/all GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: s390x Content: Type: yum Name: awesomeos-x86 Label: awesomeos-x86 Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/$releasever/x86 GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: Content: Type: yum Name: awesomeos-x86_64 Label: awesomeos-x86_64 Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/x86_64 GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: [root@dhcp35-160 ~]# subscription-manager repos --list +----------------------------------------------------------+ Available Repositories in /etc/yum.repos.d/redhat.repo +----------------------------------------------------------+ Repo ID: awesomeos-ia64-only-content Repo Name: awesomeos-ia64-only-content Repo URL: https://cdn.redhat.com/snowwhite/path/to/awesomeos/all Enabled: 0 Repo ID: awesomeos-i386-only-content Repo Name: awesomeos-i386-only-content Repo URL: https://cdn.redhat.com/snowwhite/path/to/awesomeos/all Enabled: 0 Repo ID: snowy-content-label Repo Name: snowy-content Repo URL: https://cdn.redhat.com/snowwhite/snowy/foo/path Enabled: 0 Repo ID: never-enabled-content Repo Name: never-enabled-content Repo URL: https://cdn.redhat.com/snowwhite/foo/path/never Enabled: 0 Repo ID: awesomeos-all Repo Name: awesomeos-all Repo URL: https://cdn.redhat.com/snowwhite/path/to/awesomeos/all Enabled: 0 Repo ID: awesomeos-ppc-only-content Repo Name: awesomeos-ppc-only-content Repo URL: https://cdn.redhat.com/snowwhite/path/to/awesomeos/all Enabled: 0 [root@dhcp35-160 ~]# date -s "2018-05-15 10:30:02+00:00" Tue May 15 16:00:02 IST 2018 Date set on server: [root@Shwetha-candlepin server]# date -s "2018-05-15 10:30:02+00:00" Tue May 15 16:00:02 IST 2018 [root@dhcp35-160 ~]# ls /etc/pki/entitlement/4074590224270831742 4074590224270831742-key.pem 4074590224270831742.pem [root@dhcp35-160 ~]# rct cat-cert /etc/pki/entitlement/4074590224270831742.pem +-------------------------------------------+ Entitlement Certificate +-------------------------------------------+ Certificate: Path: /etc/pki/entitlement/4074590224270831742.pem Version: 3.3 Serial: 4074590224270831742 Start Date: 2017-05-15 10:30:02+00:00 End Date: 2018-05-15 10:30:02+00:00 Pool ID: Not Available Subject: CN: 1f74def2-ad3e-4f00-91db-b3ddcbf288a3 O: snowwhite Issuer: C: US CN: Shwetha-candlepin.usersys.redhat.com L: Raleigh Product: ID: content_access Name: Content Access Version: Arch: Tags: Brand Type: Brand Name: 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 Content: Type: yum Name: awesomeos Label: awesomeos Vendor: Red Hat URL: /snowwhite/path/to/$basearch/$releasever/awesomeos GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: Content: Type: yum Name: awesomeos-all Label: awesomeos-all Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/all GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: Content: Type: containerImage Name: awesomeos-docker-images Label: awesomeos-docker-images Vendor: Red Hat URL: /snowwhite/path/to/awesomeos-docker-images GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: Required Tags: Arches: Content: Type: yum Name: awesomeos-i386 Label: awesomeos-i386 Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/i386 GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: Content: Type: yum Name: awesomeos-i386-only-content Label: awesomeos-i386-only-content Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/all GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: i386 Content: Type: yum Name: awesomeos-i686 Label: awesomeos-i686 Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/i686 GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: Content: Type: yum Name: awesomeos-ia64 Label: awesomeos-ia64 Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/ia64 GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: Content: Type: yum Name: awesomeos-ia64-only-content Label: awesomeos-ia64-only-content Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/all GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: ia64 Content: Type: ostree Name: awesomeos-ostree Label: awesomeos-ostree Vendor: Red Hat URL: /snowwhite/path/to/awesomeos-ostree GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: Required Tags: Arches: Content: Type: yum Name: awesomeos-ppc Label: awesomeos-ppc Vendor: Red Hat URL: /snowwhite/path/to/awesomeos/ppc GPG: /path/to/awesomeos/gpg/ Enabled: False Expires: 3600 Required Tags: Arches: [root@dhcp35-160 ~]# subscription-manager repos --list This system has no repositories available through subscriptions. [root@dhcp35-160 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: Unknown subscription management rules: Unknown subscription-manager: 1.20.0-1.git.5.37404a3.el7 python-rhsm: 1.20.0-1.git.5.37404a3.el7 I can confirm, that this PR: https://github.com/candlepin/subscription-manager/pull/1630 fixes this bug too. *** This bug has been marked as a duplicate of bug 1450862 *** |