forked from openstack-k8s-operators/osp-director-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OSPK8-430] Introduce additional disk support with v1beta2
Allows adding additional disks to a vm role, therefore restructures disk specification for vmset/ctlplane VM roles. Therefore introduces new API verstion for VMSet and Ctlplane. Adds OpenStackVMSetDisk type which describes any disk configured for the VM. Root of vmset now has RootDisk of type OpenStackVMSetDisk and AdditionalDisks of type []OpenStackVMSetDisk. OpenStackVMSetDisk with the parameters: - Name - DiskSize - StorageClass - StorageAccessMode - StorageVolumeMode - DedicatedIOThread * Also adds IOThreadsPolicy and BlockMultiQueue to the root vmset spec: DedicatedIOThread - Disks with dedicatedIOThread set to true will be allocated an exclusive thread. This is generally useful if a specific Disk is expected to have heavy I/O traffic, e.g. a database spindle. If IOThreadsPolicy is default, use of IOThreads will be disabled. However, if any disk requests a dedicated IOThread, ioThreadsPolicy will be enabled and default to shared. When ioThreadsPolicy is set to auto IOThreads will also be "isolated" from the vCPUs and placed on the same physical CPU as the QEMU emulator thread. An ioThreadsPolicy of shared indicates that KubeVirt should use one thread that will be shared by all disk devices. Block Multi-Queue is a framework for the Linux block layer that maps Device I/O queries to multiple queues. This splits I/O processing up across multiple threads, and therefor multiple CPUs. libvirt recommends that the number of queues used should match the number of CPUs allocated for optimal performance. * API update For existing CRs via the ctlplane mutation webhook parameter from old specification gets moved into the new structure. When done an annotation gets set on the object to no longer check it. To auto trigger the storage verstion migration the ctlplane controller reconcilation creates the required StorageVersionMigration via ensureStorageVersionMigration(). The ctlplane controller then updates/ patches the owning VMSet objects. * Validations vi webhook On CR create: additional disks checks - validate Disk Name is not 'rootdisk' as this is reserved for the boot disk - validate that disk name is uniq within the VM role On CR update: rootdisk checks - validate DiskSize don't change - validate StorageAccessMode don't change - validate StorageClass don't change - validate StorageVolumeMode don't change additional disks checks - same as rootdisk update checks - validate Disk Name is not 'rootdisk' as this is reserved for the boot disk - validate that disk name is uniq within the VM role
- Loading branch information
Showing
55 changed files
with
3,686 additions
and
393 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
Oops, something went wrong.