oVirt / ovirt-engine

The oVirt Engine virtualization manager
Other
493 stars 259 forks source link

Error: Cloud config schema errors: disable_root: 0 is not of type 'boolean', ssh_deletekeys: 'false' is not of type 'boolean' #889

Open ValeriiVozniuk opened 9 months ago

ValeriiVozniuk commented 9 months ago

Affected version 4.5.4

Describe the bug cloud-config generated by oVirt is producing two errors in cloud-init logs: Error: Cloud config schema errors: disable_root: 0 is not of type 'boolean', ssh_deletekeys: 'false' is not of type 'boolean'

To reproduce

Provision a VM via API with section present.

Expected behavior

No errors in cloud-init logs.

Additional context

Suspected cause:

https://github.com/oVirt/ovirt-engine/blame/master/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/CloudInitHandler.java#L194 Not needed cast to String?

https://github.com/oVirt/ovirt-engine/blame/master/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/CloudInitHandler.java#L303 Should be False?

I assume in past cloud-init was less strict about values inside the config, but now these errors distracts during debugging, and I assume these options are not working (I didn't test that).