ovirt-engine icon indicating copy to clipboard operation
ovirt-engine copied to clipboard

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

Open ValeriiVozniuk opened this issue 10 months ago • 0 comments

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).

ValeriiVozniuk avatar Oct 09 '23 07:10 ValeriiVozniuk