Bug 1859529
| Summary: | --noproxy option is ignored when you try to list available role, usage , service-level and addons | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Shwetha Kallesh <skallesh> | |
| Component: | subscription-manager | Assignee: | William Poteat <wpoteat> | |
| Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 8.3 | CC: | arpandey, jhnidek, jsefler, redakkan | |
| Target Milestone: | rc | Keywords: | Triaged | |
| Target Release: | 8.4 | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | subscription-manager-1.28.24-1.el8 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2021578 (view as bug list) | Environment: | ||
| Last Closed: | 2022-05-10 15:22:56 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: | 2021578 | |||
Pre-verification-
Reproducing issue on subscription-manager: 1.28.21-1.el8
Beaker Test information:
HOSTNAME=ibm-x3650m4-01-vm-01.ibm2.lab.eng.bos.redhat.com
JOBID=6021294
RECIPEID=11009314
RESULT_SERVER=
DISTRO=RHEL-8.6.0-20211121.d.3
ARCHITECTURE=x86_64
Job Whiteboard: Reserve Workflow provision of distro RHEL-8.6.0-20211121.d.3 on any system for 356400 seconds
Recipe Whiteboard:
** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** **
Downgraded subscription-manager to older version to reproduce issue-
[root@ibm-x3650m4-01-vm-01 ~]#
[root@ibm-x3650m4-01-vm-01 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.21-1
subscription management rules: 5.41
subscription-manager: 1.28.21-1.el8
[root@ibm-x3650m4-01-vm-01 ~]#
[root@ibm-x3650m4-01-vm-01 ~]#
[root@ibm-x3650m4-01-vm-01 ~]# subscription-manager usage --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
Proxy connection failed, please check your settings. <<< FAILED, --noproxy ignored
[root@ibm-x3650m4-01-vm-01 ~]#
[root@ibm-x3650m4-01-vm-01 ~]# subscription-manager role --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
Proxy connection failed, please check your settings. <<< FAILED, --noproxy ignored
[root@ibm-x3650m4-01-vm-01 ~]#
[root@ibm-x3650m4-01-vm-01 ~]# subscription-manager addons --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
Proxy connection failed, please check your settings. <<< FAILED, --noproxy ignored
[root@ibm-x3650m4-01-vm-01 ~]#
[root@ibm-x3650m4-01-vm-01 ~]# subscription-manager service-level --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
Proxy connection failed, please check your settings. <<< FAILED, --noproxy ignored
[root@ibm-x3650m4-01-vm-01 ~]#
[root@ibm-x3650m4-01-vm-01 ~]#
=============================================================================================================
verifying on build : subscription-manager-1.28.24-1.el8.x86_64
[root@ibm-x3650m4-01-vm-01 ~]# yum upgrade subscription-manager
Updating Subscription Management repositories.
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: 1:39:54 ago on Mon 22 Nov 2021 05:38:45 AM EST.
Dependencies resolved.
=============================================================================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================================================================
Upgrading:
dnf-plugin-subscription-manager x86_64 1.28.24-1.el8 beaker-BaseOS 305 k
python3-cloud-what x86_64 1.28.24-1.el8 beaker-BaseOS 304 k
python3-subscription-manager-rhsm x86_64 1.28.24-1.el8 beaker-BaseOS 382 k
python3-syspurpose x86_64 1.28.24-1.el8 beaker-BaseOS 317 k
subscription-manager x86_64 1.28.24-1.el8 beaker-BaseOS 1.1 M
subscription-manager-rhsm-certificates x86_64 1.28.24-1.el8 beaker-BaseOS 278 k
Transaction Summary
=============================================================================================================================================================================
Upgrade 6 Packages
Total download size: 2.7 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): dnf-plugin-subscription-manager-1.28.24-1.el8.x86_64.rpm 3.4 MB/s | 305 kB 00:00
(2/6): python3-cloud-what-1.28.24-1.el8.x86_64.rpm 2.8 MB/s | 304 kB 00:00
(3/6): python3-subscription-manager-rhsm-1.28.24-1.el8.x86_64.rpm 3.4 MB/s | 382 kB 00:00
(4/6): python3-syspurpose-1.28.24-1.el8.x86_64.rpm 6.2 MB/s | 317 kB 00:00
(5/6): subscription-manager-rhsm-certificates-1.28.24-1.el8.x86_64.rpm 4.4 MB/s | 278 kB 00:00
(6/6): subscription-manager-1.28.24-1.el8.x86_64.rpm 8.2 MB/s | 1.1 MB 00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 11 MB/s | 2.7 MB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: python3-cloud-what-1.28.24-1.el8.x86_64 1/1
Upgrading : python3-cloud-what-1.28.24-1.el8.x86_64 1/12
Upgrading : subscription-manager-rhsm-certificates-1.28.24-1.el8.x86_64 2/12
Upgrading : python3-subscription-manager-rhsm-1.28.24-1.el8.x86_64 3/12
Upgrading : python3-syspurpose-1.28.24-1.el8.x86_64 4/12
Upgrading : dnf-plugin-subscription-manager-1.28.24-1.el8.x86_64 5/12
Running scriptlet: subscription-manager-1.28.24-1.el8.x86_64 6/12
Upgrading : subscription-manager-1.28.24-1.el8.x86_64 6/12
Running scriptlet: subscription-manager-1.28.24-1.el8.x86_64 6/12
Running scriptlet: subscription-manager-1.28.21-1.el8.x86_64 7/12
Cleanup : subscription-manager-1.28.21-1.el8.x86_64 7/12
Running scriptlet: subscription-manager-1.28.21-1.el8.x86_64 7/12
Cleanup : python3-syspurpose-1.28.21-1.el8.x86_64 8/12
Cleanup : python3-subscription-manager-rhsm-1.28.21-1.el8.x86_64 9/12
Cleanup : python3-cloud-what-1.28.21-1.el8.x86_64 10/12
Cleanup : subscription-manager-rhsm-certificates-1.28.21-1.el8.x86_64 11/12
Cleanup : dnf-plugin-subscription-manager-1.28.21-1.el8.x86_64 12/12
Running scriptlet: dnf-plugin-subscription-manager-1.28.21-1.el8.x86_64 12/12
Verifying : dnf-plugin-subscription-manager-1.28.24-1.el8.x86_64 1/12
Verifying : dnf-plugin-subscription-manager-1.28.21-1.el8.x86_64 2/12
Verifying : python3-cloud-what-1.28.24-1.el8.x86_64 3/12
Verifying : python3-cloud-what-1.28.21-1.el8.x86_64 4/12
Verifying : python3-subscription-manager-rhsm-1.28.24-1.el8.x86_64 5/12
Verifying : python3-subscription-manager-rhsm-1.28.21-1.el8.x86_64 6/12
Verifying : python3-syspurpose-1.28.24-1.el8.x86_64 7/12
Verifying : python3-syspurpose-1.28.21-1.el8.x86_64 8/12
Verifying : subscription-manager-1.28.24-1.el8.x86_64 9/12
Verifying : subscription-manager-1.28.21-1.el8.x86_64 10/12
Verifying : subscription-manager-rhsm-certificates-1.28.24-1.el8.x86_64 11/12
Verifying : subscription-manager-rhsm-certificates-1.28.21-1.el8.x86_64 12/12
Installed products updated.
Upgraded:
dnf-plugin-subscription-manager-1.28.24-1.el8.x86_64 python3-cloud-what-1.28.24-1.el8.x86_64 python3-subscription-manager-rhsm-1.28.24-1.el8.x86_64
python3-syspurpose-1.28.24-1.el8.x86_64 subscription-manager-1.28.24-1.el8.x86_64 subscription-manager-rhsm-certificates-1.28.24-1.el8.x86_64
Complete!
[root@ibm-x3650m4-01-vm-01 ~]#
[root@ibm-x3650m4-01-vm-01 ~]#
[root@ibm-x3650m4-01-vm-01 ~]#
Version-Release number of selected component (if applicable):
[root@ibm-x3650m4-01-vm-01 ~]#
[root@ibm-x3650m4-01-vm-01 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.21-1
subscription management rules: 5.41
subscription-manager: 1.28.24-1.el8
[root@ibm-x3650m4-01-vm-01 ~]#
[root@ibm-x3650m4-01-vm-01 ~]# rpm -qa --changelog subscription-manager | grep 1859529
- 1859529: Remove proxy server test as it is unnecessary (wpoteat)
[root@ibm-x3650m4-01-vm-01 ~]# subscription-manager usage --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available usage
+-------------------------------------------+
- Production <<<< --noproxy honored, PASS
[root@ibm-x3650m4-01-vm-01 ~]# subscription-manager role --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available role
+-------------------------------------------+ --noproxy honored, PASS
[root@ibm-x3650m4-01-vm-01 ~]# subscription-manager addons --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
There are no available values for the system purpose "addons" from the available subscriptions in this organization.
[root@ibm-x3650m4-01-vm-01 ~]#
[root@ibm-x3650m4-01-vm-01 ~]#
[root@ibm-x3650m4-01-vm-01 ~]# subscription-manager service-level --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available Service Levels
+-------------------------------------------+
Premium --noproxy honored, PASS
Self-Support
[root@ibm-x3650m4-01-vm-01 ~]#
[root@ibm-x3650m4-01-vm-01 ~]# subscription-manager syspurpose usage --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available usage
+-------------------------------------------+
- Production --noproxy honored, PASS
[root@ibm-x3650m4-01-vm-01 ~]#
[root@ibm-x3650m4-01-vm-01 ~]#
[root@ibm-x3650m4-01-vm-01 ~]# subscription-manager syspurpose role --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available role --noproxy honored, PASS
+-------------------------------------------+
[root@ibm-x3650m4-01-vm-01 ~]# subscription-manager syspurpose service-level --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available Service Levels
+-------------------------------------------+
Premium
Self-Support --noproxy honored, PASS
[root@ibm-x3650m4-01-vm-01 ~]#
[root@ibm-x3650m4-01-vm-01 ~]# subscription-manager syspurpose addons --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
There are no available values for the system purpose "addons" from the available subscriptions in this organization. --noproxy honored, PASS
[root@ibm-x3650m4-01-vm-01 ~]#
Actual results:
honored --noproxy option and successfully lists available roles, usage, service-level and addons
Expected results:
Should list available roles, usage ,service-level and addons
Additional info:
Verification: PASSED
Verifying on :
==============
# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.2.21-1
subscription management rules: 5.41
subscription-manager: 1.28.24-1.el8
# subscription-manager register --username entitlement_rhsm_1 --password=*****
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
The system has been registered with ID: 95389ef4-7b1c-45b6-93a0-806ff54fd4a5
The registered system name is: hpe-dl380pgen8-02-vm-6.hpe2.lab.eng.bos.redhat.com
# rpm -qa --changelog subscription-manager | grep 1859529
- 1859529: Remove proxy server test as it is unnecessary (wpoteat)
# subscription-manager usage --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available usage
+-------------------------------------------+
- Production
# subscription-manager role --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available role
+-------------------------------------------+
- Red Hat Enterprise Linux Server
# subscription-manager addons --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
There are no available values for the system purpose "addons" from the available subscriptions in this organization.
# subscription-manager service-level --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available Service Levels
+-------------------------------------------+
Self-Support
Standard
# subscription-manager syspurpose usage --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available usage
+-------------------------------------------+
- Production
# subscription-manager syspurpose role --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available role
+-------------------------------------------+
- Red Hat Enterprise Linux Server
# subscription-manager syspurpose service-level --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available Service Levels
+-------------------------------------------+
Self-Support
Standard
# subscription-manager syspurpose addons --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
There are no available values for the system purpose "addons" from the available subscriptions in this organization.
# subscription-manager unregister
Unregistering from: subscription.rhsm.stage.redhat.com:443/subscription
System has been unregistered.
# subscription-manager service-level --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com --username=entitlement_rhsm_1 --password=****
+-------------------------------------------+
Available Service Levels
+-------------------------------------------+
Self-Support
Standard
# subscription-manager role --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com --username=entitlement_rhsm_1 --password=*****
+-------------------------------------------+
Available role
+-------------------------------------------+
- Red Hat Enterprise Linux Server
noproxy option was honoured during listing the system purpose values on both
registered and unregistered system .
Based on the above observations moving the bug to verified!!
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-2022:2047 |
Description of problem: --noproxy option is ignored when you try to list available role, usage , service-level and addons Version-Release number of selected component (if applicable): [root@kvm-07-guest02 ~]# subscription-manager version subscription-manager: 1.27.10-1.git.2.ffd7a7e.el8 How reproducible: Steps to Reproduce: [root@kvm-07-guest02 ~]# subscription-manager usage --list +-------------------------------------------+ Available usage +-------------------------------------------+ - Development/Test - Production - Disaster Recovery [root@kvm-07-guest02 ~]# subscription-manager usage --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com Proxy connection failed, please check your settings. [root@kvm-07-guest02 ~]# subscription-manager role --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com Proxy connection failed, please check your settings. [root@kvm-07-guest02 ~]# subscription-manager service-level --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com Proxy connection failed, please check your settings. [root@kvm-07-guest02 ~]# subscription-manager addons --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com Proxy connection failed, please check your settings. Actual results: Proxy connection failed, please check your settings. Expected results: Should list available roles, usage ,service-level and addons Additional info: