This adds node.instance_name as a top level field Additionally, to provide forwards-compatability for nova clients, we will automatically set node.instance_name if node.instance_info.display_name is being set. Tested the following in devstack, using manual CURL api calls: - Viewing an instance_name via GET /v1/nodes/node-name - Adding an instance_name - Clearing instance name on undeploy - Setting an instance_name via PATCH /v1/nodes/node-name - Setting a instance_info/display_name and validating it sets instance_name - Setting a instance_info/display_name when instance_name already exists and validating it DOES NOT OVERRIDE existing instance_name - node.instance_name not returned for API version < our micro version - querying /v1/nodes with ?instance_name=somename - (cid) Sort of fully tested integrated with nova by observing CI logs - (jayf) Added missing comments around API versions, and added a reminder comment Generated-By: Claude code Change-Id: Ic24b2e8dbe88c59f0df52a0f5581d48492ba8cd7 Signed-off-by: Afonne-CID <afonnepaulc@gmail.com> Signed-off-by: Jay Faulkner <jay@jvf.cc>
111 lines
2.9 KiB
JSON
111 lines
2.9 KiB
JSON
{
|
|
"allocation_uuid": null,
|
|
"boot_interface": null,
|
|
"chassis_uuid": null,
|
|
"clean_step": {},
|
|
"conductor": "compute1.localdomain",
|
|
"conductor_group": "group-1",
|
|
"console_enabled": false,
|
|
"console_interface": null,
|
|
"created_at": "2016-08-18T22:28:48.643434+11:11",
|
|
"deploy_interface": null,
|
|
"deploy_step": {},
|
|
"description": null,
|
|
"driver": "fake",
|
|
"driver_info": {
|
|
"ipmi_password": "******",
|
|
"ipmi_username": "ADMIN"
|
|
},
|
|
"driver_internal_info": {
|
|
"clean_steps": null
|
|
},
|
|
"extra": {},
|
|
"inspect_interface": null,
|
|
"inspection_finished_at": null,
|
|
"inspection_started_at": null,
|
|
"instance_info": {},
|
|
"instance_uuid": null,
|
|
"instance_name": null,
|
|
"last_error": null,
|
|
"lessee": null,
|
|
"links": [
|
|
{
|
|
"href": "http://127.0.0.1:6385/v1/nodes/6d85703a-565d-469a-96ce-30b6de53079d",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "http://127.0.0.1:6385/nodes/6d85703a-565d-469a-96ce-30b6de53079d",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"maintenance": false,
|
|
"maintenance_reason": null,
|
|
"management_interface": null,
|
|
"name": "test_node_classic",
|
|
"network_data": {},
|
|
"network_interface": "flat",
|
|
"owner": null,
|
|
"portgroups": [
|
|
{
|
|
"href": "http://127.0.0.1:6385/v1/nodes/6d85703a-565d-469a-96ce-30b6de53079d/portgroups",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "http://127.0.0.1:6385/nodes/6d85703a-565d-469a-96ce-30b6de53079d/portgroups",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"ports": [
|
|
{
|
|
"href": "http://127.0.0.1:6385/v1/nodes/6d85703a-565d-469a-96ce-30b6de53079d/ports",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "http://127.0.0.1:6385/nodes/6d85703a-565d-469a-96ce-30b6de53079d/ports",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"power_interface": null,
|
|
"power_state": "power off",
|
|
"properties": {},
|
|
"protected": false,
|
|
"protected_reason": null,
|
|
"provision_state": "available",
|
|
"provision_updated_at": "2016-08-18T22:28:49.946416+00:00",
|
|
"raid_config": {},
|
|
"raid_interface": null,
|
|
"rescue_interface": null,
|
|
"reservation": null,
|
|
"resource_class": "bm-large",
|
|
"retired": false,
|
|
"retired_reason": null,
|
|
"states": [
|
|
{
|
|
"href": "http://127.0.0.1:6385/v1/nodes/6d85703a-565d-469a-96ce-30b6de53079d/states",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "http://127.0.0.1:6385/nodes/6d85703a-565d-469a-96ce-30b6de53079d/states",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"storage_interface": "noop",
|
|
"target_power_state": null,
|
|
"target_provision_state": null,
|
|
"target_raid_config": {},
|
|
"traits": [],
|
|
"updated_at": "2016-08-18T22:28:49.653974+00:00",
|
|
"uuid": "6d85703a-565d-469a-96ce-30b6de53079d",
|
|
"vendor_interface": null,
|
|
"volume": [
|
|
{
|
|
"href": "http://127.0.0.1:6385/v1/nodes/6d85703a-565d-469a-96ce-30b6de53079d/volume",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "http://127.0.0.1:6385/nodes/6d85703a-565d-469a-96ce-30b6de53079d/volume",
|
|
"rel": "bookmark"
|
|
}
|
|
]
|
|
}
|