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 1859529 - --noproxy option is ignored when you try to list available role, usage , service-level and addons
Summary: --noproxy option is ignored when you try to list available role, usage , serv...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.4
Assignee: William Poteat
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks: 2021578
TreeView+ depends on / blocked
 
Reported: 2020-07-22 10:47 UTC by Shwetha Kallesh
Modified: 2022-05-10 16:39 UTC (History)
4 users (show)

Fixed In Version: subscription-manager-1.28.24-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2021578 (view as bug list)
Environment:
Last Closed: 2022-05-10 15:22:56 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2862 0 None Merged 1859529: Remove proxy server test as it is unnecessary 2021-11-26 12:45:37 UTC
Github candlepin subscription-manager pull 2879 0 None Merged [1.28] connection: recognize proxy errors 2021-11-26 12:45:35 UTC
Red Hat Product Errata RHBA-2022:2047 0 None None None 2022-05-10 15:23:20 UTC

Description Shwetha Kallesh 2020-07-22 10:47:04 UTC
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:

Comment 3 Archana Pandey 2021-11-22 12:58:56 UTC
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

Comment 7 Rehana 2021-11-29 11:56:12 UTC
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!!

Comment 9 errata-xmlrpc 2022-05-10 15:22:56 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-2022:2047


Note You need to log in before you can comment on or make changes to this bug.