166 Commits

Author SHA1 Message Date
Jenkins
95bf187a4f Merge "Add metadata support for volume" 2013-04-02 15:25:03 +00:00
Jenkins
e11a703a1a Merge "Add policy to identity v3" 2013-04-02 15:24:19 +00:00
Jenkins
512cccc78c Merge "Add a simple extension hook" 2013-03-27 15:04:10 +00:00
Steve Martinelli
76e06d144e Add policy to identity v3
use file for data blobs
add create/set/delete/show/list policy for v3

Change-Id: I5f68ef89dfb2241ea1aca00736ee6df5f6f03a9b
2013-03-26 08:50:21 -05:00
Steve Martinelli
04af8fa8f1 Add metadata support for volume
Now able to pass metadata to the create method,
as well as update it with set, and remove it with unset.
I'm currently passing it as an optional param like the following:
--meta-data=key1=value1
which seems weird, what about
--meta-data=key1:value1
I'd have to update type too if that is the case.

Change-Id: I0fc8398768da015c1f53c5c564c68a2cfb53e778
2013-03-22 23:36:13 -05:00
Dean Troyer
73fb88e931 Make entry point strings readable
PEP8 E126 wants continued strings to line up vertically, totally destroying the
readability and visual indication of the beginning of a string in a list

* Ignore PEP8 E126 in order to indent the entry point strings in a readable manner.
* Sort the enrty point command strings by object then verb.
* Bring other ignores from run_tests.sh to tox.ini

Change-Id: I2593de7d6c058322101bc68636317cdba29fe664
2013-03-21 21:51:08 -05:00
Steve Martinelli
b175184f23 Add extra-specs support for volume-type
changed to volume-type
changed command to --long, added a formatter for key=value
Just noticed there is an option in cinder for a command called
extra-specs-list, only relates to volume-types, to list the
meta-data key/value pair. Added that functionality.
Also made minor changes so delete/set/unset can be called by name.

Change-Id: If534ccd1d8a3abc6d235c60ec9a964b88e3fa66d
2013-03-21 10:12:10 -05:00
Steve Martinelli
95c6e5f11d Add endpoint v3 functionality
simple rebase
integrated dolphm and dtroyer comments
Added create,list,delete,set,show endpoints
modified setup.py

Change-Id: Id6153db16db44130beb3b44a8e3e2f72e9a01e5f
2013-03-19 14:25:54 -05:00
Steve Martinelli
907dbdb897 Add service v3 support for identity
simple rebase
rewrite help for create, remove choices
Added create/delete/list/show/set for service
Modified setup.py

Change-Id: I5ced0e214cc2f7fc70493c66b4381040ce8122fe
2013-03-19 13:43:32 -05:00
Steve Martinelli
b26bbae598 Add functionality for add-role commands
keep the functions sorted
Please review carefully as I intend to mimic this logic with
list and remove, I'm open to suggestions about handling thigs
differently

Change-Id: Ia6359134c44447f3b758870c4dc306ec1f970852
2013-03-15 16:03:01 -05:00
Dean Troyer
4fd5dd3b1a Add a simple extension hook
This enables stand-alone modules to hook in to the command-line
handler in a dedicated API namespace.  These extensions have access
to the existing clients via the client manager but no way to add
another client to the manager is provided..

blueprint client-extensions

Change-Id: I4b2eaa780d8ba881db23d950d09b8702e9e314ef
2013-03-15 15:18:22 -05:00
Jenkins
5f283775bf Merge "Removed unused imports." 2013-03-15 19:06:56 +00:00
Jenkins
e2c3dbf24d Merge "Add role v3 support to identity in openstack client" 2013-03-15 18:50:06 +00:00
Josh Kearney
f54012cf8e Removed unused imports.
Change-Id: Ib1bae16f996559c008fb1fe0b74f26b152854ea8
2013-03-15 11:10:46 -05:00
Jenkins
866a0eb044 Merge "Add snapshot support for v1 volume" 2013-03-15 16:03:54 +00:00
Jenkins
de8f315794 Merge "Add optional arguments to volume list command" 2013-03-15 15:56:21 +00:00
Steve Martinelli
e5d9ba5491 Add role v3 support to identity in openstack client
Added create/delete/set/list/show support for roles
Broken up to make reviewing easier.
Will add more functionality (add/remove) later

Change-Id: I95bddd27d8d9d251ad2fd60c3e3ee1e2cbcd7d4b
2013-03-12 16:29:47 -05:00
Josh Kearney
ebfad587b3 Added compute hypervisor support.
Change-Id: Ib8109550b06d152773394a1d15f6202b9f9b029c
2013-03-11 18:21:07 -05:00
Jenkins
331d64a242 Merge "Turn down requests logging level" 2013-03-11 23:02:03 +00:00
Steve Martinelli
211a4bcbf2 Add optional arguments to volume list command
Added --name, --all-tenants, and --status as search params

Change-Id: Ibaa2a7f6862c2ff7dbe24f6bea971db3e70bc120
2013-03-11 15:12:01 -05:00
Dean Troyer
13d88407d6 Turn down requests logging level
Looks like the default is INFO, we don't need to see that unless
--debug is specified.

Change-Id: Ieee5d4dc5102f11536ecc6330461f86101811f9e
2013-03-09 00:49:52 -06:00
Steve Martinelli
1ddc30100f Add force-delete option for volumes
Again, looking thorouhgly through cinders commands, i noticed
an force-delete command, which was for volumes only.
Decided it would work best as an optional argument for the
regular delete case

Change-Id: I9de6040ea0ad71c2a9c8edc7be18779d39e7ede0
2013-03-09 00:25:06 -06:00
Jenkins
0c252b615d Merge "add domain, credential to identity v3 api" 2013-03-08 22:17:43 +00:00
Jenkins
d5a4216247 Merge "Add compute hosts support." 2013-03-08 22:14:57 +00:00
Steve Martinelli
0c4929373e Add snapshot support for v1 volume
rebase again, and change util to look for display_name too
minor changes and rebase
add create/delete/list/set/show support for snapshot

Change-Id: I80261653fa919555a44ddda07b0a827ccd16e5e0
2013-03-08 15:03:07 -06:00
Jenkins
6fae83b935 Merge "Add volume support for openstack client" 2013-03-08 19:39:30 +00:00
Steve Martinelli
55462e8f56 add domain, credential to identity v3 api
moved policy.py to it's own patch
minor changes based on comments
reworked it now that the domain specs have changed
added credential - create, delete, update, show, list
added domain - create, delete, update, show, list
update setup.py entry points

Change-Id: I6bbbb8fdfbc3e76ba75374e9579eb92c96c928fe
2013-03-08 11:11:58 -06:00
Jenkins
ec91bb617e Merge "Clean up args and help strings in server commands" 2013-03-08 15:47:10 +00:00
Jenkins
9b8b180534 Merge "Change create flavor to use default arguments" 2013-03-08 15:45:50 +00:00
Steve Martinelli
abbbed534d Add volume support for openstack client
fix with dtroyer's comments
rebase
fix with dhellmann's comments
create/list/delete/show/set for volume commands

Change-Id: Id8236685d815dbf73873bab2363d82274a9aa556
2013-03-07 14:18:18 -06:00
Josh Kearney
47068b1dd7 Add compute hosts support.
Change-Id: I51c443512a82729564b76e6f835195ff193232d2
2013-03-06 15:18:04 -06:00
Dean Troyer
3b765c8253 Clean up args and help strings in server commands
Help string corrections and align args with wiki at
https://wiki.openstack.org/wiki/UnifiedCLI/Mapping#server

Change-Id: Ifd6f587d383534142003277e64532f77ecb37106
2013-03-06 14:40:32 -06:00
Dean Troyer
989485c7f9 Change create flavor to use default arguments
Most of the arguments required by the create flavor API can have
reasonable defaults and therefore can be made optional in the CLI.
This brings create flavor in line with the documented args in the
wiki at https://wiki.openstack.org/wiki/UnifiedCLI/Mapping#flavor

Change-Id: Iecb3baf72f9dc3981742ff7989780894e37921c9
2013-03-06 14:02:13 -06:00
Steve Martinelli
5377da3406 Add metadata support for volume type
rebase
added set and unset metadata

Change-Id: I8d969e1de305975d7c71a0bad3a62b15f423c3e0
2013-03-05 14:38:06 -06:00
Jenkins
2a39a70ff8 Merge "Added compute service support." 2013-03-05 18:01:04 +00:00
Josh Kearney
7266c695b3 Added compute service support.
Change-Id: I548e35396534b5498f31a45c752984f6d33357c3
2013-03-05 10:30:36 -06:00
Steve Martinelli
ed809e059a Add quota v1 support for volume
added dhellmann's suggestions
created entry points in setup.py
added show/set/list quotas for v1 volume

Change-Id: I8ed6a9518007b31cafeaa70a54d5bf54a549195b
2013-03-04 15:53:48 -06:00
Jenkins
287c23ca4b Merge "Added compute flavor support." 2013-03-01 18:08:46 +00:00
Josh Kearney
f67daad716 Added compute flavor support.
Change-Id: Idb1eb2f838074ce5fb3d4aa7b72fd747ac6915c7
2013-02-28 11:49:11 -06:00
Josh Kearney
87375392a8 Remove underscore.
Change-Id: Iaf2791b96e81d6a0d4846adb3128e4dff61faf30
2013-02-25 11:57:28 -06:00
Jenkins
cca3061e01 Merge "Added compute agent support." 2013-02-22 19:43:10 +00:00
Josh Kearney
ac8b4ce4ac Added compute agent support.
Change-Id: I818a2ea51a773f50da385cbdd71771a4ac923bd7
2013-02-20 10:13:38 -06:00
Josh Kearney
237f0dd612 Correct the version mapping to image service.
This was preventing image support from being activated.

Change-Id: I1b7ab9174b90c55423b244ca63402d33b4411a49
2013-02-19 09:19:52 -06:00
Steve Martinelli
79001ce88a Add volume test cases and structure
add basic unit test for client
update/modify test_shell.py to include volume

Change-Id: I7d08e15a2711da5e51590b8a82eca3a1234962f8
2013-02-11 16:10:25 -06:00
Steve Martinelli
7072b4f802 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
2013-02-08 10:22:01 -06:00
Jenkins
f432131fe7 Merge "Multiple API version support" 2013-02-07 22:18:10 +00:00
Jenkins
c086030133 Merge "Update .coveragerc" 2013-02-06 17:42:42 +00:00
Jenkins
50ceef8fb7 Merge "Sync latest openstack-common." 2013-02-06 17:41:17 +00:00
Dean Troyer
fbc412e533 Multiple API version support
* Use multiple entry point groups to represent each API+version
  combination supported
* Add some tests

Try it out:
* Right now only '* user' commands have multiple overlapping versions;
  you can see the selection between v2.0 and v3 by looking at the
  command help output for 'tenant' vs 'project':

  os --os-identity-api-version=2.0 help set user
  os --os-identity-api-version=3 help set user

Change-Id: I7114fd246843df0243d354a7cce697810bb7de62
2013-02-06 11:36:28 -06:00
Alessio Ababilov
1c44d260dc Update .coveragerc
Set up proper source and omit options.

Change-Id: Ia067d229eb3d7a5806364de22724c16166950bc1
Implements: blueprint update-coveragerc
2013-02-06 16:47:06 +02:00