summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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-142-3/+4
|/ | | | | | | | | | | | 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-142-9/+8
| | | | | | | | | | 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-055-6/+473
|\
| * image: Add 'image import' commandStephen Finucane2022-11-095-6/+473
| | | | | | | | | | | | | | | | 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-053-12/+58
|\ \
| * | compute: Allow users to manually specify bootable volumesStephen Finucane2022-12-013-12/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "docs: Document how we manage API versions"Zuul2022-12-051-1/+133
|\ \ \
| * | | docs: Document how we manage API versionsStephen Finucane2022-11-301-1/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Document that microversion auto-negotiation is acceptable. Heck, it's downright desirable. Change-Id: Ib256e064d1e8b6dc8273e482276dce243f9991cb Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | Merge "docs: Describe common actions found in OSC"Zuul2022-12-051-23/+240
|\ \ \ \ | |/ / /
| * | | docs: Describe common actions found in OSCStephen Finucane2022-11-301-23/+240
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Off the back of a recent post to openstack-discuss [1], list the common actions used in OSC along with some conditions around their expected use and implementation. [1] https://lists.openstack.org/pipermail/openstack-discuss/2022-November/031284.html Change-Id: Id6610d678e7b3b12afdd89a674fbbe7090f64444 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | Merge "Revert "Don't look up project by id if given id""Zuul2022-12-021-9/+5
|\ \ \
| * | | Revert "Don't look up project by id if given id"Stephen Finucane2022-11-301-9/+5
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 042be7c7fe89f5a1a190af90d5980205d995941b. This solution worked but it was confusing. The issue that the author was seeing was presumably due to users not being able to list projects but in theory the 'openstackclient.image.common.find_project' function that was being called here should have already handle this. It transpires however that there was a bug in this and we weren't correctly handling HTTP 403 errors correctly. This bug has since been fixed in change I2ea2def607ec5be112e42d53a1e660fef0cdd69c meaning this change is no longer necessary. Remove it and simplify the code somewhat. Change-Id: I108efec2c8deda50fcb9cc84f313602bed2ac15c 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>
* | | | Merge "tests: Convert identity tests to use 'parse_output'"Zuul2022-12-021-7/+7
|\ \ \ \ | |/ / /
| * | | tests: Convert identity tests to use 'parse_output'Stephen Finucane2022-11-291-7/+7
| | | | | | | | | | | | | | | | Change-Id: I10711b911986af0348946f6254cf36773110b0ab
* | | | Merge "tests: Convert volume tests to use 'parse_output'"Zuul2022-12-0219-759/+923
|\ \ \ \ | |/ / /
| * | | tests: Convert volume tests to use 'parse_output'Stephen Finucane2022-11-2919-759/+923
| | | | | | | | | | | | | | | | | | | | Change-Id: Iec8ca873f6bc3993e0ba557f68895d9aefb6f9c6 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | Merge "tests: Convert image tests to use 'parse_output'"Zuul2022-12-022-125/+120
|\ \ \ \ | |/ / /
| * | | tests: Convert image tests to use 'parse_output'Stephen Finucane2022-11-292-125/+120
| | | | | | | | | | | | | | | | | | | | Change-Id: I5f256d466d503d70d1f380016f9c8f5a0d9e395f Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | Merge "Use the compute SDK in server list"Zuul2022-12-024-189/+205
|\ \ \ \ | |_|/ / |/| | |
| * | | Use the compute SDK in server listDaniel Wilson2022-11-294-189/+205
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "Adding volume backend commands to volume v3"Zuul2022-11-292-0/+9
|\ \ \ \
| * | | | Adding volume backend commands to volume v3Ilya Popov2022-11-292-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Task: 46959 Story: 2010454 Change-Id: I6ed5f54079b88bc9fdfa24474a480a2786eda745
* | | | | 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 "Add test for creating volume from source"Zuul2022-11-292-4/+46
|\ \ \ \ \ \ \
| * | | | | | | Add test for creating volume from sourcewhoami-rajat2022-11-232-4/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a test to create a new volume from source. We also include code changes to pass the right size i.e. either size passed by the user via --size argument or the source volume size. This case is already handled at the API layer[1] but it helps being consistent with passing the right size value as in case of creating a volume from snapshot or backup. [1] https://github.com/openstack/cinder/blob/7c1a5ce7b11964da4537fd6a7d157ede646b9e94/cinder/api/v3/volumes.py#L381-L382 Change-Id: Idc71636dad6bb678fe24f19b0836d2e9bd92d7d2
* | | | | | | | docs: Typo fixStephen Finucane2022-11-251-1/+1
| |_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I2d55747b1226207946f80f04b80b4685e3eea3f9 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | docs: Small cleanup of human interface guideStephen Finucane2022-11-241-37/+43
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before we add more content. Change-Id: I6cf28bdd217326db991466a21221b685124d4b99 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | Change --size helptext to include backupwhoami-rajat2022-11-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Followup from [1]. Modifying help text of --size argument to include --backup option. [1] https://review.opendev.org/c/openstack/python-openstackclient/+/864893 Change-Id: I12cf60079ebcfe1cd059602fbfc1a13c8fe86803
* | | | | | Add option to create volume from backupwhoami-rajat2022-11-213-3/+103
| |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support for creating a volume from backup was added in microversio 3.47. This patch adds a --backup option to the volume create command to add that support. Change-Id: Ib26d2d335475d9aacbf77c0fd7b7cda2ba743943
* | | | | Merge "image: Add 'image stage' command"Zuul2022-11-166-26/+164
|\ \ \ \ \ | | |_|_|/ | |/| | |
| * | | | image: Add 'image stage' commandStephen Finucane2022-11-096-26/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the equivalent of the 'image-stage' glanceclient command. Change-Id: I10b01ef145740a2f7ffe5a8c7ce0296df0ece0bd Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | Merge "image: Simplify handling of data provided via stdin"Zuul2022-11-162-103/+82
|\ \ \ \ \ | |/ / / /
| * | | | image: Simplify handling of data provided via stdinStephen Finucane2022-11-092-103/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was unnecessarily complex. Change-Id: I8289d5ce7356d8bc89425590a7f71bca91a6d396 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | Merge "image: Ignore '--progress' if providing image data from stdin"Zuul2022-11-162-1/+34
|\ \ \ \ \ | |/ / / /
| * | | | image: Ignore '--progress' if providing image data from stdinStephen Finucane2022-11-092-1/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You can provide data via stdin when creating an image. Using this with '--progress' makes no sense and causes an error currently. Fix this. Change-Id: I3c2d658b72a7c62931b779b0d19bb97f60a0c655 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | Merge "Moved hypervisor to the SDK"Zuul2022-11-164-201/+303
|\ \ \ \ \
| * | | | | Moved hypervisor to the SDKViolet Kurtz2022-11-094-201/+303
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie955fb4d27c30e044626732a1f3e0f141cb85aa5
* | | | | | Merge "Use the compute SDK in usage commands"Zuul2022-11-162-66/+48
|\ \ \ \ \ \
| * | | | | | Use the compute SDK in usage commandsDaniel Wilson2022-10-252-66/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update usage list and usage show to use the compute component of the OpenStack SDK instead of directly using the nova interface. Change-Id: I1c4d2247c9c1a577ed9efad7e8332e7c9b974ad5