Bug 1464138
| Summary: | unified CLI error message while running the following command "volume backup restore" | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Avi Avraham <aavraham> |
| Component: | python-openstackclient | Assignee: | Sofia Enriquez <senrique> |
| Status: | CLOSED ERRATA | QA Contact: | Tzach Shefi <tshefi> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 13.0 (Queens) | CC: | abishop, apevec, cmuresan, eharney, fhubik, jpichon, lhh, mabrams, pgrist, rlondhe, rmeillon, scohen, senrique, srevivo, tenobreg, vimishra |
| Target Milestone: | z11 | Keywords: | Triaged, ZStream |
| Target Release: | 13.0 (Queens) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-openstackclient-3.14.3-5.el7ost | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-03-10 11:52:51 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Avi Avraham
2017-06-22 13:46:19 UTC
Try working around this by using: "cinder backup-restore --volume <uuid> <backup_uuid>" This is a DFG:Storage bug, moving the needinfo to the DFG team catalyst for now. Looking at the upstream Launchpad it looks like a patch for this was merged in 3.18.0, which will be in OSP15. Note that there is also a workaround provided in comment 5. Sofia, can you verify if this is a clone of https://bugzilla.redhat.com/show_bug.cgi?id=1689342 and if so assign to yourself? Yes, it looks like a clone of bz1689342. Thanks Can't verify (yet) P2 2020-01-15.3 produced a pre-fixed in of: python-openstackclient-lang-3.14.3-4.el7ost < python-openstackclient-3.14.3-5.el7ost Verified on:
python-openstackclient-lang-3.14.3-5.el7ost.noarch
1. Create volume:
(overcloud) [stack@undercloud-0 ~]$ cinder create 1 --image cirros --name source
+--------------------------------+--------------------------------------+
| Property | Value |
+--------------------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2020-02-11T09:43:57.000000 |
| description | None |
| encrypted | False |
| id | ef2ce5a1-9562-48ef-91b2-1e4a133f542c |
| metadata | {} |
| migration_status | None |
| multiattach | False |
| name | source |
| os-vol-host-attr:host | controller-0@3par#SSD_r5 |
| os-vol-mig-status-attr:migstat | None |
| os-vol-mig-status-attr:name_id | None |
| os-vol-tenant-attr:tenant_id | 2cd01b0fe6c644a48cbfa6da5a03d25b |
| replication_status | None |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| updated_at | 2020-02-11T09:43:57.000000 |
| user_id | b8c1ccd7e02c4f22ad8929f1cb5fcaba |
| volume_type | tripleo |
+--------------------------------+--------------------------------------+
Volume is available:
| ef2ce5a1-9562-48ef-91b2-1e4a133f542c | available | source | 1 | tripleo | true | |
2. backup volume
(overcloud) [stack@undercloud-0 ~]$ cinder backup-create ef2ce5a1-9562-48ef-91b2-1e4a133f542c --name backup1
+-----------+--------------------------------------+
| Property | Value |
+-----------+--------------------------------------+
| id | c5ffd40a-b563-47ac-8570-feca4f08899c |
| name | backup1 |
| volume_id | ef2ce5a1-9562-48ef-91b2-1e4a133f542c |
+-----------+--------------------------------------+
(overcloud) [stack@undercloud-0 ~]$ cinder backup-list
+--------------------------------------+--------------------------------------+-----------+---------+------+--------------+---------------+
| ID | Volume ID | Status | Name | Size | Object Count | Container |
+--------------------------------------+--------------------------------------+-----------+---------+------+--------------+---------------+
| c5ffd40a-b563-47ac-8570-feca4f08899c | ef2ce5a1-9562-48ef-91b2-1e4a133f542c | available | backup1 | 1 | 22 | volumebackups |
+--------------------------------------+--------------------------------------+-----------+---------+------+--------------+---------------+
3. run the following command to recover volume
(overcloud) [stack@undercloud-0 ~]$ openstack volume backup restore backup1 source
+-------------+--------------------------------------+
| Field | Value |
+-------------+--------------------------------------+
| backup_id | c5ffd40a-b563-47ac-8570-feca4f08899c |
| volume_id | ef2ce5a1-9562-48ef-91b2-1e4a133f542c |
| volume_name | source |
+-------------+--------------------------------------+
(overcloud) [stack@undercloud-0 ~]$ cinder list
+--------------------------------------+------------------+------------+------+-------------+----------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+------------------+------------+------+-------------+----------+-------------+
| ef2ce5a1-9562-48ef-91b2-1e4a133f542c | restoring-backup | source | 1 | tripleo | true | |
+--------------------------------------+------------------+------------+------+-------------+----------+-------------+
Backup completed volume returned to available state:
| ef2ce5a1-9562-48ef-91b2-1e4a133f542c | available | source | 1 | tripleo | true | |
Verified openstack client backup/restore worked as excepted without errors.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:0769 |