Backup availability_zone is None

Bug #1942154 reported by ZhaoYixin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Wishlist
Unassigned

Bug Description

After the volume backup is completed, the availability_zone attribute of the backup is None.

1.Create a backup
$ openstack volume backup create a7e1cd2b-3308-4271-ad73-a7179826c425 --name test2
2.show backup
$ openstack volume backup show 0d65607a-bc57-4e46-9c1c-16fd1ef3b5d5
+-----------------------+--------------------------------------+
| Field | Value |
+-----------------------+--------------------------------------+
| availability_zone | None |
| container | ebs-backup |
| created_at | 2021-08-25T06:16:15.000000 |
| data_timestamp | 2021-08-25T06:16:15.000000 |
| description | None |
| fail_reason | None |
| has_dependent_backups | False |
| id | 0d65607a-bc57-4e46-9c1c-16fd1ef3b5d5 |
| is_incremental | False |
| name | test2 |
| object_count | 214 |
| size | 10 |
| snapshot_id | None |
| status | available |
| updated_at | 2021-08-25T06:17:12.000000 |
| volume_id | a7e1cd2b-3308-4271-ad73-a7179826c425 |
+-----------------------+--------------------------------------+

Revision history for this message
Sofia Enriquez (lsofia-enriquez) wrote :

Greetings,
This might be a configuration problem. However, in order to reproduce this issue I need you provide the following information:
- Cinder version
- volume backend
- Tool of deployment or are you using devstack?
- backup driver
- Full steps
Thanks in advance
Sofia

tags: added: availability-zone
Changed in cinder:
importance: Undecided → Wishlist
status: New → Incomplete
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/cinder/+/811032

Changed in cinder:
status: Incomplete → In Progress
Revision history for this message
ZhaoYixin (zhaoyixin) wrote :

Hi,Sofia,
- Cinder version:victoria
- volume backend:ceph rbd
- Tool of deployment or are you using devstack? : openstack-helm
- backup driver:swift
- Full steps:
1.openstack volume create test-vol --size 10 --type test-type
2.openstack volume backup create <test-vol-id> --name test-bak
3.openstack volume backup show <test-bak-id>

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/cinder/+/911650

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.opendev.org/c/openstack/cinder/+/911650
Committed: https://opendev.org/openstack/cinder/commit/9b7eaf2e328400b2ad00a93d8cd602ebcce63731
Submitter: "Zuul (22348)"
Branch: master

commit 9b7eaf2e328400b2ad00a93d8cd602ebcce63731
Author: Michel Nederlof <email address hidden>
Date: Wed Mar 6 11:42:17 2024 +0100

    Ensure backup availability zone is populated if empty

    If the availability zone is not provided when creating the backup,
    the availability zone is still None after scheduling.

    So just before starting the backup, we can fill the availability_zone
    property with the actual az of the backup service doing the backup.

    This will also fix selecting the proper host when restoring a backup.
    If the az field is empty, it would randomly pick a cinder-backup service,
    while it would make sense that only the services in the zone of the backup
    would have access to the backup resource.

    Closes-Bug: #1942154
    Change-Id: Ida930463228bb60f71bb4b80d3f193dde8398a70

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/2024.1)

Fix proposed to branch: stable/2024.1
Review: https://review.opendev.org/c/openstack/cinder/+/927359

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 25.0.0.0rc1

This issue was fixed in the openstack/cinder 25.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.