regression: availability_zone ignored in backup creation

Bug #1912624 reported by FengJiankui
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Medium
Tushar Trambak Gite

Bug Description

This was reported against victoria, but looks like the regression was introduced in ussuri by Change-Id: Ie2afb57c4861c41982612e6054767cef43fdb867

Step1 : create a backup A of a volume, value of availability_zone is nova1 in request
step2: availability_zone of backup A does not belong to nova1.

code in cinder/backup/api.py as floows:

             kwargs = {
                'user_id': context.user_id,
                'project_id': context.project_id,
                'display_name': name,
                'display_description': description,
                'volume_id': volume_id,
                'status': fields.BackupStatus.CREATING,
                'container': container,
                'parent_id': parent_id,
                'size': volume['size'],
                'snapshot_id': snapshot_id,
                'data_timestamp': data_timestamp,
                'parent': parent,
                'metadata': metadata or {}
            }
            backup = objects.Backup(context=context, **kwargs)
            backup.create()

availability_zone is not in kwargs.

tags: added: backup-service
tags: added: az
tags: added: availability-zone
removed: az
Changed in cinder:
importance: Undecided → Wishlist
Changed in cinder:
importance: Wishlist → Medium
tags: added: victoria
Changed in cinder:
assignee: nobody → STASON (tsv1991)
assignee: STASON (tsv1991) → nobody
Changed in cinder:
assignee: nobody → Tushar Trambak Gite (tushargite96)
Revision history for this message
Brian Rosmaita (brian-rosmaita) wrote :
Changed in cinder:
status: New → In Progress
description: updated
summary: - The v version of cinder does not support create a backup with specified
- available_zone
+ regression: availability_zone ignored in backup creation
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

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

commit ddcf394ae277692d7cab2e03b4b6ae67ba7f1cc3
Author: FengJiankui <email address hidden>
Date: Wed Apr 7 15:51:45 2021 +0800

    Do not ignore availability_zone in backup creation

    This patch corrects a regression introduced by change
    Ie2afb57c4861c4.

    Change-Id: I8b1b09ecf2ad1e19a557a664516251cae3ddf2ae
    Closes-Bug: #1912624

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

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

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

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/zed)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cinder (stable/zed)

Change abandoned by "Elod Illes <email address hidden>" on branch: stable/zed
Review: https://review.opendev.org/c/openstack/cinder/+/916045
Reason: stable/zed branch of openstack/cinder is about to be deleted. To be able to do that, all open patches need to be abandoned. Please cherry pick the patch to unmaintained/zed if you want to further work on this patch.

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

Reviewed: https://review.opendev.org/c/openstack/cinder/+/892352
Committed: https://opendev.org/openstack/cinder/commit/4ab3cbd7011b45d8d0f4acf4217688b6e2a26878
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit 4ab3cbd7011b45d8d0f4acf4217688b6e2a26878
Author: FengJiankui <email address hidden>
Date: Wed Apr 7 15:51:45 2021 +0800

    Do not ignore availability_zone in backup creation

    This patch corrects a regression introduced by change
    Ie2afb57c4861c4.

    Change-Id: I8b1b09ecf2ad1e19a557a664516251cae3ddf2ae
    Closes-Bug: #1912624
    (cherry picked from commit ddcf394ae277692d7cab2e03b4b6ae67ba7f1cc3)

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

This issue was fixed in the openstack/cinder 22.2.0 release.

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.