summaryrefslogtreecommitdiff
path: root/openstackclient/tests
Commit message (Collapse)AuthorAgeFilesLines
* Migrate 'server event *' commands to SDKHuda Irshad2023-04-203-109/+146
| | | | | | | | | 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>
* Adding ``image import`` commandMridula Joshi2023-04-121-4/+4
| | | | Change-Id: I7254d30431894879c8bd20e2263d83b12c99d5c8
* compute: Migrate 'reboot server' to SDKStephen Finucane2023-04-041-0/+114
| | | | | Change-Id: Ibad4078f680d3b2615b9ca6f6c72c4fd28030b55 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Merge ""hypervisor list --matching" showed the wrong result"Zuul2023-04-041-6/+6
|\
| * "hypervisor list --matching" showed the wrong resultdevMuscle2023-03-261-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "Remove unused helpers for legacy novaclient"Zuul2023-04-031-20/+0
|\ \
| * | Remove unused helpers for legacy novaclientStephen Finucane2022-12-191-20/+0
| | | | | | | | | | | | | | | | | | | | | These are no longer used. Change-Id: I9514e98a5549130c12f3b785e90debf3437e6933 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | Merge "Switch server shelve, unshelve to SDK"Zuul2023-04-031-244/+192
|\ \ \ | |/ /
| * | Switch server shelve, unshelve to SDKStephen Finucane2022-12-191-244/+192
| | | | | | | | | | | | | | | | | | | | | 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-8/+3
|\ \ \ | |/ /
| * | compute: Switch server restore to SDKStephen Finucane2022-12-191-8/+3
| | | | | | | | | | | | | | | | | | Change-Id: I8df9711b736991c01136988aa06c8540d640f52f Signed-off-by: Stephen Finucane <sfinucan@redhat.com> Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/868108
* | | Merge "Remove unnecessary 'self.methods'"Zuul2023-03-301-24/+4
|\ \ \ | |/ /
| * | Remove unnecessary 'self.methods'Stephen Finucane2022-12-191-24/+4
| | | | | | | | | | | | | | | | | | | | | This was used by 'run_method_with_servers', not the SDK-equivalent. Change-Id: Ia3333a95e406f430beb4f2cfb887e81ab7b72cfe Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | Merge "Switch server start, server stop to SDK"Zuul2023-03-301-31/+19
|\ \ \ | |/ /
| * | Switch server start, server stop to SDKThrivikram Mudunuri2022-12-191-31/+19
| | | | | | | | | | | | | | | | | | 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-70/+68
|\ \ \ | |/ /
| * | Switch server lock, unlock to sdksuneethravi2022-12-191-70/+68
| | | | | | | | | | | | | | | | | | | | | Switch server lock commands from novaclient to SDK. Change-Id: I042db99c9d7a0d8d207f8cdf69d786bd4fe904e7 Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/867890
* | | Show Network QoS rules one per lineRodolfo Alonso Hernandez2023-03-281-1/+1
| |/ |/| | | | | | | | | | | | | The command "network show qos policy <qos>" now shows the QoS rules printed one per line. Example: https://paste.opendev.org/show/bgam6amfLUVheAMhDxB3/ Change-Id: I65a99da16056902a822804e29b2dd9376a72e091
* | Merge "Add auto-approve option to project cleanup"Zuul2023-03-201-0/+26
|\ \
| * | Add auto-approve option to project cleanupDr. Jens Harbott2023-02-151-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | Sometimes it is useful to be able to use the project cleanup function in scripts and having to add "echo y | openstack" isn't really nice. Signed-off-by: Dr. Jens Harbott <harbott@osism.tech> Change-Id: I3ded9982769b4568b6dcfc49bc31ba67a6227839
* | | Merge "Wait for volume being available to set bootable or readonly"Zuul2023-02-222-6/+98
|\ \ \
| * | | Wait for volume being available to set bootable or readonlymatbu2023-02-222-6/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch add a check to be sure that the volume created is in a available state before trying to set bootable or readonly flag. Story: 2002158 Change-Id: I8db71fd8cf5bd14eb67880f76d2e9135edeb3ed2
* | | | Merge "Update 'host list' and 'host show' command to use sdk"Zuul2023-02-221-42/+63
|\ \ \ \
| * | | | Update 'host list' and 'host show' command to use sdkHarsh Mutha2022-12-201-42/+63
| | |_|/ | |/| | | | | | | | | | Change-Id: I3813ff604ba46112ebd358509ea4f28ee38ca3ee
* | | | Merge "Add port ranges on floating ip portforwardings cli"Zuul2023-02-222-25/+244
|\ \ \ \
| * | | | Add port ranges on floating ip portforwardings cliPedro Martins2022-07-132-25/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is one of a series of patches to implement floating ip port forwarding with port ranges. The specification is defined in: https://github.com/openstack/neutron-specs/blob/master/specs/wallaby/port-forwarding-port-ranges.rst Change-Id: If9679c87fd8b770fcd960048e091ee8d59205285 Implements: blueprint floatingips-portforwarding-ranges Related-Bug: #1885921
* | | | | Merge "volume: Remove duplication from 'consistency group create' opts"Zuul2023-02-221-2/+2
|\ \ \ \ \
| * | | | | volume: Remove duplication from 'consistency group create' optsStephen Finucane2023-02-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The '--consistency-group-source' and '--consistency-group-snapshot' opts are unnecessarily verbose. Shorten them to '--source' and '--snapshot', respectively, maintaining aliases to avoid breaking users. Change-Id: I2b6656a8a09d953eb4406f1d4fd1e804743a8963 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | Merge "Deprecate positional args for 'volume group create'"Zuul2023-02-221-8/+47
|\ \ \ \ \ \
| * | | | | | Deprecate positional args for 'volume group create'Stephen Finucane2023-02-171-8/+47
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are now many ways to create a new volume group, thus the positional arguments don't make sense. Deprecate them. Change-Id: Id0b212426861719db1812b7d07b82613cf591de4 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | Merge "Finish switching server migration to sdk"Zuul2023-02-212-137/+140
|\ \ \ \ \ \
| * | | | | | Finish switching server migration to sdkViolet Kurtz2022-12-142-137/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ic0e6dfdc986989599bfc73b8c274631232161c25
* | | | | | | Merge "tests: Use fake SDK Migration object"Zuul2023-02-212-60/+42
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | tests: Use fake SDK Migration objectStephen Finucane2023-01-042-60/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We missed this when migrating the 'server migration list' command across. Change-Id: Ide05a0289020764829f1dbc416be5336fdf37d84 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | Merge "Switch server volume update to sdk"Zuul2023-02-211-49/+66
|\ \ \ \ \ \ \
| * | | | | | | Switch server volume update to sdkRitvik Vinodkumar2022-12-151-49/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch the server volume update command from novaclient to SDK. Change-Id: Ib9876775bcf8268344da1a58ab0dd1695cb83ece
* | | | | | | | Merge "Switch list server volume to sdk"Zuul2023-02-214-155/+81
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | / / / / / | |_|/ / / / / |/| | | | | |
| * | | | | | Switch list server volume to sdkRitvik Vinodkumar2022-12-154-155/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch the server volume list command from novaclient to SDK. Modified functional test for server add/remove volume. Change-Id: I5b4ab7d0275aec2e02451c5371319ac350af6a5f
* | | | | | | Add options to create volume group from source6.1.0whoami-rajat2023-02-171-0/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds ``--source-group`` and ``--group-snapshot`` options to the ``volume group create`` command to allow creating group from a source group or a group snapshot. Change-Id: I87482a5dd43c519dfdcf981635aa879914a70a5c
* | | | | | | Add block storage manageable list commandswhoami-rajat2023-02-172-0/+449
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the ``block storage volume manageable list`` and ``block storage snapshot manageable list`` commands that allow operators to list the volumes and snapshots on a particular host or cluster for management under OpenStack. Change-Id: I328dada5a0dc4e9e44c0d51db5cf3f224e27f88f
* | | | | | | Add block storage cleanup commandwhoami-rajat2023-02-172-0/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the ``block storage cleanup`` command that allow operators to cleanup resources (volumes and snapshots) with failed operations by requesting services in other hosts in the same cluster to cleanup resources of a failed service. Change-Id: I1375223f525021db5201fa0a9f9a647d17dd01f7
* | | | | | | Add block storage log level {list, set} commandswhoami-rajat2023-02-162-0/+252
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the ``block storage log level list`` and ``block storage log level set`` commands that allow operators to list the current log levels of cinder services and also enables them to set a particular log level. Change-Id: I16cd8084fb505a9e68a35a936ef3b8b1f3cdc712
* | | | | | | Add volume revert commandwhoami-rajat2023-02-161-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This command allows users to revert a volume to a given snapshot. Change-Id: If35ee394d654f5264558a281c835affff524ca50
* | | | | | | Merge "Add volume summary command"Zuul2023-01-311-0/+121
|\ \ \ \ \ \ \
| * | | | | | | Add volume summary commandwhoami-rajat2023-01-131-0/+121
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the ``volume summary`` command which shows the total size, total count and metadata of all volumes. This command is available from microversion 3.12 and the metadata info is available from microversion 3.36. Change-Id: I6472337e8b1dc91aad5fbe416673a5d5a5d5fa88
* | | | | | | Merge "Move network trunk commands from python-neutronclient"Zuul2023-01-313-0/+1069
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | |
| * | | | | | Move network trunk commands from python-neutronclientelajkat2023-01-163-0/+1069
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Network trunk commands originally were added to python-neutronclient, although we can long consider these operations core Networking operations. This patch is not a blind copy but also changes the original code to use openstacksdk python bindings instead of the binding code in python-neutronclient as that is already deprecated. Change-Id: Ic4bc35c296a95d5dae92e9fc1cab3a3fa8f103cd Related-Bug: #1999774
* | | | | | | Merge "image: Add support for additional image import methods"Zuul2023-01-251-4/+16
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | |
| * | | | | | image: Add support for additional image import methodsStephen Finucane2022-11-301-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are now supported in openstacksdk so we can use them. Change-Id: Ie3107ba2155f9008e6065171298f85978957a172 Signed-off-by: Stephen Finucane <sfinucan@redhat.com> Depends-on: https://review.opendev.org/c/openstack/openstacksdk/+/864029
* | | | | | | Merge "Add qos rule type filtering"Zuul2022-12-202-0/+63
|\ \ \ \ \ \ \