I'm facing the same issue in Rocky when launching images with hw_disk_bus=scsi and hw_scsi_model=virtio-scsi using a flavor that provides a swap disk. In this case the device_name should be sda, but is set to vda by Horizon instead. As a result nova attaches the root disk as vda and the swap disk as sda which destroys the boot order.
I did some work to port the whole block device mapping part to v2 removing the vda default. This currently requires can_set_mount_point=False (which I guess is the default) because otherwise the vda_device_name will be mapped to a text field in the instance creation workflow which still has to be handled in some way. Also the fix lacks of an update to the spec file.
I'm facing the same issue in Rocky when launching images with hw_disk_bus=scsi and hw_scsi_ model=virtio- scsi using a flavor that provides a swap disk. In this case the device_name should be sda, but is set to vda by Horizon instead. As a result nova attaches the root disk as vda and the swap disk as sda which destroys the boot order.
I did some work to port the whole block device mapping part to v2 removing the vda default. This currently requires can_set_ mount_point= False (which I guess is the default) because otherwise the vda_device_name will be mapped to a text field in the instance creation workflow which still has to be handled in some way. Also the fix lacks of an update to the spec file.
You can find the current state of my change here: /github. com/ktwe/ horizon/ commit/ ef2428e504cec67 a177d9c4815e733 b9bdba7db2
https:/
I will try to complete my work and submit it to the project, but if someone wants to build on my work in the meantime, please feel free to so.