summaryrefslogtreecommitdiff
path: root/openstackclient
Commit message (Collapse)AuthorAgeFilesLines
* compute: Add support for microversion 2.93stable/zedwhoami-rajat2022-09-292-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 (cherry picked from commit 4024bdb3933dd79eec4bcf99c13f3dbf17add40b)
* compute: Require image when rebuilding a volume-backed serverwhoami-rajat2022-09-292-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 (cherry picked from commit 1f63034441a63b968185e1678049c01205b8e6d7)
* 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
* | | | Merge "Add more filter option of columns for server list -c COLUMN"Zuul2022-06-202-0/+35
|\ \ \ \ | |_|/ / |/| | |
| * | | Add more filter option of columns for server list -c COLUMNJIHOJU2022-04-192-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to improve the convenient of use, columns corresponding to the "--long" option has been added so that it can be used in the filter. Currently filterable columns include the following: 'ID', 'Name', 'Status', 'Networks', 'Image', 'Flavor'. Story: 2009150 Task: 43113 Change-Id: I6760ca5da0e3707d1d746ae5eeec7d9162020d15
* | | | Add 'Host Status' to 'server list --long' with >= v2.16melanie witt2022-05-162-0/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, the 'Host Status' field is shown only for 'server show' but not for 'server list'. The host_status can be helpful for users who are having issues with servers that show a status of ACTIVE, as it can show a hint about the compute host status when nova policy is configured to allow it. Story: 2009689 Task: 44003 Change-Id: I6209cf52044218b7b32ab2fa5712574f12ba2f5f
* | | | Merge "Allow to filter multiple tags for image list"Zuul2022-05-163-5/+14
|\ \ \ \ | |_|_|/ |/| | |
| * | | Allow to filter multiple tags for image listDmitriy Rabotyagov2022-05-163-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently in case of passing `--tag` several times, only last one will be picked up for the filtering. In the meanwhile Glance allow option to be repeated multiple times to filter based on the multiple tags. Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/789827 Change-Id: I7379d0b0014f0e3d13b02ee5ec6b642a7a5aa7d1
* | | | Merge "Fix typos"Zuul2022-05-1611-18/+18
|\ \ \ \ | |/ / / |/| | |
| * | | Fix typosCyril Roelandt2021-10-2611-18/+18
| | | | | | | | | | | | | | | | Change-Id: Idd502c8df21da79ff3b9339870f38378f5337879
* | | | Merge "Refactor network fakes to sdk properties PART 4"Zuul2022-05-1317-434/+414
|\ \ \ \
| * | | | Refactor network fakes to sdk properties PART 4Nurmatov Mamatisa2022-04-2917-434/+414
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Included resources: port network_agent network_flavor_profile network_rbac Change-Id: I2e71a3c0fefb56ddcc75865c95746550e2710aa3
* | | | Merge "Stop using private _is_uuid_like method"Zuul2022-05-132-5/+5
|\ \ \ \
| * | | | Stop using private _is_uuid_like methodPavlo Shchelokovskyy2022-04-202-5/+5
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | currently this double-private method of a dependency library is used in several places (openstack.cloud._utils._is_uuid_like) openstacksdk deliberatly chose not to depend on oslo.utils to keep dependenies to the minimum, so it just copied several methods from it, including the is_uuid_like. python-openstackclient however already depends on oslo.utils, so using the public method from oslo.utils should be preferred and more stable. Change-Id: I578ffa36ffb00c9d47ee12a149313201973edd32
* | | | Merge "volume: Add 'block storage resource filter list' command"Zuul2022-05-133-4/+278
|\ \ \ \
| * | | | volume: Add 'block storage resource filter list' commandStephen Finucane2022-05-133-4/+278
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are based on the 'cinder list-filters' command, which accepts an optional '--resource {resource}' option to limit the listed filters to a single resource type. block storage resource filter list block storage resource filter show We used the 'block storage resource filter' terminology rather than simply 'resource filter' to highlight the fact that this is specific to the block storage service. Note that while this feature is a bit weird, good documentation can be found at [1]. [1] https://docs.openstack.org/cinder/latest/admin/generalized_filters.html Change-Id: I21e7c0ea427aef1f6665394d4b8e9a1f30d6dbb1 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | Merge "volume: Add 'block storage cluster *' commands"Zuul2022-05-133-0/+769
|\ \ \ \ \ | |/ / / /
| * | | | volume: Add 'block storage cluster *' commandsStephen Finucane2022-05-133-0/+769
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These mirror the 'cinder cluster-*' commands, with arguments copied across essentially verbatim. The only significant departure is the replacement of "tenant" terminology with "project". block storage cluster list block storage cluster set block storage cluster show We used the 'block storage' terminology rather than simply 'volume' to allow us to start distinguishing between the volume service and a volume resource. Change-Id: I9105a9e4a139af4929e3b1f3a6de6c9a53e0b598 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | Merge "tests: Improve logging for executed commands"Zuul2022-05-132-14/+40
|\ \ \ \ | |/ / / |/| | |
| * | | tests: Improve logging for executed commandsStephen Finucane2021-12-092-14/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're seeing failures in a recently added tests, 'ServerTests.test_server_add_remove_volume' from 'openstackclient/tests/functional/compute/v2/test_server.py'. These failures are likely the result of slow CI nodes, but we don't have enough information in the CI logs to debug them. Starting logging the various commands executed in tests so that we can see these logs if and when tests fail. Change-Id: I4584dc5e6343fe8c8544431a527d8c3c7e7b3c5b Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | Merge "volume: fix backup list of deleted volume"Zuul2022-04-111-3/+11
|\ \ \ \
| * | | | volume: fix backup list of deleted volumeJan Hartkopf2022-03-081-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When trying to list backups of a deleted volume with --volume, openstackclient fails because the volume does not exist. However, for listing a volume's backups, the volume itself does not need to be present. Fix this issue by allowing the volume of the requested backups to not exist. Story: 2009901 Task: 44716 Change-Id: Iea1a567151f427fa0e1ccff3af5cbeab620defcd Signed-off-by: Jan Hartkopf <jhartkopf@inovex.de>
* | | | | Merge "volume list: don't fail when there's no compute service"Zuul2022-03-241-1/+1
|\ \ \ \ \
| * | | | | volume list: don't fail when there's no compute serviceDr. Jens Harbott2022-02-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There may be deployments that only have a volume service but no compute service, possibly as an intermediate step during the initial setup. Don't fail the "volume list" command when no compute client can be initiated. Signed-off-by: Dr. Jens Harbott <harbott@osism.tech> Change-Id: Idef77bdc8753a456a4c431b0385318dff6581a65
* | | | | | Merge "Refactor network fakes to sdk properties PART 3"Zuul2022-03-245-240/+199
|\ \ \ \ \ \
| * | | | | | Refactor network fakes to sdk properties PART 3Nurmatov Mamatisa2022-03-165-240/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Included resources: network_flavor network_segment network_segment_range Change-Id: If5ce0a07052d9dc0edb4f5f22806635b5bb6a523
* | | | | | | Merge "Refactor network fakes to sdk properties PART 2"Zuul2022-03-2313-220/+221
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Refactor network fakes to sdk properties PART 2Nurmatov Mamatisa2022-03-1513-220/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Included resources: ip_availibility network Change-Id: I141bcb43272594da75e776a84a74158fc866ac94
* | | | | | | Merge "Refactor network fakes to sdk properties PART 1"Zuul2022-03-2311-260/+230
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Refactor network fakes to sdk properties PART 1Nurmatov Mamatisa2022-03-1511-260/+230
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Included resources: address_group address_scope auto_allocated_topology availability_zone Change-Id: I943f988588efbe68dd3ab17a18441b25ac8c8d4d
* | | | | | | Allow "--force" flag in quota network commandsRodolfo Alonso Hernandez2022-03-173-1/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This flag allows to set a new Neutron quota resource limit without checking first the current resource usage. The new limit will be set anyway. This flag was used only by the compute engine. Related-Bug: #1953170 Change-Id: I7084f8208b804236ac99e6842db7a45854ce54d7
* | | | | | | compute: Add 'Security Groups' for 'server list'Thobias Salazar Trevisan2022-03-152-0/+13
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a column with security groups name for --long option on server list. Change-Id: I7062f224e18c3c8ac96a06d7ce97f9fab473bdb9
* | | | | | compute: Move server migrations commands to their own fileStephen Finucane2022-03-094-1448/+1513
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'openstackclient.compute.v2.server' module is getting rather large. The server migration commands don't need to be in there. Move them. Change-Id: I8b2600cfd9f8e37d3093c52c7222d85e84e7fc89 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | compute: Allow retrieval of migration by UUIDStephen Finucane2022-03-092-5/+305
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The nova API doesn't allow you to retrieve migration records by UUID, only ID. This is confusing. Work around it by listing records and filtering this list. Change-Id: I932c9c70420e85056509513e005bb78168e70611 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | Merge "Fix 'server event list|show' for deleted servers"Zuul2022-03-092-9/+64
|\ \ \ \ \