Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.1.1
-
None
-
None
Description
The current liveMigration function under Nova's adminServerApi doesn't support auto-select of destination host (via Nova scheduler), unlike OpenStack API where we do so by passing a null for the host value:
curl -g -i -X POST https://{identity-endpoint}/v2.1/servers/{UUID}/action -H "Accept: application/json" -H "Content-Type: application/json" -H "OpenStack-API-Version: compute 2.53" -H "User-Agent: python-novaclient" -H "X-OpenStack-Nova-API-Version: 2.53" -d '{"os-migrateLive": {"block_migration": true, "host": null}}' -H "X-Auth-Token: {TOKEN}"
Currently the function throws a NPE if we pass null, can this be fixed/updated?