summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | 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-137-5/+290
|\ \ \ \ \ \
| * | | | | | volume: Add 'block storage resource filter list' commandStephen Finucane2022-05-137-5/+290
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-138-4/+793
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | volume: Add 'block storage cluster *' commandsStephen Finucane2022-05-138-4/+793
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-174-1/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-095-1452/+1518
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-093-5/+311
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
|\ \ \ \ \ \
| * | | | | | Fix 'server event list|show' for deleted serversmelanie witt2022-02-092-9/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of compute microversion >= 2.21, support for list and show of server events for deleted servers was added. This however wasn't working using the openstackclient because the compute GET /servers/{server_id} will not return a deleted server, so osc_lib.utils.find_resource() fails to find the server and the command bails early. This adds a check for a uuid-like <server> arg and uses it directly if the <server> cannot be found via find_resource(). A note is also added to the command help to indicate that list and show for deleted servers will only work if a server ID is passed (name will not work). Story: 2009841 Task: 44443 Change-Id: Icd33b3b9a3a1855d7893dd111bbb2aca059f45fd
* | | | | | | Merge "compute: Use correct command class for 'show migration'"Zuul2022-03-091-2/+7
|\ \ \ \ \ \ \
| * | | | | | | compute: Use correct command class for 'show migration'Stephen Finucane2021-11-031-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We should be inheriting from 'ShowOne'. Failure to do so results in a tuple being dumped to the screen. Not what we intended. While we're here, we update the docstring of this command to clarify the command's intent. Nova does not provide an API to retrieve an individual migration record for a cold migration or completed live migration. As such, the 'server migration show' command only works for in-progress live-migrations. Change-Id: I2e2fe3da7d642b9e8e3d930603dcde178cd68cde Signed-off-by: Stephen Finucane <sfinucan@redhat.com> Story: 2009658 Task: 43837
* | | | | | | | Merge "Fix metavars and typos in local_ip"Zuul2022-03-093-15/+15
|\ \ \ \ \ \ \ \
| * | | | | | | | Fix metavars and typos in local_ipNurmatov Mamatisa2022-03-023-15/+15
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | Change-Id: I2094f343e3353da25f9c5057ea5444345e271665
* | | | | | | | Add Python3 zed unit testsOpenStack Release Bot2022-03-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for zed. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: Id79fecd4c4b16f2e5c3a5713be50327757346c1a
* | | | | | | | Update master for stable/yogaOpenStack Release Bot2022-03-082-0/+7
| |_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/yoga. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/yoga. Sem-Ver: feature Change-Id: Ie1126dddd3666d3dc108190133df5e3b085a8404
* | | | | | | Merge "Add support for setting extra DHCP options on existing ports"5.8.0Zuul2022-02-252-0/+36
|\ \ \ \ \ \ \
| * | | | | | | Add support for setting extra DHCP options on existing portsSlawek Kaplonski2022-02-212-0/+36
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is now possible to set extra DHCP option for an existing port using "port set" command. It works in the same way like during port creation. Story: 2009095 Task: 42927 Change-Id: I3577d4e3a303137b708ae8687c44b486aa82e296
* | | | | | | Merge "Add support for 'remote-managed' vnic type"Zuul2022-02-232-2/+9
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Add support for 'remote-managed' vnic typeFrode Nordahl2022-02-082-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'remote-managed' vnic type will be used to support off-path SmartNIC port binding with OVN, and it is expected that the user will create ports with this vnic type as part of the workflow. As such the client must allow users to interact with this vnic type and this patch addresses that. Partial-Bug: #1932154 Depends-On: I496db96ea40da3bee5b81bcee1edc79e1f46b541 Change-Id: I566c3da594d757dd62edcf7f9ea3077db8d6b11a
* | | | | | | Merge "image: Sanity check the 'SetImage' command"Zuul2022-02-092-49/+53
|\ \ \ \ \ \ \
| * | | | | | | image: Sanity check the 'SetImage' commandStephen Finucane2021-11-172-49/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was a very difficult command to grok, due to the layering on of additional features over the years. Make this a little easier to follow by grouping related logic and making use of argparse features. Change-Id: I4e1a0aed09ea5d6a8c26ec3e888c9c7b6cefc25a Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | | Merge "tests: Update fake image client in tests"Zuul2022-02-094-36/+28
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | tests: Update fake image client in testsStephen Finucane2021-11-174-36/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These clients are intended to fake out the old glanceclient client which we no longer use. They were only "working" because we weren't actually using any of the glancelclient-based stuff and were instead overriding everything within the tests. Move these overrides back to the main fake client and remove the crud. Change-Id: I92ee74a1df72a6dd23f9d2dc04342aab0cbd3210 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | | Merge "image: Remove FakeImage test helper"Zuul2022-02-0911-222/+187
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | image: Remove FakeImage test helperStephen Finucane2021-11-1711-222/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're no longer creating fake versions of glanceclient's 'Resource' object but rather openstacksdk objects. As such, there's no point nesting things under a fake resource class. Change-Id: I39cd5302622f4542db9eebcccfad0cb90d077441 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | | Merge "docs: Document additional 'server migration' commands"Zuul2022-02-091-1/+1
|\ \ \ \ \ \ \ \
| * | | | | | | | docs: Document additional 'server migration' commandsStephen Finucane2022-02-081-1/+1
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only 'server migration list' was being documented. Change-Id: I038ff2bcf7bb852d619004bb00306d2d388135a7 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | | Merge "compute: Don't warn if disk overcommit params unset"Zuul2022-02-092-12/+16
|\ \ \ \ \ \ \ \ | | |_|/ / / / / | |/| | / / / / | |_|_|/ / / / |/| | | | | |
| * | | | | | compute: Don't warn if disk overcommit params unsetStephen Finucane2021-11-032-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to a small logic error, we were emitting a warning about a deprecated option when the user tried to live migrate an instance using microversion 2.25 even though the user hadn't actually set that option. Correct this. Change-Id: Ib61e817bd4ced9b5533e7c7f9d8f0b45fe81c211 Signed-off-by: Stephen Finucane <sfinucan@redhat.com> Story: 2009657 Task: 43836
* | | | | | | Merge "Add missing command mapping in nova"Zuul2022-02-091-1/+1
|\ \ \ \ \ \ \
| * | | | | | | Add missing command mapping in novaJieonLee2021-11-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nova command: instance-action openstack command: server event show Change-Id: I8e5dad90cfd28b1f0d65be688651918869f679e4
* | | | | | | | Merge "Support Neutron Local IP CRUD"Zuul2022-02-0912-2/+1657
|\ \ \ \ \ \ \ \ | |_|_|/ / / / / |/| | | | | | |
| * | | | | | | Support Neutron Local IP CRUDNurmatov Mamatisa2022-01-2812-2/+1657
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for Neutron Local IP CRUD operations. Partial-Bug: #1930200 Depends-On: https://review.opendev.org/c/openstack/neutron/+/804523 Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/804988 Change-Id: I1095100efb27b8559412469f0a9d07fc0a3db9d5
* | | | | | | | Merge "Add network update quota "limit_check" parameter"Zuul2022-02-034-0/+82
|\ \ \ \ \ \ \ \
| * | | | | | | | Add network update quota "limit_check" parameterRodolfo Alonso Hernandez2021-12-074-0/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new parameter commands the Neutron server to first check the resource usage before setting the new quota limit. If the resource usage is below the new limit, the Neutron server will raise an exception. Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/806254 Depends-On: https://review.opendev.org/c/openstack/neutron/+/801470 Partial-Bug: #1936408 Change-Id: Idc1b99492d609eb699d0a6bef6cd760458a774f6