stackrc (<a href="https://github.com/openstack-dev/devstack/blob/master/stackrc">https://github.com/openstack-dev/devstack/blob/master/stackrc</a>) should specify:<div><br></div><div><pre style="margin-top:0px;margin-bottom:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;font-family:'Bitstream Vera Sans Mono',Courier,monospace;font-size:12px;line-height:1.4;color:rgb(51,51,51);background-color:rgb(255,255,255)">
<div class="line" id="LC17" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:1em"># unified auth system (manages accounts/tokens)</div>
<div class="line" id="LC18" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:1em">KEYSTONE_REPO=<a href="https://github.com/openstack/keystone.git">https://github.com/openstack/keystone.git</a></div>
<div class="line" id="LC19" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:1em">KEYSTONE_BRANCH=master</div></pre><div><br></div>
<div>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`.</div><div><br></div><div>-Dolph</div><div><br><div class="gmail_quote">On Fri, Feb 10, 2012 at 2:05 PM, Joe Smithian <span dir="ltr"><<a href="mailto:joe.smithian@gmail.com">joe.smithian@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Dolph,<br>
<br>
Thanks for your comments.  Solution 2 seems to be easier, but I am new<br>
to openstack and not sure how to specify new version of keystone in<br>
stackrc. Could you please explain it?<br>
<br>
<br>
Regards<br>
<span class="HOEnZb"><font color="#888888"><br>
Joe<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Fri, Feb 10, 2012 at 12:50 PM, Dolph Mathews <<a href="mailto:dolph.mathews@gmail.com">dolph.mathews@gmail.com</a>> wrote:<br>
> My fault! see <a href="https://bugs.launchpad.net/devstack/+bug/925718" target="_blank">https://bugs.launchpad.net/devstack/+bug/925718</a><br>
><br>
> Keystone standardized it's config file to use underscores at some point<br>
> during essex, and started throwing warnings if you continued to use hyphens.<br>
> I patched devstack to produce a config file matching the current version of<br>
> keystone.<br>
><br>
> However, the new config file format (underscores) isn't compatible with<br>
> older versions of keystone (by default, current devstack stackrc specified<br>
> the master branch of keystone, so there's no issues out of the box).<br>
><br>
> Two solutions:<br>
><br>
> 1) Revert my commit to devstack and let keystone throw warnings about the<br>
> deprecated config format if we want devstack to work with older versions of<br>
> keystone.<br>
> 2) Specify a newer version of keystone in your stackrc / localrc<br>
><br>
> -Dolph<br>
><br>
> 2012/2/10 Joe Smithian <<a href="mailto:joe.smithian@gmail.com">joe.smithian@gmail.com</a>><br>
>><br>
>> Hi All,<br>
>><br>
>> I had devstack installed on mu Ubuntu 11.10 box, I updated it using<br>
>> "git clone" today and then ran "stack.sh". It failed with the<br>
>> following messages:<br>
>><br>
>><br>
>> + KEYSTONE_DATA=/opt/stack/keystone/bin/keystone_data.sh<br>
>> + cp /home/localadmin/devstack/files/keystone_data.sh<br>
>> /opt/stack/keystone/bin/keystone_data.sh<br>
>> + sudo sed -e '<br>
>>        s,%KEYSTONE_AUTH_HOST%,172.24.4.226,g;<br>
>>        s,%KEYSTONE_AUTH_PORT%,35357,g;<br>
>>        s,%KEYSTONE_AUTH_PROTOCOL%,http,g;<br>
>>        s,%KEYSTONE_SERVICE_HOST%,172.24.4.226,g;<br>
>>        s,%KEYSTONE_SERVICE_PORT%,5000,g;<br>
>>        s,%KEYSTONE_SERVICE_PROTOCOL%,http,g;<br>
>>        s,%SERVICE_HOST%,172.24.4.226,g;<br>
>>        s,%SERVICE_TOKEN%,safenet,g;<br>
>>        s,%ADMIN_PASSWORD%,safenet,g;<br>
>>    ' -i /opt/stack/keystone/bin/keystone_data.sh<br>
>> + /opt/stack/keystone/bin/keystone-manage sync_database<br>
>> ERROR: 'keystone-admin-role'<br>
>> Traceback (most recent call last):<br>
>>  File "/opt/stack/keystone/bin/keystone-manage", line 16, in <module><br>
>>    keystone.manage.main()<br>
>>  File "/opt/stack/keystone/keystone/manage/__init__.py", line 284, in main<br>
>>    raise exc<br>
>> KeyError: 'keystone-admin-role'<br>
>> ++ failed<br>
>> ++ local r=1<br>
>> ++ set +o xtrace<br>
>><br>
>><br>
>> Is there a bug in latest version of devstack?<br>
>><br>
>> I'd appreciate your help to fix it.<br>
>><br>
>> Thanks<br>
>><br>
>> Joe<br>
>><br>
>> _______________________________________________<br>
>> Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
>> Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
>> Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
>> More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
><br>
><br>
</div></div></blockquote></div><br></div></div>