Bug 1085547 - Keystone role is created as _member_ instead of Member
Summary: Keystone role is created as _member_ instead of Member
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-foreman-installer
Version: 4.0
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: z4
: 4.0
Assignee: Jason Guiditta
QA Contact: Udi Kalifon
URL:
Whiteboard:
Depends On: 1082187
Blocks: 1040649
TreeView+ depends on / blocked
 
Reported: 2014-04-08 21:52 UTC by Steve Reichard
Modified: 2022-07-09 06:41 UTC (History)
12 users (show)

Fixed In Version: openstack-foreman-installer-1.0.6-1.el6ost
Doc Type: Bug Fix
Doc Text:
Clone Of: 1082187
Environment:
Last Closed: 2014-06-13 13:47:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-16443 0 None None None 2022-07-09 06:41:27 UTC
Red Hat Product Errata RHSA-2014:0517 0 normal SHIPPED_LIVE Moderate: openstack-foreman-installer security, bug fix, and enhancement update 2014-05-30 00:26:29 UTC

Description Steve Reichard 2014-04-08 21:52:07 UTC
Dell testing of A3 has run into this and it is a regression of their A2 testing.






+++ This bug was initially created as a clone of Bug #1082187 +++

Description of problem:
After icehouse-3 foreman install, the default role in keystone gets created as _member_ but horizon's local_settings has this config OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"

These two differences, prevent quite a few things like quota modification, user editing etc. Setting OPENSTACK_KEYSTONE_DEFAULT_ROLE to _member_ and `service httpd restart` fixes the issue.

Version-Release number of selected component (if applicable):
icehouse-3

How reproducible:
Always

Steps to Reproduce:
1. Deploy Controller (Neutron) hostgroup using foreman
2. Login to Horizon and attempt to modify admin quota

Actual results:
Horizon will error 


Expected results:
The quota should be modified

Additional info:

Comment 1 Jason Guiditta 2014-04-08 22:10:45 UTC
I just took a quick look at the openstack-puppet-modules, and the defaults in fact do not match between keystone/roles/admin.pp and horizon/init.pp.  I think we should be able to fix this by amending our horizon config in controller_common.pp to have:
  keystone_default_role => '_member_',

which would match keystone.

Comment 2 arkady kanevsky 2014-04-08 22:42:01 UTC
Is neutron required to reproduce this issue or it also happening for Nova networking.

Comment 3 Jason Guiditta 2014-04-09 13:33:37 UTC
The keystone configuration should be consistent between both nova networking and neutron controllers, as it is specified in one place for both.  If you care to change it on your own setup to test before the next release with the fix, you can simply edit /usr/share/openstack-foreman-installer/puppet/modules/quickstack/manifests/controller_common.pp.  The change should be roughly on line 288, which is this block:
https://github.com/redhat-openstack/astapor/blob/openstack-foreman-installer-1.0.4/puppet/modules/quickstack/manifests/controller_common.pp#L288

Simply add anywhere in that block:
keystone_default_role => '_member_',

And that should fix your setup on next agent run.

Comment 4 Jason Guiditta 2014-04-09 13:58:29 UTC
Patch posted: https://github.com/redhat-openstack/astapor/pull/157

Comment 5 Jason Guiditta 2014-04-10 19:45:34 UTC
Above patch was already merged, but some concern has been expressed that is we set horizon to have _member_ to match the new keystone puppet, and the user tries to edit a previously created member of type 'Member', there could be issues.  Full fix that will not break existing installations requires more research and probably another patch.  The existing patch should be fine for new installations though.

Comment 8 Udi Kalifon 2014-04-24 07:18:01 UTC
This is not fixed for 4.0 A4. The keystone role is still "_member_" and the dashboard's local_settings still states OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"
as always. 

openstack-puppet-modules-2013.2-9.el6ost.noarch

Comment 9 Nir Magnezi 2014-04-24 08:08:46 UTC
temporary workaround:

1. sed -i 's/^OPENSTACK_KEYSTONE_DEFAULT_ROLE =.*/OPENSTACK_KEYSTONE_DEFAULT_ROLE ="_member_"/g' /etc/openstack-dashboard/local_settings
2. service httpd restart

Comment 10 Jason Guiditta 2014-04-28 18:01:55 UTC
Udi, what version of foreman are you testing?  the openstack-puppet-modules version is correct for A4, but has not changes related to this that I know of.  We set the _horizon_ default role to be _member_ now in both standalone controllers and HA, with the output landing in /etc/openstack-dashboard/local_settings, which will look like this:

OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"

I just verified this on a fresh setup we have using foreman-openstack-installer rpm version openstack-foreman-installer-1.0.6-1.el6ost.  There is currently no setting on the keystone-puppet side to allow us to change that, so this is the best we can do for this timeframe.  Further flexibility would be needed in opensatck-puppet-modules/keystone to allow us to configure that as well.

Comment 11 Udi Kalifon 2014-04-29 12:14:36 UTC
Verified in Havana A4 with a foreman install. Will open a separate bug on the packstack issue.

Comment 14 errata-xmlrpc 2014-05-29 20:32:08 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-2014-0517.html

Comment 15 Chris Roberts 2014-06-12 23:08:19 UTC
I have just tested RHOS 5 packstack and the issue still exists, repopening the bug.

Comment 16 Ilkka Tengvall 2014-06-13 09:53:27 UTC
happens in RDO icehouse packages as well

Comment 17 Ilkka Tengvall 2014-06-13 10:03:37 UTC
openstack-dashboard-2014.1-1.el6.noarch

Comment 18 Ilkka Tengvall 2014-06-13 10:04:28 UTC
openstack-packstack-puppet-2014.1.1-0.12.dev1068.el6.noarch

Comment 19 Jason Guiditta 2014-06-13 13:47:56 UTC
This bug it not for packstack, it is for openstack-foreman-installer.  Udi mentioned above that there was a separate bug created for packstack.  This one is verified.

Comment 20 Ilkka Tengvall 2014-06-18 13:05:23 UTC
I'm wondering why for foreman, since we don't use foreman at all and it happens while using packstack from rdo?


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