summaryrefslogtreecommitdiff
path: root/openstackclient/compute/v2
Commit message (Collapse)AuthorAgeFilesLines
* Merge "compute: Fix bug with start/stop server"Zuul2023-05-171-4/+4
|\
| * compute: Fix bug with start/stop serverStephen Finucane2023-05-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | A mistake was introduced during the conversion from novaclient to SDK in change I5ebfa6b2468d5f20b99ea0eab1aea9377be09b8c. Fix the issue and add functional tests to prevent it being reintroduced. Change-Id: I6b314eab31bcf452e88b8b6a239ac2e296497cb9 Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Story: 2010750 Task: 48004
* | Allow server rebuild --wait for SHUTOFF serversPavlo Shchelokovskyy2023-05-171-0/+10
|/ | | | | | | | | | | | | | | currently the command is waiting only for ACTIVE server status, but if the server was SHUTOFF before, it will be SHUTOFF after rebuild as well, so the command is stuck in waiting forever. Additionally, we now also pre-validate the server status on client side, and raise an error if the server to be rebuilt is not in ACTIVE, ERROR or SHUTOFF state. Change-Id: If90a4bbba9a7ecd972f8b594c52fee4f75a0ae5e Co-Authored-By: Oleksiy Molchanov <omolchanov@mirantis.com> Story: 2010751 Task: 48005
* Blacken openstackclient.computeStephen Finucane2023-05-1016-746/+943
| | | | | | | | | | Black used with the '-l 79 -S' flags. A future change will ignore this commit in git-blame history by adding a 'git-blame-ignore-revs' file. Change-Id: I9af45c062d179ab3dc2a5e969e1c467932753a2b Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* compute: Generate SSH keypairs ourselvesStephen Finucane2023-05-021-31/+70
| | | | | | | | | | Starting with the 2.92 microversion, nova will no longer generate SSH keys. Avoid breaking users by generating keypairs ourselves using the cryptography library, which was already an indirect dependency through openstacksdk. Change-Id: I3ad2732f70854ab72da0947f00847351dda23944 Implements: blueprint keypair-generation-removal
* Migrate 'server event *' commands to SDKHuda Irshad2023-04-201-20/+83
| | | | | | | | | This one is tricky since the ServerAction resources includes a nested ServerActionEvent resource which requires a custom formatter in order for things to render as expected. Change-Id: I3d24851303222af9efcee8d7e1565278b1018efd Co-authored-by: Stephen Finucane <stephenfin@redhat.com>
* compute: Migrate 'reboot server' to SDKStephen Finucane2023-04-041-14/+15
| | | | | Change-Id: Ibad4078f680d3b2615b9ca6f6c72c4fd28030b55 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Merge ""hypervisor list --matching" showed the wrong result"Zuul2023-04-041-6/+10
|\
| * "hypervisor list --matching" showed the wrong resultdevMuscle2023-03-261-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, using the "--matching" option shows empty results. Previously, the "--matching" option called the "find_hypervisor method", so we used to call the "hypervisor method" like any other "--limit, --marker" options. Depending on the nova api version, the api that is basically called is as follows 2.53 >= : /os-hypervisors/detail?hypervisor_hostname_pattern=$HOSTNAME 2.53 < : /os-hypervisors/{pattern}/search Hypervisor Type and Host IP are not returned when using microversion 2.52 or lower Co-authored-by: Jipyo Hong <hongsbien@naver.com> Co-authored-by: Jieon Lee <dlwldjs7544@naver.com> Co-authored-by: YoonSoo LIM <msdbtjd123@naver.com> story: 2010670 task: 47726 Change-Id: I7b47acf48def7d4c5f4b74e4dba1c23d8ac7abf2
* | Merge "Switch server shelve, unshelve to SDK"Zuul2023-04-031-34/+48
|\ \
| * | Switch server shelve, unshelve to SDKStephen Finucane2022-12-191-34/+48
| | | | | | | | | | | | | | | | | | | | | This one is a little more complicated because we support waiting. Change-Id: I5bd65b44c23bfee1e0144dbd060563ecc3cfb942 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | Merge "compute: Switch server restore to SDK"Zuul2023-04-031-5/+6
|\ \ \ | |/ /
| * | compute: Switch server restore to SDKStephen Finucane2022-12-191-5/+6
| | | | | | | | | | | | | | | | | | Change-Id: I8df9711b736991c01136988aa06c8540d640f52f Signed-off-by: Stephen Finucane <sfinucan@redhat.com> Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/868108
* | | Merge "Switch server start, server stop to SDK"Zuul2023-03-301-14/+30
|\ \ \ | |/ /
| * | Switch server start, server stop to SDKThrivikram Mudunuri2022-12-191-14/+30
| | | | | | | | | | | | | | | | | | Switch the server start and server stop commands from novaclient to SDK. Change-Id: I5ebfa6b2468d5f20b99ea0eab1aea9377be09b8c
* | | Merge "Switch server lock, unlock to sdk"Zuul2023-03-301-17/+27
|\ \ \ | |/ / | | / | |/ |/|
| * Switch server lock, unlock to sdksuneethravi2022-12-191-17/+27
| | | | | | | | | | | | | | Switch server lock commands from novaclient to SDK. Change-Id: I042db99c9d7a0d8d207f8cdf69d786bd4fe904e7 Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/867890
* | Merge "Update 'host list' and 'host show' command to use sdk"Zuul2023-02-221-16/+44
|\ \
| * | Update 'host list' and 'host show' command to use sdkHarsh Mutha2022-12-201-16/+44
| |/ | | | | | | Change-Id: I3813ff604ba46112ebd358509ea4f28ee38ca3ee
* | Merge "Fix really long help strings"Zuul2023-02-222-23/+21
|\ \
| * | Fix really long help stringsStephen Finucane2022-12-122-23/+21
| | | | | | | | | | | | | | | | | | | | | | | | Each command should have a summary line followed by a longer description, if needed. Some commands were not following this. Fix them. Change-Id: If1ce7654037d192626460f34c069ea0979919b9b Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | Merge "Finish switching server migration to sdk"Zuul2023-02-211-29/+53
|\ \ \
| * | | Finish switching server migration to sdkViolet Kurtz2022-12-141-29/+53
| | |/ | |/| | | | | | | Change-Id: Ic0e6dfdc986989599bfc73b8c274631232161c25
* | | Merge "compute: 'server volume update' -> 'server volume set'"Zuul2023-02-212-7/+8
|\ \ \
| * | | compute: 'server volume update' -> 'server volume set'Stephen Finucane2022-12-152-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We use 'set', not 'update', in command names. An alias is provided. Change-Id: I7864599e06df055999b975aabf101611cd482753 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | Merge "Switch server volume update to sdk"Zuul2023-02-211-19/+16
|\ \ \ \ | |/ / /
| * | | Switch server volume update to sdkRitvik Vinodkumar2022-12-151-19/+16
| | | | | | | | | | | | | | | | | | | | | | | | Switch the server volume update command from novaclient to SDK. Change-Id: Ib9876775bcf8268344da1a58ab0dd1695cb83ece
* | | | Merge "Switch list server volume to sdk"Zuul2023-02-211-18/+13
|\ \ \ \ | |/ / / | | / / | |/ / |/| |
| * | Switch list server volume to sdkRitvik Vinodkumar2022-12-151-18/+13
| | | | | | | | | | | | | | | | | | | | | Switch the server volume list command from novaclient to SDK. Modified functional test for server add/remove volume. Change-Id: I5b4ab7d0275aec2e02451c5371319ac350af6a5f
* | | Merge "Switch server dump create to using sdk"Zuul2022-12-151-6/+4
|\ \ \
| * | | Switch server dump create to using sdkDiwei Zhu2022-12-151-6/+4
| |/ / | | | | | | | | | | | | Change-Id: I8e2a4651bff1f739fa98533cd47074b143b2e3d6 Co-authored-by: Stephen Finucane <stephenfin@redhat.com>
* | | Merge "Use the SDK in server migration list"Zuul2022-12-151-21/+27
|\ \ \
| * | | Use the SDK in server migration listDaniel Wilson2022-11-301-21/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Update server migration list to use the OpenStack SDK instead of directly using the nova interface. Change-Id: I40dc95ee47e7c33ebf596f8ad437228b4bb0ab33
* | | | Merge "Use the SDK for server show"Zuul2022-12-151-14/+69
|\ \ \ \
| * | | | Use the SDK for server showDaniel Wilson2022-12-111-14/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the SDK for the server show command. This change modifies a helper function that is used by server show as well as other commands that print information about an individual server. The helper still uses novaclient APIs when additional OpenStack requests are needed since some of its callers are still using the nova client. Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/864340 Change-Id: Ic253184ee5f911ec2052419d328260dc4664b273
* | | | | Merge "Fix parameter handling in server add fixed ip cmd"Zuul2022-12-151-6/+6
|\ \ \ \ \
| * | | | | Fix parameter handling in server add fixed ip cmdDr. Jens Harbott2022-12-121-6/+6
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fixed_ip_address parameter needs to be passed in a hash with key "ip_address" in order to be processed by the server, the previous arg was simply being ignored. Added a functional test for better coverage. Closes-Bug: 1998927 Change-Id: I6956d2642d8e80fc10c3739f0a571aa7ba276b1a
* | | | | Merge "Migrate hypervisor stats commands to SDK"Zuul2022-12-151-5/+35
|\ \ \ \ \
| * | | | | Migrate hypervisor stats commands to SDKAriel-Berkowicz2022-12-121-5/+35
| |/ / / / | | | | | | | | | | | | | | | Change-Id: I43b2071f5108c28f6881c8e99d4b06e87c83ddfa
* | | | | Fix server list error with --long and -c optionsThobias Salazar Trevisan2022-12-141-3/+3
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using options --long and -c and specifying same columns added by --long option, it passes duplicated column names to prettytable and report the following error: Field names must be unique! This patch removes duplicated columns. Change-Id: I9c0bd09c50dac568ca1980a6b53a6c544b85c2aa
* | | | Fix functional-tips jobStephen Finucane2022-12-141-4/+5
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | A recent change to cliff [1] means we're now stripping periods when generating the summary line of command help strings. Account for this. [1] https://review.opendev.org/c/openstack/cliff/+/867274 Change-Id: I45b39b9fe38914497505f157e91d84cd2f84f547 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | Merge "compute: Allow users to manually specify bootable volumes"Zuul2022-12-051-6/+13
|\ \ \ | |/ / |/| |
| * | compute: Allow users to manually specify bootable volumesStephen Finucane2022-12-011-6/+13
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When creating a server with an attached volume, you can specify a block device with a 'boot_index' of '0' and this will become the bootable device. OSC allows users to do this by using either the '--volume' option or a combination of the '--image' and '--boot-from-volume' options, but we should also allow them to do it the "hard way" via the '--block-device' option. For example: openstack server create \ --block-device uuid=0a89ecd8-1fe2-45f0-94da-7789067911c9,boot_index=0 \ --block-device uuid=589266ef-fd88-46e9-b7b2-94503ce8f88f,boot_index=1 \ ... \ my-server Make this possible. Change-Id: Ia48449fecbc590346630807b1c7da40102d53b33 Signed-off-by: Stephen Finucane <sfinucan@redhat.com> Story: 2010376 Task: 46617
* | Merge "Use the compute SDK in server list"Zuul2022-12-021-52/+74
|\ \ | |/ |/|
| * Use the compute SDK in server listDaniel Wilson2022-11-291-52/+74
| | | | | | | | | | | | | | | | Update server list to use the compute component of the OpenStack SDK instead of directly using the nova interface. This change depends on SDK version 0.102.0 for automatic client-side query filters. Change-Id: Ib9985812bfd98320b75f3a82bb594a0daa6e4d93
* | Merge "Improve `server dump create` helptext"Zuul2022-11-291-2/+3
|\ \
| * | Improve `server dump create` helptextArtom Lifshitz2022-10-261-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `server dump create` command instructs Nova to trigger a crash dump in the guest OS. Assuming the guest supports this, the resulting dump file will be located in the guest, in a location dependent on the guest OS. Explain all that in the helptext. Story: 2010384 Change-Id: If940ed5cce6c5ab4193ab1494738149370da9aad
* | | Merge "Add note about microversion 2.87 in server rescue help"Zuul2022-11-291-1/+5
|\ \ \ | |_|/ |/| |
| * | Add note about microversion 2.87 in server rescue helpmelanie witt2022-11-071-1/+5
| |/ | | | | | | | | | | | | | | | | | | | | The ability to rescue a volume-backed server was added in compute microversion 2.87 [1]. This adds a note to the command help to improve user experience. [1] https://docs.openstack.org/nova/latest/user/rescue.html Change-Id: I5f40c3ca28e13bd1f979bc5f8c337302a3b9a5be
* | Merge "Moved hypervisor to the SDK"Zuul2022-11-161-38/+99
|\ \