Re: [Openstack] [Devstack]Keystone authentication problem when installing

2012-06-28 Thread Ke Wu
Thanks Mandar,

Yet could you please explain it in detail? I am pretty new to devstack and 
didn't see the relationship between the bugs you mentioned and the error I 
encountered.

Appreciate it!

-K

On Jun 27, 2012, at 9:27 PM, Vaze, Mandar wrote:

 May be related to https://bugs.launchpad.net/keystone/+bug/995976
 Check last comment at https://bugs.launchpad.net/keystone/+bug/995811
  
 -Mandar
  
 From: openstack-bounces+mandar.vaze=nttdata@lists.launchpad.net 
 [mailto:openstack-bounces+mandar.vaze=nttdata@lists.launchpad.net] On 
 Behalf Of Ke Wu
 Sent: Thursday, June 28, 2012 7:01 AM
 To: openstack mail list
 Subject: [Openstack] [Devstack]Keystone authentication problem when installing
  
 Hi,
  
 I can't find a mailing list of devstack so I choose to ask here, hope this 
 doesn't spam you guys.
  
 I was trying to build Devstack on my VM (Ubuntu 12.04 server) to start a new 
 environment for Horizon development. 
  
 Everything went well until it hit the point to start Keystone service, the 
 error msg was:
  
 Expecting authentication method via 
   either a service token, --token or env[SERVICE_TOKEN], 
   or credentials, --os_username or env[OS_USERNAME].
 + NOVA_USER_ID=
 ++ get_field 1
 ++ read data
 ++ grep ' service '
 ++ keystone tenant-list
 Expecting authentication method via 
   either a service token, --token or env[SERVICE_TOKEN], 
   or credentials, --os_username or env[OS_USERNAME].
 + NOVA_TENANT_ID=
 ++ keystone ec2-credentials-create --user --tenant_id
 usage: keystone ec2-credentials-create [--user_id user-id]
[--tenant_id tenant-id]
 keystone ec2-credentials-create: error: argument --user_id: expected one 
 argument
 + CREDS=
 ++ failed
 ++ local r=2
 ++ set +o xtrace
  
 Anybody has an idea why this happened?
  
 Thanks!
  
 -Ke Wu
 
 __
 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


Re: [Openstack] [Devstack]Keystone authentication problem when installing

2012-06-28 Thread Dean Troyer
On Wed, Jun 27, 2012 at 9:34 PM, Ke Wu ke...@ibeca.me wrote:
 Here is my localrc:

 ENABLED_SERVICES=$ENABLED_SERVICES,swift
 MYSQL_PASSWORD=password
 ADMIN_PASSWORD= password
 RABBIT_PASSWORD= password
 SERVICE_TOKEN= password
 SWIFT_HASH= password

Do you have spaces following the '=' as shown above?  If so that will
put a space as the first character of the value.

 HOST_IP=10.0.0.0

If you set HOST_IP it should be set to the IP address of your primary
interface, not a network address.

Could you show us the lines _before_ the error log you posted?
Specifically, I'd like to see the group of variable assignments
immediately before keystone_data.sh is called.

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]Keystone authentication problem when installing

2012-06-28 Thread Gabriel Hurley
I'm seeing this error too. It appears that the environment variables 
(SERVICE_TOKEN, etc.) aren't getting exported, causing keystoneclient to not 
find them in the environment and triggering that error.

What I can't figure out is what changed in the last couple days to make this 
suddenly stop working. :-/ I'm still looking into it on my end, but any other 
ideas would be helpful.


-  Gabriel

From: openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net 
[mailto:openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net] On 
Behalf Of Ke Wu
Sent: Thursday, June 28, 2012 10:28 AM
To: Vaze, Mandar
Cc: openstack mail list
Subject: Re: [Openstack] [Devstack]Keystone authentication problem when 
installing

Thanks Mandar,

Yet could you please explain it in detail? I am pretty new to devstack and 
didn't see the relationship between the bugs you mentioned and the error I 
encountered.

Appreciate it!

-K

On Jun 27, 2012, at 9:27 PM, Vaze, Mandar wrote:


May be related to https://bugs.launchpad.net/keystone/+bug/995976
Check last comment at https://bugs.launchpad.net/keystone/+bug/995811

-Mandar

From: 
openstack-bounces+mandar.vaze=nttdata@lists.launchpad.netmailto:openstack-bounces+mandar.vaze=nttdata@lists.launchpad.net
 
[mailto:openstack-bounces+mandar.vaze=nttdata@lists.launchpad.netmailto:nttdata@lists.launchpad.net]
 On Behalf Of Ke Wu
Sent: Thursday, June 28, 2012 7:01 AM
To: openstack mail list
Subject: [Openstack] [Devstack]Keystone authentication problem when installing

Hi,

I can't find a mailing list of devstack so I choose to ask here, hope this 
doesn't spam you guys.

I was trying to build Devstack on my VM (Ubuntu 12.04 server) to start a new 
environment for Horizon development.

Everything went well until it hit the point to start Keystone service, the 
error msg was:

Expecting authentication method via
  either a service token, --token or env[SERVICE_TOKEN],
  or credentials, --os_username or env[OS_USERNAME].
+ NOVA_USER_ID=
++ get_field 1
++ read data
++ grep ' service '
++ keystone tenant-list
Expecting authentication method via
  either a service token, --token or env[SERVICE_TOKEN],
  or credentials, --os_username or env[OS_USERNAME].
+ NOVA_TENANT_ID=
++ keystone ec2-credentials-create --user --tenant_id
usage: keystone ec2-credentials-create [--user_id user-id]
   [--tenant_id tenant-id]
keystone ec2-credentials-create: error: argument --user_id: expected one 
argument
+ CREDS=
++ failed
++ local r=2
++ set +o xtrace

Anybody has an idea why this happened?

Thanks!

-Ke Wu

__
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


Re: [Openstack] [Devstack]Keystone authentication problem when installing

2012-06-28 Thread Gabriel Hurley
I've found where the problem stems from. It snuck in with the keystone sql 
backend change:

https://github.com/openstack-dev/devstack/commit/3f7c06f5aaff5d3e2ec28931e0fe4ab8376208e6#L1L1944

Previously the arguments to the keystone commands were being passed in 
directly, now they're not, hence the failure.

As per the usual, Jenkins doesn't catch this bug because it doesn't test with 
swift enabled. That's twice that swift-enabled bugs have snuck into devstack 
lately. :-/


-  Gabriel

From: openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net 
[mailto:openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net] On 
Behalf Of Ke Wu
Sent: Wednesday, June 27, 2012 7:35 PM
To: Adam Young
Cc: openstack@lists.launchpad.net
Subject: Re: [Openstack] [Devstack]Keystone authentication problem when 
installing

Here is my localrc:

ENABLED_SERVICES=$ENABLED_SERVICES,swift
MYSQL_PASSWORD=password
ADMIN_PASSWORD= password
RABBIT_PASSWORD= password
SERVICE_TOKEN= password
SWIFT_HASH= password
HOST_IP=10.0.0.0
RECLONE=yes
SERVICE_PASSWORD= password

By what distribution you mean? I clone the devstack code project from github.

Thanks,

-K

On Jun 27, 2012, at 6:44 PM, Adam Young wrote:


Can you post your localrc file?  YOu can blank out the passwords.

Also,  what distribution?


On 06/27/2012 09:30 PM, Ke Wu wrote:
Hi,

I can't find a mailing list of devstack so I choose to ask here, hope this 
doesn't spam you guys.

I was trying to build Devstack on my VM (Ubuntu 12.04 server) to start a new 
environment for Horizon development.

Everything went well until it hit the point to start Keystone service, the 
error msg was:

Expecting authentication method via
  either a service token, --token or env[SERVICE_TOKEN],
  or credentials, --os_username or env[OS_USERNAME].
+ NOVA_USER_ID=
++ get_field 1
++ read data
++ grep ' service '
++ keystone tenant-list
Expecting authentication method via
  either a service token, --token or env[SERVICE_TOKEN],
  or credentials, --os_username or env[OS_USERNAME].
+ NOVA_TENANT_ID=
++ keystone ec2-credentials-create --user --tenant_id
usage: keystone ec2-credentials-create [--user_id user-id]
   [--tenant_id tenant-id]
keystone ec2-credentials-create: error: argument --user_id: expected one 
argument
+ CREDS=
++ failed
++ local r=2
++ set +o xtrace

Anybody has an idea why this happened?

Thanks!

-Ke Wu




___

Mailing list: https://launchpad.net/~openstack

Post to : 
openstack@lists.launchpad.netmailto: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.netmailto: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]Keystone authentication problem when installing

2012-06-28 Thread Gabriel Hurley
This turned out to be a legitimate bug in devstack.

bug report:

https://bugs.launchpad.net/devstack/+bug/1019056

and review:

https://review.openstack.org/#/c/9143/

All the best,

- Gabriel

 -Original Message-
 From: openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net
 [mailto:openstack-
 bounces+gabriel.hurley=nebula@lists.launchpad.net] On Behalf Of
 Dean Troyer
 Sent: Thursday, June 28, 2012 12:45 PM
 To: Ke Wu
 Cc: openstack@lists.launchpad.net
 Subject: Re: [Openstack] [Devstack]Keystone authentication problem when
 installing
 
 On Wed, Jun 27, 2012 at 9:34 PM, Ke Wu ke...@ibeca.me wrote:
  Here is my localrc:
 
  ENABLED_SERVICES=$ENABLED_SERVICES,swift
  MYSQL_PASSWORD=password
  ADMIN_PASSWORD= password
  RABBIT_PASSWORD= password
  SERVICE_TOKEN= password
  SWIFT_HASH= password
 
 Do you have spaces following the '=' as shown above?  If so that will put a
 space as the first character of the value.
 
  HOST_IP=10.0.0.0
 
 If you set HOST_IP it should be set to the IP address of your primary
 interface, not a network address.
 
 Could you show us the lines _before_ the error log you posted?
 Specifically, I'd like to see the group of variable assignments immediately
 before keystone_data.sh is called.
 
 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



___
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]Keystone authentication problem when installing

2012-06-28 Thread Vaze, Mandar
In my setup, I have SERVICE_TOKEN defined in localrc, which is used by stack.sh 
(via read_password function) to set the environment variable, eventually to be 
used by keystone_data.sh  (But probably you know all that) and I don't see the 
error. (But I somehow still have prettytable 0.5 - so my guess given below - 
which may be incorrect and/or confusing - sorry about that)

Re What I can't figure out is what changed in the last couple days - I am not 
sure :(

-Mandar

From: Gabriel Hurley [mailto:gabriel.hur...@nebula.com]
Sent: Friday, June 29, 2012 2:02 AM
To: Ke Wu; Vaze, Mandar
Cc: openstack mail list
Subject: RE: [Openstack] [Devstack]Keystone authentication problem when 
installing

I'm seeing this error too. It appears that the environment variables 
(SERVICE_TOKEN, etc.) aren't getting exported, causing keystoneclient to not 
find them in the environment and triggering that error.

What I can't figure out is what changed in the last couple days to make this 
suddenly stop working. :-/ I'm still looking into it on my end, but any other 
ideas would be helpful.


-  Gabriel

From: 
openstack-bounces+gabriel.hurley=nebula@lists.launchpad.netmailto:openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net
 
[mailto:openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net]mailto:[mailto:openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net]
 On Behalf Of Ke Wu
Sent: Thursday, June 28, 2012 10:28 AM
To: Vaze, Mandar
Cc: openstack mail list
Subject: Re: [Openstack] [Devstack]Keystone authentication problem when 
installing

Thanks Mandar,

Yet could you please explain it in detail? I am pretty new to devstack and 
didn't see the relationship between the bugs you mentioned and the error I 
encountered.

Appreciate it!

-K

On Jun 27, 2012, at 9:27 PM, Vaze, Mandar wrote:

May be related to https://bugs.launchpad.net/keystone/+bug/995976
Check last comment at https://bugs.launchpad.net/keystone/+bug/995811

-Mandar

From: 
openstack-bounces+mandar.vaze=nttdata@lists.launchpad.netmailto:openstack-bounces+mandar.vaze=nttdata@lists.launchpad.net
 
[mailto:openstack-bounces+mandar.vaze=nttdata@lists.launchpad.netmailto:nttdata@lists.launchpad.net]
 On Behalf Of Ke Wu
Sent: Thursday, June 28, 2012 7:01 AM
To: openstack mail list
Subject: [Openstack] [Devstack]Keystone authentication problem when installing

Hi,

I can't find a mailing list of devstack so I choose to ask here, hope this 
doesn't spam you guys.

I was trying to build Devstack on my VM (Ubuntu 12.04 server) to start a new 
environment for Horizon development.

Everything went well until it hit the point to start Keystone service, the 
error msg was:

Expecting authentication method via
  either a service token, --token or env[SERVICE_TOKEN],
  or credentials, --os_username or env[OS_USERNAME].
+ NOVA_USER_ID=
++ get_field 1
++ read data
++ grep ' service '
++ keystone tenant-list
Expecting authentication method via
  either a service token, --token or env[SERVICE_TOKEN],
  or credentials, --os_username or env[OS_USERNAME].
+ NOVA_TENANT_ID=
++ keystone ec2-credentials-create --user --tenant_id
usage: keystone ec2-credentials-create [--user_id user-id]
   [--tenant_id tenant-id]
keystone ec2-credentials-create: error: argument --user_id: expected one 
argument
+ CREDS=
++ failed
++ local r=2
++ set +o xtrace

Anybody has an idea why this happened?

Thanks!

-Ke Wu

__
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


__
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


Re: [Openstack] [Devstack]Keystone authentication problem when installing

2012-06-27 Thread Adam Young

Can you post your localrc file?  YOu can blank out the passwords.

Also,  what distribution?


On 06/27/2012 09:30 PM, Ke Wu wrote:

Hi,

I can't find a mailing list of devstack so I choose to ask here, hope 
this doesn't spam you guys.


I was trying to build Devstack on my VM (Ubuntu 12.04 server) to start 
a new environment for Horizon development.


Everything went well until it hit the point to start Keystone service, 
the error msg was:


Expecting authentication method via
either a service token, --token or env[SERVICE_TOKEN],
  or credentials, --os_username or env[OS_USERNAME].
+ NOVA_USER_ID=
++ get_field 1
++ read data
++ grep ' service '
++ keystone tenant-list
Expecting authentication method via
either a service token, --token or env[SERVICE_TOKEN],
  or credentials, --os_username or env[OS_USERNAME].
+ NOVA_TENANT_ID=
++ keystone ec2-credentials-create --user --tenant_id
usage: keystone ec2-credentials-create [--user_id user-id]
   [--tenant_id tenant-id]
keystone ec2-credentials-create: error: argument --user_id: expected 
one argument

+ CREDS=
++ failed
++ local r=2
++ set +o xtrace

Anybody has an idea why this happened?

Thanks!

-Ke Wu


___
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]Keystone authentication problem when installing

2012-06-27 Thread Ke Wu
Here is my localrc:

ENABLED_SERVICES=$ENABLED_SERVICES,swift
MYSQL_PASSWORD=password
ADMIN_PASSWORD= password 
RABBIT_PASSWORD= password
SERVICE_TOKEN= password
SWIFT_HASH= password
HOST_IP=10.0.0.0
RECLONE=yes
SERVICE_PASSWORD= password

By what distribution you mean? I clone the devstack code project from github.

Thanks,

-K

On Jun 27, 2012, at 6:44 PM, Adam Young wrote:

 Can you post your localrc file?  YOu can blank out the passwords.
 
 Also,  what distribution?
 
 
 On 06/27/2012 09:30 PM, Ke Wu wrote:
 Hi,
 
 I can't find a mailing list of devstack so I choose to ask here, hope this 
 doesn't spam you guys.
 
 I was trying to build Devstack on my VM (Ubuntu 12.04 server) to start a new 
 environment for Horizon development. 
 
 Everything went well until it hit the point to start Keystone service, the 
 error msg was:
 
 Expecting authentication method via 
   either a service token, --token or env[SERVICE_TOKEN], 
   or credentials, --os_username or env[OS_USERNAME].
 + NOVA_USER_ID=
 ++ get_field 1
 ++ read data
 ++ grep ' service '
 ++ keystone tenant-list
 Expecting authentication method via 
   either a service token, --token or env[SERVICE_TOKEN], 
   or credentials, --os_username or env[OS_USERNAME].
 + NOVA_TENANT_ID=
 ++ keystone ec2-credentials-create --user --tenant_id
 usage: keystone ec2-credentials-create [--user_id user-id]
[--tenant_id tenant-id]
 keystone ec2-credentials-create: error: argument --user_id: expected one 
 argument
 + CREDS=
 ++ failed
 ++ local r=2
 ++ set +o xtrace
 
 Anybody has an idea why this happened?
 
 Thanks!
 
 -Ke Wu
 
 
 ___
 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

___
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]Keystone authentication problem when installing

2012-06-27 Thread Vaze, Mandar
May be related to https://bugs.launchpad.net/keystone/+bug/995976
Check last comment at https://bugs.launchpad.net/keystone/+bug/995811

-Mandar

From: openstack-bounces+mandar.vaze=nttdata@lists.launchpad.net 
[mailto:openstack-bounces+mandar.vaze=nttdata@lists.launchpad.net] On 
Behalf Of Ke Wu
Sent: Thursday, June 28, 2012 7:01 AM
To: openstack mail list
Subject: [Openstack] [Devstack]Keystone authentication problem when installing

Hi,

I can't find a mailing list of devstack so I choose to ask here, hope this 
doesn't spam you guys.

I was trying to build Devstack on my VM (Ubuntu 12.04 server) to start a new 
environment for Horizon development.

Everything went well until it hit the point to start Keystone service, the 
error msg was:

Expecting authentication method via
  either a service token, --token or env[SERVICE_TOKEN],
  or credentials, --os_username or env[OS_USERNAME].
+ NOVA_USER_ID=
++ get_field 1
++ read data
++ grep ' service '
++ keystone tenant-list
Expecting authentication method via
  either a service token, --token or env[SERVICE_TOKEN],
  or credentials, --os_username or env[OS_USERNAME].
+ NOVA_TENANT_ID=
++ keystone ec2-credentials-create --user --tenant_id
usage: keystone ec2-credentials-create [--user_id user-id]
   [--tenant_id tenant-id]
keystone ec2-credentials-create: error: argument --user_id: expected one 
argument
+ CREDS=
++ failed
++ local r=2
++ set +o xtrace

Anybody has an idea why this happened?

Thanks!

-Ke Wu

__
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