summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | quota: Trivial style fixupsStephen Finucane2022-09-301-38/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I4522b54676033dced2b47477238ceb551e11d04a Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | Merge "quota: Deprecate 'quota show --class', 'quota set --class' arguments"Zuul2022-11-052-4/+47
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | quota: Deprecate 'quota show --class', 'quota set --class' argumentsStephen Finucane2022-09-302-4/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This doesn't do anything special in nova and cinder and is not supported in neutron. For the 'quota show' command, people should use the '--default' argument instead. Change-Id: I0dd38e5cb252a01d5817ed168be040b21b35e348 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | Merge "quota: Allow showing project-specific quotas"Zuul2022-11-053-26/+134
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | / / | |_|_|_|/ / |/| | | | |
| * | | | | quota: Allow showing project-specific quotasStephen Finucane2022-09-303-26/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add '--compute', '--network' and '--volume' options to the 'quota show' command, along with a default '--all' option, allowing us to restrict quotas shown to an individual service. Change-Id: I122b765df01887b8d916ee6567ffb7768fcb4392 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | Merge "Added "openstack image metadefs namespace list" command"Zuul2022-10-266-1/+192
|\ \ \ \ \ \
| * | | | | | Added "openstack image metadefs namespace list" commandAreg Grigoryan2022-10-266-1/+192
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | Change-Id: Ibc064566478818bd70e7e6550095d24a05e1bb0e Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/854612
* | | | | | Merge "volume: Volume names are optional"Zuul2022-10-263-4/+7
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | volume: Volume names are optionalStephen Finucane2022-09-143-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Who knew? Change-Id: I1c1a811c0db59250e8a20a87f25c2662bc3ab3e8 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | Merge "quota: Add 'quota show --usage' option"Zuul2022-10-125-31/+152
|\ \ \ \ \ \ | | |/ / / / | |/| | | |
| * | | | | quota: Add 'quota show --usage' optionStephen Finucane2022-09-305-31/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide an more sane way to get usage information for a particular project's quotas. This requires using the 'Lister' command type since the 'ShowOne' command type only allows for simple key-value pair output. We also add a note indicating that the '<project>' argument is optional. Change-Id: Ic7342cf08f024cc690049414c5eef5b9a7594677 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | Merge "quota: Simplify logic used to list, show quotas"Zuul2022-10-122-224/+268
|\ \ \ \ \ \ | |/ / / / /
| * | | | | quota: Simplify logic used to list, show quotasStephen Finucane2022-09-302-224/+268
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is prep work for some changes we're introducing in a later change. Change-Id: I27a59bc1d57e6815fb166fb99ea2af88f08b68a9 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | Merge "quota: Add support for detailed volume quotas"Zuul2022-10-075-11/+90
|\ \ \ \ \ \ | |/ / / / /
| * | | | | quota: Add support for detailed volume quotasStephen Finucane2022-09-305-11/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were stating that this was not supported. That is not true. Correct the oversight. Change-Id: Ib9d9db641a18e142be0a1eccff783e7cccdf2db5 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | Merge "quota: Add 'quota delete' command"Zuul2022-10-078-5/+197
|\ \ \ \ \ \ | |/ / / / /
| * | | | | quota: Add 'quota delete' commandStephen Finucane2022-09-308-5/+197
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We had previously indicated that people use 'quota set' for unsetting a project's quotas, however, there was nothing that actually allowed us to do this. Correct that oversight. Change-Id: I04057e766b8ccf94bf219972249b68dc2bb796d4 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | Merge "doc: Update cinder command mapping"Zuul2022-10-071-1/+1
|\ \ \ \ \ \ | |/ / / / /
| * | | | | doc: Update cinder command mappingStephen Finucane2022-09-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I had incorrectly marked the 'api-version' command as WONTFIX. Turns out we already support this, albeit via keystone as opposed to a cinder-specific API. Change-Id: I804ef1ca5a0f4df844d8c2229688c4edbac45aa9 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | Merge "Remove invalid note from requirements files"Zuul2022-10-053-9/+0
|\ \ \ \ \ \
| * | | | | | Remove invalid note from requirements filesStephen Finucane2022-08-243-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This isn't true with the new dependency resolver introduced in pip 20.3. Change-Id: Ie28fe625663c960fbffa12efb1503b8c9f8c0581 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | Merge "Bump python-novaclient version"Zuul2022-10-051-1/+1
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Bump python-novaclient versionStephen Finucane2022-08-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The recently added support for nova API microversions 2.91 and 2.92 necessitate a newer version of python-novaclient. Make it so. Change-Id: I40a77334e4aee2e196062c38a0bb70f8f3079b44 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | Merge "Fix server evacuate command"Zuul2022-09-301-2/+2
|\ \ \ \ \ \ \
| * | | | | | | Fix server evacuate commandPavlo Shchelokovskyy2022-09-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I don't think it has ever worked in fact.. The server.evacuate() in novaclient returns not a Server() instance, but a TupleWithMeta() object, that has no .to_dict() method [0] used in _prep_server_detail() function. [0] https://review.opendev.org/c/openstack/python-novaclient/+/276639 Change-Id: I22f9ac072eb1b0bfd1263a256e9bea4500c03290 Story: 2010204 Task: 45928
* | | | | | | | Merge "Speed up standard flavor list command"Zuul2022-09-303-1/+66
|\ \ \ \ \ \ \ \
| * | | | | | | | Speed up standard flavor list commandPavlo Shchelokovskyy2022-09-303-1/+66
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | currently this command tries to fetch extra_specs for any flavor that does not have them (which is quite usual), regardless if the command was even asked to display them (--long) at all. This significantly slows down this command as it makes a lot of unnecessary REST calls, one per each flavor to fetch extra_specs for. With this patch, client only attempts to fetch flavor extra_specs if the user actually called the client with --long. Change-Id: Ia36414d891a41b641d7a9a04f0a1e7d43cfee351 Story: 2010343 Task: 46484
* | | | | | | | Merge "docs: Add missing command mappings"Zuul2022-09-302-6/+6
|\ \ \ \ \ \ \ \
| * | | | | | | | docs: Add missing command mappingsStephen Finucane2022-07-072-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'neutron tag-replace' command is equivalent to the 'openstack network set --no-tag --tag <tag> [--tag <tag> ...]' command. '--no-tag' will unset all tags while '--tag <tag>' will set a new tag and can be specified multiple times. The 'nova hypervisor-uptime' command is equivalent to the 'openstack hypervisor show' command. Before compute microversion 2.88, the nova command was using a different API that returned an almost identical output to 'nova hypervisor-show' except it included an 'uptime' field. Since 2.88, this field is returned in the standard call. OSC abstracts this detail away so the 'uptime' field is always present, removing the need for a separate command. The 'nova migration-list' command is implemented as 'openstack server migration list' (simply omit the '--server' filter). The 'nova volume-update' command is implemented as 'openstack server volume update'. The 'nova volume-attachments' command is actually available as 'openstack server volume list', though you can also use 'server show'. The 'nova aggregate-cache-images' corresponds to an internal API that only glance should be using. It doesn't need to be exposed via openstackclient. Change-Id: Icdbc42762230954f6f7f2064b6228416af41d45a Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | | | Merge "compute: Only retrieve necessary images"Zuul2022-09-303-12/+51
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | compute: Only retrieve necessary imagesStephen Finucane2022-04-123-12/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Glance API allows us to filter by multiple IDs using the 'in:' operator. Take advantage of this to speed up listing of server in larger deployments where image counts in the hundreds (or even thousands) are not uncommon. Unfortunately the Nova API does not support something similar for listing flavors. Boo. Change-Id: I7d3222d0b0b8bf72b4ff3e429bc49e621b569979 Signed-off-by: Stephen Finucane <sfinucan@redhat.com> Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/837613
* | | | | | | | | | Merge "Add authorization_ttl for identity providers"Zuul2022-09-303-1/+223
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Add authorization_ttl for identity providersPavlo Shchelokovskyy2022-07-133-1/+223
| | |_|_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this is supported since Ussuri (Keystone API version 3.14) but was lacking from openstackclient. Change-Id: Ifac818b9a4eff66d9a68455ada1ddfe67cb46b3b
* | | | | | | | | | Merge "Fix wrong assertion methods"Zuul2022-09-302-2/+2
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Fix wrong assertion methodsTakashi Natsume2022-09-232-2/+2
| | |_|_|_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Iebf4840662e87e59a06b56f1b5248728cba03c24 Story: 2010288 Task: 46261 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* | | | | | | | | | Merge "Improve help text for network create --external"Zuul2022-09-301-4/+8
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Improve help text for network create --externalBence Romsics2022-09-261-4/+8
| | |_|_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie802fbb8a35e53dcb79b5581f64caa2db1609480 Closes-Bug: #1990285
* | | | | | | | | | Merge "Add trustor and trustee filtering to trusts list"Zuul2022-09-303-2/+202
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Add trustor and trustee filtering to trusts listNicolas Belouin2022-04-123-2/+202
| | |_|_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The keystone API supports filtering trusts by trustor and/or trustee. Also adds a shortcut parameter to get trusts with current user as trustee or trustor. Signed-off-by: Nicolas Belouin <nicolas.belouin@gandi.net> Change-Id: I00ed2b68cf8ada214a59f640f4f0a5c9dbc37063
* | | | | | | | | | Merge "config: Also mask non-prefix config"Zuul2022-09-303-32/+71
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | config: Also mask non-prefix configryanKor2022-08-013-32/+71
| | |_|_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'config show' command will show information about your current configuration. When using a 'cloud.yaml' file and the 'OS_CLOUD' environment variable, the output of this will look like so: $ openstack config show +---------------------------------------------+----------------------------------+ | Field | Value | +---------------------------------------------+----------------------------------+ | additional_user_agent | [('osc-lib', '2.6.0')] | | api_timeout | None | | auth.auth_url | https://example.com:13000 | | auth.password | <redacted> | | auth.project_domain_id | default | | auth.project_id | c73b7097d07c46f78eb4b4dcfbac5ca8 | | auth.project_name | test-project | | auth.user_domain_name | example.com | | auth.username | john-doe | ... All of the 'auth.'-prefixed values are extracted from the corresponding entry in the 'clouds.yaml' file. You'll note that the 'auth.password' value is not shown. Instead, it is masked and replaced with '<redacted>'. However, a 'clouds.yaml' file is not the only way to configure these tools. You can also use old school environment variables. By using an openrc file from Horizon (or the clouds2env tool [1]), we will set various 'OS_'-prefixed environment variables. When you use the 'config show' command with these environment variables set, we will see all of these values appear in the output *without* an 'auth.' prefix. Scanning down we will see the password value is not redacted. $ openstack config show +---------------------------------------------+----------------------------------+ | Field | Value | +---------------------------------------------+----------------------------------+ | additional_user_agent | [('osc-lib', '2.6.0')] | | api_timeout | None | ... | password | secret-password | ... This will also happen if using tokens. This is obviously incorrect. These should be masked also. Make it so. This involves enhancing our fake config generation code to generate config that looks like it came from environment variables. Change-Id: I560b928e5e6bcdcd89c409e0678dfc0d0b056c0e Story: 2008816 Task: 42260
* | | | | | | | | | Merge "network: Add tenant project filter for RBAC list"Zuul2022-09-303-0/+39
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | network: Add tenant project filter for RBAC listJan Hartkopf2022-09-063-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements a new parser argument "--target-project" to list RBAC policies for a specific tenant project only. This uses the already existing server-side query parameter "target_tenant". Story: 2009937 Task: 44824 Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/834442 Change-Id: I83ff07041a022e8795e3c5550c6a7aabb0c0d8c8 Signed-off-by: Jan Hartkopf <jhartkopf@inovex.de>
* | | | | | | | | | | Merge "remove unicode prefix from code"Zuul2022-09-302-16/+16
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | remove unicode prefix from codeniuke2022-08-152-16/+16
| | |_|_|_|_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I0b1ca4237de61b70c694f36e1956e71a2a6b39a4
* | | | | | | | | | | Merge "Fix missing closing brackets in metavar"Zuul2022-09-301-2/+2
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Fix missing closing brackets in metavarTakashi Kajinami2022-08-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... to display the complete format in --help output. Change-Id: I4d0f044072b206f6205b4b4f4992fd08f01729d6
* | | | | | | | | | | | Merge "Replace assertItemsEqual with assertCountEqual"Zuul2022-09-303-15/+15
|\ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | Replace assertItemsEqual with assertCountEqualTakashi Natsume2022-09-193-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The assertItemsEqual were replaced with assertCountEqual in I0bbffbec8889b8b3067cfe17d258f5cb16624f38. However the following changes add assertItemsEqual after that. * I1095100efb27b8559412469f0a9d07fc0a3db9d5 * Ic230c2c5cda8255d8f2c422880aeac81670b2df3 * Ica3320242a38901c1180b2b29109c9474366fde0 So Replace assertItemsEqual with assertCountEqual again. Change-Id: I11ff1748225e434f64dbaf7b88dc80ba28a5e2a0 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* | | | | | | | | | | | | Merge "image: Add 'image task list' command"Zuul2022-09-306-3/+233
|\ \ \ \ \ \ \ \ \ \ \ \ \