summaryrefslogtreecommitdiff
path: root/openstackclient/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | 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
|\ \ \ \ \ \ \
| * | | | | | | Add qos rule type filteringRodolfo Alonso Hernandez2022-12-102-0/+63
| | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added two new filter flags to ``openstack network qos rule type list``: - "--all-supported", to return any QoS rule type supported by at least one loaded driver. - "--all-rules", to return all QoS rule types supported by the current version of Neutron server, regardless of the loaded drivers. Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/827671 Depends-On: https://review.opendev.org/c/openstack/neutron/+/827683 Related-Bug: #1959749 Change-Id: Ie0622e79ecf7dadd6560fea142352f5a2ed66b74
* | | | | | | Merge "image: Fail if we can't find an image"Zuul2022-12-201-1/+4
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | image: Fail if we can't find an imageStephen Finucane2022-12-011-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whenever we attempt to find a provided image, we generally want to fail fast if they can't be found. This wasn't happening. Fix it. Change-Id: Ibea38354a78381cb87d287f03726ecd03ecd246d Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | Merge "Switch server dump create to using sdk"Zuul2022-12-152-9/+29
|\ \ \ \ \ \ \
| * | | | | | | Switch server dump create to using sdkDiwei Zhu2022-12-152-9/+29
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I8e2a4651bff1f739fa98533cd47074b143b2e3d6 Co-authored-by: Stephen Finucane <stephenfin@redhat.com>
* | | | | | | Merge "Use the SDK in server migration list"Zuul2022-12-152-62/+64
|\ \ \ \ \ \ \
| * | | | | | | Use the SDK in server migration listDaniel Wilson2022-11-302-62/+64
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update server migration list to use the OpenStack SDK instead of directly using the nova interface. Change-Id: I40dc95ee47e7c33ebf596f8ad437228b4bb0ab33
* | | | | | | Merge "Add image metadef namespace command"Zuul2022-12-152-3/+156
|\ \ \ \ \ \ \
| * | | | | | | Add image metadef namespace commandhoosa2022-12-072-3/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add image metadef namespace create, delete, set, show command Change-Id: I35b1cb8ff2b1735ae3a1b405d8f2071fe449ea6e
* | | | | | | | Merge "Use the SDK for server show"Zuul2022-12-152-12/+33
|\ \ \ \ \ \ \ \
| * | | | | | | | Use the SDK for server showDaniel Wilson2022-12-112-12/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-152-8/+61
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Fix parameter handling in server add fixed ip cmdDr. Jens Harbott2022-12-122-8/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-152-68/+44
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Migrate hypervisor stats commands to SDKAriel-Berkowicz2022-12-122-68/+44
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I43b2071f5108c28f6881c8e99d4b06e87c83ddfa
* | | | | | | | | | Merge "Create a functional test case for hypervisor list and show"Zuul2022-12-151-0/+52
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Create a functional test case for hypervisor list and showAriel-Berkowicz2022-12-141-0/+52
| | |_|_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This functional test case for hypervisor list and show makes sure it works with the openstackclient sdk. Change-Id: Ibaeaf68d6056fcf904b546f30287c65173b5a368
* | | | | | | | | | Fix server list error with --long and -c optionsThobias Salazar Trevisan2022-12-141-0/+1
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-5/+3
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "image: Add 'image import' command"Zuul2022-12-052-5/+223
|\ \ \ \ \ \ \ \ | | |_|_|/ / / / | |/| | | | | |
| * | | | | | | image: Add 'image import' commandStephen Finucane2022-11-092-5/+223
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that we require some additional functionality in SDK for this to work properly, but it's a start. Change-Id: I87f94db6cced67f36f71685e791416f9eed16bd0 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | | Merge "compute: Allow users to manually specify bootable volumes"Zuul2022-12-051-6/+38
|\ \ \ \ \ \ \ \
| * | | | | | | | compute: Allow users to manually specify bootable volumesStephen Finucane2022-12-011-6/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "tests: Add test for multiple blocks devices"Zuul2022-12-051-19/+35
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / | | | / / / / / / | |_|/ / / / / / |/| | | | | | |
| * | | | | | | tests: Add test for multiple blocks devicesStephen Finucane2022-12-011-19/+35
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'server create' command should support multiple '--block-device' parameters. Prove it. Change-Id: I1bd83287efdbbe11774053b694bae99b6a4ebdf5 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | Merge "tests: Convert network tests to use 'parse_output'"Zuul2022-12-0227-892/+1130
|\ \ \ \ \ \ \
| * | | | | | | tests: Convert network tests to use 'parse_output'Stephen Finucane2022-11-2927-892/+1130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I93e2a4e0a4c7ec07da0c78a171f3d787125af053 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | | Merge "tests: Convert compute tests to use 'parse_output'"Zuul2022-12-027-403/+503
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | tests: Convert compute tests to use 'parse_output'Stephen Finucane2022-11-297-403/+503
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ib5b2f46639f14877a9ec295b26cae01a05395d4d Signed-off-by: Stephen Finucane <sfinucan@redhat.com>