0

Just for testing and learning purpose, can openstack compute nodes be deployed as VM with nested-kvm?

I tried to do so with Train version of openstack, but I got this errors :

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"}]}

And I get this error also :

Failed to provision instance fc40457e-4b3c-4402-ae9d-c528f2c2ad30: Asynchronous exception: Node failed to deploy. Exception: Agent API for node 6d3724fc-6f13-4588-bbe5-56bc4f9a4f87 returned HTTP status code 404 with error: Not found: Extension with id iscsi not found. for node

Regards.

Wodel
  • 51
  • 1
  • 5

1 Answers1

0

When you see an HTTP error, like Got HTTP 409, this means it was reported by the client side. You need to see it from the server side of the REST call. This could be heat, mistral, or something else. Usually haproxy is used to dispatch the call to a backend. In your case the client was nova.scheduler.client.report, this means that you need to enable debug in nova.conf and restart nova-scheduler. nova-scheduler can be a service or container (systemctl, docker ps, podman ps).

After you figure out which backend service returned HTTP/409, you can enable debug in it.

All openstack services are using OSLO library that allows to enable debugging in the same way. Just add debug=true in the [DEFAULT] section of the config file. E.g. If it's containerized:

[root@controller-0 ~]# crudini --get /var/lib/config-data/puppet-generated/nova/etc/nova/nova.conf DEFAULT debug
Parameter not found: debug
[root@controller-0 ~]# crudini --set /var/lib/config-data/puppet-generated/nova/etc/nova/nova.conf DEFAULT debug True
[root@controller-0 ~]# crudini --get /var/lib/config-data/puppet-generated/nova/etc/nova/nova.conf DEFAULT debug
True
[root@controller-0 ~]#
Mircea Vutcovici
  • 17,619
  • 4
  • 56
  • 83