Bug 910210 - packstack needs to add option to subscribe to rh beta rpm's
Summary: packstack needs to add option to subscribe to rh beta rpm's
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-packstack
Version: 2.0 (Folsom)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: snapshot4
: 2.1
Assignee: Martin Magr
QA Contact: Nir Magnezi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-12 01:38 UTC by Derek Higgins
Modified: 2022-07-09 06:25 UTC (History)
3 users (show)

Fixed In Version: openstack-packstack-2012.2.3-0.1.dev454
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-21 18:23:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-16384 0 None None None 2022-07-09 06:25:33 UTC
Red Hat Product Errata RHSA-2013:0671 0 normal SHIPPED_LIVE Moderate: openstack-packstack security and bug fix update 2013-03-21 22:22:21 UTC

Description Derek Higgins 2013-02-12 01:38:31 UTC
This should be an option that is disabled by default

Comment 1 Derek Higgins 2013-02-12 02:15:57 UTC
Fix submitted upstream
https://review.openstack.org/#/c/21727/

Comment 6 Martin Magr 2013-03-12 10:45:03 UTC
Works for me:

....
192.168.122.154_horizon.pp :                                         [ DONE ]
Applying 192.168.122.154_postscript.pp
192.168.122.154_postscript.pp :                                      [ DONE ]
                            [ DONE ]

 **** Installation completed successfully ******

     (Please allow Installer a few moments to start up.....)


Additional information:
 * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
 * Did not create a cinder volume group, one already existed
 * To use the command line tools you need to source the file /root/keystonerc_admin created on 192.168.122.154
 * To use the console, browse to http://192.168.122.154/dashboard
 * The installation log file is available at: /var/tmp/packstack/20130312-101930-BZfnUU/openstack-setup.log
[para@virtual-rhel-beta ~]$ cat /etc/yum.repos.d/redhat.repo | grep -A8 "\[rhel-6-server-beta-rpms\]"; cat ans.txt | grep CONFIG_RH_BETA_REPO
[rhel-6-server-beta-rpms]
name = Red Hat Enterprise Linux 6 Server Beta (RPMs)
baseurl = https://cdn.redhat.com/content/beta/rhel/server/6/$releasever/$basearch/os
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
sslverify = 1
sslcacert = /etc/rhsm/ca/redhat-uep.pem
sslclientkey = /etc/pki/entitlement/8914104326693925303-key.pem
CONFIG_RH_BETA_REPO=y
[para@virtual-rhel-beta ~]$

Comment 7 Martin Magr 2013-03-12 10:54:11 UTC
Nir, I was thinking about why it didn't work for you. Beta repo is being enabled only if you let packstack to register node to subscription manager.

Comment 9 Martin Magr 2013-03-12 14:08:34 UTC
Did you have the node already registered before running packstack?

Comment 10 Nir Magnezi 2013-03-12 14:32:48 UTC
(In reply to comment #9)
> Did you have the node already registered before running packstack?

No it wasn't. I Verified that before I ran packstack

Relevant openstack-setup.log: http://pastebin.test.redhat.com/132037

Comment 11 Martin Magr 2013-03-12 14:59:32 UTC
So from your log [1] the problem is that you don't have yum-config-manager installed. You should be ok when you install this package manually. 


[1]
2013-03-12 18:28:04::ERROR::common_utils::403::root:: ============= STDERR ==========
2013-03-12 18:28:04::ERROR::common_utils::404::root:: Warning: Permanently added '10.35.161.64' (RSA) to the list of known hosts.
+ trap t ERR
+ subscription-manager register --username=qa --password=******** --autosubscribe
+ subscription-manager list --consumed
+ grep -i openstack
++ subscription-manager list --available
++ grep -e 'Red Hat OpenStack' -m 1 -A 2
++ grep 'Pool Id'
++ awk '{print $3}'
+ subscription-manager subscribe --pool 8a85f9823c87d377013c965277382d56
+ yum clean all
+ yum-config-manager --enable rhel-server-ost-6-folsom-rpms
bash: line 6: yum-config-manager: command not found
++ t
++ exit 127

Comment 12 Nir Magnezi 2013-03-13 09:26:29 UTC
(In reply to comment #7)
> Nir, I was thinking about why it didn't work for you. Beta repo is being
> enabled only if you let packstack to register node to subscription manager.

I verified this and that's the case indeed.
Why should it work like this? IMHO, It shouldn't be related.

(In reply to comment #11)
> So from your log [1] the problem is that you don't have yum-config-manager
> installed. You should be ok when you install this package manually. 
> 
> 
> [1]
> 2013-03-12 18:28:04::ERROR::common_utils::403::root:: ============= STDERR
> ==========
> 2013-03-12 18:28:04::ERROR::common_utils::404::root:: Warning: Permanently
> added '10.35.161.64' (RSA) to the list of known hosts.
> + trap t ERR
> + subscription-manager register --username=qa --password=********
> --autosubscribe
> + subscription-manager list --consumed
> + grep -i openstack
> ++ subscription-manager list --available
> ++ grep -e 'Red Hat OpenStack' -m 1 -A 2
> ++ grep 'Pool Id'
> ++ awk '{print $3}'
> + subscription-manager subscribe --pool 8a85f9823c87d377013c965277382d56
> + yum clean all
> + yum-config-manager --enable rhel-server-ost-6-folsom-rpms
> bash: line 6: yum-config-manager: command not found
> ++ t
> ++ exit 127

Thank you, that solved it.

Comment 13 Nir Magnezi 2013-03-13 09:29:11 UTC
Derek, Please See Comment #12, Is that acceptable? or should I reassign the bug?

Comment 14 Derek Higgins 2013-03-13 10:11:09 UTC
(In reply to comment #12)
> (In reply to comment #7)
> > Nir, I was thinking about why it didn't work for you. Beta repo is being
> > enabled only if you let packstack to register node to subscription manager.
> 
> I verified this and that's the case indeed.
> Why should it work like this? IMHO, It shouldn't be related.
This is how it should work, because the beta repo is one of the repositories add by subscription manager, the beta repo is only enabled by packstack if your using packstack to register with subscription manager. 

> 
> (In reply to comment #11)
> > So from your log [1] the problem is that you don't have yum-config-manager
> > installed. You should be ok when you install this package manually. 
> > 
> > 
> > [1]
> > 2013-03-12 18:28:04::ERROR::common_utils::403::root:: ============= STDERR
> > ==========
> > 2013-03-12 18:28:04::ERROR::common_utils::404::root:: Warning: Permanently
> > added '10.35.161.64' (RSA) to the list of known hosts.
> > + trap t ERR
> > + subscription-manager register --username=qa --password=********
> > --autosubscribe
> > + subscription-manager list --consumed
> > + grep -i openstack
> > ++ subscription-manager list --available
> > ++ grep -e 'Red Hat OpenStack' -m 1 -A 2
> > ++ grep 'Pool Id'
> > ++ awk '{print $3}'
> > + subscription-manager subscribe --pool 8a85f9823c87d377013c965277382d56
> > + yum clean all
> > + yum-config-manager --enable rhel-server-ost-6-folsom-rpms
> > bash: line 6: yum-config-manager: command not found
> > ++ t
> > ++ exit 127
> 
> Thank you, that solved it.

So I think this feature can be either verified for snap4 (but there is a bug where it doesn't work if yum-utils isn't installed on the host)

or reassigned because of the yum-utils dependency, (this is fixed in snap5)

because the beta repo is no longer needed (since GA), I think it's ok to verify the bug.

Comment 15 Nir Magnezi 2013-03-13 10:17:25 UTC
(In reply to comment #14)
<snip>
> 
> So I think this feature can be either verified for snap4 (but there is a bug
> where it doesn't work if yum-utils isn't installed on the host)
> 
> or reassigned because of the yum-utils dependency, (this is fixed in snap5)
> 
> because the beta repo is no longer needed (since GA), I think it's ok to
> verify the bug.

Agreed. Marking as Verified.

Comment 16 Nir Magnezi 2013-03-13 10:18:04 UTC
Verified NVR: openstack-packstack-2012.2.3-0.1.dev454

Comment 18 Stephen Gordon 2013-03-18 16:41:21 UTC
Dropped release note flag.

Comment 20 errata-xmlrpc 2013-03-21 18:23:34 UTC
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.

http://rhn.redhat.com/errata/RHSA-2013-0671.html


Note You need to log in before you can comment on or make changes to this bug.