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.
Reviewed: https:/ /review. openstack. org/55975 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=710cf4e3a7e e3b89e462ec5ff2 291e1177556819
Committed: https:/
Submitter: Jenkins
Branch: master
commit 710cf4e3a7ee3b8 9e462ec5ff2291e 1177556819
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: Ia125a8b132d194 ddc2230754fd1b8 13698b410a8