Enabled swap disk to be resized when resizing instance.
When you resize an instance, it is powered off and the root and
ephemeral disks are resized (not swap). Swap is not resized
because it is a partition. To allow the swap disk to be resized,
we have to delete it and re-create it with the correct size.
We do not care about the contents of the swap disk because
when an instance is shut down, the contents of the swap space
are just garbage, the OS doesn't bother about what is in it.
Reviewed: https:/ /review. openstack. org/82201 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=400f3705264 904ac266c748b4b a2bb44fa172b2c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 400f3705264904a c266c748b4ba2bb 44fa172b2c
Author: Thang Pham <email address hidden>
Date: Fri Mar 21 16:34:48 2014 -0400
Enabled swap disk to be resized when resizing instance.
When you resize an instance, it is powered off and the root and
ephemeral disks are resized (not swap). Swap is not resized
because it is a partition. To allow the swap disk to be resized,
we have to delete it and re-create it with the correct size.
We do not care about the contents of the swap disk because
when an instance is shut down, the contents of the swap space
are just garbage, the OS doesn't bother about what is in it.
Change-Id: I2bb05f01af6c97 e6860dcd79a6888 4101a13c7d4
Closes-Bug: #1244222