Bug 1818966 - OSP16/OSP13: ansible-based rhsm does not implement http proxies correctly.
Summary: OSP16/OSP13: ansible-based rhsm does not implement http proxies correctly.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: ansible-role-redhat-subscription
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: z1
: 13.0 (Queens)
Assignee: Emilien Macchi
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-30 19:40 UTC by Emilien Macchi
Modified: 2020-06-24 11:41 UTC (History)
3 users (show)

Fixed In Version: ansible-role-redhat-subscription-1.0.4-3.el7ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-24 11:41:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Emilien Macchi 2020-03-30 19:40:34 UTC
This bug was initially created as a copy of Bug #1816255

I am copying this bug because: 



Description of problem:

Using an http_proxy with the new ansible-based rhsm (osp13 and osp16) does not implement http_proxies correctly.

Consequence:
random nodes without direct http/https Internet access will randomly fail to download metadata from various repositories even though a satellite server is configured. This kills the deployment before step1.

Here's more information.
Using this:
============================================================================
$ cat  osp16/site_krynn/rhsm.yaml
resource_registry:
  OS::TripleO::Services::Rhsm: /usr/share/openstack-tripleo-heat-templates/deployment/rhsm/rhsm-baremetal-ansible.yaml

parameter_defaults:
  RhsmVars:
    rhsm_activation_key: "ak_rhosp16"
    rhsm_method: "satellite"
    rhsm_org_id: "krynn"
    rhsm_satellite_url: "https://sat6.lasthome.solace.krynn"
    rhsm_baseurl: "https://sat6.lasthome.solace.krynn/pulp/repos"
    rhsm_server_hostname: "sat6.lasthome.solace.krynn"
    rhsm_insecure: yes
    rhsm_rhsm_proxy_hostname: "imladris.lasthome.solace.krynn"
    rhsm_rhsm_proxy_port: "3128"
============================================================================

In the resulting overcloud, http_proxy is missing from:
1) /etc/yum.conf
2) /etc/rhsm/rhsm.conf (should use subscription-manager config to edit it)
3) /etc/dnf/dnf.conf

http_proxy should be configured in all 3 places.
With the changes in place, deployment proceeds normally.

Comment 15 errata-xmlrpc 2020-06-24 11:41:26 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:2719


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