Hi,

As mentioned in the mail subject, using nested KVM, can I deploy compute nodes as VMs for test and learning purposes?

If yes, does CUSTOM_BAREMETAL have to be set to 0?

I tried to deploy Train on VMs (3 controllers and 3 compute HCI), but I got this error :
2021-08-17 14:48:50.912 10 ERROR nova.scheduler.utils [req-92f040e7-3845-4e71-bade-b248e7752407 2697a416f4374ec4b5104b1a6f07763f 210ce11740904ed4a5f693a7c41cb709 - default default] [instance: 0c5d829c-7f3e-4d07-afb0-2307515ac6b8] Error from last host: udtrain.example.com (node eff46043-a36c-4a92-a211-47d09863547a): ['Traceback (most recent call last):\n', '  File "/usr/lib/python3.6/site-packages/nova/compute/manager.py", line 2487, in _build_and_run_instance\n    block_device_info=block_device_info)\n', '  File "/usr/lib/python3.6/site-packages/nova/virt/ironic/driver.py", line 1289, in spawn\n    \'node\': node_uuid})\n', '  File "/usr/lib/python3.6/site-packages/oslo_utils/excutils.py", line 220, in __exit__\n    self.force_reraise()\n', '  File "/usr/lib/python3.6/site-packages/oslo_utils/excutils.py", line 196, in force_reraise\n    six.reraise(self.type_, self.value, self.tb)\n', '  File "/usr/lib/python3.6/site-packages/six.py", line 703, in reraise\n    raise value\n', '  File "/usr/lib/python3.6/site-packages/nova/virt/ironic/driver.py", line 1281, in spawn\n    timer.start(interval=CONF.ironic.api_retry_interval).wait()\n', '  File "/usr/lib/python3.6/site-packages/eventlet/event.py", line 125, in wait\n    result = hub.switch()\n', '  File "/usr/lib/python3.6/site-packages/eventlet/hubs/hub.py", line 298, in switch\n    return self.greenlet.switch()\n', '  File "/usr/lib/python3.6/site-packages/oslo_service/loopingcall.py", line 150, in _run_loop\n    result = func(*self.args, **self.kw)\n', '  File "/usr/lib/python3.6/site-packages/nova/virt/ironic/driver.py", line 558, in _wait_for_active\n    raise exception.InstanceDeployFailure(msg)\n', 'nova.exception.InstanceDeployFailure: Failed to provision instance 0c5d829c-7f3e-4d07-afb0-2307515ac6b8: None\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/lib/python3.6/site-packages/nova/compute/manager.py", line 2211, in _do_build_and_run_instance\n    filter_properties, request_spec)\n', '  File "/usr/lib/python3.6/site-packages/nova/compute/manager.py", line 2587, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n', 'nova.exception.RescheduledException: Build of instance 0c5d829c-7f3e-4d07-afb0-2307515ac6b8 was re-scheduled: Failed to provision instance 0c5d829c-7f3e-4d07-afb0-2307515ac6b8: None\n']


2021-08-17 14:48:51.039 10 WARNING nova.scheduler.client.report [req-92f040e7-3845-4e71-bade-b248e7752407 2697a416f4374ec4b5104b1a6f07763f 210ce11740904ed4a5f693a7c41cb709 - default default]Failed to save allocation for 0c5d829c-7f3e-4d07-afb0-2307515ac6b8. Got HTTP 409: {"errors": [{"status": 409, "title": "Conflict", "detail": "There was a conflict when trying to complete your request.\n\n Unable to allocate inventory: Unable to create allocation for 'CUSTOM_BAREMETAL' on resource provider '6d3724fc-6f13-4588-bbe5-56bc4f9a4f87'. The requested amount would exceed the capacity.  ", "code": "placement.undefined_code", "request_id": "req-6d6bd59b-adc2-4891-a014-d02b387f7355"}]}


Regards.