[Crowbar] Question regarding Swift and keystone as built by crowbar 1.2

Andi_Abes at Dell.com Andi_Abes at Dell.com
Thu Jan 12 09:28:54 CST 2012

I stand corrected !
Thanks Chris.

From: crowbar-bounces On Behalf Of Chris Sanburn
Sent: Thursday, January 12, 2012 10:25 AM
To: crowbar
Subject: Re: [Crowbar] Question regarding Swift and keystone as built by crowbar 1.2

For what it's worth, I've gotten swift commands to work using the 1.2 Final Release ISO from Robs zehicle site:

swift -A -U admin -K crowbar post container

That one creates a container (folder). I've also used commands to upload files and get status of things.

From: crowbar-bounces at dell.com [mailto:crowbar-bounces at dell.com] On Behalf Of Andi_Abes at Dell.com
Sent: Thursday, January 12, 2012 9:52 AM
To: progers at iprimus.com.au; crowbar at lists.us.dell.com
Subject: Re: [Crowbar] Question regarding Swift and keystone as built by crowbar 1.2

You shouldn't need to add endpointTemplates - you only need one of them per swift cluster, and crowbar already sets that up.

That said IIRC, the 'swift' utility bundled with the Diablo final didn't really handle keystone auth quite right (part of the keystone shenanigans at the tail end of the Diablo release)
I've been using direct curl calls to both get tokens, and to interact with the swift cluster.

You'd get a token with something like this (localhost is assumed to be the keystone IP)
curl -d '{"auth": {"passwordCredentials":{"username": "admin", "password":  "crowbar"}}}' -H "Content-type: application/json"  http://localhost:5000/v2.0/tokens

>From the reply, you'd take the token ID ( bolded below):
 {"token": {"expires": "2015-02-05T00:00:00", "id": "682310148888"}

To play with swift, you'd use something like the curl below (replacing the URL with what you got in reply from keystone for either the adminURL or the public URL (depending on what network you're on)
curl -k -X GET -H "X-Auth-Token: 682310148888"


From: crowbar-bounces On Behalf Of Phil Rogers
Sent: Wednesday, January 11, 2012 11:26 PM
To: crowbar
Subject: [Crowbar] Question regarding Swift and keystone as built by crowbar 1.2

Hi Guys

2 days ago I build a new crowbar 1.2 openstack iso off  github

The crowbar build went fine and I was able to build a full swift system on virtual machines with 3 storage nodes and 1 controller node containing keystone + proxy  + rings

Everything provisioned perfectly.

All process on the proxy appear to be running fine

I did the following
keystone-manage tenant add tenant1
keystone-manage user add phil test123
keystone-manage role grant Member phil tenant1
Setup link for proxy connections to auth for swift
keystone-manage endpointTemplates add RegionOne swift \<> \ \<> \
1 1

Proxy-server.conf as provisioned by crowbar
use = egg:keystone#swiftauth
keystone_url =
keystone_admin_token = 512375617141
<end snip>
I don't seem to be able to auth to the proxy
All services seems to be running ok
If I run
swift -A -U phil -K test123 stat
It returns
Account HEAD failed:,<,http:/> 412 Precondition Failed

In the manual I saw conflicting config using authtoken in proxy-server.conf
use = egg:keystone#tokenauth
auth_protocol = http
auth_host =
auth_port = 35357
admin_token = 999888777666
delay_auth_decision = 0
service_protocol = http
service_host =
service_port = 8100
service_pass = dTpw
cache = swift.cache

use = egg:swift#memcache
set log_name = cache

use = egg:swift#catch_errors
IN THE MANUAL Keystone v2012.1-dev documentation<http://keystone.openstack.org/index.html>
There example references port 5000

$ swift -A -U joeuser -K secrete post container

$ swift -A -U joeuser -K secrete stat -v


Auth Token: 74ce1b05-e839-43b7-bd76-85ef178726c3

Account: AUTH_1234

Containers: 1

Objects: 0

Bytes: 0

Accept-Ranges: bytes

X-Trans-Id: tx25c1a6969d8f4372b63912f411de3c3b

I am getting very confused as to what is correct I used to use port 8080 on #swiftauth
Does anyone know what is correct I am struggling here

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.us.dell.com/pipermail/crowbar/attachments/20120112/ad5665fa/attachment-0001.html 

More information about the Crowbar mailing list