Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1844508

Summary: [RFE] subscription-manager should send its version in the User-Agent header
Product: Red Hat Enterprise Linux 8 Reporter: Patrick Easters <peasters>
Component: subscription-managerAssignee: William Poteat <wpoteat>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.3CC: jhnidek, jsefler, redakkan, skallesh
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
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: 2021-05-18 13:32: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 Patrick Easters 2020-06-05 14:43:55 UTC
As maintainers of Hosted Candlepin, it would be helpful for us to see what version of subscription-manager is used to make requests to our service. This helps when investigating unusual traffic patterns as well as planning 

Can subscription-manager include its version in the User-Agent header of all HTTP requests it makes?

Comment 5 Shwetha Kallesh 2020-09-23 12:14:23 UTC
Reproducer:

[root@kvm-01-guest12 ~]# subscription-manager version

Making request: GET /candlepin/ {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.3-1.git.7.e59ce7b.el8', 'X-Correlation-ID': '20a3b038465b4501814a916ce7d50168', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager)', 'Content-Length': '0'}
                                                        ^^ observe no subscription-manager version
200 {'Server': 'Apache-Coyote/1.1', 'x-candlepin-request-uuid': '0423adbd-dfb9-4eb8-ad57-91a174d63f3b', 'X-Version': '3.1.21-1', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Date': 'Wed, 23 Sep 2020 11:30:37 GMT'}
[ {
  "rel" : "content",
  "href" : "/content"
}, {
  "rel" : "owners",
  "href" : "/owners"
}, {
  "rel" : "consumertypes",
  "href" : "/consumertypes"
}, {
  "rel" : "hypervisors",
  "href" : "/hypervisors"
}, {
  "rel" : "distributor_versions",
  "href" : "/distributor_versions"
}, {
  "rel" : "roles",
  "href" : "/roles"
}, {
  "rel" : "entitlements",
  "href" : "/entitlements"
}, {
  "rel" : "admin",
  "href" : "/admin"
}, {
  "rel" : "products",
  "href" : "/products"
}, {
  "rel" : "serials",
  "href" : "/serials"
}, {
  "rel" : "activation_keys",
  "href" : "/activation_keys"
}, {
  "rel" : "jobs",
  "href" : "/jobs"
}, {
  "rel" : "consumers",
  "href" : "/consumers"
}, {
  "rel" : "subscriptions",
  "href" : "/subscriptions"
}, {
  "rel" : "cdn",
  "href" : "/cdn"
}, {
  "rel" : "crl",
  "href" : "/crl"
}, {
  "rel" : "content_overrides",
  "href" : "/consumers/{consumer_uuid}/content_overrides"
}, {
  "rel" : "pools",
  "href" : "/pools"
}, {
  "rel" : "rules",
  "href" : "/rules"
}, {
  "rel" : "deleted_consumers",
  "href" : "/deleted_consumers"
}, {
  "rel" : "status",
  "href" : "/status"
}, {
  "rel" : "guestids",
  "href" : "/consumers/{consumer_uuid}/guestids"
}, {
  "rel" : "users",
  "href" : "/users"
}, {
  "rel" : "",
  "href" : "/"
} ]


Making request: GET /candlepin/status {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.3-1.git.7.e59ce7b.el8', 'X-Correlation-ID': '20a3b038465b4501814a916ce7d50168', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager)', 'Content-Length': '0'}
                                                ^^ observe no subscription-manager version
200 {'Server': 'Apache-Coyote/1.1', 'x-candlepin-request-uuid': '9226e235-b2c1-4aa7-b820-52c4adc72ca1', 'X-Version': '3.1.21-1', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Date': 'Wed, 23 Sep 2020 11:30:37 GMT'}
{
  "mode" : "NORMAL",
  "modeReason" : null,
  "modeChangeTime" : null,
  "result" : true,
  "version" : "3.1.21",
  "rulesVersion" : "5.41",
  "release" : "1",
  "standalone" : false,
  "timeUTC" : "2020-09-23T11:30:38+0000",
  "rulesSource" : "default",
  "managerCapabilities" : [ "instance_multiplier", "derived_product", "vcpu", "cert_v3", "hypervisors_heartbeat", "remove_by_pool_id", "syspurpose", "insights_auto_register", "storage_band", "cores", "hypervisors_async", "org_level_content_access", "guest_limit", "ram", "batch_bind" ]
}

server type: Red Hat Subscription Management
subscription management server: 3.1.21-1
subscription management rules: 5.41
subscription-manager: 1.28.3-1.git.7.e59ce7b.el8

Comment 6 Shwetha Kallesh 2020-09-23 12:15:57 UTC
Early testing comment:

[root@kvm-01-guest12 ~]# subscription-manager version

Making request: GET /candlepin/ {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.3-1.git.10.32f43d9.el8', 'X-Correlation-ID': 'bce3d30dd575441f8d2419b41c8cf0bf', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.3-1.git.10.32f43d9.el8', 'Content-Length': '0'}
                                                             ^^ observe that subscription-manager version is now being displayed

200 {'Server': 'Apache-Coyote/1.1', 'x-candlepin-request-uuid': '84b81b16-3b65-4569-b2f9-247f2475c7c6', 'X-Version': '3.1.21-1', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Date': 'Wed, 23 Sep 2020 12:12:31 GMT'}
[ {
  "rel" : "content",
  "href" : "/content"
}, {
  "rel" : "owners",
  "href" : "/owners"
}, {
  "rel" : "consumertypes",
  "href" : "/consumertypes"
}, {
  "rel" : "hypervisors",
  "href" : "/hypervisors"
}, {
  "rel" : "distributor_versions",
  "href" : "/distributor_versions"
}, {
  "rel" : "roles",
  "href" : "/roles"
}, {
  "rel" : "entitlements",
  "href" : "/entitlements"
}, {
  "rel" : "admin",
  "href" : "/admin"
}, {
  "rel" : "products",
  "href" : "/products"
}, {
  "rel" : "serials",
  "href" : "/serials"
}, {
  "rel" : "activation_keys",
  "href" : "/activation_keys"
}, {
  "rel" : "jobs",
  "href" : "/jobs"
}, {
  "rel" : "consumers",
  "href" : "/consumers"
}, {
  "rel" : "subscriptions",
  "href" : "/subscriptions"
}, {
  "rel" : "cdn",
  "href" : "/cdn"
}, {
  "rel" : "crl",
  "href" : "/crl"
}, {
  "rel" : "content_overrides",
  "href" : "/consumers/{consumer_uuid}/content_overrides"
}, {
  "rel" : "pools",
  "href" : "/pools"
}, {
  "rel" : "rules",
  "href" : "/rules"
}, {
  "rel" : "deleted_consumers",
  "href" : "/deleted_consumers"
}, {
  "rel" : "status",
  "href" : "/status"
}, {
  "rel" : "guestids",
  "href" : "/consumers/{consumer_uuid}/guestids"
}, {
  "rel" : "users",
  "href" : "/users"
}, {
  "rel" : "",
  "href" : "/"
} ]


Making request: GET /candlepin/status {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.3-1.git.10.32f43d9.el8', 'X-Correlation-ID': 'bce3d30dd575441f8d2419b41c8cf0bf', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.3-1.git.10.32f43d9.el8', 'Content-Length': '0'}
                                                                       ^^ observe that subscription-manager version is now being displayed
200 {'Server': 'Apache-Coyote/1.1', 'x-candlepin-request-uuid': '0ea73682-4997-40e4-8199-376e34a1c7e6', 'X-Version': '3.1.21-1', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Date': 'Wed, 23 Sep 2020 12:12:31 GMT'}
{
  "mode" : "NORMAL",
  "modeReason" : null,
  "modeChangeTime" : null,
  "result" : true,
  "version" : "3.1.21",
  "rulesVersion" : "5.41",
  "release" : "1",
  "standalone" : false,
  "timeUTC" : "2020-09-23T12:12:31+0000",
  "rulesSource" : "default",
  "managerCapabilities" : [ "instance_multiplier", "derived_product", "vcpu", "cert_v3", "hypervisors_heartbeat", "remove_by_pool_id", "syspurpose", "insights_auto_register", "storage_band", "cores", "hypervisors_async", "org_level_content_access", "guest_limit", "ram", "batch_bind" ]
}

server type: Red Hat Subscription Management
subscription management server: 3.1.21-1
subscription management rules: 5.41
subscription-manager: 1.28.3-1.git.10.32f43d9.el8

Comment 8 Shwetha Kallesh 2020-11-02 12:38:52 UTC
Early testing comments against nightly compose :

server type: This system is currently not registered.
subscription management server: 3.2.0-1
subscription management rules: 5.41
subscription-manager: 1.28.5-1.el8


[root@ibm-x3650m4-01-vm-14 ~]# source /tmp/debug_subman_set.sh
[root@ibm-x3650m4-01-vm-14 ~]# subscription-manager version

Making request: GET /subscription/ {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.5-1.el8', 'X-Correlation-ID': 'ab18e695c39c481d8922debe88d7e75b', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.5-1.el8', 'Content-Length': '0'}
                                                   ^^ user-agent now displays subscription-manager version info

200 {'Server': 'openresty/1.17.8.2', 'Date': 'Mon, 02 Nov 2020 12:36:56 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'x-candlepin-request-uuid': 'b7caa83d-82f8-45ac-8604-dbb28f9f0fd0', 'X-Version': '3.2.0-1'}
[{"rel":"consumertypes","href":"/consumertypes"},{"rel":"deleted_consumers","href":"/deleted_consumers"},{"rel":"guestids","href":"/consumers/{consumer_uuid}/guestids"},{"rel":"distributor_versions","href":"/distributor_versions"},{"rel":"entitlements","href":"/entitlements"},{"rel":"hypervisors","href":"/hypervisors"},{"rel":"","href":"/"},{"rel":"serials","href":"/serials"},{"rel":"jobs","href":"/jobs"},{"rel":"roles","href":"/roles"},{"rel":"status","href":"/status"},{"rel":"cdn","href":"/cdn"},{"rel":"activation_keys","href":"/activation_keys"},{"rel":"content_overrides","href":"/consumers/{consumer_uuid}/content_overrides"},{"rel":"pools","href":"/pools"},{"rel":"rules","href":"/rules"},{"rel":"subscriptions","href":"/subscriptions"},{"rel":"crl","href":"/crl"},{"rel":"products","href":"/products"},{"rel":"users","href":"/users"},{"rel":"owners","href":"/owners"},{"rel":"consumers","href":"/consumers"},{"rel":"content","href":"/content"},{"rel":"admin","href":"/admin"},{"rel":"packages", "href":"/consumers/{consumer_uuid}/packages"}]


Making request: GET /subscription/status {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.5-1.el8', 'X-Correlation-ID': 'ab18e695c39c481d8922debe88d7e75b', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.5-1.el8', 'Content-Length': '0'}
                                                         ^^ user-agent now displays subscription-manager version info

200 {'Server': 'openresty/1.17.8.2', 'Date': 'Mon, 02 Nov 2020 12:36:56 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'x-candlepin-request-uuid': '94e88309-22ac-4790-91d4-0502a8516a5f', 'X-Version': '3.2.0-1'}
{"mode":"NORMAL","modeReason":null,"modeChangeTime":null,"result":true,"version":"3.2.0","rulesVersion":"5.41","release":"1","standalone":false,"timeUTC":"2020-11-02T12:36:54+0000","rulesSource":"default","managerCapabilities":["instance_multiplier","derived_product","vcpu","cert_v3","hypervisors_heartbeat","remove_by_pool_id","syspurpose","insights_auto_register","storage_band","cores","hypervisors_async","org_level_content_access","guest_limit","ram","batch_bind","combined_reporting"]}

server type: This system is currently not registered.
subscription management server: 3.2.0-1
subscription management rules: 5.41
subscription-manager: 1.28.5-1.el8

Comment 11 John Sefler 2020-11-12 19:23:16 UTC
Final VERIFICATION in nightly compose RHEL-8.4.0-20201112.n.1:

      Beaker Test information:
                         HOSTNAME=kvm-02-guest10.hv2.lab.eng.bos.redhat.com
                            JOBID=4725191
                         RECIPEID=9051109
                    RESULT_SERVER=
                           DISTRO=RHEL-8.4.0-20201112.n.1
                     ARCHITECTURE=x86_64

      Job Whiteboard: Reserve Workflow provision of distro RHEL-8.4.0-20201112.n.1 on any lab system for 86400 seconds

      Recipe Whiteboard: 
**  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **
Last login: Thu Nov 12 10:16:07 2020 from 10.10.120.132
[root@kvm-02-guest10 ~]#
[root@kvm-02-guest10 ~]# rpm -q subscription-manager
subscription-manager-1.28.5-1.el8.x86_64
[root@kvm-02-guest10 ~]# 
[root@kvm-02-guest10 ~]# rpm -q subscription-manager --changelog | grep 1844508
- 1844508: sub-man sends version in the User-Agent header; ENT-2486
[root@kvm-02-guest10 ~]# 
[root@kvm-02-guest10 ~]# export SUBMAN_DEBUG_PRINT_REQUEST=1
[root@kvm-02-guest10 ~]# export SUBMAN_DEBUG_PRINT_REQUEST_HEADER=1
[root@kvm-02-guest10 ~]# 
[root@kvm-02-guest10 ~]# subscription-manager register --username=rhelentqe --auto-attach
Registering to: subscription.rhsm.redhat.com:443/subscription
Password: 

Making request: GET /subscription/users/rhelentqe/owners {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.5-1.el8', 'X-Correlation-ID': '46bcef4b04f0493285177de39d5f0fb8', 'Authorization': 'Basic cmhlbGVudHFlOjRYQjE1YzVwaGd3UGFjNXU3VGZjMDN5UDNVb01BZ1Jx', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.5-1.el8', 'Content-Length': '0'}


Making request: GET /subscription/ {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.5-1.el8', 'X-Correlation-ID': '46bcef4b04f0493285177de39d5f0fb8', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.5-1.el8', 'Content-Length': '0'}


Making request: POST /subscription/consumers?owner=12415135 {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.5-1.el8', 'X-Correlation-ID': '46bcef4b04f0493285177de39d5f0fb8', 'Authorization': 'Basic cmhlbGVudHFlOjRYQjE1YzVwaGd3UGFjNXU3VGZjMDN5UDNVb01BZ1Jx', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.5-1.el8'}

The system has been registered with ID: 7cb08771-70aa-4d27-afe1-25345cee6055
The registered system name is: kvm-02-guest10.hv2.lab.eng.bos.redhat.com

Making request: GET /subscription/status {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.5-1.el8', 'X-Correlation-ID': '46bcef4b04f0493285177de39d5f0fb8', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.5-1.el8', 'Content-Length': '0'}


Making request: POST /subscription/consumers/7cb08771-70aa-4d27-afe1-25345cee6055/entitlements {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.5-1.el8', 'X-Correlation-ID': '46bcef4b04f0493285177de39d5f0fb8', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.5-1.el8', 'Content-Length': '0'}


Making request: GET /subscription/consumers/7cb08771-70aa-4d27-afe1-25345cee6055/certificates/serials {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.5-1.el8', 'X-Correlation-ID': '46bcef4b04f0493285177de39d5f0fb8', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.5-1.el8', 'Content-Length': '0'}


Making request: GET /subscription/consumers/7cb08771-70aa-4d27-afe1-25345cee6055/certificates?serials=8440661713656883227 {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.5-1.el8', 'X-Correlation-ID': '46bcef4b04f0493285177de39d5f0fb8', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.5-1.el8', 'Content-Length': '0'}


Making request: GET /subscription/status {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.5-1.el8', 'X-Correlation-ID': '46bcef4b04f0493285177de39d5f0fb8', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.5-1.el8', 'Content-Length': '0'}


Making request: GET /subscription/consumers/7cb08771-70aa-4d27-afe1-25345cee6055/content_overrides {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.5-1.el8', 'X-Correlation-ID': '46bcef4b04f0493285177de39d5f0fb8', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.5-1.el8', 'Content-Length': '0'}


Making request: PUT /subscription/consumers/7cb08771-70aa-4d27-afe1-25345cee6055/profiles {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.5-1.el8', 'X-Correlation-ID': '46bcef4b04f0493285177de39d5f0fb8', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.5-1.el8'}


Making request: GET /subscription/consumers/7cb08771-70aa-4d27-afe1-25345cee6055/compliance {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.5-1.el8', 'X-Correlation-ID': '46bcef4b04f0493285177de39d5f0fb8', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.5-1.el8', 'Content-Length': '0'}


Making request: GET /subscription/consumers/7cb08771-70aa-4d27-afe1-25345cee6055/owner {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.5-1.el8', 'X-Correlation-ID': '46bcef4b04f0493285177de39d5f0fb8', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.5-1.el8', 'Content-Length': '0'}


Making request: GET /subscription/consumers/7cb08771-70aa-4d27-afe1-25345cee6055 {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.5-1.el8', 'X-Correlation-ID': '46bcef4b04f0493285177de39d5f0fb8', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.5-1.el8', 'Content-Length': '0'}

Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64 Beta
Status:       Subscribed

[root@kvm-02-guest10 ~]# 
[root@kvm-02-guest10 ~]# subscription-manager unregister
Unregistering from: subscription.rhsm.redhat.com:443/subscription

Making request: DELETE /subscription/consumers/7cb08771-70aa-4d27-afe1-25345cee6055 {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.5-1.el8', 'X-Correlation-ID': 'f6171726c9ff4ae28914a7e9b6731a45', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.5-1.el8', 'Content-Length': '0'}


Making request: GET /subscription/status {'Content-type': 'application/json', 'Accept': 'application/json', 'x-subscription-manager-version': '1.28.5-1.el8', 'X-Correlation-ID': 'f6171726c9ff4ae28914a7e9b6731a45', 'Accept-Language': 'en-us', 'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.5-1.el8', 'Content-Length': '0'}

System has been unregistered.
[root@kvm-02-guest10 ~]# 
[root@kvm-02-guest10 ~]# export -n SUBMAN_DEBUG_PRINT_REQUEST
[root@kvm-02-guest10 ~]# export -n SUBMAN_DEBUG_PRINT_REQUEST_HEADER
[root@kvm-02-guest10 ~]# 



VERIFIED: After exporting two environment variables (SUBMAN_DEBUG_PRINT_REQUEST=1; SUBMAN_DEBUG_PRINT_REQUEST_HEADER=1) for the purpose of debugging requests, notice that every request includes a 'User-Agent' whose value includes the version information...
   'User-Agent': 'RHSM/1.0 (cmd=subscription-manager) subscription-manager/1.28.5-1.el8'

Moving bugzilla to Status:VERIFIED

Comment 13 errata-xmlrpc 2021-05-18 13:32:41 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 (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/RHBA-2021:1575