StarlingX OpenStack Armada App
Go to file
Lucas de Ataides a64cf9a045 Fix output for "openstack volume backup restore"
Previously, on Openstack Pike, an issue [1] was reported that the
`openstack volume backup restore` command was not able to parse the
output correctly, even though the restore operation succeeds. This was
fixed by [2], for the Stein release (and cherry-picked to both Rocky
and Queens). The issue was that cliff expects a list with two tuples to
display the results, whereas the restore function was returning a
VolumeBackupsRestore object. The solution was to use the `_info` field
from the VolumeBackupsRetore object, instead of the whole object.

This was done not only for the VolumeBackupsRetore object, but also for
the VolumeBackup one, as can be seen on [3] and [4]. However, the
commit [5] removed this essential parsing, and caused the previously
fixed issue to reappear.

[1] https://bugs.launchpad.net/python-openstackclient/+bug/1733315
[2] https://review.opendev.org/c/openstack/python-openstackclient/+/624860
[3] https://opendev.org/openstack/python-openstackclient/src/branch/stable/2023.1/openstackclient/volume/v2/volume_backup.py#L174
[4] https://opendev.org/openstack/python-openstackclient/src/branch/stable/2023.1/openstackclient/volume/v2/volume_backup.py#L619
[5] https://review.opendev.org/c/openstack/python-openstackclient/+/353931

Test Plan:
PASS: Build python-openstackclient package
PASS: Build wheels
PASS: Build stx-openstackclients image
PASS: Manually upload built image to the system's registry and perform
      helm-override to use it in the clients containers
PASS: Create a backup from a volume
PASS: Issue the `openstack volume backup restore` command and verify
      that the output is returned without any errors.

Closes-Bug: 2045183

Change-Id: I18752635d29e0b74b30b0d63b6194c28d947d5a0
Signed-off-by: Lucas de Ataides <lucas.deataidesbarreto@windriver.com>
2023-11-30 13:18:38 +00:00
enhanced-policies Split horizon helm-override file 2023-10-23 13:20:58 +00:00
openstack-helm Allow VMs to be created via volumes 2023-10-17 10:03:20 -03:00
openstack-helm-infra Fix openvswitch DaemonSet ServiceAccount patch 2023-08-08 10:08:48 -03:00
python3-k8sapp-openstack Merge "Use FQDN for MGMT network" 2023-11-06 18:51:27 +00:00
stx-openstack-helm-fluxcd Move live-migration traffic to cluster-host-net 2023-09-27 10:01:11 -03:00
upstream/openstack Fix output for "openstack volume backup restore" 2023-11-30 13:18:38 +00:00
.gitignore Network Resources Cleanup before OpenStack Removal 2022-06-22 11:08:10 -03:00
.gitreview Add a .gitreview file to the new repo 2019-09-09 08:42:46 -05:00
.zuul.yaml Fix github mirroring for this repo 2023-04-28 12:38:52 -04:00
bindep.txt Add python3.9 support 2021-09-09 11:27:54 -04:00
debian_build_layer.cfg Uncomment Openstack Debian packages and images 2023-10-02 10:07:36 -03:00
debian_helm.inc Update .inc files to use FluxCD related pkgs 2022-10-25 16:37:54 -03:00
debian_pkg_dirs Uncomment Openstack Debian packages and images 2023-10-02 10:07:36 -03:00
debian_stable_docker_images.inc Uncomment Openstack Debian packages and images 2023-10-02 10:07:36 -03:00
requirements.txt Attempting to add zuul jobs to new repo 2019-09-09 12:25:17 -05:00
test-requirements.txt Attempting to add zuul jobs to new repo 2019-09-09 12:25:17 -05:00
tox.ini Update tox.ini to work with tox 4 2022-12-23 15:53:55 +00:00