Closed kbothwell closed 14 hours ago
Hi. Also web UI does set disk UUID when creating a new VM - screenshot of websocket traffic is here. The collection mimicks what web UI does.
The "OpenAPI enforcer" - is this something that ScaleComputing provides, or is a third party tool?
This issue can be closed. Turns out supplying any string for a block or net device's UUID on virDomain create and referring to it in boot devices is undocumented but desired behavior in the api. The OpenAPI Enforcer is a third party tool that is getting rolled back. Thank you for your attention on this.
Describe the bug
When creating a VM with disks attached a UUID is included called with a value of "primaryDrive". The HyperCore cluster receives the information like so:
When an OpenAPI enforcer is used the request errors 400 as a bad request. Cannot write to a read only property
The
vm.py
module contains a function called_post_vm_payload_set_disks
which sets the first disk that isn't a CDROM drive to have a uuid ofprimaryDrive
.To Reproduce Steps to reproduce the behavior:
hypercore.vm
Expected behavior
There should be no attempt to create a UUID.
Screenshots
If applicable, add screenshots to help explain your problem.
System Info (please complete the following information):
Additional context
Add any other context about the problem here.