nova/doc/notification_samples/instance-create-error.json
Balazs Gibizer f8b98390dc Fix PCI passthrough cleanup on reschedule
The resource tracker Claim object works on a copy of the instance object
got from the compute manager. But the PCI claim logic does not use the
copy but use the original instance object. However the abort claim logic
including the abort PCI claim logic worked on the copy only. Therefore the
claimed PCI devices are visible to the compute manager in the
instance.pci_decives list even after the claim is aborted.

There was another bug in the PCIDevice object where the instance object
wasn't passed to the free() function and therefore the
instance.pci_devices list wasn't updated when the device was freed.

Closes-Bug: #1860555
Change-Id: Iff343d4d78996cd17a6a584fefa7071c81311673
2024-08-16 16:10:14 +02:00

29 lines
1.1 KiB
JSON

{
"event_type":"instance.create.error",
"payload":{
"$ref":"common_payloads/InstanceCreatePayload.json#",
"nova_object.data": {
"fault": {
"nova_object.data": {
"exception": "FlavorDiskTooSmall",
"exception_message": "The created instance's disk would be too small.",
"function_name": "_build_resources",
"module_name": "nova.tests.functional.notification_sample_tests.test_instance",
"traceback": "Traceback (most recent call last):\n File \"nova/compute/manager.py\", line ..."
},
"nova_object.name": "ExceptionPayload",
"nova_object.namespace": "nova",
"nova_object.version": "1.1"
},
"ip_addresses": [],
"launched_at": null,
"power_state": "pending",
"state": "building",
"host": null,
"node": null
}
},
"priority":"ERROR",
"publisher_id":"nova-compute:compute"
}