[Openstack] Reinstalling devstack failed: ERROR: 'keystone-admin-role'

Dolph Mathews dolph.mathews at gmail.com
Fri Feb 10 20:14:38 UTC 2012


stackrc (https://github.com/openstack-dev/devstack/blob/master/stackrc) should
specify:

# unified auth system (manages accounts/tokens)
KEYSTONE_REPO=https://github.com/openstack/keystone.git
KEYSTONE_BRANCH=master


If your stackrc differs, you can either update it or copy the two lines
above into a new file, `localrc`, to override config from `stackrc`.

-Dolph

On Fri, Feb 10, 2012 at 2:05 PM, Joe Smithian <joe.smithian at gmail.com>wrote:

> Hi Dolph,
>
> Thanks for your comments.  Solution 2 seems to be easier, but I am new
> to openstack and not sure how to specify new version of keystone in
> stackrc. Could you please explain it?
>
>
> Regards
>
> Joe
>
>
> On Fri, Feb 10, 2012 at 12:50 PM, Dolph Mathews <dolph.mathews at gmail.com>
> wrote:
> > My fault! see https://bugs.launchpad.net/devstack/+bug/925718
> >
> > Keystone standardized it's config file to use underscores at some point
> > during essex, and started throwing warnings if you continued to use
> hyphens.
> > I patched devstack to produce a config file matching the current version
> of
> > keystone.
> >
> > However, the new config file format (underscores) isn't compatible with
> > older versions of keystone (by default, current devstack stackrc
> specified
> > the master branch of keystone, so there's no issues out of the box).
> >
> > Two solutions:
> >
> > 1) Revert my commit to devstack and let keystone throw warnings about the
> > deprecated config format if we want devstack to work with older versions
> of
> > keystone.
> > 2) Specify a newer version of keystone in your stackrc / localrc
> >
> > -Dolph
> >
> > 2012/2/10 Joe Smithian <joe.smithian at gmail.com>
> >>
> >> Hi All,
> >>
> >> I had devstack installed on mu Ubuntu 11.10 box, I updated it using
> >> "git clone" today and then ran "stack.sh". It failed with the
> >> following messages:
> >>
> >>
> >> + KEYSTONE_DATA=/opt/stack/keystone/bin/keystone_data.sh
> >> + cp /home/localadmin/devstack/files/keystone_data.sh
> >> /opt/stack/keystone/bin/keystone_data.sh
> >> + sudo sed -e '
> >>        s,%KEYSTONE_AUTH_HOST%,172.24.4.226,g;
> >>        s,%KEYSTONE_AUTH_PORT%,35357,g;
> >>        s,%KEYSTONE_AUTH_PROTOCOL%,http,g;
> >>        s,%KEYSTONE_SERVICE_HOST%,172.24.4.226,g;
> >>        s,%KEYSTONE_SERVICE_PORT%,5000,g;
> >>        s,%KEYSTONE_SERVICE_PROTOCOL%,http,g;
> >>        s,%SERVICE_HOST%,172.24.4.226,g;
> >>        s,%SERVICE_TOKEN%,safenet,g;
> >>        s,%ADMIN_PASSWORD%,safenet,g;
> >>    ' -i /opt/stack/keystone/bin/keystone_data.sh
> >> + /opt/stack/keystone/bin/keystone-manage sync_database
> >> ERROR: 'keystone-admin-role'
> >> Traceback (most recent call last):
> >>  File "/opt/stack/keystone/bin/keystone-manage", line 16, in <module>
> >>    keystone.manage.main()
> >>  File "/opt/stack/keystone/keystone/manage/__init__.py", line 284, in
> main
> >>    raise exc
> >> KeyError: 'keystone-admin-role'
> >> ++ failed
> >> ++ local r=1
> >> ++ set +o xtrace
> >>
> >>
> >> Is there a bug in latest version of devstack?
> >>
> >> I'd appreciate your help to fix it.
> >>
> >> Thanks
> >>
> >> Joe
> >>
> >> _______________________________________________
> >> Mailing list: https://launchpad.net/~openstack
> >> Post to     : openstack at lists.launchpad.net
> >> Unsubscribe : https://launchpad.net/~openstack
> >> More help   : https://help.launchpad.net/ListHelp
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120210/a14b1291/attachment.html>


More information about the Openstack mailing list