[Openstack] I can use Swift in Horizon but not with the CLI...

Emilio García emilio.garcia at cloudreach.co.uk
Fri Dec 7 18:57:08 UTC 2012


Just for reference I made it work like this:

root at ostack-sn01:/etc/swift# swift *-V 2.0* -A
http://192.168.0.17:5000/v2.0-U Default:emilio.garcia -K xxxxxx list
mycontainer
Folder1
Folder1/Test
Folder1/libjvm.so
fxavcodecplugin-53.so

Regards.

On 7 December 2012 16:49, Emilio García <emilio.garcia at cloudreach.co.uk>wrote:

>
>
> On 7 December 2012 16:45, Emilio García <emilio.garcia at cloudreach.co.uk>wrote:
>
>> This is what I get in the proxy log with I use Horizon:
>>
>> Dec  7 16:18:44 ostack-sn01 proxy-server Calling S3Token middleware.
>> (txn: txaed5df4ce9074dfa92b80cf7c7eedaff) (client_ip: 192.168.0.13)
>> Dec  7 16:18:44 ostack-sn01 proxy-server No Authorization header.
>> skipping. (txn: txaed5df4ce9074dfa92b80cf7c7eedaff) (client_ip:
>> 192.168.0.13)
>> Dec  7 16:18:44 ostack-sn01 proxy-server Using identity: {'roles':
>> [u'Member'], 'user': u'emilio.garcia', 'tenant':
>> (u'4ff435e56eb94a74adba58bb8082c011', u'Default')} (txn:
>> txaed5df4ce9074dfa92b80cf7c7eedaff) (client_ip: 192.168.0.13)
>> Dec  7 16:18:44 ostack-sn01 proxy-server allow user with role Member as
>> account admin (txn: tx1fca098a555d4a2198d49af145f63fa5) (client_ip:
>> 192.168.0.13)
>> Dec  7 16:18:44 ostack-sn01 proxy-server 192.168.0.13 192.168.0.13
>> 07/Dec/2012/16/18/44 GET
>> /v1/AUTH_4ff435e56eb94a74adba58bb8082c011/mycontainer%3Fformat%3Djson%26marker%3Dfxavcodecplugin-53.so%26limit%3D1001%26delimiter%3D/
>> HTTP/1.0 200 - - de504887f25d4e03a736bcbbc099d6bf - 2 -
>> tx1fca098a555d4a2198d49af145f63fa5 - 0.0058
>>
>> And this is what I get if I use the CLI:
>>
>> Dec  7 16:08:01 ostack-sn01 proxy-server STDOUT:
>> WARNING:keystone.middleware.auth_token:Unable to find authentication token
>> in headers: {'webob._parsed_query_vars': (GET([]), ''), 'SCRIPT_NAME': '',
>> 'REQUEST_METHOD': 'POST', 'PATH_INFO': '/auth/v2.0/tokens',
>> 'SERVER_PROTOCOL': 'HTTP/1.0', 'CONTENT_LENGTH': '103', 'HTTP_USER_AGENT':
>> 'python-keystoneclient', 'eventlet.posthooks': [], 'RAW_PATH_INFO':
>> '/auth/v2.0/tokens', 'REMOTE_ADDR': '192.168.0.22', 'eventlet.input':
>> <eventlet.wsgi.Input object at 0x2e45990>, 'wsgi.url_scheme': 'http',
>> 'SERVER_PORT': '8080', 'wsgi.input': <eventlet.wsgi.Input object at
>> 0x2e45990>, 'HTTP_HOST': '192.168.0.18:8080', 'swift.cache':
>> <swift.common.memcached.MemcacheRing object at 0x2e3f350>,
>> 'wsgi.multithread': True, 'wsgi.version': (1, 0), 'SERVER_NAME':
>> '192.168.0.18', 'GATEWAY_INTERFACE': 'CGI/1.1', 'wsgi.run_once': False,
>> 'wsgi.errors': <swift.common.utils.LoggerFileObject object at 0x2a8c050>,
>> 'wsgi.multiprocess': False, 'CONTENT_TYPE': 'application/json',
>> 'HTTP_ACCEPT_ENCODING': 'gzip, deflate'}
>>
>> On 7 December 2012 16:39, Emilio García <emilio.garcia at cloudreach.co.uk>wrote:
>>
>>> I get a different error with that:
>>>
>>> # swift -A http://192.168.0.17:5000/auth/v1.0 -U service:swift -K
>>> xxxxxxx stat
>>> Account not found
>>>
>>> No matter what -K value I put.
>>>
>>> PS: I have keystone in .17 while swift proxy is in .18.
>>>
>>> Regards.
>>>
>>> On 7 December 2012 16:34, George Mihaiescu <George.Mihaiescu at q9.com>wrote:
>>>
>>>> ** ** **
>>>>
>>>> Hi Emilio,****
>>>>
>>>> ** **
>>>>
>>>> Try to connect to the Keystone endpoint:****
>>>>
>>>> swift -A http://192.168.0.18:5000/auth/v1.0 -U system:swift -K
>>>> xxxxxxxx stat****
>>>>
>>>> ** **
>>>>
>>>> ** **
>>>>
>>>> George****
>>>>
>>>> ** **
>>>>
>>>> ** **
>>>>  ------------------------------
>>>>
>>>> *From:* openstack-bounces+george.mihaiescu=q9.com at lists.launchpad.net[mailto:
>>>> openstack-bounces+george.mihaiescu=q9.com at lists.launchpad.net] *On
>>>> Behalf Of *Emilio García
>>>> *Sent:* Friday, December 07, 2012 11:11 AM
>>>> *To:* openstack at lists.launchpad.net
>>>> *Subject:* [Openstack] I can use Swift in Horizon but not with the
>>>> CLI...****
>>>>
>>>> ** **
>>>>
>>>> Hi all,****
>>>>
>>>> ** **
>>>>
>>>> I configured swift, first with tempauth. I checked the CLI worked fine.
>>>> ****
>>>>
>>>> **The**n I integrated with with keystone. Now I can create containers
>>>> and folders from Horizon... but for some reason I cannot from the CLI. I
>>>> always get 401!****
>>>>
>>>> ** **
>>>>
>>>> swift -A http://192.168.0.18:8080/auth/v1.0 -U system:swift -K
>>>> xxxxxxxx stat****
>>>>
>>>> Auth GET failed: http://192.168.0.18:8080/auth/v1.0/ 401 Unauthorized**
>>>> **
>>>>
>>>> ** **
>>>>
>>>> swift -A http://192.168.0.18:8080/auth/v1.0 -U admin:admin -K xxxxxxxx
>>>> stat****
>>>>
>>>> Auth GET failed: http://192.168.0.18:8080/auth/v1.0/ 401 Unauthorized**
>>>> **
>>>>
>>>> ** **
>>>>
>>>> I am using Folsom in Ubuntu 12.04.****
>>>>
>>>> ** **
>>>>
>>>> How do I have to use the CLI command now?! If the UI can create and
>>>> upload objects... it has to be something wrong with how do I invoke the
>>>> command now?!****
>>>>
>>>> ** **
>>>>
>>>> Regards.
>>>> ****
>>>>
>>>> ** **
>>>>
>>>> ** **
>>>>
>>>> Cloudreach Limited is a limited company registered in ****England**** with registered number 06975407****
>>>>
>>>> ** **
>>>>
>>>> **The** above terms reflect a potential business arrangement, are provided solely as a basis for further discussion, ****
>>>>
>>>> and are not intended to be and do not constitute a legally binding obligation. No legally binding obligations ****
>>>>
>>>> will be created, implied, or inferred until an agreement in final form is executed in writing by all parties involved.****
>>>>
>>>> ** **
>>>>
>>>> This email may be confidential or privileged. If you received this communication by mistake, please don't forward ****
>>>>
>>>> it to anyone else, please erase all copies and attachments, and please let us know that it has gone to the wrong person.****
>>>>
>>>> ** **
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>> --
>>
>>
>>
>
>
>
>


-- 

*Emilio Garcia*
Systems Developer, Cloudreach Limited
[t] +44 20 7183 3893 (ext. 403)
[m] +44 7958 036 743

Cloudreach Limited is a limited company registered in England with registered number 06975407

The above terms reflect a potential business arrangement, are provided solely as a basis for further discussion, 
and are not intended to be and do not constitute a legally binding obligation. No legally binding obligations 
will be created, implied, or inferred until an agreement in final form is executed in writing by all parties involved.

This email may be confidential or privileged. If you received this communication by mistake, please don't forward 
it to anyone else, please erase all copies and attachments, and please let us know that it has gone to the wrong person.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20121207/bba85bc9/attachment.html>


More information about the Openstack mailing list