59 Commits

Author SHA1 Message Date
Dean Troyer
0aa3c206a3 Remove tenant round 1 - global options
Change the global auth options to use 'project', leave the original
tenant options in place but silent for compatability with the existing
project CLI auth options.  This is the only compatibility for tenant
usage in this changeover.

Change-Id: I3cce6e552f18822cc9f445ec5f301b0f5d9003f8
2013-07-31 10:07:50 -05:00
Jenkins
9ec1cf385e Merge "Begin Python 3 compatability" 2013-07-31 15:05:01 +00:00
Dean Troyer
978c2e7dec Add server ssh command
Change-Id: I9317ad6a47818d5479a046b4be8c5adbbce613ef
2013-07-29 19:18:00 -05:00
Dean Troyer
dfb0e3e3c1 Begin Python 3 compatability
* use six.iteritems()
* replace basestring with six.string_types
* convert print statements to functions (they're all debugging and should
  be removed eventually anyway)

* clean up OpenStack copyright: LLC -> Foundation

Change-Id: Icb14212bcb408e63816bfec3922a697bc1a6c946
2013-07-29 19:12:29 -05:00
Dean Troyer
65d2a14e3e Add server resize command
* add server resize
* update --wait handling for server create, reboot, rebuild
* move _wait_for_status to utils

Blueprint: nova-client

Rebased after https://review.openstack.org/38162 was committed

Change-Id: I7a43b996feecadc7628fcfe20cd5b17333762739
2013-07-29 18:57:02 -05:00
Dean Troyer
3cc313a60d Add server migrate command
Blueprint: nova-client

Note: I've tested that the API calls are made correctly but do not have an
environment with migration proerly enabled to watch it complete...

Change-Id: Ideaf0985d43aa2be22390cf0d2850124c549632d
2013-07-29 18:43:16 -05:00
Dean Troyer
3ff6378c23 Add server commands: (un)lock, (un)rescue, (un)set, add/remove volume
* server lock/unlock, rescue/unrescue, set/unset
* add/remove volume

Blueprint: nova-client

Change-Id: I3709ecdb297ab15ad44df09d89af840164271a66
2013-07-29 18:21:21 -05:00
Jenkins
22386eb9e6 Merge "Add usage command for compute api" 2013-07-26 19:55:52 +00:00
Jenkins
ec9b907e78 Merge "Fix --password in server rebuild" 2013-07-26 18:12:33 +00:00
Steve Martinelli
fcc34652ec Add usage command for compute api
As per the blueprint: nova-client, adding usage command for
compute

Change-Id: Ib694b0b1ebf56b2a62b6f09c67ffaa6959911605
2013-07-26 00:12:04 -05:00
Steve Martinelli
3789cdfebe Add server diagnose for compute api
Add server diagnose for compute api as per blueprint: nova-client

Change-Id: I0a2c13e36e1e13f61ef4ba00ec146634f9644648
2013-07-23 23:06:29 -05:00
Jenkins
f175d12247 Merge "Clean up properties (metadata) formatting" 2013-07-23 15:25:26 +00:00
Dean Troyer
61beeb7e20 Fix --password in server rebuild
Use correct attribute to get password in server rebuild command.

Fixes bug 1190722

Change-Id: Ibe2ccb8840a385319781885b8aadca6e1ba4cc43
2013-07-22 10:23:58 -05:00
Dean Troyer
818c948752 Clean up properties (metadata) formatting
* Reformat default dict output to key='value' using utils.format_dict()
* Changes utils.get_item_properties() to pass the specific field to
  the formatter function rather than the entire resource object, this
  allows the formatter to handle multiple attributes.
* Updates server, volume, volume type commands

Change-Id: I90eebf6b84ae200532f09cd925f371598ea54a64
2013-07-21 13:59:11 -05:00
Jenkins
5d1d738968 Merge "Add aggregate commands" 2013-07-19 20:39:44 +00:00
Dean Troyer
2cc996356c Add aggregate commands
* Add aggregate: add host, create, delete, list, remove host, set, show

* Add list --long option
* Filter 'availability_zone' from the metadata fields
* Rename 'metadata' column to 'properties' in all output

Bug: 1172032
Blueprint: nova-client

Change-Id: Icd408c2b34af07f5102f53d3778d8546952a12c5
2013-07-19 15:37:10 -05:00
Steve Martinelli
1a0d5ccc68 Remove api = apiName calls from each method
As discussed in https://review.openstack.org/#/c/36352/ for each
command, we were setting api = identity or volume... etc,
this was for an old way of calling commands that are is no longer
used.

Also removed openstackclient/common/command.py

Change-Id: I2705f35d343f2ae729dc22d6aed0b852b2f8ca19
2013-07-12 11:07:33 -05:00
Monty Taylor
108f78d989 Remove python3 incompatible exception syntax.
Change-Id: I5f0687a83362ceebf03bae4a0a5b109aad7e5200
2013-06-30 23:30:54 -04:00
Monty Taylor
016a0b301e Fix flake8 errors in anticipation of flake8 patch.
Change-Id: Ifdc4322b699f2bd91a6900e55695acd3d736568e
2013-05-14 08:28:48 -07:00
Josh Kearney
a2e3a16221 Rename all instances of 'metadata' to 'property'.
Change-Id: I454cbe685dc5afa0a09ecc976a90d6eb6bc57d14
2013-05-07 11:18:38 -05: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
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
Josh Kearney
f54012cf8e Removed unused imports.
Change-Id: Ib1bae16f996559c008fb1fe0b74f26b152854ea8
2013-03-15 11:10:46 -05:00
Josh Kearney
ebfad587b3 Added compute hypervisor support.
Change-Id: Ib8109550b06d152773394a1d15f6202b9f9b029c
2013-03-11 18:21:07 -05:00
Jenkins
d5a4216247 Merge "Add compute hosts support." 2013-03-08 22:14:57 +00: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
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
Josh Kearney
7266c695b3 Added compute service support.
Change-Id: I548e35396534b5498f31a45c752984f6d33357c3
2013-03-05 10:30:36 -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
Josh Kearney
ac8b4ce4ac Added compute agent support.
Change-Id: I818a2ea51a773f50da385cbdd71771a4ac923bd7
2013-02-20 10:13:38 -06:00
Josh Kearney
b26cb5bf68 Upgraded to PEP8 1.3.3 to stay aligned with Nova, etc.
Made all the necessary changes to pass new PEP8 standards.

Also cleaned up docstrings to conform to the HACKING stanards.

Change-Id: Ib8df3030da7a7885655689ab5da0717748c9edbe
2013-01-31 13:31:41 -06:00
Josh Kearney
0a4912f9fb Standardize on a copyright header and ensure all files have them.
Change-Id: I64812bca01ca655c9cf9239a0daea84907082a29
2013-01-24 12:02:23 -06:00
Josh Kearney
c1ea298904 Clean up test environment and remove unused imports.
First round of adding more complete unit test coverage.

Change-Id: Ic1979c499ca6fcb784892a95954a3527539c4e53
2013-01-22 11:44:18 -06:00
Dean Troyer
90a1c65f3a Update compute client bits
* add server create, delete, pause, reboot, rebuild
  resume, suspend, unpause commands

Change-Id: I728ec199e4562bd621c3a73106c90d8b790b459a
2012-09-05 16:06:49 -05:00
Dean Troyer
697a5ac6cb Refactor cliff.Command.run()
* All commands now perform their action in take_action().  Those producing
  output are derived from DisplayCommandBase.

Change-Id: Ic93ba9a2ad449d84242b6aa8624b41379c4fb79a
2012-06-20 10:03:01 -05:00
Dean Troyer
90f9f1dfa0 Clean up tenant and server
* remove '_' from class names
* add class name to log instances
* some cleanups to HACKING

Change-Id: I1f6334318ee0d7d83cd3cea0e71ba4f05dd2b5c5
2012-05-16 11:44:18 -05:00
Dean Troyer
f485d71222 Revise command boolean flags
* use --enable|--disable form for boolean 'enabled' value
* clean up logging strings

Change-Id: Ib4016bbef1763c27ec5a9edf36b926dc0d0b265c
2012-05-11 17:27:03 -05:00
Dean Troyer
fa4a4a37d6 Move get_client_class() to common.utils
* add constants for API_NAME

Change-Id: I8ccf72f032227e0a452d96303181549b1b11a5d1
2012-05-11 13:49:45 -05:00
Dean Troyer
5378322906 Add tenant CRUD commands
* add {create|delete|set} tenant commands

* move get_XXXX_properties() to common.utils.get_item_properties()
  add mixed_case_fields as an optional arg

Change-Id: I7b3bd9cefb08e39730886b31213cbe422b5a8453
2012-05-11 12:08:05 -05:00
Dean Troyer
712a8c7f9c Add API versioning support
* Specific versions supported are managed in XXXXXX.client.py with a
  mapping from version to client class.  This is based on the scheme
  that is included in novaclient; none of the other client libs have
  that capability.

Change-Id: I930b197f1189e7f52c3b0096e73e0773cf925542
2012-05-10 15:52:15 -05:00
Dean Troyer
3b2129f0b8 Add copyright notices and update dates
Change-Id: I54a7d99328143205ab97ea930aeeeb69fe92c76c
2012-05-10 14:58:16 -05:00