summaryrefslogtreecommitdiff
path: root/openstackclient
Commit message (Collapse)AuthorAgeFilesLines
* Fix stable/liberty gateRichard Theis2016-04-211-1/+1
| | | | | | | | | | | | | | | | | | | **This patch is a merge of 2 patches that needed to be backported** unwedge the gate devstack defaults to v3 and makes some janky assumptions in the generated rc files (cherry picked from commit bd14d078098eb2055c0dae784de892b0b1346ed5) Add all regions to cloud configuration OCC now requires all regions to be listed in the cloud configuration. Update the shell unit tests to list all of the regions being tested. Change-Id: Ic7300d1f708339701b5daadbf2c4769b239a2adb (cherry picked from commit d1311f9742ad93198b9ca72f47d51710e17ced38)
* Merge "Release notes 1.7.1" into stable/libertyJenkins2015-09-304-15/+66
|\
| * Merge "Override the debug default and help text"Jenkins2015-09-241-0/+4
| |\
| | * Override the debug default and help textTerryHowe2015-08-181-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cliff sets the default debug value to False and this makes it impossible to override debug with OCC. If we set the default to None, we can override debug in clouds.yaml. Also, OSC changes the meaning of --debug, so modify the help text. Change-Id: I5e6680b2286cd7f55afe4b083fae5f8a4a9567a2 Closes-Bug: #1483378
| * | Merge "Use `discover_extensions` for novaclient"Jenkins2015-09-231-7/+3
| |\ \
| | * | Use `discover_extensions` for novaclientAndrey Kurilin2015-09-111-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | Merge "Glance `image set` Resolve Fracturing"Jenkins2015-09-232-8/+59
| |\ \ \
| | * | | Glance `image set` Resolve FracturingNiallBunting2015-09-232-8/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | attempt to find resource by listingSteve Martinelli2015-09-301-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 (cherry picked from commit 83282bc5e133d8cd1718df524c1fa06add130b8a)
* | | | | Additional exception handling for find_resourceSteve Martinelli2015-09-301-7/+11
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 (cherry picked from commit 05f5e043d8cc536c21acb51c5a9e85fac9563f47)
* | | | Merge "Use format_list instead of format_dict when listing images"Jenkins2015-09-211-1/+1
|\ \ \ \
| * | | | Use format_list instead of format_dict when listing imagesSteve Martinelli2015-09-211-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Format an images properties and tags"Jenkins2015-09-211-3/+35
|\ \ \ \
| * | | | Format an images properties and tagsSteve Martinelli2015-09-211-3/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge "Add image create support for image v2"Jenkins2015-09-212-1/+372
|\ \ \ \ \ | |/ / / / | | / / / | |/ / / |/| | |
| * | | Add image create support for image v2Monty Taylor2015-09-212-1/+372
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Set default auth plugin back to 'password'"Jenkins2015-09-211-1/+1
|\ \ \ \ | |/ / / |/| | |
| * | | Set default auth plugin back to 'password'Dean Troyer2015-09-181-1/+1
| |/ / | | | | | | | | | | | | | | | This was a hack that should be less needed now... Change-Id: Id8cba87ad05b106aa36e356c0d70a568316fd327
* | | Merge "Remove backticks from help in role commands"Jenkins2015-09-191-1/+1
|\ \ \
| * | | Remove backticks from help in role commandsHidekazu Nakamura2015-09-191-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | the docs and code had inconsistencies with how it references other arguments, lets just remove the backticks from around them. Change-Id: I43d17b07364e45387c6b9d86c2aca26eeea8ed93
* | | Merge "Move option logging back to start if initialize_app()"Jenkins2015-09-191-2/+2
|\ \ \
| * | | Move option logging back to start if initialize_app()Dean Troyer2015-09-181-2/+2
| |/ / | | | | | | | | | | | | | | | | | | The log for the options should be printed early enough to see what is being passed in to occ. Change-Id: I97b09bc28abcd485b6793d0223b9f8602237fd80
* | | Merge "Add tests for volume quota set"Jenkins2015-09-192-2/+46
|\ \ \
| * | | Add tests for volume quota setTerryHowe2015-08-112-2/+46
| | |/ | |/| | | | | | | | | | | | | | | | Add some tests for volume quota set and get rid of TODO about using the value instead of the key to get the attribute. Change-Id: I57aa57951aeea65965966e63af922cda532d759d
* | | Merge "Support listing users by group name"Jenkins2015-09-191-6/+4
|\ \ \ | |_|/ |/| |
| * | Support listing users by group nameSteve Martinelli2015-09-071-6/+4
| |/ | | | | | | | | | | | | | | | | | | | | Listing users within a group is not presently domain scoped. We do not use the domain info at all when the group option is present. A new --group-domain option is not needed since we cannot list users by --project and --group, they are mutually exclusive (as per the identity API). Closes-Bug: 1492916 Change-Id: I50f995ee4a03c2bdb21f2b5722546ab8fe786eb6
* | Merge "Use a common decorator to log 'take_action' activation"Jenkins2015-09-1150-212/+242
|\ \
| * | Use a common decorator to log 'take_action' activationJoshua Harlow2015-09-0150-212/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of duplicating the same log statement throughout the code, the same logic can be provided by a shared decorator that abstracts away the logging capability and unifies it behind a common function instead. Change-Id: Icc63bced7347c8bbf0299a4c5821425a10892a79
* | | Merge "Add filtering by user for 'openstack server list'"Jenkins2015-09-101-1/+16
|\ \ \
| * | | Add filtering by user for 'openstack server list'kafka2015-09-081-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new option to search by user when listing servers, include support for domain scoped users, also update docs Co-Authored-By: Steve Martinelli <stevemar@ca.ibm.com> Closes-Bug: #1483974 Change-Id: Ifdade6dc9ca8400fbd85f6b55793ab15ed17b97d
* | | | Merge "Add support for listing servers of other projects"Jenkins2015-09-101-0/+18
|\ \ \ \ | |/ / /
| * | | Add support for listing servers of other projectsAshish Singh2015-09-081-0/+18
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Added project and project-domain option to server list command for listing servers based on project name or id Co-Authored-By: Steve Martinelli <stevemar@ca.ibm.com> Change-Id: Iaadfffe734ad8a72fa4b1eeb2222748c66f7fae0 Closes-Bug: #1488486
* | | Merge "Use novaclient.client.Client for initialization Nova client"Jenkins2015-09-101-8/+8
|\ \ \
| * | | Use novaclient.client.Client for initialization Nova clientAndrey Kurilin2015-09-091-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `novaclient.client.Client` is a recommended entry point for novaclient. It supports backward-compatibility and allows Nova-folks to change interfaces of inner versioned clients classes. Change-Id: Iaf20714f63c307f88a451759f041ca509fbcf6f8
* | | | Merge "Create log configuration class"Jenkins2015-09-094-262/+189
|\ \ \ \
| * | | | Create log configuration classTerryHowe2015-08-264-262/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Configuration of logging gets triggered twice. The first time it uses the CLI options when the application is started and second it uses the configuration file after that is read. The state of the logging needs to be saved from the first to the second time, so I created a class. Implements: blueprint logging-migration Change-Id: I7b8d1a3b6fd128e98cafd7c16009c7b694a52146
* | | | | Merge "Optimize log formatting"Jenkins2015-09-092-92/+60
|\ \ \ \ \ | |/ / / /
| * | | | Optimize log formattingTerryHowe2015-08-132-92/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no way to change the configuration variables we want printed in log messages, so format them in the constructor. This will save us from overridding the format method and a couple cpu cycles every log message. This change also moves the _LOG* variables into the formatter since they aren't really globally needed. Change-Id: I706e9db7da3daec20332f9d1533fe665f2739dea Implements: blueprint logging-migration
* | | | | Merge "Extract log level from configuration file"Jenkins2015-09-092-10/+53
|\ \ \ \ \ | |/ / / /
| * | | | Extract log level from configuration fileTerryHowe2015-08-132-10/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extract log_level from configuration file if the level was not overridden by the command line option. The default command line option is 1 and there is no command line option to set the verbose_level to 1, so if it is 1, it has not be set. Change-Id: I1be04367c72f83c1181f92ca4c2c83165b66995c Implements: blueprint logging-migration
* | | | | Merge "Move options to log level out of shell.py"Jenkins2015-09-093-12/+28
|\ \ \ \ \ | |/ / / / | | / / / | |/ / / |/| | |
| * | | Move options to log level out of shell.pyTerryHowe2015-08-133-12/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the conversion of command line options to log level out of shell.py. Change-Id: I86cb45a85cd63927aa1c87c1eed27542981df659 Implements: blueprint logging-migration
* | | | Merge "Move set warnings filters to logging module"Jenkins2015-09-083-4/+20
|\ \ \ \ | |/ / /
| * | | Move set warnings filters to logging moduleTerryHowe2015-08-133-4/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the first step in moving logging out of shell.py Change-Id: I3dcb4e17bb4687988ddf9b793ad1a308ef89b242 Implements: blueprint logging-migration
* | | | Merge "Properly handle port arguments for ICMP"Jenkins2015-09-082-4/+345
|\ \ \ \
| * | | | Properly handle port arguments for ICMPDean Troyer2015-09-032-4/+345
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Compute API requires 'from_port' and 'to_port' to be -1 for ICMP security group rules. It happily accepts them empty or None but the resulting rules do not work. So we force the values for ICMP rules. Closes-bug: #1477629 Change-Id: Iba57211014caca16be7c9a28d15d4db2a6c51b8d
* | | | | Merge "Set up every time record log in file"Jenkins2015-09-084-15/+387
|\ \ \ \ \ | | |/ / / | |/| | |
| * | | | Set up every time record log in fileDaisuke Fujita2015-08-084-15/+387
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow users to record logs of all their commands into a predefined log file, in clouds.yaml. The log should have a format similar to that of oslo.log. Change-Id: I1b334bf429d575fc25809c9706fc0b11116be3f1 Implements: blueprint every-time-record-log-in-file
* | | | | Merge "Volume v2 list does not show server name"Jenkins2015-09-083-9/+10
|\ \ \ \ \
| * | | | | Volume v2 list does not show server nameTerryHowe2015-08-283-9/+10
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The volume v2 list was using the volume id rather than the server id. Change-Id: Ibe03d34b5b503af2d00202dabd640f796449cf9a Closes-Bug: #1489954