1432 Commits

Author SHA1 Message Date
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
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
Jenkins
0094b1b42f Merge "Move option logging back to start if initialize_app()" 2015-09-19 04:42:46 +00:00
Hidekazu Nakamura
3f532a2b69 Remove backticks from help in role commands
the docs and code had inconsistencies with how it
references other arguments, lets just remove the
backticks from around them.

Change-Id: I43d17b07364e45387c6b9d86c2aca26eeea8ed93
2015-09-19 00:40:21 -04:00
Jenkins
33aacd9454 Merge "Updated from global requirements" 2015-09-19 03:19:54 +00:00
Jenkins
6de1af1161 Merge "Add tests for volume quota set" 2015-09-19 03:03:05 +00:00
Jenkins
0116f3abc6 Merge "Support listing users by group name" 2015-09-19 01:49:54 +00:00
Dean Troyer
d6788f7e75 Move option logging back to start if initialize_app()
The log for the options should be printed early enough to see what
is being passed in to occ.

Change-Id: I97b09bc28abcd485b6793d0223b9f8602237fd80
2015-09-18 14:29:01 -05:00
Dean Troyer
b1972fb561 Set default auth plugin back to 'password'
This was a hack that should be less needed now...

Change-Id: Id8cba87ad05b106aa36e356c0d70a568316fd327
2015-09-18 14:17:05 -05:00
OpenStack Proposal Bot
9987a95841 Updated from global requirements
Change-Id: Id0791447748e9430c995cbab87260e843e8a2819
2015-09-18 16:42:31 +00:00
Steve Martinelli
817ab3ec0e set image api to 1 for functional tests
devstack now defaults to image api v2, but osc does not support
v2 image create. set the functional tests to use v1 for now
to unwedge the gate.

Closes-Bug: #1496337
Change-Id: Ia02ed761446b8de52c932a424b9c423691ebcceb
2015-09-16 19:33:34 +00:00
OpenStack Proposal Bot
1461c0eb17 Updated from global requirements
Change-Id: I63d1c3bdf6bdd5ff5e1c16af3ee4f095a7d659f1
2015-09-12 01:15:28 +00:00
Andrey Kurilin
9e6f99e2ab Use discover_extensions for novaclient
novaclien v2.26.0 includes `discover_extensions` method, which returns
list of all nova extensions based of version. Such method allows us to
reduce imports of novaclient's modules and construct novaclient instance
simpler.

Change-Id: Idbe3ed275fb4a7e3918b11669dcfad47b8de4fb9
2015-09-11 16:23:54 +03:00
OpenStack Proposal Bot
a936c30893 Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I000bbddd938d7f83a8a85ccb7a62eb3a23f3dd46
2015-09-11 06:10:25 +00:00
Jenkins
0daa096939 Merge "Use a common decorator to log 'take_action' activation" 2015-09-11 02:43:54 +00:00
Jenkins
fa4b11a86f Merge "Add filtering by user for 'openstack server list'" 2015-09-10 20:19:43 +00:00