Bug 2021578
| Summary: | --noproxy option is ignored when you try to list available role, usage , service-level and addons | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | William Poteat <wpoteat> |
| 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: | 9.0 | CC: | arpandey, candlepin-bugs, jhnidek, jsefler, ptoscano, redakkan, rhsm-qe, skallesh |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 9.0 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | subscription-manager-1.29.21-1.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1859529 | Environment: | |
| Last Closed: | 2022-05-17 15:58:12 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: | 1859529 | ||
| Bug Blocks: | |||
|
Comment 1
John Sefler
2021-11-10 17:26:24 UTC
(In reply to John Sefler from comment #1) > > After the pull request https://github.com/candlepin/subscription-manager/pull/2871 .... > > [root@kvm-04-guest08 ~]# rpm -q subscription-manager > subscription-manager-1.29.19-1.git.119.033bf98.el9.x86_64 > > [root@kvm-04-guest08 ~]# subscription-manager register --username=testuser1 > --password=password --org=admin > --proxy=auto-services.usersys.redhat.com:31290 > Unable to reach the server at rhsm-auto85-candlepin.usersys.redhat.com:8443/candlepin I found out (I think) that we are not reporting errors from the proxy correctly; I tried an attempt at detecting this situation: https://github.com/candlepin/subscription-manager/pull/2874 (In reply to Pino Toscano from comment #2) > I found out (I think) that we are not reporting errors from the proxy > correctly; I tried an attempt at detecting this situation: > https://github.com/candlepin/subscription-manager/pull/2874 ... which worked. Pre-verification: subscription-manager-1.29.21-1.el9.x86_64
Beaker Test information:
HOSTNAME=kvm-06-guest18.hv2.lab.eng.bos.redhat.com
JOBID=6021295
RECIPEID=11009315
RESULT_SERVER=
DISTRO=RHEL-9.0.0-20211121.d.7
ARCHITECTURE=x86_64
Let's first try to reproduce issue on subscription-manager: 1.29.18-2.el9
[root@kvm-06-guest18 ~]# 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.29.18-2.el9
[root@kvm-06-guest18 ~]# subscription-manager service-level --list
+-------------------------------------------+
Available Service Levels
+-------------------------------------------+
Premium
Self-Support
[root@kvm-06-guest18 ~]# subscription-manager service-level --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
Proxy connection failed, please check your settings. <<<<< FAIL
[root@kvm-06-guest18 ~]#
[root@kvm-06-guest18 ~]# subscription-manager usage --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
Proxy connection failed, please check your settings. <<<<< FAIL
[root@kvm-06-guest18 ~]#
[root@kvm-06-guest18 ~]# subscription-manager role --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
Proxy connection failed, please check your settings. <<<<< FAIL
[root@kvm-06-guest18 ~]# subscription-manager addons --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
Proxy connection failed, please check your settings. <<<<< FAIL
[root@kvm-06-guest18 ~]#
=====================================================================================================================
verifying issue on latest sub-man build -
Version-Release number of selected component (if applicable):
[root@kvm-06-guest18 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.21-1
subscription management rules: 5.41
subscription-manager: 1.29.21-1.el9
[root@kvm-06-guest18 ~]#
[root@kvm-06-guest18 ~]# rpm -qa --changelog subscription-manager | grep 2021578
- 2021578: Remove proxy server test as it is unnecessary (wpoteat)
[root@kvm-06-guest18 ~]#
[root@kvm-06-guest18 ~]#
[root@kvm-06-guest18 ~]# subscription-manager service-level --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available Service Levels
+-------------------------------------------+ <<<< PASS
Premium
Self-Support
[root@kvm-06-guest18 ~]# subscription-manager role --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available role
+-------------------------------------------+ <<<< PASS
[root@kvm-06-guest18 ~]# subscription-manager usage --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available usage
+-------------------------------------------+ <<<< PASS
- Production
[root@kvm-06-guest18 ~]# 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. <<<< PASS
[root@kvm-06-guest18 ~]#
[root@kvm-06-guest18 ~]# subscription-manager syspurpose service-level --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available Service Levels
+-------------------------------------------+ <<<< PASS
Premium
Self-Support
[root@kvm-06-guest18 ~]# subscription-manager syspurpose role --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available role <<<< PASS
+-------------------------------------------+
[root@kvm-06-guest18 ~]# subscription-manager syspurpose usage --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available usage <<<< PASS
+-------------------------------------------+
- Production
[root@kvm-06-guest18 ~]#
[root@kvm-06-guest18 ~]# 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. <<<< PASS
[root@kvm-06-guest18 ~]#
[root@kvm-06-guest18 ~]# subscription-manager unregister
Unregistering from: subscription.rhsm.stage.redhat.com:443/subscription
System has been unregistered.
[root@kvm-06-guest18 ~]# subscription-manager register --username rhel9-stackablePool --password **** --proxy absfd:3129
Proxy connection failed, please check your settings.
[root@kvm-06-guest18 ~]#
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 management server: 3.2.21-1
subscription management rules: 5.41
subscription-manager: 1.29.21-1.el9
On a registered system:
-----------------------
# rpm -qa --changelog subscription-manager | grep 2021578
- 2021578: Remove proxy server test as it is unnecessary (wpoteat)
# subscription-manager identity
This system is not yet registered. Try 'subscription-manager register --help' for more information.
# subscription-manager register
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: entitlement_rhsm_1
Password:
The system has been registered with ID: d7891f96-83d0-41ca-9d90-fffd0166c1a2
The registered system name is: kvm-03-guest03.lab.eng.rdu2.redhat.com
# subscription-manager service-level --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available Service Levels
+-------------------------------------------+
Self-Support
Standard
# subscription-manager role --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available role
+-------------------------------------------+
- Red Hat Enterprise Linux Server
# subscription-manager usage --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available usage
+-------------------------------------------+
- Production
# 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 syspurpose service-level --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available Service Levels
+-------------------------------------------+
Self-Support
Standard
# subscription-manager syspurpose role --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available role
+-------------------------------------------+
- Red Hat Enterprise Linux Server
# subscription-manager syspurpose usage --list --proxy sadsad:3129 --noproxy=subscription.rhsm.stage.redhat.com
+-------------------------------------------+
Available usage
+-------------------------------------------+
- Production
# 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 register --username entitlement_rhsm_1 --password=**** --proxy absfd:3129
Proxy connection failed, please check your settings.
On a unregistered system :
==========================
Demonstrating few scenarios on a unregistered system too
# 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 honored 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 (new packages: subscription-manager), 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:3984 |