[Storage] There is a scenario when VM might have several bootable disks which is wrong. How to reproduce: 1.Create several VMs with regular (not shared) disks and mark this disk bootable. You must have several VMs,each of them has 1 bootable disk. 2.Create shred disk. 3.Attach this shared disk to all VMs. 4.Go to one of the VMs,delete its bootable disk and after that mark its shared disk as bootable. Now,all other VMs that already has one bootable disk will also have shared disk that will be marked as bootable.
Solving this requires moving the bootable property from disk to VM-disk relationship.
(In reply to comment #1) > Solving this requires moving the bootable property from disk to VM-disk > relationship. Moving the bootable property to the device instead of the disk is generally the correct way to go, but in the meanwhile, we can have a CDA that checks updating the bootable property of a (shared) disk.
(In reply to comment #3) > (In reply to comment #1) > > Solving this requires moving the bootable property from disk to VM-disk > > relationship. > > Moving the bootable property to the device instead of the disk is generally > the correct way to go, but in the meanwhile, we can have a CDA that checks > updating the bootable property of a (shared) disk. Ayal, we can solve this, relatively easily, for disks only. Please devel ack/nack this direction.
(In reply to comment #8) > (In reply to comment #3) > > (In reply to comment #1) > > > Solving this requires moving the bootable property from disk to VM-disk > > > relationship. > > > > Moving the bootable property to the device instead of the disk is generally > > the correct way to go, but in the meanwhile, we can have a CDA that checks > > updating the bootable property of a (shared) disk. > > Ayal, we can solve this, relatively easily, for disks only. > Please devel ack/nack this direction. Does this mean that setting bootable on a shareable disk would check to see if it's attached to other VMs and prevent it or does it mean that we would not support bootable shareable disks? (the former is fine, the latter is not).
(In reply to comment #9) > (In reply to comment #8) > > (In reply to comment #3) > > > (In reply to comment #1) > > > > Solving this requires moving the bootable property from disk to VM-disk > > > > relationship. > > > > > > Moving the bootable property to the device instead of the disk is generally > > > the correct way to go, but in the meanwhile, we can have a CDA that checks > > > updating the bootable property of a (shared) disk. > > > > Ayal, we can solve this, relatively easily, for disks only. > > Please devel ack/nack this direction. > > Does this mean that setting bootable on a shareable disk would check to see > if it's attached to other VMs and prevent it or does it mean that we would > not support bootable shareable disks? (the former is fine, the latter is > not). The former. When we edit a disk's properties in a VM context, it's bootable flag is checked only vs. the contextual VM - this should be changed to all of the VMs.
verified on sf13 - we cannot edit the boot tab if the disk is shared on multiple vm's with already existing shared disks
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0888.html