chmouel's profile - activity

2013-12-31 16:08:29 -0500 received badge  Enthusiast
2013-12-31 16:08:29 -0500 received badge  Enthusiast
2013-12-25 08:55:32 -0500 answered a question how to keep pipeline filters as directory in swift

tempauth is a simple auth server for testing and such, you probably want to look over swauth or keystone auth for something that is more flexible.

2013-11-29 16:42:52 -0500 answered a question ftp or ftps ind openstack swift

There is ftpcloudfs which should work well with Swift :

2013-10-03 15:15:23 -0500 answered a question Direct link to Swift objects

It's easy to do if you set your container as public containers with the help of ACL see an article here detailling the usage of ACL with swift (and keystone) :

2013-08-07 05:50:02 -0500 received badge  Nice Answer (source)
2013-07-03 04:37:55 -0500 answered a question Is it possible to use keystone both v2 and v3 api for grizzly?

yes this is the default config as long you are using /v2 for v2 API or /v3 for v3.0 API.

2013-07-03 04:35:48 -0500 commented question What causes keystone to throw UnicodeEncodeError using devstack?

This should not happen what's your localrc?

2013-06-13 02:04:36 -0500 answered a question Swift 500 Internal server error

You probably want to watch your logs first, this seems to be a user permission problems on disks.

2013-05-07 03:03:59 -0500 edited question How do I debug Nova service with eclipse and pydev

I am trying to debug nova api and my breakpoints are ignored. I have eclipse, pydev and have rub devstack to get all the services. I kill the nova service and then I got to file nova-all > debug > python run, but no luck.

I have commented out eventlet.monkey_patch(os=False) and replaced it with eventlet.monkey_patch(all=False,socket=True,time=True,os=False) and added import sys;sys.path.append(r'/home/dev/.eclipse/org.eclipse.platform_3.7.0_155965261/plugins/org.python.pydev_2.7.3.2013031601/pysrc/') for file /nova/nova/cmd/ and I have then added import pydevd;pydevd.settrace() to the function I am interested in stepping into (above the breakpoint), again no luck...

2013-04-08 04:15:30 -0500 edited question Why Glance spend a long time connecting to MySQL?

Hello ,

We're using glance 2012.1+stable~20120608-5462295-0ubuntu2.2. We got a info as 'Lost connect to MySQL server during query' and glance spend 17 minutes to wait the response. is there any solution for shortened time? The following section is error message. Thanks.

-- Error Message:

2013-04-08 10:52:19 24193 DEBUG [routes.middleware] Match dict: {'action': u'show', 'controller': <glance.common.wsgi.resource object="" at="" 0x2f5dd10="">, 'id': u'test'}

2013-04-08 11:09:57 24193 WARNING [glance.registry.db.api] Got mysql server has gone away: (2013, 'Lost connection to MySQL server during query')

2013-04-08 11:09:57 24193 DEBUG [eventlet.wsgi.server] Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/eventlet/", line 382, in handleoneresponse result = self.application(self.environ, start_response)

File "/usr/lib/python2.7/dist-packages/webob/", line 147, in call resp = self.call_func(req, args, *self.kwargs)

File "/usr/lib/python2.7/dist-packages/webob/", line 210, in call_func return self.func(req, args, *kwargs)

File "/usr/lib/python2.7/dist-packages/glance/common/", line 279, in call response = req.get_response(self.application)

File "/usr/lib/python2.7/dist-packages/webob/", line 1086, in getresponse application, catchexc_info=False)

File "/usr/lib/python2.7/dist-packages/webob/", line 1055, in callapplication appiter = application(self.environ, start_response)

File "/usr/lib/python2.7/dist-packages/webob/", line 159, in call return resp(environ, start_response)

File "/usr/lib/pymodules/python2.7/routes/", line 131, in call response =, start_response)

File "/usr/lib/python2.7/dist-packages/webob/", line 159, in call return resp(environ, start_response)

File "/usr/lib/python2.7/dist-packages/webob/", line 147, in call resp = self.call_func(req, args, *self.kwargs)

File "/usr/lib/python2.7/dist-packages/webob/", line 210, in call_func return self.func(req, args, *kwargs)

File "/usr/lib/python2.7/dist-packages/glance/common/", line 477, in call request, **action_args)

File "/usr/lib/python2.7/dist-packages/glance/common/", line 494, in dispatch return method(args, *kwargs)

File "/usr/lib/python2.7/dist-packages/glance/registry/api/v1/", line 274, in show image = dbapi.imageget(req.context, id)

File "/usr/lib/python2.7/dist-packages/glance/registry/db/", line 287, in image_get image =

File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/", line 2184, in one ret = list(self)

File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/", line 2227, in iter return self.executeand_instances(context)

File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/", line 2240, in executeandinstances closewith_result=True)

File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/", line 2231, in connectionfrom_session **kw)

File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/", line 730, in connection closewithresult=closewithresult)

File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/", line 736, in connectionforbind ... (more)

2013-04-04 02:39:03 -0500 edited question Howto install cloud-init into a CentOS image

I'd like to build a CentOS 6.3 image with cloud-init. Is there a cloud-init RPM compatible with CentOS 6.3? If so, where can I find it?

2013-04-04 02:37:21 -0500 edited question How do I add new features to Horizon?

I am newbie developer that has a little knowledge in Python and django Framework, I would like to develop my own module or feature for Horizon Dashboard such as Billing Feature. I have read some documentation for this such as "Building on Horizon", Still i'm not able to to fully understand on how to build my own app for horizon,

I'm hoping someone here who could give me some much better tutorials like videos or project samples.

2013-04-03 10:38:05 -0500 received badge  Nice Answer (source)
2013-04-02 03:05:01 -0500 commented question Limit quota per user

Please detail your question further, for which project? for Swift, Nova, Quantum?

2013-04-02 03:04:07 -0500 received badge  Critic (source)
2013-04-01 23:58:58 -0500 answered a question httpd log size exceeding above 25 GB ?

You probably want to see the documentation of your operating system for log rotation i.e: logrotate.

2013-04-01 16:12:32 -0500 edited question How can I use tempurl with swift and keystoneauth.

I am seeing a problem where everytime I try to use a tempurl, I get an "Unauthorized: Temp URL invalid" error. I don't find enough documentation about debugging tempurls. Hence this question.

If I want to configure tempurl, do I only have to add the following in the proxy-server conf and restart it?


pipeline = catch_errors healthcheck cache authtoken tempurl swiftauth proxy-server
use = egg:swift#tempurl


If this is all that is required, I have done this. From the swift command line utility, I can see the Meta Temp-Url-Key option set on the account as well. But when I use a tempUrl, I get the Unauthorized error. I logged the actual url and it looks something like this:


I verified that the value of temp-url-expires is greater than the current time on the proxy server when it receives the request.

I debugged this further by adding additional log statements in the swift code and restarting proxy. It turns out that QUERY_STRING is not getting set in the env dictionary.

Any ideas?

Thanks in advance. -Shri

2013-04-01 16:10:51 -0500 answered a question How can I use tempurl with swift and keystoneauth.

You may want to put your tempurl before authotken as it is the one authorizing the request (if the key is correct) and pass it thought the auth server (auth_token/keystoneauth).

2013-03-30 04:01:15 -0500 received badge  Editor (source)
2013-03-30 04:01:15 -0500 edited question how to do automated deployment of a new node.

now,machines in openstack cloud find other node by query conrol-node should Nova or Quantum contain a protocol to Find a new Node ,and no need for controler-Node,just become a operating system like ubuntu,

1 Find、identify、Authorize、use compute service

2 Find、identify、Authorize、use stock service

Every node machine should be the same(openstack deployed module) except id,and no “control-node”,just all for one,one for all

Every node machine should have a “ID” just like “IP”

2013-03-27 18:47:24 -0500 received badge  Enlightened (source)
2013-03-27 18:47:24 -0500 received badge  Guru (source)
2013-03-27 07:35:42 -0500 received badge  Great Answer (source)
2013-03-27 06:00:53 -0500 received badge  Good Answer (source)
2013-03-26 15:03:45 -0500 received badge  Nice Answer (source)
2013-03-26 13:20:24 -0500 received badge  Teacher (source)
2013-03-26 11:36:50 -0500 answered a question Are there any plans to make Swift with SSL production ready?

Usually if you want to have Swift with SSL we advise to use a load balancer like pound or HaProxy, there is multiple issues with python eventlet and ssl and it's much easier to have a dedicated service to do SSL instead of having to do it directly on Swift.

2013-03-26 03:45:58 -0500 commented question Could you help with that odd network behavior?

Please rephrase the title as a question see

2013-03-22 04:46:47 -0500 received badge  Supporter (source)
2013-03-08 22:03:41 -0500 answered a question Listing containers per tenant

So you basically would need to have a account with the ResellerAdmin role which would allow you to access other accounts.

The steps would be :

  • have an admin user with the ResellerAdmin role (create the role already if it wasn't created before) :

  • get the tenant_id of the tenant you want to access.

  • the storage_url will become :


  • get a token from the admin user.

  • you will be able to access the tenant_id like this :

curl -H 'X-Auth-User: ${ADMIN_TOKEN}' ${USER_STORAGE_URL}

I don't know if that's clear enough, feel free to ping me on irc if needed.

2013-03-03 19:32:14 -0500 answered a question Listing containers per tenant

Hi Victoria,

I am not sure I understand your question, you would like to list containers in a tenant without specifying a user?

Thansk, Chmouel.

2012-08-28 07:06:11 -0500 answered a question Account API

depend of what type of auth system you are using, Swift ultimately is abstracted from that.

2012-08-01 08:43:20 -0500 answered a question apt-get install memcached

I believe this will be more a question to ask to the ubuntu folks/forums.

2012-07-03 09:40:56 -0500 answered a question Can not specify auth version of swift client

I'd say to report a bug if this happen to you but this seem to work properly with latest version of bin/swift from python-swiftclient

2012-07-03 09:15:56 -0500 answered a question Can not specify auth version of swift client

by default it will use 1.0 so don't use -V or --auth-version and that should work fine

2012-07-03 08:42:01 -0500 answered a question Can not specify auth version of swift client

What are you trying to do? connect to 1.x auth servers ?

2012-07-02 09:45:14 -0500 answered a question glance+swift StoreAddDisabled issue

In your config file you have :

swift_store_auth_address =

it should probably be :

swift_store_auth_address =

as mentioned by the documentation.

(I am not entirely sure since I haven't used swauth for a while).

2012-07-02 09:39:56 -0500 answered a question Trouble getting single node swift demo box installed & configured

Try pip install python-swiftclient (assuming you did a apt-get install python-pip beforehand).

2012-07-02 09:38:46 -0500 answered a question Can get ~/swift# apt-get install swift python-swiftclient openssh-server to run

Or pip install python-swiftclient should work as well now.

2012-07-02 09:35:19 -0500 answered a question Can get ~/swift# apt-get install swift python-swiftclient openssh-server to run

The Debian/Ubuntu package are not there yet, you probably would need to install it from GIT for now.

2012-06-27 07:57:02 -0500 answered a question The issue about unittests of swift configuration.

You can install swiftclient from :

2012-06-19 09:39:50 -0500 answered a question Account HEAD returning 503

Do you have your partitions mounted? and your permission of you filesystem are owned by the swift user ?

2012-06-15 06:35:48 -0500 answered a question changing the bind_port in proxy-server.conf

Swift is definitively not rigid since you can change bind_port, for devstack there is now SWIFT_DEFAULT_BIND_PORT variable if you set this up in your localrc will make swift bind to it.

2012-06-14 11:21:57 -0500 answered a question Is essex backward compatible with diabalo

The API is compatible, we (RAX cloud) have been running like this in production for long. (assuming you are using swauth middleware).

2012-06-06 09:56:05 -0500 answered a question changing the bind_port in proxy-server.conf

There is no such setting in devstack feel free to log a bug (and patch if you want) to have this added.

Swift should always be stable but to make sure you may want to pin everything to stable/essex.

2012-05-27 09:22:17 -0500 answered a question There is no object-store endpoint on this auth server.

you need to use the tenant_name:user syntax ie:

swift -A -U admin:admin -K passw0rd list