summaryrefslogtreecommitdiff
path: root/openstackclient
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | 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
|\ \ \ \ \
| * | | | | 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
* | | | | | 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-231-2/+3
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Add support for 'remote-managed' vnic typeFrode Nordahl2022-02-081-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "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 "Support Neutron Local IP CRUD"Zuul2022-02-096-0/+1614
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | Support Neutron Local IP CRUDNurmatov Mamatisa2022-01-286-0/+1614
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-033-0/+77
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Add network update quota "limit_check" parameterRodolfo Alonso Hernandez2021-12-073-0/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Merge "Get rid of tenant_id in the network commands"Zuul2022-01-1739-202/+103
|\ \ \ \ \ \
| * | | | | | Get rid of tenant_id in the network commandsArtem Goncharov2022-01-1739-202/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Finally drop tenant_id completely from the networking service. Change-Id: I5f62f2a76592eaaaed6703624e959df41a6ecc8f
* | | | | | | Merge "Skip original_name from flavor info"Zuul2022-01-171-1/+1
|\ \ \ \ \ \ \
| * | | | | | | Skip original_name from flavor infoArtem Goncharov2022-01-141-1/+1
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the new SDK we are going to add additional parameter to the flavor which make no use for OSC. Exclude it explicitly since it also cause failing tests. Change-Id: Ie35e60498cf18f05c878611df6f88607a04b1870
* | | | | | | Switch compute service list, delete and set to sdk.Ritvik Vinodkumar2022-01-143-156/+235
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch the compute service commands from novaclient to SDK. Change-Id: I16498905101d6c2702a3ccbaf8cf5e3098d51992
* | | | | | Merge "Add --security-group to port list"Zuul2022-01-132-0/+29
|\ \ \ \ \ \
| * | | | | | Add --security-group to port listRodolfo Alonso Hernandez2021-12-022-0/+29
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The neutron API supports filtering ports by security group. Closes-Bug: #1405057 Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/804979 Change-Id: I0f626882716c21ac200c1b929ea04664d21874d8
* | | | | | Fix volume set functional testDr. Jens Harbott2022-01-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes it can happen that when extending a volume it is shown as status "extending" with the original size for a while. Wait for the volume to enter state "available" again before checking the result. Signed-off-by: Dr. Jens Harbott <harbott@osism.tech> Change-Id: Ib70cfa1c241ce94426214c7a05c550213f427caa
* | | | | | Merge "Include hosts in aggregate list --long"Zuul2021-12-252-0/+4
|\ \ \ \ \ \
| * | | | | | Include hosts in aggregate list --longDavid Caro2021-06-032-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it easier to get the total list of aggregates and the hosts belonging to each of them (specially for scripting purposes). Change-Id: I94833c15075ae655bc11e7c0fc47c0abad5846fc Signed-off-by: David Caro <me@dcaro.es>
* | | | | | | Merge "compute: Return information about fixed IP"Zuul2021-12-253-33/+145
|\ \ \ \ \ \ \
| * | | | | | | compute: Return information about fixed IPStephen Finucane2021-12-143-33/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The compute API provides this information to us. We might as well use it. Change-Id: I5608fa80745975ce49712718452cfe296c0f64d2 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | | Merge "Switch add fixed IP to SDK"Zuul2021-12-252-60/+208
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | Switch add fixed IP to SDKRitvik Vinodkumar2021-12-142-60/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch the add fixed IP command from novaclient to SDK. Change-Id: I4752ea7b4bfc17e04b8f46dbe9a68d938501a89e
* | | | | | | | Merge "compute: Pass through args to ssh"Zuul2021-12-252-25/+101
|\ \ \ \ \ \ \ \
| * | | | | | | | compute: Pass through args to sshHugh Saunders2021-12-152-25/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Why limit a user to preset ssh arguments? Capture them all and send them along to ssh to deal with. This allows users to use the full range of ssh arguments, including specifying a command to run on the instance. For example: openstack server ssh -4 upg -- -l cirros -i ~/id_rsa_upg "date; uptime" SSH arguments that openstackclient currently mirrors are deprecated except for -4 and -6, as they are useful for retrieving the correct instance IP. Change-Id: Ia50786d5eee52688e180550fe16aeb8af610154b Co-authored-by: Stephen Finucane <stephen@that.guru>
* | | | | | | | | Merge "compute: Fix weird option definition for 'server ssh'"Zuul2021-12-252-29/+81
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / /
| * | | | | | | | compute: Fix weird option definition for 'server ssh'Stephen Finucane2021-12-152-29/+81
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | argparse allows you to specify multiple options for a given argument when declaring the argument. For some reason, we weren't doing this for the 'server ssh' command. There's no apparent reason for doing things this way and it's been that way since the beginning (2013) so let's not do that. We also add unit tests since they were missing and should exist. Change-Id: I67a9e6516d7057266210cd4083e9ddeb1cfaa5de Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | | Add location to fake network objectsDr. Jens Harbott2021-12-161-4/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Network objects returned from the SDK include a location column which has a reference to the cloud to which the object belongs. Add this column to our fake objects used for testing, so that we can make sure we don't include them in CLI output where they are useless. Change-Id: Ib09027af78e7bf2458cdc76ea9027faa3dbbfcf9 Signed-off-by: Dr. Jens Harbott <harbott@osism.tech>
* | | | | | | | Hide location columns for network objectsDr. Jens Harbott2021-12-1625-26/+142
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Network objects returned from the SDK include a location column which has a reference to the cloud to which the object belongs. We don't want to include them in CLI output where they are useless. The solution implemented in [0] was dropped as a sideeffect in [1]. [0] https://review.opendev.org/c/openstack/python-openstackclient/+/679445 [1] https://review.opendev.org/c/openstack/python-openstackclient/+/815032 Signed-off-by: Dr. Jens Harbott <harbott@osism.tech> Change-Id: I9a408d9721c9c57d752afaab520cd6ee379a5184