summaryrefslogtreecommitdiff
path: root/openstackclient
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | Merge "Standardize logger usage of catalog in identity"Jenkins2016-06-232-4/+12
|\ \ \ \ \ \
| * | | | | | Standardize logger usage of catalog in identitysunyajing2016-06-232-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I5307f949b3a350e41840a4a5c191ceacf1b3b291 Partially-Implements: blueprint log-usage
* | | | | | | Merge "Remove OSCGenericPassword plugin"Jenkins2016-06-232-46/+2
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Remove OSCGenericPassword pluginDean Troyer2016-06-222-46/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The need for this has passed plus with 3.0 we can take the breakage hit, if any. Change-Id: Ic019842f00033d2cd67b75f036e7e817e4b7c075
* | | | | | | Merge "Refactor unit test of "compute service list" command"Jenkins2016-06-233-9/+42
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Refactor unit test of "compute service list" commandHuanxuan Ao2016-06-223-9/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The unit test of "compute service list" only checked the "Disabled Reason" columns and its data. It is not enough. This patch change the test to check all datas in the list. Also, this patch modify the "Id" to "ID" in this command. Change-Id: I988fd6365f2652185dd96d9417f294eba9c31cd9
* | | | | | | Merge "Fix token/endpoint auth plugin"Jenkins2016-06-221-25/+30
|\ \ \ \ \ \ \
| * | | | | | | Fix token/endpoint auth pluginDean Troyer2016-06-211-25/+30
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [This is not quite reduced from the original proposed fix as some changes have merged that complicate the switch to OSC_Config and v2 auth broke anyway.] Fix the --os-token --os-url breakage in the switch to ksa. Closes-bug: 1593664 Change-Id: I3ac23234fbf647fb145c7bd151d53c5c105462bf
* | | | | | | Merge "Make set/unset commands in compute/image/common return normally when ↵Jenkins2016-06-225-21/+13
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | | | | | | | | nothing specified"
| * | | | | | Make set/unset commands in compute/image/common return normally when nothing ↵Tang Chen2016-06-215-21/+13
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | specified After this patch, all set/unset commands will return normally when nothing specified. Change-Id: Id94d0329faa1a674006a9aae901f834b41917317 Close-bug: #1588588
* | | | | | Merge "Support bulk deletion for "flavor/aggregate delete""Jenkins2016-06-225-33/+185
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | |
| * | | | | Support bulk deletion for "flavor/aggregate delete"Huanxuan Ao2016-06-215-33/+190
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support bulk deletion and error handling for "aggregate delete" and "flavor delete" commands. Change-Id: I3f6105cbeeab1c9f8cd571c63ce0e7ac3d4252b3 Partially-Implements: blueprint multi-argument-compute Partial-Bug: #1592906
* | | | | Merge "Add "--project" option to the "flavor create" command."Jenkins2016-06-212-1/+53
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Add "--project" option to the "flavor create" command.Huanxuan Ao2016-06-212-1/+53
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Add ``--project`` and ``--project-domain`` options to the ``flavor create`` command. We can use these options to add the flavor access to a givin project when we create the flavor. Change-Id: Ic1907272c1d1ae526f9c9e86f32ba06c6da147c0
* | | | Merge "Refactor setting defaults for some scope parameters"Jenkins2016-06-213-37/+48
|\ \ \ \
| * | | | Refactor setting defaults for some scope parametersAlvaro Lopez Garcia2016-06-213-37/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code is setting defaults for some scope parameters, cheking if the name ends with some specific substring (namely ending in "password") causing failures in some plugins that end with the same string, but do not allow those parameters (like "user_domain_id" in "v3oidcpassword"). Closes-Bug: #1582774 Change-Id: Id7036db3b783b135353d035dc4c1df7c808d6474
* | | | | Merge "Refactor check_valid_auth_options function"Jenkins2016-06-211-22/+21
|\ \ \ \ \ | |/ / / /
| * | | | Refactor check_valid_auth_options functionAlvaro Lopez Garcia2016-06-211-22/+21
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The functions check_valid_auth_options() function was relying on the name for checking the set of required options, but this could cause errors with external auth plugins. If somebody defines an auth plugin plugin named "footoken" the check function would check for a "token" option, even if the plugin has not defined that option. This change tries to improve this situation, cheking for some options only if they have been defined in the plugin. Change-Id: I4255f2e7d4d23449c95be957ea7b6b60983f2608
* | | | Merge "Make the print info support i18n"Jenkins2016-06-211-1/+2
|\ \ \ \
| * | | | Make the print info support i18nliyifeng2016-06-211-1/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | When OSC failed to set a image's property, it will print the image name and status, which is an useful info to users. So translate this massage, and record it in log. Change-Id: Icdff4dab17dedcb40289700c4cd278e6e62eea25
* | | | Fix a missing i18n support in security_group_rule.pyHuanxuan Ao2016-06-211-2/+2
|/ / / | | | | | | | | | Change-Id: Id1459366ccf894275a11c2af840568d4fd114e18
* | | Merge "Error handling of "router delete" command"Jenkins2016-06-202-9/+76
|\ \ \
| * | | Error handling of "router delete" commandHuanxuan Ao2016-06-202-9/+76
| |/ / | | | | | | | | | | | | | | | | | | | | | "Router delete" command supports multi deletion but no error handling. This patch add the error handling follow the rule in doc/source/command-error.rst Change-Id: I3376d957b4dc28d8282599dc909ecc5ed2b5f46a
* | | Merge "Add "--network-segment" option to "subnet create""Jenkins2016-06-203-15/+94
|\ \ \ | |_|/ |/| |
| * | Add "--network-segment" option to "subnet create"Richard Theis2016-06-133-15/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "--network-segment" option to the "subnet create" command. This is a beta command option and subject to change. Use global option "--os-beta-command" to enable this option. This patch set also provides a devref update for beta command options. Change-Id: I4d0fbe079b2a873307364c41c22ce9ba88e632e6 Partially-Implements: blueprint routed-networks
* | | Merge "Standardize logger usage"Jenkins2016-06-2026-116/+206
|\ \ \
| * | | Standardize logger usageTang Chen2016-06-2026-116/+206
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use file logger for all command specific logs. This patch also fixes some usage that doesn't follow rules in: http://docs.openstack.org/developer/oslo.i18n/guidelines.html After this patch, all self.log and self.app.log will be standardized to LOG(). NOTE: In shell.py, we got the log in class OpenStackShell, which is also known as self.app.log in other classes. This logger is used to record non-command-specific logs. So we leave it as-is. Change-Id: I114f73ee6c7e84593d71e724bc1ad00d343c1896 Implements: blueprint log-usage
* | | Merge "Fix console url show command broken in microversion case"Jenkins2016-06-202-3/+158
|\ \ \
| * | | Fix console url show command broken in microversion caseRui Chen2016-06-162-3/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The response data of nova get_xxx_console API is changed from "console" to "remote_console" in microversion 2.6, and nova server side API schema verify the spice vnc type to "spice-html5", update OSC code to apply these change so that OSC can work in different nova microversion cases. Change-Id: I3bb4fe057e656209d00d2bb308ac3f7f837cb03f Closes-Bug: #1590318
* | | | Merge "Modify help msg and docs in identity"Jenkins2016-06-204-4/+4
|\ \ \ \
| * | | | Modify help msg and docs in identitysunyajing2016-06-174-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Migrate 'change', 'update' to 'modify', migrate 'user to delete' to 'user(s) to delete', migrate '(name or ID)' to '(type, name or ID)'. Change-Id: Ie425e178bb5ddf773e6e793fcd91c78e9c4a5053
* | | | | Use osc_lib in server_image.pyTang Chen2016-06-202-5/+6
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | server_image.py is a newly created file. So I think we forgot to use osc_lib in it. Change-Id: Ieda13438662ea55b03f549108aac63c18b9af913
* | | | Merge "Do not prompt for scope options with default scoped tokens"Jenkins2016-06-174-33/+44
|\ \ \ \
| * | | | Do not prompt for scope options with default scoped tokensDolph Mathews2016-06-174-33/+44
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the scope validation to occur after a token has already been created. Previous flow: 1. Validate authentication options. 2. Validate authorization options if the command requires a scope. 3. Create a token (using authentication + authorization options) 4. Run command. This means that scope was being checked, even if a default scope was applied in step 3 by Keystone. New flow: 1. Validate authentication options. 2. Create token (using authentication + authorization options) 3 Validate authorization options if the command requires a scope and the token is not scoped. 4. Run command. Change-Id: Idae368a11249f425b14b891fc68b4176e2b3e981 Closes-Bug: 1592062
* | | | Merge "Modify unit tests of compute agent delete"Jenkins2016-06-171-0/+10
|\ \ \ \ | |/ / / |/| | |
| * | | Modify unit tests of compute agent deletesunyajing2016-06-081-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | add no-input test to ``compute agent delete`` unit tests. Change-Id: Iee22b75c9a9431e57cb634dc28a5efa9b43b7369
* | | | Merge "Make set/unset command in identity and image pass normally when ↵Jenkins2016-06-176-38/+87
|\ \ \ \ | | | | | | | | | | | | | | | nothing specified"
| * | | | Make set/unset command in identity and image pass normally when nothing ↵sunyajing2016-06-176-38/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | specified Also update its unit tests. Change-Id: I82b90658b0d4247cdc9a650f14aceda640a32059 Partial-bug: #1588588
* | | | | move release note to correct directorySteve Martinelli2016-06-161-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | not sure how this one release note was slotted into it's own directory, but let's move it with the others. Change-Id: I20eb36b1778b6fc9b5e550390962ec11dae38db4
* | | | | Merge "Support bulk deletion for delete commands in networkv2"Jenkins2016-06-165-23/+206
|\ \ \ \ \
| * | | | | Support bulk deletion for delete commands in networkv2Huanxuan Ao2016-06-165-23/+206
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch support bulk deletion for delete commands below: 1.subnet delete 2.subnet pool delete Up to now, all the delete commands in networkv2 support bulk deletion. Change-Id: I63f6d1d02bad1fcc26e72b7028b53958a68ce2dc Partially-Implements: blueprint multi-argument-network Partial-Bug: #1592906
* | | | | Merge "Move server image create command to its own resource file."Jenkins2016-06-164-218/+338
|\ \ \ \ \
| * | | | | Move server image create command to its own resource file.Dean Troyer2016-06-034-218/+338
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: If37e82072bd7a32b81bfb1a8bb048f018dd5b04f
* | | | | | Merge "Fix help msg of identity endpoint"Jenkins2016-06-162-6/+6
|\ \ \ \ \ \
| * | | | | | Fix help msg of identity endpointsunyajing2016-06-162-6/+6
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | <service> argument of `endpoint create` command doesn't mean `new endpoint service`, but an existent service that the new endpoint attached to. Change-Id: I846fdb501bdea14499f42288186f375a3b2b5951
* | | | | | Finish osc-lib transition for command.pyDean Troyer2016-06-152-3/+3
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://review.openstack.org/#/c/328318/ was the transition of openstackclient/common/command.py to osc-lib but it was incomplete; https://review.openstack.org/#/c/329885/ started to fix it but was also incomplete. Third time is charm? Change-Id: Ib6c0266155c2155ae59067ce7b15bebca1e375e8
* | | | | Merge "Setup deprecate msg for command.py"Jenkins2016-06-151-38/+8
|\ \ \ \ \
| * | | | | Setup deprecate msg for command.pyTang Chen2016-06-151-38/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This could be a miss when we use osc_lib first in OSC. command.py has been moved to osc_lib, and should reuse it and print a deprecate msg if the old file is used. Change-Id: Ibc35659f6f78b8f5e3c6026db2644a876ef7c549
* | | | | | Merge "Support bulk deletion for commands that exist in both network and ↵Jenkins2016-06-158-63/+444
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | compute."
| * | | | | | Support bulk deletion for commands that exist in both network and compute.Huanxuan Ao2016-06-158-63/+444
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some delete commands in networkv2 are exist in both network and compute, They can use NetworkAndComputeDeleteclass to supprot bulk deletion and error handling and the codes are similar, so I change them all in this patch. The changed commands including: 1.floating ip delete 2.security group delete 3.security group rule delete Also, I update unit tests and docs for these commands in this patch. Change-Id: I6c94c3d10ba579ddd9b14d17673c821e3481fd8a Partially-Implements: blueprint multi-argument-network