288 Commits

Author SHA1 Message Date
Chuck Short
7183a11f09 python3: Introduce py33 to tox.ini
Introduce py33 to tox.ini to make testing with
python3 easier.

Change-Id: I7a775ac51e0bc0a5929184af47d51ea1cc4e3219
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-06-01 19:58:34 -05:00
Jenkins
f4f85a2f79 Merge "Tweak volume commands and add k=v argparse action" 2013-05-30 16:25:36 +00:00
Zhenguo Niu
bac0718764 Rename requires files to standard names.
Rename tools/pip-requires to requirements.txt and tools/test-requires
to test-requirements.txt. These are standard files, and tools in the
general world are growing intelligence about them.

Change-Id: I903213fda94a833335abaa7ad9a90bbb688ec15a
Fixes: bug #1179008
2013-05-29 17:38:13 +08:00
Jenkins
4430092706 Merge "Fix identity v2.0 entry point" 2013-05-28 15:35:39 +00:00
Jenkins
b7565c297d Merge "Add domain and description to user for v3 identity" 2013-05-28 15:23:40 +00:00
Dean Troyer
bf588ed9c4 Fix identity v2.0 entry point
Change-Id: Ifae91a612fcd8b66660b93f6ea81d37e0f1bce1d
2013-05-24 16:59:35 -05:00
Dean Troyer
ea9ec1c6bc Tweak volume commands and add k=v argparse action
Basic cleanups:
* change metadata to property
* add new KeyValueAction to parse the property options
* multiple properties can be set using multiple --property args
* consistent formatting
* do lookups for volume args

Change-Id: Ib6c43f01ad46b395aee8c61e886f42e2a5f5573e
2013-05-24 15:02:52 -05:00
Steve Martinelli
02a4f16f16 Add domain and description to user for v3 identity
* splitting the changes seen in 27142 to a few new patches
* this one will just update v3 user to have description and domain

Change-Id: I9b4c365703da27e26ddc702f37cf5928e19cebdc
2013-05-17 06:42:48 -05:00
Monty Taylor
d49fcb726d Migrate to pbr.
Fixes bug 1179007

Change-Id: Ief74b121dcad28bb1c2b6044ef72e0cbd51e8f65
2013-05-16 10:36:08 -07:00
Monty Taylor
967d929207 Migrate to flake8.
Fixes bug 1172444

Change-Id: Ieca721663aea2fd31753df4abfb5b01a7145b26a
2013-05-16 10:36:02 -07:00
Monty Taylor
016a0b301e Fix flake8 errors in anticipation of flake8 patch.
Change-Id: Ifdc4322b699f2bd91a6900e55695acd3d736568e
2013-05-14 08:28:48 -07:00
Jenkins
d6c760263b Merge "Switch to noun-verb command forms" 2013-05-13 14:57:38 +00:00
Josh Kearney
a2e3a16221 Rename all instances of 'metadata' to 'property'.
Change-Id: I454cbe685dc5afa0a09ecc976a90d6eb6bc57d14
2013-05-07 11:18:38 -05:00
Doug Hellmann
b16f210bbf Switch to noun-verb command forms
Reverse the commands to use nouns followed by
verbs to allow users to take full advantage of
tab completion.

Compound nouns (e.g., "floating-ip") are also
reversed (e.g., "ip floating list" and "ip fixed list").

blueprint nouns-vs-verbs

Change-Id: Icf09fb8d7dbd09772bddbbeb74f9a379d9189b72
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-04-30 06:54:02 -04:00
Dean Troyer
53bbff67eb Add console commands
Adds:
* console-log
* console-url

Part of blueprint nova-client

Change-Id: Ibea7f96382283770988d05379d41a148f8cd8c4f
2013-04-25 14:36:46 -05:00
Jenkins
6b478390fb Merge "Add compute keypair commands" 2013-04-25 19:24:24 +00:00
Jenkins
e273691c67 Merge "Add fixed-ip and floating-ip commands" 2013-04-25 19:23:16 +00:00
Jenkins
c5e9048dc4 Merge "Adds image create and delete functionality." 2013-04-25 18:30:19 +00:00
Josh Kearney
6da61e03f0 Adds image create and delete functionality.
We use the V1 API for `create` since it does not
yet exist in the V2 API in glanceclient.

For blueprint glance-client.

Change-Id: Ifa819c14f6a013f4530d16247a671e5a1c740a28
2013-04-23 14:09:20 -05:00
Dean Troyer
e9021c213b Add fixed-ip and floating-ip commands
Adds:
* fixed-ip commands: add, remove
* floating-ip commands: add, create, delete, list, remove
* floating-ip-poo command: list

Also uses NAME_ATTR in the Resource class if present to determine
the attribute to be used for searching in utils.find_resource()

Change-Id: Ifd8fa60f880fc4050dea182ac24553cc2c4bff15
2013-04-14 20:26:42 -05:00
Dean Troyer
364769f978 Add compute keypair commands
Add create, delete, list, show keypair commands

Part of blueprint nova-client

Change-Id: Ieba00d3b3e3a326f875c01ac2a2b9bbd036cd7c9
2013-04-12 17:28:21 -05:00
Dean Troyer
3641b03690 metadata is one word
Change-Id: I2baff95c9b6dcc95edf5d5da74814ff37883cd2b
2013-04-08 17:23:50 -05:00
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