summaryrefslogtreecommitdiff
path: root/openstackclient
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | tests: Move json decoding to base test classStephen Finucane2022-11-082-30/+48
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We do this everywhere. Add a simple knob to simplify the pattern. Only one use is migrated initially. The rest will be done separately. Change-Id: Ic3b8958bd4fb1459a8ac3adaff216c2a26628491 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | Merge "compute: Add '--no-network', '--auto-network' flags"Zuul2022-11-082-38/+130
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | compute: Add '--no-network', '--auto-network' flagsStephen Finucane2022-10-262-38/+130
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are aliases for '--nic none' and '--nic auto', respectively. Change-Id: I7b4f7e5c3769a813bd8b2b9cd6090c6fe501e13d Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | Merge "quota: Deprecate "force" behavior for network quotas"Zuul2022-11-053-16/+46
|\ \ \ \ \
| * | | | | quota: Deprecate "force" behavior for network quotasStephen Finucane2022-10-113-16/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In change Idc1b99492d609eb699d0a6bef6cd760458a774f6, we added a '--check-limit' option to enable "no force" behavior for network quotas. This was already the default for compute quotas. Provide a path for harmonizing the behavior of the two options by instead using a '--no-force' option which will become the eventual default for the network quotas also. Change-Id: I25828a3d68e2e900f498e17a0d01fb70be77548e Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | Merge "quota: Fix issues with delete quota command"Zuul2022-11-052-16/+17
|\ \ \ \ \ \
| * | | | | | quota: Fix issues with delete quota commandStephen Finucane2022-10-112-16/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were passing a project object rather than just the ID. Also correct a typo in the call to delete network quotas. Change-Id: I2292db7932ec01026f0e54014e3d02218792617a Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | Merge "tests: Remove unnecessary nesting of volume resources"Zuul2022-11-0534-2567/+2378
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | tests: Remove unnecessary nesting of volume resourcesStephen Finucane2022-09-3034-2567/+2378
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I210ce7534d161e89115e5cb96e42ab7f27170aa1 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | Merge "tests: Remove duplicate FakeImagev1Client"Zuul2022-11-051-7/+4
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | tests: Remove duplicate FakeImagev1ClientStephen Finucane2022-09-301-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I guess this was defined to avoid a circular import. There are easier ways to do this. Change-Id: Iab215a53691298413ea9d10def792008ab9edbce Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | Merge "tests: Move fake clients to top of file"Zuul2022-11-053-123/+123
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | tests: Move fake clients to top of fileStephen Finucane2022-09-303-123/+123
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are important and they're easier to identify at the top of the file than nested deep inside. Change-Id: I1569c855fadfe4cdacf83ee07d08922bf3edefbc Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | Merge "quota: Trivial style fixups"Zuul2022-11-051-38/+40
|\ \ \ \ \ \ | |/ / / / /
| * | | | | 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-051-4/+36
|\ \ \ \ \ \ | |/ / / / /
| * | | | | quota: Deprecate 'quota show --class', 'quota set --class' argumentsStephen Finucane2022-09-301-4/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-052-26/+129
|\ \ \ \ \ \ | |/ / / / / | | | | / / | |_|_|/ / |/| | | |
| * | | | quota: Allow showing project-specific quotasStephen Finucane2022-09-302-26/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-263-0/+186
|\ \ \ \ \
| * | | | | Added "openstack image metadefs namespace list" commandAreg Grigoryan2022-10-263-0/+186
| | |/ / / | |/| | | | | | | | | | | | | | | | | | Change-Id: Ibc064566478818bd70e7e6550095d24a05e1bb0e Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/854612
* | | | | Merge "volume: Volume names are optional"Zuul2022-10-262-4/+3
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | volume: Volume names are optionalStephen Finucane2022-09-142-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Who knew? Change-Id: I1c1a811c0db59250e8a20a87f25c2662bc3ab3e8 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | Merge "quota: Add 'quota show --usage' option"Zuul2022-10-123-30/+133
|\ \ \ \ \ | | |/ / / | |/| | |
| * | | | quota: Add 'quota show --usage' optionStephen Finucane2022-09-303-30/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-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
|\ \ \ \ \ \ \ \