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 1625571 - Man page of rhsm.conf needs to be updated on proxy_port section
Summary: Man page of rhsm.conf needs to be updated on proxy_port section
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.6
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-05 08:58 UTC by Rehana
Modified: 2021-06-09 01:32 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1642888 (view as bug list)
Environment:
Last Closed: 2020-03-31 19:40:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1576423 0 unspecified CLOSED proxy_port from rhsm.conf not used 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2020:1028 0 None None None 2020-03-31 19:41:26 UTC

Internal Links: 1576423

Description Rehana 2018-09-05 08:58:09 UTC
Description of problem:
with the fix of this Bug 1576423 , subscription manager now honours proxy port other than default 3128 . However during the test, it came to our notice that rhsmcertd process was failing run due to AVC denial Bug 1623376. The recommendation on this selinux bug was to have local policy added to honour proxy port of user's choice. 

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.These are the following steps to enable rhsmcertd to pass through new port  

to add a local policy
=====================
# semanage port -a -t squid_port_t -p tcp <port number>

2.To change the system back to look at 3128 port, just remove the policy 

#semanage port -d -t squid_port_t -p tcp <port number>
3.

Actual results:
Users will see rhsmcertd failure if their policy is not updated

Expected results:
man page proxy_port should have details on what modification user should on the policy in order to help rhsmcertd run against a non-default proxy port

Additional info:
Bug 1623376

Comment 5 Rehana 2019-09-18 09:17:10 UTC
[root@kvm-04-guest05 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.7.5-1
subscription management rules: 5.37
subscription-manager: 1.24.17-1.el7

[root@kvm-04-guest05 ~]# man rhsm.conf | grep proxy_port -A13
       proxy_port
           Set this to a non-blank value if subscription-manager should use a reverse proxy to access the subscription service. This sets the port for the reverse proxy. Overrides port from HTTP_PROXY and
           HTTPS_PROXY environment variables.

           Please note that setting this to any value other than 3128 (depending on your SELinux configuration) will require an update to that policy.

           To add a local policy:

           # semanage port -a -t squid_port_t -p tcp <port number>

           To change the system back to look at 3128 port, just remove the policy:

           # semanage port -d -t squid_port_t -p tcp <port number>


This fix for this bug is already in RHEL7.8 

Chris, 
Please move this bug to on_qa

Comment 6 Shwetha Kallesh 2019-09-19 12:46:16 UTC
Verification:

[root@kvm-08-guest29 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.8.0-1
subscription management rules: 5.37
subscription-manager: 1.24.17-1.el7

[root@kvm-08-guest29 ~]# man rhsm.conf | grep proxy_port -A13
       proxy_port
           Set this to a non-blank value if subscription-manager should use a reverse proxy to access the subscription service. This sets the port for the reverse proxy. Overrides port from HTTP_PROXY and HTTPS_PROXY environment
           variables.

           Please note that setting this to any value other than 3128 (depending on your SELinux configuration) will require an update to that policy.

           To add a local policy:

           # semanage port -a -t squid_port_t -p tcp <port number>

           To change the system back to look at 3128 port, just remove the policy:

           # semanage port -d -t squid_port_t -p tcp <port number>

Comment 8 errata-xmlrpc 2020-03-31 19:40:52 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, 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-2020:1028


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