When restarting the c-bak service snapshot status is always backing-up

Bug #1938488 reported by ZhaoYixin
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Low
Unassigned

Bug Description

When the volume is backed up by snapshot, restart the cinder-backup service at this time.
The snapshot status will not be rolled back to available, but will remain in backing-up.

ZhaoYixin (zhaoyixin)
affects: masakari-monitors → cinder
tags: added: backup-service
Revision history for this message
Sofia Enriquez (lsofia-enriquez) wrote :

Greetings ZhaoYixin,

If I'm understanding correctly, restarting the c-bak service will make the snapshot stay at a backing-up state forever? This is interesting because as far as I know the backup service shouldn't impact snapshots.

Would you mind sharing more information in order to reproduce the issue easier?
- Steps to reproduce.
- Are you using a master or a stable version of cinder?
- What backend are you using? Currently, we have some issues regarding snapshots and generic NFS.
- Are you using encryption?

Cheers,
Sofia

Changed in cinder:
importance: Undecided → Low
status: New → Incomplete
tags: added: snapshot
summary: - Snapshot status is always backing-up
+ When restarting the c-bak service snapshot status is always backing-up
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/+/806665

Changed in cinder:
status: Incomplete → In Progress
Revision history for this message
Christian Rohmann (christian-rohmann) wrote :

This looks valid as it's quite possible to create backups from a (volume) snapshot. So resetting their status on cinder-backup startup as well makes total sense.

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

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

commit 7f819854d26f103bc6358c7a27010a60588ec7c5
Author: zhaoyixin <email address hidden>
Date: Tue Aug 31 10:21:28 2021 +0800

    Fix snapshot status is always backing-up

    This patch adds a snapshot clean operation in the
    cleanup_incomplete_backup_operations process of c-bak.

    Co-Authored-by: Christian Rohmann <email address hidden>
    Closes-Bug: #1938488
    Change-Id: Ifa3d572139fc37c94e3b50a02e61c9818a1b6501

Changed in cinder:
status: In Progress → Fix Released
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.