Description of problem: This may end up being a RHEL OSP only change. Currently, to enable subscription-manager in the overcloud nodes, it's a manual "copy this file from X to Y". This should be done automatically in the director
Patch posted upstream: https://review.gerrithub.io/#/c/237542 The minimum CLI args are added to be able to register to the customer portal or satellite using an activation key. A couple notes about using this for customer portal registration: 1. The undercloud neutron network needs to have a nameserver configured that can resolve subscription.rhn.redhat.com. (This is not the case by default) 2. We need to apply a patch similar to this one[1] to the rhel-registration script in T-H-T[2]. (Satellite registration is not affected by this issue) [1] https://github.com/openstack/diskimage-builder/commit/6856d96f03ca7e5a796e5e266c745be28a8dda0b [2] https://github.com/openstack/tripleo-heat-templates/blob/master/extraconfig/post_deploy/rhel-registration/scripts/rhel-registration
I posted a patch to T-H-T upstream for portal registration issue: https://review.openstack.org/#/c/197111/
adding https://review.gerrithub.io/#/c/237487/ as a dependency for error handling.
*** Bug 1240378 has been marked as a duplicate of this bug. ***
patch was missing a " -- dropping back to assigned to fix it.
Mike Burns, John Trowbridge -- does the 07-10.1 puddle include this fix? python-rdomanager-oscplugin-0.0.8-32.el7ost.noarch I can test with a sat server if needed. thanks, jacob
Verified: FailedQA Environment: instack-undercloud-2.1.2-21.el7ost.noarch openstack overcloud deploy --plan `openstack management plan list 2>/dev/null|awk '/overcloud/ {print $2}'` --control-scale 1 --compute-scale 2 --ceph-storage-scale 1 --block-storage-scale 0 --swift-storage-scale 0 -e /home/stack/network-environment.yaml --rhel-reg --reg-method portal --reg-org [ID] --reg-activation-key '[key]' Results in ERROR: openstack 'NoneType' object has no attribute 'endswith'
This commit is the root cause: https://github.com/rdo-management/python-rdomanager-oscplugin/commit/50562410370e2059b98b0ce24f852cd2708a1d55 This makes RHEL registration only work when not using Tuskar. There is no need for that restriction.
Upstream fix https://review.gerrithub.io/240831
Verified: Environment: instack-undercloud-2.1.2-22.el7ost.noarch python-rdomanager-oscplugin-0.0.8-43.el7ost.noarch Deployed with: openstack overcloud deploy --plan `openstack management plan list 2>/dev/null|awk '/overcloud/ {print $2}'` --control-scale 1 --compute-scale 2 --ceph-storage-scale 1 --block-storage-scale 0 --swift-storage-scale 0 -e /home/stack/network-environment.yaml --rhel-reg --reg-method portal --reg-org [ID] --reg-activation-key '[key]' Running "subscription-manager repos" on the deployed controller outputs a list of repos. Running "subscription-manager status": +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Current
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/RHEA-2015:1549