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 663669 - the default rhsm.conf is missing proxy_user and proxy_password parameters
Summary: the default rhsm.conf is missing proxy_user and proxy_password parameters
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.1
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Adrian Likins
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: Entitlement-Beta
TreeView+ depends on / blocked
 
Reported: 2010-12-16 15:08 UTC by John Sefler
Modified: 2011-05-19 13:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-19 13:38:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:0611 0 normal SHIPPED_LIVE new package: subscription-manager 2011-05-18 17:56:21 UTC

Description John Sefler 2010-12-16 15:08:53 UTC
Description of problem:

For those users of the subscription-manager (CLI), the proxy_user and proxy_password are missing from the rhsm.config.  Only after starting the subscription-manager-gui and setting in the gui do the values get saved to the rhsm.config.  They need to be there by default so a cli user will know where to set these values.

[root@jsefler-dev2-2 ~]# rpm -qa | grep subscription-manager
subscription-manager-gnome-0.93.3-1.git.34.af3969f.fc14.x86_64
subscription-manager-0.93.3-1.git.34.af3969f.fc14.x86_64



[root@jsefler-dev2-2 ~]# cat /etc/rhsm/rhsm.conf
# Red Hat Subscription Manager Configuration File:

# Unified Entitlement Platform Configuration
[server]
# Server hostname:
hostname=candlepin1.devlab.phx1.redhat.com

# Server prefix:
prefix = /candlepin

# Server port:
port=443

# Set to 1 to disable certificate validation:
insecure = 0

# Set the depth of certs which should be checked
# when validating a certificate
ssl_verify_depth = 3

# Server CA certificate location:
ca_cert_dir = /etc/rhsm/ca/

# an http proxy server to use
proxy_hostname =

# port for http proxy server
proxy_port = 

[rhsm]
# Content base URL:
baseurl=http://mockamai.devlab.phx1.redhat.com

# Default CA cert to use when generating yum repo configs:
repo_ca_cert = %(ca_cert_dir)sfakamai-cp1.pem

# Where the certificates should be stored
productCertDir = /etc/pki/product
entitlementCertDir = /etc/pki/entitlement
consumerCertDir = /etc/pki/consumer

[rhsmcertd]
# Frequency of certificate refresh (in minutes):
certFrequency = 240


^^^^  NOTICE THE proxy_user AND proxy_password ARE MISSING

[root@jsefler-dev2-2 ~]# subscription-manager-gui &
[1] 28483
IN THE GUI, CLICK Proxy Configuration AND SET A PROXY USERNAME AND PASSWORD

[root@jsefler-dev2-2 ~]# cat /etc/rhsm/rhsm.conf
[DEFAULT]
proxy_hostname = None
proxy_user = None
hostname = localhost
ssl_verify_depth = 3
ca_cert_dir = /etc/rhsm/ca/
proxy_password = None
proxy_port = None
prefix = /candlepin
repo_ca_cert = /etc/rhsm/ca/redhat-uep.pem
port = 8443

[rhsmcertd]
certfrequency = 240

[rhsm]
baseurl = http://mockamai.devlab.phx1.redhat.com
productcertdir = /etc/pki/product
entitlementcertdir = /etc/pki/entitlement
consumercertdir = /etc/pki/consumer
repo_ca_cert = %(ca_cert_dir)sfakamai-cp1.pem

[server]
proxy_hostname = 
proxy_user = redhat
insecure = 0
hostname = candlepin1.devlab.phx1.redhat.com
ssl_verify_depth = 3
ca_cert_dir = /etc/rhsm/ca/
proxy_password = redhat
proxy_port = 
prefix = /candlepin
port = 443

^^^^ ONLY NOW DO THE proxy_user AND proxy_password GET PERSISTED INTO THE rhsm.conf

Comment 1 Adrian Likins 2010-12-16 15:22:35 UTC
commit d77e06175cc82591aa28d1146efed5f163f24126
Author: Adrian Likins <alikins>
Date:   Thu Dec 16 10:16:01 2010 -0500

    663669: add proxy_user and proxy_password to default config

Comment 3 John Sefler 2010-12-16 16:44:44 UTC
[root@jsefler-onprem01 ~]# rpm -qa | grep subscription-manager
subscription-manager-0.93.3-1.git.35.d77e061.fc14.x86_64
subscription-manager-gnome-0.93.3-1.git.35.d77e061.fc14.x86_64


[root@jsefler-onprem01 ~]# cat /etc/rhsm/rhsm.conf | grep proxy
# an http proxy server to use
proxy_hostname =
# port for http proxy server
proxy_port = 
# user name for authenticating to an http proxy, if needed
proxy_user =
# passwird for basic http proxy auth, if needed
proxy_password =


moving to VERIFIED....
However, there is a typo in the proxy_password description

Comment 4 errata-xmlrpc 2011-05-19 13:38:14 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-0611.html


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