Cannot restore a backup to a larger volume on ceph
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Fix Released
|
High
|
Ivan Berezovskiy |
Bug Description
Steps to reproduce the bug:
1. Create two volumes with 2G and 3G size (Bootale=False).
2. Create a backup from volume of 2G size.
$ cinder backup-list
+------
| ID | Volume ID | Status | Name | Size | Object Count | Container |
+------
| b56220c1-
+------
3. Try restoring a backup volume of 2G to larger volume.
$ cinder backup-restore b56220c1-
Expected results:
$ cinder list
+------
| ID | Status | Migration Status | Name | Size | Volume Type | Bootable | Multiattach | Attached to |
+------
| 561e706e-
| ec650bb3-
+------
Real results:
Restoring a backup vol of 2G to a larger volume fails with status "error_restoring"
$ cinder list
+------
| ID | Status | Migration Status | Name | Size | Volume Type | Bootable | Multiattach | Attached to |
+------
| 561e706e-
| ec650bb3-
+------
This problem is caused by the lack of read/write permissions to volumes pool for backup user. We need such permissions to change volume size during restoring backup when the backup is smaller than a volume.
Changed in mos: | |
status: | New → Confirmed |
assignee: | nobody → MOS Puppet Team (mos-puppet) |
importance: | Undecided → High |
tags: | added: area-cinder |
Changed in mos: | |
milestone: | none → 8.0 |
Changed in mos: | |
assignee: | Yuriy Nesenenko (ynesenenko) → Ivan Berezovskiy (iberezovskiy) |
Changed in mos: | |
status: | In Progress → Fix Committed |
tags: | added: cinder |
tags: | removed: cinder |
tags: | added: on-verification |
description: | updated |
description: | updated |
This bug can be fixed in such a way https:/ /review. openstack. org/#/c/ 261005/ for upstream.