j-griffith/python-cinderclient — pull request #1 by anotherjesse (2012-05-16 22:28:25+00:00)
Title: cinder client create/delete/list works

I installed cinderclient via:

sudo python setup.py develop

Then I can test against my essex cloud:

export OS_AUTH_URL="http://essex-kvm.rcb.me:5000/v2.0/"
export OS_PASSWORD="xxxxxxx"
export OS_TENANT_NAME="jesse"
export OS_USERNAME="jesse"

Then I can create/list/delete:

$ cinder list
+----+--------+--------------+------+-------------+-------------+
| ID | Status | Display Name | Size | Volume Type | Attached to |
+----+--------+--------------+------+-------------+-------------+
+----+--------+--------------+------+-------------+-------------+
$ cinder create --display_name=jesse 1
$ cinder list
+--------------------------------------+-----------+--------------+------+-------------+-------------+
| ID | Status | Display Name | Size | Volume Type | Attached to |
+--------------------------------------+-----------+--------------+------+-------------+-------------+
| 2f4b6a72-5804-4510-a163-37511091fc1e | available | jesse | 1 | None | |
+--------------------------------------+-----------+--------------+------+-------------+-------------+
$ cinder delete jesse
$ cinder list
+----+--------+--------------+------+-------------+-------------+
| ID | Status | Display Name | Size | Volume Type | Attached to |
+----+--------+--------------+------+-------------+-------------+
+----+--------+--------------+------+-------------+-------------+

Now time to get tests passing again