[Openstack] devstack installation failing

Dolph Mathews dolph.mathews at gmail.com
Thu May 24 15:18:29 UTC 2012


keystoneclient is looking for enough arguments for it to either fully
authenticate or bypass authentication.

To fully authenticate:
keystone --os_username=admin --os_password=secret
--os_tenant_name=project-x --os_auth_url=http://keystone:5000/v2.0/tenant-list

To bypass authentication (i.e. you already have a token & endpoint):
keystone --token=94eabe5d --endpoint=http://keystone:35357/v2.0/tenant-list

As shown in the error messages you're seeing, you can also set all these
variables in your environment so you don't have to specify them for each
keystoneclient command.

-Dolph

On Thu, May 24, 2012 at 9:17 AM, Salman Malik <salmanmk at live.com> wrote:

>  Thanks guys. Here is the output of the curl command:
>
> {"error": {"message": "Invalid tenant", "code": 401, "title": "Not
> Authorized"}}
>
> Seems like there is no such tenant in keystone database. I tried doing
> keystone tenant-list but it keeps on asking for one extra argument each
> time (i.e after keystone tenant-list, I tried "keystone --os_username admin
> tenant-list" and "keystone --os_username --os_password tenant-list" ).
> Anyway, what could be th cause of keystone's database problems?
>
>
>
> ------------------------------
> Date: Thu, 24 May 2012 00:40:19 -0500
> Subject: Re: [Openstack] devstack installation failing
> From: dolph.mathews at gmail.com
> To: Mandar.Vaze at nttdata.com
> CC: salmanmk at live.com; openstack at lists.launchpad.net
>
>
> The output to the curl command below should definitely point you in the
> right direction -- devstack is expecting keystone to return an
> authentication response there, but it's getting something else instead.
> Feel free to paste the results to the list.
>
> -Dolph
>
> On Wed, May 23, 2012 at 11:47 PM, Vaze, Mandar <Mandar.Vaze at nttdata.com>wrote:
>
>  Last time when I ran into this error, I had updated (git pull) only
> nova, but forgot to update keystone.****
>
> Once I updated (git pull) all the other projects, including keystone, the
> error went away.****
>
> ** **
>
> Few things you can use for troubleshooting :****
>
> ** **
> **1.       **Run this command from terminal – See if the outpur gives any
> clue : “curl -s -d '{"auth":{"passwordCredentials": {"username": "admin",
> "password": "nova"}, "tenantName": "admin"}}' -H 'Content-type:
> application/json' http://10.0.3.15:5000/v2.0/tokens”****
> **2.       **Check the keystone database, see if user admin and tenant
> admin are created OK****
>
> ** **
>
> -Mandar****
>
> ** **
>
> *From:* openstack-bounces+mandar.vaze=nttdata.com at lists.launchpad.net[mailto:
> openstack-bounces+mandar.vaze=nttdata.com at lists.launchpad.net] *On Behalf
> Of *Salman Malik
> *Sent:* Thursday, May 24, 2012 9:48 AM
> *To:* openstack at lists.launchpad.net
> *Subject:* [Openstack] devstack installation failing****
>
> ** **
>
> Hi All,
>
> While installing devstack, installation is failing with the error :
> ++ python -c 'import sys; import json; tok = json.loads(sys.stdin.read());
> print tok['\''access'\'']['\''token'\'']['\''id'\''];'
> ++ curl -s -d '{"auth":{"passwordCredentials": {"username": "admin",
> "password": "nova"}, "tenantName": "admin"}}' -H 'Content-type:
> application/json' http://10.0.3.15:5000/v2.0/tokens
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> KeyError: 'access'
>
> With some searching I know this has something to do with the keystone but
> I have no clue how to resolve this one.
> Thanks for your help.
>
> Salman****
>
> ______________________________________________________________________
> Disclaimer:This email and any attachments are sent in strictest confidence
> for the sole use of the addressee and may contain legally privileged,
> confidential, and proprietary data. If you are not the intended recipient,
> please advise the sender by replying promptly to this email and then delete
> and destroy this email and any attachments without any further use, copying
> or forwarding
>
> _______________________________________________
> 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/20120524/7717e717/attachment.html>


More information about the Openstack mailing list