From 9df5aa2c13bd39cb51cc181f817a0a9baedcd343 Mon Sep 17 00:00:00 2001 From: Javier Pena Date: Tue, 3 May 2016 18:39:31 +0200 Subject: [PATCH] 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 --- packstack/plugins/prescript_000.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packstack/plugins/prescript_000.py b/packstack/plugins/prescript_000.py index 522a62826..1aef74c11 100644 --- a/packstack/plugins/prescript_000.py +++ b/packstack/plugins/prescript_000.py @@ -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)