94de8d75ff
As it was agreed on the Rocky PTG [1] it is useful to have the request_id of in the payload of every instance action versioned notification. For example it could help the deployer connect the state change described in the notification with the user action, the request, on the REST API. So this patch proposes to extend the InstanceActionPayload versioned object with a new request_id field and populate the request_id from the context object used for emitting the instance action notifications. [1] https://etherpad.openstack.org/p/nova-ptg-rocky L391 Implements: bp add-request-id-to-instance-action-notifications Change-Id: I7243b60938d6e9c7c2bc2aacdba5c667cca8ec9b
32 lines
999 B
JSON
32 lines
999 B
JSON
{
|
|
"$ref": "InstanceActionPayload.json",
|
|
"nova_object.data":{
|
|
"new_flavor": {
|
|
"nova_object.name": "FlavorPayload",
|
|
"nova_object.data": {
|
|
"description": null,
|
|
"disabled": false,
|
|
"ephemeral_gb": 0,
|
|
"extra_specs": {
|
|
"hw:watchdog_action": "reset"
|
|
},
|
|
"flavorid": "d5a8bb54-365a-45ae-abdb-38d249df7845",
|
|
"is_public": true,
|
|
"memory_mb": 256,
|
|
"name": "other_flavor",
|
|
"projects": null,
|
|
"root_gb": 1,
|
|
"rxtx_factor": 1.0,
|
|
"swap": 0,
|
|
"vcpu_weight": 0,
|
|
"vcpus": 1
|
|
},
|
|
"nova_object.namespace": "nova",
|
|
"nova_object.version": "1.4"
|
|
},
|
|
"task_state": "resize_prep"
|
|
},
|
|
"nova_object.name": "InstanceActionResizePrepPayload",
|
|
"nova_object.version": "1.1"
|
|
}
|