Rebuild detaches block devices when instance is still powered on

Bug #1474278 reported by Roman Podoliaka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
High
Roman Podoliaka
6.1.x
Fix Committed
High
Roman Podoliaka
7.0.x
Fix Released
High
Roman Podoliaka

Bug Description

Upstream bug: https://bugs.launchpad.net/nova/+bug/1471216

Due to the fact that rebuild detaches block devices when instance is still powered on, data written to attached volumes can possibly be lost, if it hasn't been fsynced yet.

We can prevent this by allowing instance to shut down gracefully before detaching block devices during rebuild.

Tags: nova
Changed in mos:
status: Triaged → In Progress
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/nova (openstack-ci/fuel-7.0/2015.1.0)

Fix proposed to branch: openstack-ci/fuel-7.0/2015.1.0
Change author: Roman Podoliaka <email address hidden>
Review: https://review.fuel-infra.org/9296

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/nova (openstack-ci/fuel-7.0/2015.1.0)

Reviewed: https://review.fuel-infra.org/9296
Submitter: mos-infra-ci <>
Branch: openstack-ci/fuel-7.0/2015.1.0

Commit: 5add8985f0823d8baa35fb08e95c0634049a8c1d
Author: Roman Podoliaka <email address hidden>
Date: Thu Jul 16 08:22:30 2015

rebuild: make sure server is shut down before volumes are detached

Currently, we detach block devices before an instance is shut down,
which means all the data, which hasn't been fsynced yet, will possibly
be lost.

A tempest test is added in I1158719cb906309a29ea83460e7e35d753ad1081

Closes-Bug: #1474278

Change-Id: I4846418c4dbdae5b1ac1c08e8b9ac8cea5cb2990
Counter: #1

Revision history for this message
Alexander Gubanov (ogubanov) wrote :

Verified on mos 7.0 (build 257)
Proof: http://pastebin.com/3B5XmVNK

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.