Add Cinder API V1 Support

made the changes suggested by dtroyer
added client
modified setup.py entry points
updated pip required
added support for create/delete/list volume types
openstack list type
openstack create type typeName
openstack delete type typeNameOrId

Change-Id: I43655de151582e37f14dc9550151a66db7a009ab
This commit is contained in:
Steve Martinelli
2013-02-01 01:12:05 -06:00
parent f432131fe7
commit 7072b4f802
8 changed files with 184 additions and 0 deletions

@ -36,6 +36,7 @@ KEYRING_SERVICE = 'openstack'
DEFAULT_COMPUTE_API_VERSION = '2'
DEFAULT_IDENTITY_API_VERSION = '2.0'
DEFAULT_IMAGE_API_VERSION = '1.0'
DEFAULT_VOLUME_API_VERSION = '1'
def env(*vars, **kwargs):
@ -160,6 +161,15 @@ class OpenStackShell(App):
help='Image API version, default=' +
DEFAULT_IMAGE_API_VERSION +
' (Env: OS_IMAGE_API_VERSION)')
parser.add_argument(
'--os-volume-api-version',
metavar='<volume-api-version>',
default=env(
'OS_VOLUME_API_VERSION',
default=DEFAULT_VOLUME_API_VERSION),
help='Volume API version, default=' +
DEFAULT_VOLUME_API_VERSION +
' (Env: OS_VOLUME_API_VERSION)')
parser.add_argument(
'--os-token',
metavar='<token>',
@ -293,6 +303,7 @@ class OpenStackShell(App):
'compute': self.options.os_compute_api_version,
'identity': self.options.os_identity_api_version,
'image': self.options.os_image_api_version,
'volume': self.options.os_volume_api_version,
}
# Add the API version-specific commands