Bug 1420292
Summary: | RHEL registration fails frequently for compute nodes | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Wolfram Richter <wrichter> |
Component: | openstack-tripleo-heat-templates | Assignee: | Emilien Macchi <emacchi> |
Status: | CLOSED NOTABUG | QA Contact: | Arik Chernetsky <achernet> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 10.0 (Newton) | CC: | aschultz, jcoufal, mburns, rhel-osp-director-maint, vcojot, wrichter |
Target Milestone: | --- | Keywords: | Triaged, ZStream |
Target Release: | 10.0 (Newton) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-10-20 19:50:16 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Wolfram Richter
2017-02-08 11:31:12 UTC
The setup is driven by through ansible - with RHOSP9 in the otherwise same environment, the registration process works fine. I was now successfully with three consecutive rollouts with OSP10 based on the following change to the rhea-registration script [stack@director ~]$ diff -u /usr/share/openstack-tripleo-heat-templates/extraconfig/pre_deploy/rhel-registration/scripts/rhel-registration templates/rhel-registration.sh --- /usr/share/openstack-tripleo-heat-templates/extraconfig/pre_deploy/rhel-registration/scripts/rhel-registration 2016-11-15 05:30:38.000000000 +0100 +++ templates/rhel-registration.sh 2017-02-09 11:15:58.759332000 +0100 @@ -123,9 +123,22 @@ if [ "$satellite_version" = "6" ]; then repos="$repos --enable ${satellite_repo}" curl -L -k -O "$REG_SAT_URL/pub/katello-ca-consumer-latest.noarch.rpm" + + # satellite 6.2.5 needs to be able to resolve the hostname (overcloud-....localdomain) + # for subscription to succeed https://bugzilla.redhat.com/show_bug.cgi?id=1405614 + # however setting the value in /etc/hosts messes up the subsequent steps, hence we remove the entry + echo "$(ip addr show dev eth0 | awk '/inet /{ print $2 }' | cut -d'/' -f1) $(hostname) $(hostname -s)" >>/etc/hosts rpm -Uvh katello-ca-consumer-latest.noarch.rpm || true + sed -i s/^$(ip addr show dev eth0 | awk '/inet /{ print $2 }' | cut -d'/' -f1).*\$// /etc/hosts + subscription-manager register $opts subscription-manager $repos + + # this is an attempt to address https://bugzilla.redhat.com/show_bug.cgi?id=1420292 + # based on https://access.redhat.com/solutions/1364513 + yum clean all + yum repolist all + yum install -y katello-agent || true # needed for errata reporting to satellite6 katello-package-upload subscription-manager repos --disable ${satellite_repo} [stack@director ~]$ Seems code to do this was accepted upstream: openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=3243a1ab275648a17c98f47735a4490b59478d1e Vincent, I cannot open the link, could you please update and based on when it was merged also update target release downstream? Thanks a lot! So far I haven't been able to reproduce this with Satellite and OSP11 |