summaryrefslogtreecommitdiff
path: root/openstackclient
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | | | | Fix compute API version snafuDean Troyer2015-09-042-5/+66
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | novaclient 2.27.0 introduced the API microversion discovery and client.Client now wants an api_version argument to properly work out the correct API version in use. OSC needs to provide this when required. Letting the compute client plugin do the version validity checking makes more sense than encoding it into shell.py, so I've added a new OSC plugin interface function check_api_version() that is called from shell.py if it exists. If it either does not exist or it returns False the previous version checking using API_VERSIONS is still performed. compute.client.check_api_version() conditionally imports the new novaclient.api_versions module and uses it if successful. Otherwise check_api_version() returns False and the previous code path is resumed. One side-effect of this is that it is now valid to use --os-compute-api-version with any valid microversion supported by the installed python-novaclient. Closes-Bug: #1492467 Change-Id: I4535b38a5639a03a9597bf83f6394f9bb45c2b9e
* | | | Merge "Ignore flavor and image find errors on server show"Jenkins2015-09-031-4/+10
|\ \ \ \
| * | | | Ignore flavor and image find errors on server showTerryHowe2015-08-281-4/+10
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If there is an error finding an image or a flavor during image show, ignore it and just print the id of the flavor or image. This code is also used during server create and server rebuild, but only to display the results. Change-Id: I5362158ab8ffc3e5a0800904d6ea15420c3a8627 Closes-bug: #1489901
* | | | Merge "Running 'limits show' returns nothing"Jenkins2015-09-021-1/+1
|\ \ \ \
| * | | | Running 'limits show' returns nothingMajor Hayden2015-08-141-1/+1
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Running limits show without --absolute or --rate returns nothing and the user is left to figure out what they need to provide to get the correct data back. This patch prints an error and help output by making at least one of the arguments required. Change-Id: I576cf8ec0e05524ee67d46c48b56da8d44258667
* | | | Fix 'auhentication' spelling error/mistakeJoshua Harlow2015-09-011-1/+1
| |/ / |/| | | | | | | | Change-Id: Iba58c188d2ae44170539534eea1415cf8eb65ac4
* | | default OS_VOLUME_API_VERSION to v2Steve Martinelli2015-08-241-1/+1
|/ / | | | | | | | | | | | | | | | | Cinder is trying to deprecate/remove support for v1, so we should, as a client library default to v2 and keep support for v1. Related-Bug: 1467589 Change-Id: I732448a57fc3fd06a8d82ec0f0d2ace671036ca2
* | Use correct domain to find project1.6.0Jamie Lennox2015-08-111-1/+1
| | | | | | | | | | | | | | | | | | When adding a role to a group and project OSC is mistakenly using the group_domain to find the project which will fail if the group_domain != project_domain. Change-Id: I4c1bec9b3b183c755be121b91f40e026d707192b Closes-Bug: #1483520
* | Merge "Inherited info/option when listing role assignment"Jenkins2015-08-083-33/+137
|\ \
| * | Inherited info/option when listing role assignmentSamuel de Medeiros Queiroz2015-08-063-33/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds inherited information when listing role assignments. In addition, it makes possible to list only inherited ones by adding --inherited option. Change-Id: Idf889603d584716da95e2c7b4880142fbd8291c4 Closes-Bug: 1370546