Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues with device autoassignment in xenapi
This is a workaround for two issues in xenapi. The first is that does not set the instance default_root_device to /dev/xvda so it defaults to /dev/sda. The proper fix for this involves setting the default_root_device in xenapi and a db migration to set the proper default_root_device for existing instances. This patch works around this issue by explicitly setting the prefix to /dev/xvd if the compute driver is xenapi. The second issue is that xenapi never updates the instance record to include default_swap_device and default_ephemeral device. The fix for this involes adding the appropriate update to the instance record and a migration that sets the proper values for all existing instances. This patch works around this issue by explicily checking the instance_type and removing the devices from the list if the compute driver is xenapi. Fixes bug 1055715 and bug 1055712 Change-Id: I61aa15e69eb0a22430bb22ea5149b1f0735b3328 (cherry picked from commit 6956476)
- Loading branch information
1 parent
9292227
commit 076cb9d
Showing
2 changed files
with
85 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters