Resize on hyperV does not preserve the config drive image

Bug #1250324 reported by Ya Hong Du on 2013-11-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Medium
Ya Hong Du
Havana
Undecided
Unassigned

Bug Description

When we configure this item config_drive_cdrom=True on hyperV, then boot an instance using config drive. A config drive image named 'configdrive.iso' will be created. But when we resize this instance, The config drive image will not preserved in the instance.

Ya Hong Du (yahongdu) on 2013-11-12
Changed in nova:
assignee: nobody → Ya Hong Du (yahongdu)
Ya Hong Du (yahongdu) wrote :

When we set config_drive_cdrom=True, the drive_type of config drive will be set to 'DVD'. When we resize the instance, only these disk files whose disk resource's ResourceSubType is 'Microsoft Virtual Hard Disk' will be copied. But the disk resource's ResourceSubType of config drive image is 'Microsoft Virtual CD/DVD Disk'. So the config drive image will not be copied.

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

Changed in nova:
status: New → In Progress
Changed in nova:
importance: Undecided → Medium
tags: added: hyper-v
tags: added: havana-backport-potential

Reviewed: https://review.openstack.org/55975
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=710cf4e3a7ee3b89e462ec5ff2291e1177556819
Submitter: Jenkins
Branch: master

commit 710cf4e3a7ee3b89e462ec5ff2291e1177556819
Author: DuYaHong <email address hidden>
Date: Tue Nov 12 14:36:43 2013 +0800

    Hyper-V:Preserve config drive image after the instance is resized

    If we configure config_drive_cdrom=True in nova.conf,
    the config drive image will be lost after the instance
    is resized on hyperV. This is because nova compute will
    not copy the disk file if the file's ResourceSubType
    is not 'Virtual Hard Disk'.

    This commit adds 'Virtual CD/DVD Disk' into disk_resources
    to preserve the config drive image after the instance is
    resized.

    Closes-Bug: #1250324

    Change-Id: Ia125a8b132d194ddc2230754fd1b813698b410a8

Changed in nova:
status: In Progress → Fix Committed

I will be out of the office starting 01/26/2014 and will not return until
02/10/2014.

I will respond to your message when I return.

Changed in nova:
milestone: none → icehouse-3
Thierry Carrez (ttx) on 2014-03-05
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2014-04-17
Changed in nova:
milestone: icehouse-3 → 2014.1

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/110708

Change abandoned by Petrut Lucian (<email address hidden>) on branch: stable/havana
Review: https://review.openstack.org/83370

Reviewed: https://review.openstack.org/110708
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=a61b50027f306ac96cd9e7c9c45c42ab1f99ec8a
Submitter: Jenkins
Branch: stable/havana

commit a61b50027f306ac96cd9e7c9c45c42ab1f99ec8a
Author: DuYaHong <email address hidden>
Date: Tue Nov 12 14:36:43 2013 +0800

    Hyper-V:Preserve config drive image after the instance is resized

    If we configure config_drive_cdrom=True in nova.conf,
    the config drive image will be lost after the instance
    is resized on hyperV. This is because nova compute will
    not copy the disk file if the file's ResourceSubType
    is not 'Virtual Hard Disk'.

    This commit adds 'Virtual CD/DVD Disk' into disk_resources
    to preserve the config drive image after the instance is
    resized.

    Closes-Bug: #1250324
    (cherry-picked from commit 710cf4e3a7ee3b89e462ec5ff2291e1177556819)

    Change-Id: Ia125a8b132d194ddc2230754fd1b813698b410a8

tags: added: in-stable-havana
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers