Backup remains in NEW/BUILD state even if guest exception appears or guest is deleted

Bug #1333659 reported by Denis M.
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Confirmed
Low
Unassigned

Bug Description

Trove should mark failed backup with ERRO/FAILED status when guest exception appears.

Proposed fix should deal with next things:
1. Releave instance, reset task.
2. Mark backup as FAILED/ERROR.

Dependent issue:
https://bugs.launchpad.net/trove/+bug/1220989

Denis M. (dmakogon)
Changed in trove:
assignee: nobody → Denis M. (dmakogon)
status: New → In Progress
Denis M. (dmakogon)
summary: - Backup remains in NEW state even if exception appears
+ Backup remains in NEW state even if guest exception appears
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

Fix proposed to branch: master
Review: https://review.openstack.org/102262

Changed in trove:
importance: Undecided → Medium
milestone: none → ongoing
Revision history for this message
Ramashri Umale (ramashri) wrote : Re: Backup remains in NEW state even if guest exception appears

Denis,

How can we reproduce this bug.

On the guest end:

BackupAgent.execute_backup all exceptions are caught and backup state is set to FAILED.

On the taskmanager end

create_backup makes a async cast so yes GuestError may be a possibility but no GuestTimeout should occur.

As such unless the case for GuestError can be reproduced, please explain need for this fix.

Revision history for this message
Denis M. (dmakogon) wrote :

Ramashri, easily

There are several ways to reproduce this bug:
1. Delete guest queue.
2. Network delay.
3. Remove guest completely.

SO, the simple answer - make AMPQ unreachable for guest.

Denis M. (dmakogon)
Changed in trove:
milestone: ongoing → kilo-1
Revision history for this message
Amrith Kumar (amrith) wrote :

Updating importance to "Low" (bugscrub, 2014-10-23)

Changed in trove:
importance: Medium → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on trove (master)

Change abandoned by Denis M. (<email address hidden>) on branch: master
Review: https://review.openstack.org/102262

Changed in trove:
milestone: kilo-1 → ongoing
summary: - Backup remains in NEW state even if guest exception appears
+ Backup remains in NEW/BUILD state even if guest exception appears or
+ guest is deleted
Amrith Kumar (amrith)
Changed in trove:
status: In Progress → Confirmed
assignee: Denis M. (dmakogon) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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