Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1188355

Summary: Fix nova evacuate for shared storage
Product: Red Hat OpenStack Reporter: Jeff Dexter <jdexter>
Component: openstack-novaAssignee: Sean Toner <stoner>
Status: CLOSED ERRATA QA Contact: nlevinki <nlevinki>
Severity: high Docs Contact:
Priority: high    
Version: 5.0 (RHEL 7)CC: benglish, berrange, dasmith, dmaley, eglynn, kchamart, ndipanov, nlevinki, pbrady, sbauza, sferdjao, sgordon, slong, stoner, vromanso, yeylon
Target Milestone: z4Keywords: ZStream
Target Release: 5.0 (RHEL 7)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-nova-2014.1.4-1.el7ost Doc Type: Bug Fix
Doc Text:
When using the command "nova host-evacuate" with the option "on-shared-storage", the instance was evacuated, but the guest was rebuilt using the original image. With this fix, the Compute API has been updated so that a rebuild is no longer requested after evacuating the instance. As a result, when evacuating an instance with shared storage, the instance is now moved to the new compute host, and the root disk is not rebuilt.
Story Points: ---
Clone Of: 1184120 Environment:
Last Closed: 2015-04-16 14:35:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1184120    
Bug Blocks:    
Attachments:
Description Flags
Evacuation after creating file through guestfish none

Comment 8 Sean Toner 2015-04-09 12:09:02 UTC
How do we detect if the root disk is rebuilt or not?

Comment 10 Sahid Ferdjaoui 2015-04-13 15:49:48 UTC
When a rebuild is attempted the root disk is erased. So you can probably try to update the file-system then execute the process of evacuate and verify that the update on the fs is still alive.

  nova boot --flavor 1 --image cirros i1
  guestfish -a /openstack/instances/775613dd-3aa1-48e1-b1cb-05530f06c99a
  > run
  > list-filesystems
  /dev/sda1: ext4
  > mount /dev/sda1 /
  > touch my-file
  > ls /
  my-file
  bin
  ...
  > quit

  nova host-evacuate --target_host host --on-shared-storage
  guestfish -a /openstack/instances/775613dd-3aa1-48e1-b1cb-05530f06c99a
  > run
  > mount /dev/sda1 /
  > ls /my-file

Comment 11 Sean Toner 2015-04-13 17:12:43 UTC
I tried the suggestion above, and the file that I created through guestfish (/test-file) was still there, indicating that the disk image was not rebuilt from scratch.

Comment 12 Sean Toner 2015-04-13 17:14:01 UTC
Created attachment 1014014 [details]
Evacuation after creating file through guestfish

Comment 15 errata-xmlrpc 2015-04-16 14:35:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-0843.html