
In I18e7483ec9a484a660e1d306fdc0986e1d5f952b BDM was added to the instance notifications. In general to add BDM to the payload an exta DB query is needed. However in some places the BDM is already separately before the notify_about_instance_action is called to send the notification. In this cases loading the BDM again is unnecessary as the already loaded BDM can be reused. This patch makes sure that notify_about_instance_action is called with the already loaded BDM. There will be subsequent patches to do the same with other notify calls. Change-Id: I391554d3904a5a60b921ef4714a1cfd0a64a25c2 Related-Bug: #1718226
77 lines
2.8 KiB
JSON
77 lines
2.8 KiB
JSON
{
|
|
"event_type":"instance.delete.end",
|
|
"payload":{
|
|
"nova_object.data":{
|
|
"architecture":"x86_64",
|
|
"availability_zone": "nova",
|
|
"block_devices":[{
|
|
"nova_object.data": {
|
|
"boot_index": null,
|
|
"delete_on_termination": false,
|
|
"device_name": "/dev/sdb",
|
|
"tag": null,
|
|
"volume_id": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113"
|
|
},
|
|
"nova_object.name": "BlockDevicePayload",
|
|
"nova_object.namespace": "nova",
|
|
"nova_object.version": "1.0"
|
|
}],
|
|
"created_at":"2012-10-29T13:42:11Z",
|
|
"deleted_at":"2012-10-29T13:42:11Z",
|
|
"display_name":"some-server",
|
|
"display_description":"some-server",
|
|
"fault":null,
|
|
"host":"compute",
|
|
"host_name":"some-server",
|
|
"ip_addresses":[],
|
|
"key_name": "my-key",
|
|
"kernel_id":"",
|
|
"launched_at":"2012-10-29T13:42:11Z",
|
|
"image_uuid": "155d900f-4e14-4e4c-a73d-069cbf4541e6",
|
|
"metadata":{},
|
|
"locked":false,
|
|
"node":"fake-mini",
|
|
"os_type":null,
|
|
"progress":0,
|
|
"ramdisk_id":"",
|
|
"reservation_id":"r-npxv0e40",
|
|
"state":"deleted",
|
|
"task_state":null,
|
|
"power_state":"pending",
|
|
"tenant_id":"6f70656e737461636b20342065766572",
|
|
"terminated_at":"2012-10-29T13:42:11Z",
|
|
"auto_disk_config":"MANUAL",
|
|
"flavor": {
|
|
"nova_object.name": "FlavorPayload",
|
|
"nova_object.data": {
|
|
"flavorid": "a22d5517-147c-4147-a0d1-e698df5cd4e3",
|
|
"name": "test_flavor",
|
|
"root_gb": 1,
|
|
"vcpus": 1,
|
|
"ephemeral_gb": 0,
|
|
"memory_mb": 512,
|
|
"disabled": false,
|
|
"rxtx_factor": 1.0,
|
|
"extra_specs": {
|
|
"hw:watchdog_action": "disabled"
|
|
},
|
|
"projects": null,
|
|
"swap": 0,
|
|
"is_public": true,
|
|
"vcpu_weight": 0
|
|
},
|
|
"nova_object.version": "1.3",
|
|
"nova_object.namespace": "nova"
|
|
},
|
|
"updated_at": "2012-10-29T13:42:11Z",
|
|
"user_id":"fake",
|
|
"uuid":"178b0921-8f85-4257-88b6-2e743b5a975c"
|
|
},
|
|
"nova_object.name":"InstanceActionPayload",
|
|
"nova_object.namespace":"nova",
|
|
"nova_object.version":"1.5"
|
|
},
|
|
"priority":"INFO",
|
|
"publisher_id":"nova-compute:compute"
|
|
}
|