Bug 1816249 - 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 DUPLICATE of bug 1816255
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: ansible-role-redhat-subscription
Version: 16.0 (Train)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Sam Doran
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-23 16:20 UTC by Vincent S. Cojot
Modified: 2020-03-23 19:16 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-23 19:16:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Vincent S. Cojot 2020-03-23 16:20:35 UTC
Description of problem:

My OSP16.0 test deploys were getting killed before step1 (install packages to bootstrap triple) when using the ansible-based RHSM subscription method.

Often, random nodes without direct Internet access were failing due to 'download repository metadata'.

This is the rhsm.yaml I am using:

===================================================================================================================
# Note this can be specified either in the call
# to heat stack-create via an additional -e option
# or via the global environment on the seed in
# /etc/heat/environment.d/default.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"
===================================================================================================================

even though I had rhsm_rhsm_proxy_hostname and rhsm_rhsm_proxy_port both configured, proxy information was missing from:
/etc/yum.conf
/etc/rhsm/rhsm.conf
/etc/dnf/dnf.conf (RHEL8 only)

Fix:
Inject proxy information into host files:

# grep ^proxy /etc/yum.conf /etc/rhsm/rhsm.conf /etc/dnf/dnf.conf 
/etc/yum.conf:proxy=http://imladris.lasthome.solace.krynn:3128
/etc/rhsm/rhsm.conf:proxy_hostname = imladris.lasthome.solace.krynn
/etc/rhsm/rhsm.conf:proxy_scheme = http
/etc/rhsm/rhsm.conf:proxy_port = 3128
/etc/rhsm/rhsm.conf:proxy_user =
/etc/rhsm/rhsm.conf:proxy_password =
/etc/dnf/dnf.conf:proxy=http://imladris.lasthome.solace.krynn:3128

Comment 1 Emilien Macchi 2020-03-23 19:16:30 UTC

*** This bug has been marked as a duplicate of bug 1816255 ***


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