Bug 2057732
Summary: | Inaccurate module status/active flags send to Errata Notifications | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Tom Simmons <thsimmon> | |
Component: | subscription-manager | Assignee: | Jiri Hnidek <jhnidek> | |
Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> | |
Severity: | medium | Docs Contact: | ||
Priority: | high | |||
Version: | 8.7 | CC: | bkielhol, cdonnell, jhnidek, jsefler, redakkan, shivagup, sujagtap, zpetrace | |
Target Milestone: | rc | Keywords: | Triaged | |
Target Release: | 8.7 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | subscription-manager-1.28.30-1.el8 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 2058662 (view as bug list) | Environment: | ||
Last Closed: | 2022-11-08 10:48:04 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 2058662 |
Comment 2
Zdenek Petracek
2022-05-09 07:27:40 UTC
Reproducing the bug: Version: [root@kvm-01-guest25 ~]# subscription-manager version server type: This system is currently not registered. subscription management server: 3.2.22-1 subscription management rules: 5.41 subscription-manager: 1.28.29-3.el8 [root@kvm-01-guest25 ~]# subscription-manager register Registering to: subscription.rhsm.stage.redhat.com:443/subscription Username: zpetracePH03 Password: The system has been registered with ID: e765cb22-09b0-4eb5-bb7f-3470dd6ad670 The registered system name is: kvm-01-guest25.lab.eng.brq.redhat.com Commands for printing the communication between SUBMAN and server: [root@kvm-01-guest25 ~]# export SUBMAN_DEBUG_PRINT_REQUEST=1 [root@kvm-01-guest25 ~]# export SUBMAN_DEBUG_PRINT_REQUEST_HEADER=1 [root@kvm-01-guest25 ~]# export SUBMAN_DEBUG_PRINT_REQUEST_BODY=1 [root@kvm-01-guest25 ~]# export SUBMAN_DEBUG_PRINT_RESPONSE=1 [root@kvm-01-guest25 ~]# dnf uploadprofile --force-upload Updating Subscription Management repositories. Making request: subscription.rhsm.stage.redhat.com:443 GET /subscription/consumers/e765cb22-09b0-4eb5-bb7f-3470dd6ad670/owner {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.29-3.el8', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=dnf) subscription-manager/1.28.29-3.el8', 'Content-Length': '0'} 200 {'Server': 'openresty', 'Date': 'Wed, 11 May 2022 11:35:53 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=30', 'x-candlepin-request-uuid': '0e83b5e4-911a-43ff-bbf9-10a485bcd65a', 'x-version': '3.2.22-1'} {"created":"2021-09-08T13:27:21+0000","updated":"2022-03-23T14:31:41+0000","id":"8a99f9a67b367712017bc597706e75a8","key":"13281785","displayName":"13281785","parentOwner":null,"contentPrefix":null,"defaultServiceLevel":null,"upstreamConsumer":null,"logLevel":null,"autobindDisabled":false,"autobindHypervisorDisabled":false,"contentAccessMode":"entitlement","contentAccessModeList":"entitlement,org_environment","lastRefreshed":"2021-10-01T16:32:21+0000","href":"/owners/13281785"} This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions. Last metadata expiration check: 0:07:11 ago on Wed 11 May 2022 01:28:42 PM CEST. Making request: subscription.rhsm.stage.redhat.com:443 GET /subscription/status {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.29-3.el8', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=dnf) subscription-manager/1.28.29-3.el8', 'Content-Length': '0'} 200 {'Server': 'openresty', 'Date': 'Wed, 11 May 2022 11:35:54 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=30', 'x-candlepin-request-uuid': '7b85fbba-eb83-48f0-875c-2ecabad648ac', 'X-Version': '3.2.22-1'} {"mode":"NORMAL","modeReason":null,"modeChangeTime":null,"result":true,"version":"3.2.22","rulesVersion":"5.41","release":"1","standalone":false,"timeUTC":"2022-05-11T11:35:51+0000","rulesSource":"default","keycloakRealm":"redhat-external","keycloakAuthUrl":"https://sso.stage.redhat.com/auth","keycloakResource":"cloud-services","managerCapabilities":["keycloak_auth","cloud_registration","instance_multiplier","derived_product","vcpu","cert_v3","hypervisors_heartbeat","remove_by_pool_id","syspurpose","storage_band","cores","hypervisors_async","org_level_content_access","guest_limit","ram","batch_bind","combined_reporting"]} Making request: subscription.rhsm.stage.redhat.com:443 PUT /subscription/consumers/e765cb22-09b0-4eb5-bb7f-3470dd6ad670/profiles {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': . . "installed_profiles": [], "status": "unknown", "active": false}, {"name": "swig", "stream": "4.0", "version": "8040020201001104431", "context": "9f9e2e7e", "arch": "x86_64", "profiles": ["common", "complete"], "installed_profiles": [], "status": "unknown", "active": false}, {"name": "varnish", "stream": "6", "version": "8050020220201171716", "context": "c5368500", "arch": "x86_64", "profiles": ["common"], "installed_profiles": [], "status": "unknown", "active": false}, {"name": "virt", "stream": "rhel", "version": "8060020220408104655", "context": "d63f516d", "arch": "x86_64", "profiles": ["common"], "installed_profiles": [], "status": "enabled", "active": true}, {"name": "javapackages-tools", "stream": "201801", "version": "820181217165704", "context": "dca7b4a4", "arch": "x86_64", "profiles": ["common"], "installed_profiles": [], "status": "unknown", "active": false}, {"name": "mariadb-devel", "stream": "10.3", "version": "8030020210324132345", "context": "229f0a1c", "arch": "x86_64", "profiles": [], "installed_profiles": [], "status": "unknown", "active": false}, {"name": "python38-devel", "stream": "3.8", "version": "8060020220120164031", "context": "5294be16", "arch": "x86_64", "profiles": [], "installed_profiles": [], "status": "unknown", "active": false}, {"name": "python39-devel", "stream": "3.9", "version": "8060020220118220913", "context": "d3811607", "arch": "x86_64", "profiles": [], "installed_profiles": [], "status": "unknown", "active": false}, {"name": "virt-devel", "stream": "rhel", "version": "8060020220408104655", "context": "d63f516d", "arch": "x86_64", "profiles": [], "installed_profiles": [], "status": "unknown", "active": false}]}] 204 {'Server': 'openresty', 'Date': 'Wed, 11 May 2022 11:35:55 GMT', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=30', 'x-content-type-options': 'nosniff', 'x-xss-protection': '1; mode=block', 'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 'pragma': 'no-cache', 'expires': '0', 'strict-transport-security': 'max-age=31536000 ; includeSubDomains', 'x-frame-options': 'DENY'} Package profile updates status: 1 updates: [] exceptions: --> status is shown as "unknown' while it should be shown as default Final verification: Registering into SUBMAN: [root@kvm-02-guest08 ~]# subscription-manager register Registering to: subscription.rhsm.stage.redhat.com:443/subscription Username: zpetracePH03 Password: The system has been registered with ID: 57dbaeed-fb6a-46e5-b9f8-f629e72b10ec The registered system name is: kvm-02-guest08.rhts.eng.brq.redhat.com Printing communication between subman and server: [root@kvm-02-guest08 ~]# export SUBMAN_DEBUG_PRINT_REQUEST=1 [root@kvm-02-guest08 ~]# export SUBMAN_DEBUG_PRINT_REQUEST_HEADER=1 [root@kvm-02-guest08 ~]# export SUBMAN_DEBUG_PRINT_REQUEST_BODY=1 [root@kvm-02-guest08 ~]# export SUBMAN_DEBUG_PRINT_RESPONSE=1 SM version: [root@kvm-02-guest08 ~]# subscription-manager version Making request: subscription.rhsm.stage.redhat.com:443 GET /subscription/ {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.30-1.el8', 'X-Correlation-ID': '3606f41ea8ae43b28cbf65903191ceb8', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.30-1.el8', 'Content-Length': '0'} 200 {'Server': 'openresty', 'Date': 'Thu, 26 May 2022 11:03:59 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=30', 'x-candlepin-request-uuid': '5428d166-4cb3-479b-ba1a-8b8af930b5a0', 'X-Version': '3.2.22-1'} ... server type: Red Hat Subscription Management subscription management server: 3.2.22-1 subscription management rules: 5.41 subscription-manager: 1.28.30-1.el8 Checking status: [root@kvm-02-guest08 ~]# dnf uploadprofile --force-upload Updating Subscription Management repositories. Making request: subscription.rhsm.stage.redhat.com:443 GET /subscription/consumers/57dbaeed-fb6a-46e5-b9f8-f629e72b10ec/owner {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.30-1.el8', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=dnf) subscription-manager/1.28.30-1.el8', 'Content-Length': '0'} 200 {'Server': 'openresty', 'Date': 'Thu, 26 May 2022 11:04:26 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=30', 'x-candlepin-request-uuid': '6fe10182-ca8a-4da3-81fd-cc630efe9034', 'X-Version': '3.2.22-1'} {"created":"2021-09-08T13:27:21+0000","updated":"2022-05-23T16:26:51+0000","id":"8a99f9a67b367712017bc597706e75a8","key":"13281785","displayName":"13281785","parentOwner":null,"contentPrefix":null,"defaultServiceLevel":null,"upstreamConsumer":null,"logLevel":null,"autobindDisabled":false,"autobindHypervisorDisabled":false,"contentAccessMode":"entitlement","contentAccessModeList":"entitlement,org_environment","lastRefreshed":"2022-05-23T16:26:51+0000","href":"/owners/13281785"} This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions. Last metadata expiration check: 0:10:03 ago on Thu 26 May 2022 12:54:24 PM CEST. Making request: subscription.rhsm.stage.redhat.com:443 GET /subscription/status {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.30-1.el8', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=dnf) subscription-manager/1.28.30-1.el8', 'Content-Length': '0'} 200 {'Server': 'openresty', 'Date': 'Thu, 26 May 2022 11:04:28 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=30', 'x-candlepin-request-uuid': 'ef8a852c-0e74-4739-b407-255b89fefbd9', 'X-Version': '3.2.22-1'} {"mode":"NORMAL","modeReason":null,"modeChangeTime":null,"result":true,"version":"3.2.22","rulesVersion":"5.41","release":"1","standalone":false,"timeUTC":"2022-05-26T11:04:26+0000","rulesSource":"default","keycloakRealm":"redhat-external","keycloakAuthUrl":"https://sso.stage.redhat.com/auth","keycloakResource":"cloud-services","managerCapabilities":["keycloak_auth","cloud_registration","instance_multiplier","derived_product","vcpu","cert_v3","hypervisors_heartbeat","remove_by_pool_id","syspurpose","storage_band","cores","hypervisors_async","org_level_content_access","guest_limit","ram","batch_bind","combined_reporting"]} Making request: subscription.rhsm.stage.redhat.com:443 PUT /subscription/consumers/57dbaeed-fb6a-46e5-b9f8-f629e72b10ec/profiles {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.30-1.el8', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=dnf) subscription-manager/1.28.30-1.el8'} ... "installed_profiles": [], "status": "default", "active": false}, {"name": "mariadb-devel", "stream": "10.3", "version": "8030020210324132345", "context": "229f0a1c", "arch": "x86_64", "profiles": [], "installed_profiles": [], "status": "default", "active": false}, {"name": "python38-devel", "stream": "3.8", "version": "8060020220120164031", "context": "5294be16", "arch": "x86_64", "profiles": [], "installed_profiles": [], "status": "default", "active": false}, {"name": "python39-devel", "stream": "3.9", "version": "8060020220118220913", "context": "d3811607", "arch": "x86_64", "profiles": [], "installed_profiles": [], "status": "default", "active": false}, {"name": "virt-devel", "stream": "rhel", "version": "8070020220517140054", "context": "3b9f49c4", "arch": "x86_64", "profiles": [], "installed_profiles": [], "status": "default", "active": false}]}] 204 {'Server': 'openresty', 'Date': 'Thu, 26 May 2022 11:04:35 GMT', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=30', 'x-content-type-options': 'nosniff', 'x-xss-protection': '1; mode=block', 'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 'pragma': 'no-cache', 'expires': '0', 'strict-transport-security': 'max-age=31536000 ; includeSubDomains', 'x-frame-options': 'DENY'} Package profile updates status: 1 updates: [] exceptions: --> status is shown as default = final verification PASSED 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 (subscription-manager bug fix and enhancement update), 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/RHEA-2022:7719 |