1447 Commits

Author SHA1 Message Date
Steve Martinelli
bd14d07809 unwedge the gate
devstack defaults to v3 and makes some janky assumptions in
the generated rc files

Change-Id: I4b0b3eb6ab2aa9be2ac4c2404b2f9655e3ed564e
2015-10-08 03:09:43 -04:00
Jenkins
262af5416b Merge "Add ID column to compute service list" 2015-10-07 03:38:33 +00:00
Jenkins
23e821a86b Merge "Add tags to image set" 2015-10-07 00:17:44 +00:00
Jenkins
f6678feea0 Merge "Clean up Image v2 image set command" 2015-10-06 21:26:33 +00:00
Alex Schultz
80e3a2dedb Add ID column to compute service list
This change adds the ID to the compute service list command so that the
ID can be leveraged by scripts trying to remove or update a specific
service.

Change-Id: I446b4c0071988133195eb2382313b3918b7ffa72
Closes-Bug: #1503430
2015-10-06 16:00:59 -05:00
NiallBunting
1afb574533 Add tags to image set
This adds --tag to the v2 version of `image set`. This
is another step to compatability between the osc image api.

Added merge of tags into existing tags and handling duplicates,
and tests for same.

Co-Authored-By: Steve Martinelli <stevemar@ca.ibm.com>

Change-Id: Ie800fcbf8bbc0978c54ace3278750a18023e8ce4
2015-10-06 20:14:34 +00:00
Jenkins
be1ee4181e Merge "Update the plugin docs" 2015-10-06 18:36:33 +00:00
Jenkins
e3213f66da Merge "Set object store arg order in docs" 2015-10-06 18:34:52 +00:00
Dean Troyer
201b1cee86 Clean up Image v2 image set command
Make the Image v2 image set command meet at the intersection of the v1
image set command and the v2 image create command:

* Add visibility to the deadopts list and remove the option
* Put the options in the same order as v1 image set
* Make the help text match
* Add --properties
* Move the additional options that do not appear in either v1 image set or
  v2 image create after --property as they are really pre-defined properties
* Add tests for v2 image set to match v1 and then some
* Put the SetImage class in v2/image.py in alphabetical order

Change-Id: I102b914e8ad09a014f6fdd846c5766b6c2eaadb8
2015-10-06 11:11:59 -07:00
Jenkins
e926998700 Merge "Image fix bug with --volume" 2015-10-06 15:04:31 +00:00
Jenkins
a76164f450 Merge "Add shields.io version/downloads links/badges into README.rst" 2015-10-06 15:04:27 +00:00
Dean Troyer
578a57dcc3 Set object store arg order in docs
argparse displays positional args last in the help output,
our docs should match.

Change-Id: I01e8d62cb8c1b537ea0441b8bdf8880a4c856b32
2015-10-06 08:46:31 -05:00
Steve Martinelli
5bd5366089 Update the plugin docs
There have been some changes as to the status of OSC plugins,
highlight these changes in the table.

Change-Id: Iff6520d35b34ae5d7bf88a128ebdf05f3681d643
2015-10-06 02:07:45 -04:00
Steve Martinelli
e48c7afee4 add set/unset support for objects in object store
add docs and command support to set and unset metadata of objects
that are stored in an object store (swift).

Closes-Bug: #1501945

Change-Id: If838a4b3343b6ddb97cd4bd1cb63f0ba1c1a00a1
2015-10-06 00:52:24 -04:00
Steve Martinelli
abaf711e24 add support for set/unset of container properties
include docs and commands to set and unset container properties

Partial-Bug: #1501945

Change-Id: I8d7e8cf356a2321a37ed940c4e10cae411b94dfd
2015-10-06 00:18:59 -04:00
Jenkins
bf11960d55 Merge "Updated from global requirements" 2015-10-05 22:10:51 +00:00
Jenkins
f05ecd9860 Merge "Add one parenthesis" 2015-10-05 22:10:06 +00:00
Jenkins
0bfa349ede Merge "cleanup account ids from container commands" 2015-10-05 21:54:18 +00:00
Jenkins
77689c93a5 Merge "Rename swift account commands" 2015-10-05 21:54:15 +00:00
Jenkins
a02e7c8355 Merge "Add support for showing account details" 2015-10-05 21:54:13 +00:00
Jenkins
1dc9854ac6 Merge "Add support for updating swift account properties" 2015-10-05 21:53:29 +00:00
OpenStack Proposal Bot
45f1509cd3 Updated from global requirements
Change-Id: I5b898fc5444688bde538fbccda6e3c189a66f701
2015-10-04 22:45:07 +00:00
Steve Martinelli
ecb69a4771 Rename swift account commands
rename `os account` to `os object store account`

Co-Authored-By: Lin Hua Cheng <os.lcheng@gmail.com>
Closes-Bug: #1501943

Change-Id: I54fdcea7a48df16f20e17605110f8d33a20f713c
2015-10-01 21:20:05 -07:00
Atsushi SAKAI
a2786fa88b Add one parenthesis
In the following help message, last parenthesis is missing.

 $ openstack --os-volume-api-version 2 help volume delete
usage: openstack volume delete [-h] [--force] <volume> [<volume> ...]

Delete volume(s)

positional arguments:
  <volume>    Volume(s) to delete (name or ID)

optional arguments:
  -h, --help  show this help message and exit
  --force     Attempt forced removal of volume(s), regardless of state
              (defaults to False

Change-Id: I45c4030abf076cba14450019c379d333eb6530d6
2015-10-02 11:56:22 +09:00
Steve Martinelli
faece91756 cleanup account ids from container commands
use a common function to determine account ID instead of different
ways - depending on the response and command

Change-Id: I95adc5dc7d5a82a2cffc570d1ded24d1fc754a11
2015-10-02 01:20:40 +00:00
Steve Martinelli
4733fd0d3c Add support for showing account details
add the command `openstack account show` that lists details
about the object store account that the user authenticated
against.

Partial-Bug: #1501943

Change-Id: I1246dafee812b63a41d43be4e3598224364a2c11
2015-10-02 01:20:06 +00:00
Steve Martinelli
a4483a0513 Add support for updating swift account properties
this patch adds support for creating/updating and removing
properties (nee: metadata) for object store accounts.

Partial-Bug: #1501943

Change-Id: I3ed70a5d8bd8920fedb79adc60cdc602261d5eef
2015-10-01 18:18:36 -07:00
Jenkins
ea54a4db1b Merge "Add tests for find_resource()" 2015-10-01 23:23:46 +00:00
Dean Troyer
97659adf53 Add tests for find_resource()
Add a couple of tests for utils.find_resource() for the odd resources
and managers without resource_class.

Change-Id: I2ed9b491d1361b5259b3a5f80b4fac787a7087c1
2015-10-01 11:46:16 -05:00
OpenStack Proposal Bot
df85380ffb Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ida5289f0229020953ec715c4a547ab030fbf75e7
2015-10-01 06:12:57 +00:00
Steve Martinelli
83282bc5e1 attempt to find resource by listing
add a last-ditch effort to find the resource in question by
listing all the resources and doing a simply match for name and
id. if no match is found then raise an error, if the list call
is unsuccessful, raise the same error. we have failed this city.

Closes-Bug: #1501362

Change-Id: I0d3d7002e9ac47b17b1ef1a5534406c85b1fc753
2015-09-30 09:58:44 -05:00
Steve Martinelli
05f5e043d8 Additional exception handling for find_resource
A few things here: 1) we need to check if the client class even
has a 'resource_class', in the case of glanceclient, it does not.

2) If everything fails we should print a better error message,
rather than a "find" failed, since some clients don't support find.

Change-Id: I6277322639e75b1635f9f3d159753efadbce1031
2015-09-30 09:54:28 -05:00
Steve Martinelli
e52dfce7bd Add shields.io version/downloads links/badges into README.rst
it's handy to have appear in the pypi page

Change-Id: I142da7d194d719f3b8218ad84e32e19bf0071c63
2015-09-25 00:01:49 -04:00
Jenkins
678e690648 Merge "Override the debug default and help text" 2015-09-24 21:47:33 +00:00
Steve Martinelli
0e89d08434 docs: pip install -e needs an argument
The arguments to install the development branch is incorrect, since
the -e option needs a directory to look for setup.py in.

Change-Id: Icfe402e7b79a50ddc885c7eadb6c323c27e36ef3
2015-09-24 11:50:46 -04:00
Jenkins
29aad2a9b5 Merge "Use discover_extensions for novaclient" 2015-09-23 18:18:02 +00:00
Jenkins
c71c78df92 Merge "Glance image set Resolve Fracturing" 2015-09-23 12:28:02 +00:00
NiallBunting
8faabb3bba Glance image set Resolve Fracturing
Currently `image set` uses the new api, where other parts of osc the old
api is used. This deprecates the v2 api in favour of the v1 to maintain
the same commands across osc. However the functionality now remains
there as people could now be using this functionality.

This also adds the --unprotected argument, as in the previous version if
--protected was not supplied it would just make the argument
--unprotected without the users explicit consent.

The patch also fixes the documentation for image set as it was outdated.

Change-Id: I990d20332c80165102badef7ac94ddbeb7824950
Closes-Bug: 1498092
2015-09-23 00:31:41 -04:00
Dean Troyer
b8faa8ae87 Add release notes for 1.7.0
Change-Id: I4b4d229f7c3292923c8a29d1e1182a8352688b5d
2015-09-22 10:04:57 -05:00
Jenkins
7145fa0787 Merge "Imported Translations from Zanata" 2015-09-21 22:39:35 +00:00
Jenkins
d0427808b8 Merge "Use format_list instead of format_dict when listing images" 2015-09-21 21:54:26 +00:00
Jenkins
4cb88704d9 Merge "Format an images properties and tags" 2015-09-21 21:54:22 +00:00
Jenkins
b2e72e6aee Merge "Add image create support for image v2" 2015-09-21 21:35:33 +00:00
Steve Martinelli
e0e9b2bfae Use format_list instead of format_dict when listing images
This currently breaks listing images with --long. Tags are an
array and shouldn't be formatted as a dictionary.

Change-Id: I6d1d85351b58ae4824498774673ebdc8eaa7e420
Closes-Bug: #1498150
2015-09-21 15:18:36 -04:00
Steve Martinelli
d8f7527ff2 Format an images properties and tags
Currently, these properties are each top level keys, they should
all be under a single 'properties' field. Secondly, the tags are
kept as an array, but can be shown as a comma separated string.

Change-Id: Ic769c657a86e768fee38acc40434c377de70a7bc
2015-09-21 18:53:01 +00:00
Monty Taylor
f5b50df8ea Add image create support for image v2
We have it for v1, but v2 is the future. There are two differences,
things in v2 do not go into a properties dict, and the actual image
data needs to get uploaded as a second step.

Closes-Bug: 1405562
Co-Authored-By: Niall Bunting <niall.bunting@hp.com>
Co-Authored-By: Sean Perry <sean.perry@hp.com>
Change-Id: If7b81c4a6746c8a1eb0302c96e045fb0f457d67b
2015-09-21 14:51:03 -04:00
Monty Taylor
0857da76d9 Change ignore-errors to ignore_errors
Needed for coverage 4.0

Change-Id: I38a9361df07f290ea3588996462bbbc1a6d7b8d8
2015-09-21 14:54:21 +00:00
Jenkins
2616fdb089 Merge "Set default auth plugin back to 'password'" 2015-09-21 14:40:18 +00:00
OpenStack Proposal Bot
80ae715a09 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I2eadaa91b2a089bc54ab167a1d6e5f7fd7acb228
2015-09-21 06:09:48 +00:00
Jenkins
b288fbfb35 Merge "Remove backticks from help in role commands" 2015-09-19 07:19:39 +00:00