← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1241866] Re: Nova-compute does not clean up Logical Volume on resize/migrate

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => juno-3

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1241866

Title:
  Nova-compute does not clean up Logical Volume on resize/migrate

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Noticed this starting in RC1 of Havana (Replicated with release build
  of Havana), with

  libvirt_images_type=lvm
  libvirt_images_volume_group=hv1_vg
  in nova.conf

  I am having to manually remove old Logical Volumes after a resize or
  migrate has completed in the Horizon UI;

  Before Resize
  [root@hv1 ~]# lvscan
    ACTIVE            '/dev/hv1_vg/volume-9714c3de-b255-46c3-bdf6-234b99309d17' [15.00 GiB] inherit
    ACTIVE            '/dev/hv1_vg/instance-00000047_disk' [20.00 GiB] inherit

  After Resize
  [root@hv3 ~]# lvscan
    ACTIVE            '/dev/hv3_vg/instance-00000047_disk' [80.00 GiB] inherit

  47_disk still exists;
  [root@hv1 ~]# lvscan
    ACTIVE            '/dev/hv1_vg/volume-9714c3de-b255-46c3-bdf6-234b99309d17' [15.00 GiB] inherit
    ACTIVE            '/dev/hv1_vg/instance-00000047_disk' [20.00 GiB] inherit

  In addition, if an instance is migrated or re-sized to a Hypervisor
  with a previous old Logical Volume (with that same instance disk ID)
  it will simply re-use the existing volume and not upgrade/downgrade
  the size.

  Debug logs of the instance going to HV:
  http://pastebin.mozilla.org/3287928 and From HV:
  http://pastebin.mozilla.org/3287949

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1241866/+subscriptions