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


[Openstack] [Devstack]Keystone authentication problem when installing

2012-06-27 Thread Ke Wu
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


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] how to achieve i18n in horizon

2012-06-13 Thread Ke Wu
Check if there is a .mo file accordingly to the .po file in 
horizon/local/zh_CN/LC_MESSAGES/.

If not you may need to run compilemessages command to compile the message file.

-K
On Jun 13, 2012, at 3:47 AM, yuanke wei wrote:

 hi,
 
 the problem is as follows:
 
 I changed some translation in 
 horizon/horizon/locale/zh_CN/LC_MESSAGES/django.po, 
 
 and then compiled with django-admin compilemessages -l zh_CN. the django.mo 
 file was successfully generated.
 
 but as I refresh the horizon web page, it seems nothing have changed with the 
 text.
 
 
 
 can anyone show me what is the problem and how to achieve i18n in horizon.
 
 
 thanks!
 
 
 
 ___
 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] [Horizon][Swift]Cloudfile API

2012-06-12 Thread Ke Wu
Thanks for the help!On Jun 12, 2012, at 2:15 AM, Hua ZZ Zhang wrote:Hi Wu Ke,

It seems that there is no such kind of full filter feature in Swift API. You have to implement it as a seperate component by yourself. But you can look at Glance image API to see how to implement it since Glance are using Swift to store VM images with Registry and Query features. Specifically you can refer to image-list API. Another suggestion, you need to think about indexing capability since the container will most likely contain millions of objects. If the filtering is based on the full set of objects, it is challenging for performance.

Best Regards, 




Edward Zhang(张华)
Staff Software Engineer
TravelTransportation Standards
Emerging Technology Institute(ETI)
IBM China Software Development Lab
e-mail: zhu...@cn.ibm.com
Notes ID: Hua ZZ Zhang/China/IBM
Tel: 86-10-82450483

地址:北京市海淀区东北旺西路8号 中关村软件园28号楼 环宇大厦3层 邮编:100193
Address: 3F Ring, Building 28 Zhongguancun Software Park, 8 Dongbeiwang West Road, Haidian District, Beijing, P.R.C.100193



38656177.gif
ecblank.gif




ecblank.gif


graycol.gifKe Wu ---2012-06-12 04:19:13---Hi everyone,




Ke Wu ke...@ibeca.me
Sent by: openstack-bounces+zhuadl=cn.ibm@lists.launchpad.net2012-06-12 04:18


ecblank.gif
Toecblank.gif

openstack@lists.launchpad.net


ecblank.gif
ccecblank.gif


ecblank.gif
Subjectecblank.gif

[Openstack] [Horizon][Swift]Cloudfile API




ecblank.gifecblank.gif




Hi everyone, 

I am currently working on the Horizon's Swift containers/objects dashboard. On the dashboard user could retrieve, upload and delete objects which are in a Swift container.

I tried to use Cloud File's Python API to connect to a Swift container and retrieve the objects, it all worked well. However, when I headed to implement filtering object function, I couldn't found a "Filter API" provided natively. The get_objects function of the Container object in the API does have a "prefix" parameter to allow me do some basic filter, but it's far from enough for a full functional filter. 

So what I am doing now is to retrieve a list of objects by get_objects method and filter the objects by name. This method is a bad hack, would lead to many problems such as breaking pagination, or too much resource consuming if the objects list is long.

Was I missing some APIs? Or is there any other way that I can do this? Any thoughts would be helpful.

Please kindly spare any spelling/grammar errors :)

Thanks a lot!
-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


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


[Openstack] [Horizon][Swift]Cloudfile API

2012-06-11 Thread Ke Wu
Hi everyone, 

I am currently working on the Horizon's Swift containers/objects dashboard. On 
the dashboard user could retrieve, upload and delete objects which are in a 
Swift container.

I tried to use Cloud File's Python API to connect to a Swift container and 
retrieve the objects, it all worked well. However, when I headed to implement 
filtering object function, I couldn't found a Filter API provided natively. 
The get_objects function of the Container object in the API does have a 
prefix parameter to allow me do some basic filter, but it's far from enough 
for a full functional filter. 

So what I am doing now is to retrieve a list of objects by get_objects method 
and filter the objects by name. This method is a bad hack, would lead to many 
problems such as breaking pagination, or too much resource consuming if the 
objects list is long.

Was I missing some APIs? Or is there any other way that I can do this? Any 
thoughts would be helpful.

Please kindly spare any spelling/grammar errors :)

Thanks a lot!
-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