summaryrefslogtreecommitdiff
path: root/openstackclient
Commit message (Collapse)AuthorAgeFilesLines
* Merge "quota: Add support for detailed volume quotas"Zuul2022-10-073-10/+82
|\
| * quota: Add support for detailed volume quotasStephen Finucane2022-09-303-10/+82
| | | | | | | | | | | | | | | | 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-072-0/+186
|\ \ | |/
| * quota: Add 'quota delete' commandStephen Finucane2022-09-302-0/+186
| | | | | | | | | | | | | | | | | | 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 "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-302-1/+58
|\ \ \
| * | | Speed up standard flavor list commandPavlo Shchelokovskyy2022-09-302-1/+58
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "compute: Only retrieve necessary images"Zuul2022-09-302-12/+43
|\ \ \
| * | | compute: Only retrieve necessary imagesStephen Finucane2022-04-122-12/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-302-1/+214
|\ \ \ \
| * | | | Add authorization_ttl for identity providersPavlo Shchelokovskyy2022-07-132-1/+214
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | 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-302-2/+193
|\ \ \ \
| * | | | Add trustor and trustee filtering to trusts listNicolas Belouin2022-04-122-2/+193
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-302-0/+34
|\ \ \ \
| * | | | network: Add tenant project filter for RBAC listJan Hartkopf2022-09-062-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "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>
* | | | | | image: Add 'image task list' commandStephen Finucane2022-09-213-1/+228
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces the 'glance task-list' command. $ openstack image task list We also indicate that the 'image task create' command will never be implemented. This is an admin-only API that isn't really intended to be used by humans thus it does not need an OSC command implementation. Change-Id: Id8a943a5443782fc70c0fbf3639f5aa17b9d30af
* | | | | | image: Add 'image task show' commandslsmman2022-09-213-0/+212
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces and the 'glance task-show' command. For example: $ image task show <TASK_ID> Change-Id: I74cb23e436c373fe238804b903bbeb28f643d5af
* | | | | compute: Add support for microversion 2.93whoami-rajat2022-09-142-0/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add '--reimage-boot-volume' and '--no-reimage-boot-volume parameters' to the rebuild command to allow rebuilding of volume backed instances. Change-Id: I4a6e30b2cf12f32202a2d9ef1ced347e1dd139f3
* | | | | compute: Require image when rebuilding a volume-backed serverwhoami-rajat2022-09-142-3/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A volume-backed server will have no image attribute (or rather the image property will be set to the empty string). As such, if you want to try rebuild you will need to specify an image [*]. Enforce this. [*] Before microversion 2.93, this must be the same image. However, we don't touch on that here. This will be addressed later. Change-Id: I6842dabd7acb4e3a78f894e55e616625757eb6a4 Story: 2010297 Task: 46290
* | | | | Add address-scope to NDP proxy testselajkat2022-09-091-4/+29
| |/ / / |/| | | | | | | | | | | | | | | Related-Bug: #1987410 Change-Id: I61df81381803ca289f295ab8d7a8f495bb169447
* | | | Merge "Microversion 2.91: Support specifying destination host to unshelve"Zuul2022-09-012-3/+215
|\ \ \ \
| * | | | Microversion 2.91: Support specifying destination host to unshelveRené Ribaud2022-08-222-3/+215
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a new parameter ``--host`` to ``openstack server unshelve`` command. This can help administrators to specify an ``host`` to unshelve a shelve offloaded server. And add new parameter ``--no-availability-zone`` to unpin a server availability These parameters are available in the 2.91 microversion. Depends-On: https://review.opendev.org/c/openstack/python-novaclient/+/831651 Implements: blueprint unshelve-to-host Change-Id: I7986adc7563f63bcd4b3caf5eb7bc4329b4e1eca
* | | | | Add router ndp proxy commandsYang JianFeng2022-08-265-0/+1013
|/ / / / | | | | | | | | | | | | | | | | | | | | Depends-on: https://review.opendev.org/749036 Change-Id: I77e12cc2dfe4000bd5ae6511878c6591f52d9791 Related-Bug: #1877301
* | | | Migrate server_groups to the new APIViolet Kurtz2022-08-024-278/+229
|/ / / | | | | | | | | | | | | | | | Moved the server_groups to the new API. Change-Id: Ied7bd6f56e277f0c5efcd5ba028765f9be65050f
* | | Merge "Add support for CRUD operations for QoS minimum packet rate rule"Zuul2022-07-204-12/+429
|\ \ \ | |/ / |/| |
| * | Add support for CRUD operations for QoS minimum packet rate rulePrzemyslaw Szczerbik2022-07-014-12/+429
| | | | | | | | | | | | | | | | | | | | | Closes-Bug: #1922237 Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/810364 See-Also: https://review.opendev.org/785236 Change-Id: Ie7e1eb0575fd37121d5097ecbc318d0769ab3db0
* | | image: Split image creation depending on serviceStephen Finucane2022-06-301-50/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'image create' operation is actually one of two operations: it can be either an image service (glance) operation if the '--volume' argument is *not* passed or a block storage (cinder) operation if it is. Make this clearer and add a log warning users about options that are supported by the former but not the latter. Change-Id: Id153c951a7d18403568bf67e13d5e0a4827428d4 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | image: Make better use of argparseStephen Finucane2022-06-302-149/+116
| | | | | | | | | | | | | | | | | | | | | | | | Simplify some logic by using a common 'dest' for mutually exclusive options. Change-Id: Ie5f3600672953f40be52de51e84717c8912ddaf8 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | image: Trivial style changesStephen Finucane2022-06-301-191/+321
|/ / | | | | | | | | Change-Id: I35b7b8a80609916eb47357af4398789788d66382 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | Fix: create image from volume commandwhoami-rajat2022-06-302-3/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the command ``openstack image create --volume`` calls cinderclient to upload the volume to image service (glance) but OSC passes ``visibility`` and ``protected`` fields which are only available in microversion 3.1 or greater. This generates an error if the user is using volume microversion < 3.1 and wants to create an image from volume. This patch fixes that by only passing ``visibility`` and ``protected`` fields when the volume microversion is 3.1 or greater and fail otherwise i.e. the following 3 cases: 1) visibility/protected argument + mv >= 3.1 = pass 2) visibility/protected argument + mv < 3.1 = fail 3) not visibility/protected argument + any mv = pass Story: 2010060 Task: 45511 Change-Id: I568a0ea0af8f7f82b16d49a6a1bb0391b99c50dc
* | Merge "Skip test_quota_network_set_with_force func test"Zuul2022-06-281-0/+1
|\ \
| * | Skip test_quota_network_set_with_force func testDr. Jens Harbott2022-06-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test was added in [0] and it causes a lot of failures, since setting the network quota to 1 will result in quota errors for any other test that is trying to create a network in parallel. We can only run this test in a serial tempest task that would need to be created for such a scenario. Related-Story: 2010110 Change-Id: I6015c181ecabff26bdb1b0c11b0e33ad39e6f083
* | | Merge "volume: Correct output of 'volume attachment create'"Zuul2022-06-272-8/+18
|\ \ \
| * | | volume: Correct output of 'volume attachment create'Stephen Finucane2022-05-162-8/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When adding these, we missed that the underlying cinder library call actually returns a dictionary and not a Resource-based object. This requires slightly different handling. Fix this. Change-Id: Ie065fe4198ae1238830cb619220e856390d4cb6e Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | Don't show tenant_id in network objectsDr. Jens Harbott2022-06-2719-21/+24
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch [0] dropped mapping the tenant_id attribute to project_id. However, the Neutron API still returns the tenant_id attribute in addition to the project_id and so we still need to discard it from the output. [0] I5f62f2a76592eaaaed6703624e959df41a6ecc8f Signed-off-by: Dr. Jens Harbott <harbott@osism.tech> Change-Id: Iba1e003bf587802f28928cb44d160b3b3fb1f840
* | | Merge "Allow users to list all images"Zuul2022-06-202-0/+41
|\ \ \
| * | | Allow users to list all imagesCyril Roelandt2022-06-072-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a "--all" option to "openstack image list", which allows the user to list all of the images. Story: 2010071 Change-Id: I56a2e4846d0380d07803305fb830d1a43dfd71b3
* | | | Merge "Refactor "volume backup restore" command"Zuul2022-06-204-26/+163
|\ \ \ \
| * | | | Refactor "volume backup restore" commandHuanxuan Ao2022-03-104-26/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the positional argument "volume" optional and add a "--force" option (volume v2 only) to the "volume backup restore" command. Closes-Bug: #1597189 Change-Id: If944e10158bd18e8331be63e96187a23e23095d7