Re: [Openstack] devstack installation failing

2012-05-25 Thread Dean Troyer
On Fri, May 25, 2012 at 1:53 AM, Vaze, Mandar  wrote:
> You can run the following command on the terminal from the directory that
> has all your Openstack projects (e.g. from /opt/stack)
>
> “cd /opt/stack ; for d in `ls -1`; do echo "updating $d"; cd $d; git pull;
> cd /opt/stack; done”

You can also put 'RECLONE=yes' in front of stack.sh on the command
line or add it to localrc to force stack.sh to update all
repositories.

RECLONE=yes ./stack.sh

dt

-- 

Dean Troyer
dtro...@gmail.com

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] devstack installation failing

2012-05-25 Thread Vaze, Mandar
Salman,

Can you confirm that ALL your projects are up-to-date ? As I mentioned in my 
original response, I got this error because my nova project was updated, and 
keystone was not.

You can run the following command on the terminal from the directory that has 
all your Openstack projects (e.g. from /opt/stack)

"cd /opt/stack ; for d in `ls -1`; do echo "updating $d"; cd $d; git pull; cd 
/opt/stack; done"

-Mandar


From: Salman Malik [mailto:salma...@live.com]
Sent: Thursday, May 24, 2012 7:47 PM
To: dolph.math...@gmail.com; Vaze, Mandar
Cc: openstack@lists.launchpad.net
Subject: RE: [Openstack] devstack installation failing

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.math...@gmail.com<mailto:dolph.math...@gmail.com>
To: mandar.v...@nttdata.com<mailto:mandar.v...@nttdata.com>
CC: salma...@live.com<mailto:salma...@live.com>; 
openstack@lists.launchpad.net<mailto:openstack@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 
mailto:mandar.v...@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@lists.launchpad.net<mailto:nttdata@lists.launchpad.net>
 
[mailto:openstack-bounces+mandar.vaze<mailto:openstack-bounces%2Bmandar.vaze>=nttdata@lists.launchpad.net<mailto:nttdata@lists.launchpad.net>]
 On Behalf Of Salman Malik
Sent: Thursday, May 24, 2012 9:48 AM
To: openstack@lists.launchpad.net<mailto:openstack@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 "", line 1, in 
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<https://launchpad.net/%7Eopenstack>
Post to : 
openstack@lists.launchpad.net<mailto:openstack@lists.launchpad.net>
Unsubscribe : 
https://launchpad.net/~openstack<https://launchpad.net/%7Eopenstack>
More help   : https://help.launchpad.net/ListHelp


__
Disclaimer:This email and any attachments are sent in strictest confidenc

Re: [Openstack] devstack installation failing

2012-05-24 Thread Salman Malik

Thanks Dolph for explaining the full command. Here is my output:

keystone --os_username=admin --os_password=nova --os_tenant_name=admin 
--os_auth_url=http://10.0.3.15:5000/v2.0/ tenant-list

No handlers could be found for logger "keystoneclient.client"
Invalid tenant (HTTP 401)

where I used:
os_username=admin (default username that I previously used to access the 
dashboard)
os_password=nova(password that I set during devstack installation and can be 
seen in localrc, that I previously used to access dashboard)
os_tenant_name=admin(same as project name ? This is one of the two default 
projects that I used to launch instances for)

I hope my credentials are correct (as explained above) but still I see Invalid 
tenant as command's output. Any ideas?
Also, it would be great if you could correct my understanding of the following 
terms: os_user=cloud user that provides IaaS to the tenants (and tenant is also 
know as project in os jargon?)

Thanks,
Salman
 

Date: Thu, 24 May 2012 10:18:29 -0500
Subject: Re: [Openstack] devstack installation failing
From: dolph.math...@gmail.com
To: salma...@live.com
CC: mandar.v...@nttdata.com; openstack@lists.launchpad.net

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  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.math...@gmail.com

To: mandar.v...@nttdata.com
CC: salma...@live.com; openstack@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  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@lists.launchpad.net 
[mailto:openstack-bounces+mandar.vaze=nttdata@lists.launchpad.net]
On Behalf Of Salman Malik

Sent: Thursday, May 24, 2012 9:48 AM

To: openstack@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 "", line 1, in 

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 strictes

Re: [Openstack] devstack installation failing

2012-05-24 Thread Dolph Mathews
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  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.math...@gmail.com
> To: mandar.v...@nttdata.com
> CC: salma...@live.com; openstack@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 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@lists.launchpad.net[mailto:
> openstack-bounces+mandar.vaze=nttdata@lists.launchpad.net] *On Behalf
> Of *Salman Malik
> *Sent:* Thursday, May 24, 2012 9:48 AM
> *To:* openstack@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 "", line 1, in 
> 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@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>
>
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] devstack installation failing

2012-05-24 Thread Salman Malik

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.math...@gmail.com
To: mandar.v...@nttdata.com
CC: salma...@live.com; openstack@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  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@lists.launchpad.net 
[mailto:openstack-bounces+mandar.vaze=nttdata@lists.launchpad.net]
On Behalf Of Salman Malik

Sent: Thursday, May 24, 2012 9:48 AM

To: openstack@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 "", line 1, in 

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@lists.launchpad.net

Unsubscribe : https://launchpad.net/~openstack

More help   : https://help.launchpad.net/ListHelp



  ___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] devstack installation failing

2012-05-23 Thread Dolph Mathews
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 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@lists.launchpad.net[mailto:
> openstack-bounces+mandar.vaze=nttdata@lists.launchpad.net] *On Behalf
> Of *Salman Malik
> *Sent:* Thursday, May 24, 2012 9:48 AM
> *To:* openstack@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 "", line 1, in 
> 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@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] devstack installation failing

2012-05-23 Thread Vaze, Mandar
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@lists.launchpad.net 
[mailto:openstack-bounces+mandar.vaze=nttdata@lists.launchpad.net] On 
Behalf Of Salman Malik
Sent: Thursday, May 24, 2012 9:48 AM
To: openstack@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 "", line 1, in 
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@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp