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:
1 parent
3b68a68ae1
commit
9df5aa2c13
1 file changed
+1
-1
@@ -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 "
|
||||
"\'/OpenStack Platform/, /Pool ID:/"
|
||||
"\'/Red Hat OpenStack/, /Pool ID:/"
|
||||
" { s/Pool ID:[[:space:]]*\\([[:alnum:]]*\\)/\\1/ p} \'"
|
||||
" | head -1 )")
|
||||
server.append(cmd % pool)
|
||||
|
||||
Reference in new issue
Block a user