Resize on hyperV does not preserve the config drive image

Bug #1250324 reported by Ya Hong Du
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Ya Hong Du
Havana
Fix Released
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)
Changed in nova:
assignee: nobody → Ya Hong Du (yahongdu)
Revision history for this message
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.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

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
Revision history for this message
Ya Hong Du (yahongdu) wrote : Ya Hong YH Du is on vacation from 1/27-2/9.

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)
Changed in nova:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/havana)

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

Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-3 → 2014.1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (stable/havana)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/havana)

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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