Change name for Red Hat OpenStack when using rhsm

https://review.openstack.org/302794 tried to make an educated guess
on what would be the name for the Red Hat OpenStack Plaform
subscription in RHSM, and failed. Instead of "Red Hat OpenStack Plaform",
its name is "Red Hat OpenStack".

This patch should be backported all the way so stable/liberty, so
Red Hat OpenStack Plaform 8 and later are covered.

Change-Id: Idf0ff36dc5924795c0bd20594ae1cffa89f43e0f
This commit is contained in:
Javier Pena 2016-05-03 18:39:31 +02:00
parent 5989e6a4ee
commit 74685bf527
1 changed files with 1 additions and 1 deletions

View File

@ -1087,7 +1087,7 @@ def run_rhsm_reg(host, username, password, optional=False, proxy_server=None,
cmd = ('subscription-manager list --consumed | grep -i openstack || '
'subscription-manager subscribe --pool %s')
pool = ("$(subscription-manager list --available | sed -n "
"\'/Red Hat Enterprise Linux OpenStack Platform/, /Pool ID:/"
"\'/Red Hat OpenStack/, /Pool ID:/"
" { s/Pool ID:[[:space:]]*\\([[:alnum:]]*\\)/\\1/ p} \'"
" | head -1 )")
server.append(cmd % pool)