← Back to team overview

openstack team mailing list archive

Re: swift keystone help

 

To create a container with "st" tool:

http://docs.openstack.org/bexar/openstack-object-storage/admin/content/ch04s10.html

curl command would be something like:

curl -i -X PUT -H 'x-auth-token: <token>'  'http://127.0.0.1:8080/v1/<token>/<container_name>'

Hope that helps
Jo


________________________________
 
From: Paras pradhan <pradhanparas@xxxxxxxxx>
To: Pete Zaitcev <zaitcev@xxxxxxxxxx> 
Cc: openstack <openstack@xxxxxxxxxxxxxxxxxxx> 
Sent: Wednesday, February 22, 2012 2:23 PM
Subject: Re: [Openstack] swift keystone help
 
Looks like swift with keystone is working

swift -A http://192.168.122.14:5000/v2.0 -U adminTenant:adminUser -K
secretword -V 2.0 stat -v

StorageURL: https://192.168.122.14:8080/v1/AUTH_2
Auth Token: 999888777666
   Account: AUTH_2
Containers: 0
   Objects: 0
     Bytes: 0
Accept-Ranges: bytes


--

Now how do I create a container over there?


Thanks
Paras.


On Tue, Feb 21, 2012 at 2:10 PM, Paras pradhan <pradhanparas@xxxxxxxxx> wrote:
> Pete,
>
> This is what I have
>
> #keystone-manage endpointTemplates add RegionOne swift
> http://192.168.122.14:8080/v1/AUTH_%tenant_id%
> http://192.168.122.14:8080/
> http://192.168.122.14:8080/v1/AUTH_%tenant_id% 1 1
>
> I have ssl enabled in swift-proxy.conf. Do I replace http with https here?
>
> Thanks
> Paras.
>
>
> On Tue, Feb 21, 2012 at 11:56 AM, Pete Zaitcev <zaitcev@xxxxxxxxxx> wrote:
>> On Tue, 21 Feb 2012 11:24:06 -0600
>> Paras pradhan <pradhanparas@xxxxxxxxx> wrote:
>>
>>> Yeah that was a type when I copy pasted.
>>
>> You mean, the commented section header #[]?
>>
>>> keystone-manage tenant add adminTenant
>>> keystone-manage user add adminUser secretword
>>> keystone-manage role add Admin
>>> keystone-manage role grant Admin adminUser
>>> keystone-manage role grant Admin adminUser adminTenant
>>>
>>> Did I miss something?
>>
>> You need an endpoint, like this:
>>
>> keystone-manage service add swift storage "Swift Object Storage Service"
>> keystone-manage endpointTemplates add RegionOne swift \
>>  http://kvm-rei.zaitcev.lan/v1/AUTH_%tenant_id% \
>>  http://kvm-rei.zaitcev.lan/v1.0/ \
>>  http://kvm-rei.zaitcev.lan/v1/AUTH_%tenant_id% \
>>  1 1
>>
>> -- Pete

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

Follow ups

References