
microversion 2.96 changed the GET and GET list details APi response to add a new field 'pinned_availability_zone' - https://review.opendev.org/c/openstack/nova/+/904568 but when we change the views/servers.py then update server and rebuild server API response also gets updated. - https://review.opendev.org/c/openstack/nova/+/904568/17/nova/api/openstack/compute/views/servers.py#309 The microversion change actually changed the response for the update and rebuild API but did not update the documentation about this change. Neither added test for rebuild and update which verify the response change. Since microversion 2.75, we have made all these 4 APIs response consistent. Change-Id: I31fbb3c5e689302713bfb7a254c5d0cc12de2dc4
82 lines
2.7 KiB
JSON
82 lines
2.7 KiB
JSON
{
|
|
"server": {
|
|
"OS-DCF:diskConfig": "AUTO",
|
|
"OS-EXT-AZ:availability_zone": "us-west",
|
|
"OS-EXT-SRV-ATTR:hostname": "updated-hostname.example.com",
|
|
"OS-EXT-STS:power_state": 1,
|
|
"OS-EXT-STS:task_state": null,
|
|
"OS-EXT-STS:vm_state": "active",
|
|
"OS-SRV-USG:launched_at": "2025-02-27T01:27:30.210952",
|
|
"OS-SRV-USG:terminated_at": null,
|
|
"accessIPv4": "1.2.3.4",
|
|
"accessIPv6": "80fe::",
|
|
"addresses": {
|
|
"private": [
|
|
{
|
|
"OS-EXT-IPS-MAC:mac_addr": "00:0c:29:0d:11:74",
|
|
"OS-EXT-IPS:type": "fixed",
|
|
"addr": "192.168.1.30",
|
|
"version": 4
|
|
}
|
|
]
|
|
},
|
|
"adminPass": "seekr3t",
|
|
"config_drive": "",
|
|
"created": "2025-02-27T01:27:28Z",
|
|
"description": null,
|
|
"flavor": {
|
|
"disk": 1,
|
|
"ephemeral": 0,
|
|
"extra_specs": {},
|
|
"original_name": "m1.tiny",
|
|
"ram": 512,
|
|
"swap": 0,
|
|
"vcpus": 1
|
|
},
|
|
"hostId": "2091634baaccdc4c5a1d57069c833e402921df696b7f970791b12ec6",
|
|
"id": "a7920f90-14be-4c71-a6f9-6182f5df17c2",
|
|
"image": {
|
|
"id": "70a599e0-31e7-49b7-b260-868f441e862b",
|
|
"links": [
|
|
{
|
|
"href": "http://openstack.example.com/6f70656e737461636b20342065766572/images/70a599e0-31e7-49b7-b260-868f441e862b",
|
|
"rel": "bookmark"
|
|
}
|
|
]
|
|
},
|
|
"key_name": null,
|
|
"links": [
|
|
{
|
|
"href": "http://openstack.example.com/v2.1/6f70656e737461636b20342065766572/servers/a7920f90-14be-4c71-a6f9-6182f5df17c2",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "http://openstack.example.com/6f70656e737461636b20342065766572/servers/a7920f90-14be-4c71-a6f9-6182f5df17c2",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"locked": false,
|
|
"locked_reason": null,
|
|
"metadata": {
|
|
"meta_var": "meta_val"
|
|
},
|
|
"name": "foobar",
|
|
"os-extended-volumes:volumes_attached": [],
|
|
"pinned_availability_zone": "us-west",
|
|
"progress": 0,
|
|
"security_groups": [
|
|
{
|
|
"name": "default"
|
|
}
|
|
],
|
|
"server_groups": [],
|
|
"status": "ACTIVE",
|
|
"tags": [],
|
|
"tenant_id": "6f70656e737461636b20342065766572",
|
|
"trusted_image_certificates": null,
|
|
"updated": "2025-02-27T01:27:30Z",
|
|
"user_data": "ZWNobyAiaGVsbG8gd29ybGQi",
|
|
"user_id": "fake"
|
|
}
|
|
}
|