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)
Reviewed: https:/ /review. openstack. org/110708 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=a61b50027f3 06ac96cd9e7c9c4 5c42ab1f99ec8a
Committed: https:/
Submitter: Jenkins
Branch: stable/havana
commit a61b50027f306ac 96cd9e7c9c45c42 ab1f99ec8a
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 9e462ec5ff2291e 1177556819)
(cherry-picked from commit 710cf4e3a7ee3b8
Change-Id: Ia125a8b132d194 ddc2230754fd1b8 13698b410a8