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 919512 - subscription-manager config should NOT have --proxy options since it does not connect to candlepin server
Summary: subscription-manager config should NOT have --proxy options since it does not...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Alex Wood
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel70
TreeView+ depends on / blocked
 
Reported: 2013-03-08 17:05 UTC by John Sefler
Modified: 2014-06-18 00:25 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 13:14:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description John Sefler 2013-03-08 17:05:06 UTC
Description of problem:
I suspect the fixes to bug 906642 were too aggressive.

The subscription-manager --proxy options recently appeared in the subscription-manager builds.

[root@jsefler-7 ~]# subscription-manager config --help | grep -A1 -- --proxy
  --proxy=PROXY_URL     proxy URL in the form of proxy_hostname:proxy_port
  --proxyuser=PROXY_USER
                        user for HTTP proxy with basic authentication
  --proxypassword=PROXY_PASSWORD
                        password for HTTP proxy with basic authentication

^^^ Those proxy options are not used by the config module.
As demonstrated below, tracing rhsm.log while attempting to use config module with proxy options does NOT connect to the server....


[root@jsefler-7 ~]# subscription-manager config --rhsmcertd.port=1000 --proxy=IM --proxyuser=NOT --proxypassword=USED
[root@jsefler-7 ~]# subscription-manager config --remove=rhsmcertd.port --proxy=IM --proxyuser=NOT --proxypassword=USED
You have removed the value for section rhsmcertd and name port.
The default value for port will now be used.
[root@jsefler-7 ~]# subscription-manager config --list --proxy=IM --proxyuser=NOT --proxypassword=USED
[server]
   autoattachinterval = [1440]
   baseurl = [https://cdn.redhat.com]
   ca_cert_dir = [/etc/rhsm/ca/]
   certcheckinterval = [240]
   consumercertdir = [/etc/pki/consumer]
   entitlementcertdir = [/etc/pki/entitlement]
   hostname = subscription.rhn.stage.redhat.com
   insecure = [0]
   manage_repos = [1]
   port = 443
   prefix = /subscription
   productcertdir = [/etc/pki/product]
   proxy_hostname = []
   proxy_password = []
   proxy_port = []
   proxy_user = []
   repo_ca_cert = [/etc/rhsm/ca/redhat-uep.pem]
   report_package_profile = [1]
   ssl_verify_depth = [3]

[rhsm]
   autoattachinterval = [1440]
   baseurl = [https://cdn.redhat.com]
   ca_cert_dir = [/etc/rhsm/ca/]
   certcheckinterval = [240]
   consumercertdir = [/etc/pki/consumer]
   entitlementcertdir = [/etc/pki/entitlement]
   hostname = [localhost]
   insecure = [0]
   manage_repos = [1]
   pluginconfdir = /etc/rhsm/pluginconf.d
   plugindir = /usr/lib/rhsm-plugins
   port = [8443]
   prefix = [/candlepin]
   productcertdir = [/etc/pki/product]
   proxy_hostname = []
   proxy_password = []
   proxy_port = []
   proxy_user = []
   repo_ca_cert = /etc/rhsm/ca/
   report_package_profile = [1]
   ssl_verify_depth = [3]

[rhsmcertd]
   autoattachinterval = [1440]
   baseurl = [https://cdn.redhat.com]
   ca_cert_dir = [/etc/rhsm/ca/]
   certcheckinterval = [240]
   consumercertdir = [/etc/pki/consumer]
   entitlementcertdir = [/etc/pki/entitlement]
   hostname = [localhost]
   insecure = [0]
   manage_repos = [1]
   port = [8443]
   prefix = [/candlepin]
   productcertdir = [/etc/pki/product]
   proxy_hostname = []
   proxy_password = []
   proxy_port = []
   proxy_user = []
   repo_ca_cert = [/etc/rhsm/ca/redhat-uep.pem]
   report_package_profile = [1]
   ssl_verify_depth = [3]

[] - Default value in use




[root@jsefler-7 ~]# tail -f /var/log/rhsm/rhsm.log

2013-03-08 11:56:54,075 [ERROR]  @plugins.py:826 - Could not find /usr/lib/rhsm-plugins for plugin import
2013-03-08 11:56:54,076 [DEBUG]  @plugins.py:508 - loaded plugin modules: []
2013-03-08 11:56:54,076 [DEBUG]  @plugins.py:509 - loaded plugins: {}
2013-03-08 11:56:54,077 [DEBUG]  @plugins.py:481 - Calling PluginManager init
2013-03-08 11:56:54,137 [DEBUG]  @profile.py:95 - Loading current RPM profile.
2013-03-08 11:56:54,402 [INFO]  @managercli.py:299 - Client Versions: {'python-rhsm': '1.8.6-1.git.1.8a7996b.el7', 'subscription-manager': '1.8.3-1.git.141.da518e0.el7'} 
2013-03-08 11:57:25,562 [ERROR]  @plugins.py:826 - Could not find /usr/lib/rhsm-plugins for plugin import
2013-03-08 11:57:25,562 [DEBUG]  @plugins.py:508 - loaded plugin modules: []
2013-03-08 11:57:25,563 [DEBUG]  @plugins.py:509 - loaded plugins: {}
2013-03-08 11:57:25,563 [DEBUG]  @plugins.py:481 - Calling PluginManager init
2013-03-08 11:57:25,623 [DEBUG]  @profile.py:95 - Loading current RPM profile.
2013-03-08 11:57:25,879 [INFO]  @managercli.py:299 - Client Versions: {'python-rhsm': '1.8.6-1.git.1.8a7996b.el7', 'subscription-manager': '1.8.3-1.git.141.da518e0.el7'} 
2013-03-08 11:58:29,139 [ERROR]  @plugins.py:826 - Could not find /usr/lib/rhsm-plugins for plugin import
2013-03-08 11:58:29,155 [DEBUG]  @plugins.py:508 - loaded plugin modules: []
2013-03-08 11:58:29,155 [DEBUG]  @plugins.py:509 - loaded plugins: {}
2013-03-08 11:58:29,155 [DEBUG]  @plugins.py:481 - Calling PluginManager init
2013-03-08 11:58:29,215 [DEBUG]  @profile.py:95 - Loading current RPM profile.
2013-03-08 11:58:29,429 [INFO]  @managercli.py:299 - Client Versions: {'python-rhsm': '1.8.6-1.git.1.8a7996b.el7', 'subscription-manager': '1.8.3-1.git.141.da518e0.el7'} 




Version-Release number of selected component (if applicable):
[root@jsefler-7 ~]# rpm -q subscription-manager
subscription-manager-1.8.3-1.git.141.da518e0.el7.x86_64

Comment 1 Alex Wood 2013-03-26 13:26:19 UTC
commit 6aeef9f5d910abb5cf508ce7b84b9cfed403d1d1
Author: Alex Wood <awood>
Date:   Mon Mar 25 15:39:43 2013 -0400

    919512: Remove proxy options from config command.

Comment 2 John Sefler 2013-04-11 22:39:10 UTC
Verifying Version...
[root@jsefler-7 ~]# rpm -q subscription-manager
subscription-manager-1.8.5-1.el7.x86_64

[root@jsefler-7 ~]# subscription-manager config --help | grep -A1 -- --proxy
[root@jsefler-7 ~]#

VERIFIED: proxy options have been removed from config command

Comment 3 Ludek Smid 2014-06-13 13:14:03 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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