summaryrefslogtreecommitdiff
path: root/doc/notification_samples
diff options
context:
space:
mode:
authorElőd Illés <elod.illes@ericsson.com>2017-09-29 14:38:49 +0200
committerElőd Illés <elod.illes@ericsson.com>2018-11-30 13:20:35 +0100
commit70c7ba7324cf47179d978b4073545e3837d4fd24 (patch)
treea3c4070c3a9fb3089972fb35ac9727aae8ad2171 /doc/notification_samples
parentfe4e47d9899b730abf06a120ba113f5f4a567d1e (diff)
downloadnova-70c7ba7324cf47179d978b4073545e3837d4fd24.tar.gz
Transform scheduler.select_destinations notification
Transform the scheduler.select_destinations.start and scheduler.select_destinations.end notifications to the versioned notification framework. Change-Id: I019e88fabd1d386c0d6395a7b1969315873485fd Implements: bp versioned-notification-transformation-stein
Diffstat (limited to 'doc/notification_samples')
-rw-r--r--doc/notification_samples/common_payloads/ComputeTaskPayload.json16
-rw-r--r--doc/notification_samples/common_payloads/RequestSpecPayload.json23
-rw-r--r--doc/notification_samples/scheduler-select_destinations-end.json6
-rw-r--r--doc/notification_samples/scheduler-select_destinations-start.json6
4 files changed, 38 insertions, 13 deletions
diff --git a/doc/notification_samples/common_payloads/ComputeTaskPayload.json b/doc/notification_samples/common_payloads/ComputeTaskPayload.json
index 387ff4b01e..cecddffb6f 100644
--- a/doc/notification_samples/common_payloads/ComputeTaskPayload.json
+++ b/doc/notification_samples/common_payloads/ComputeTaskPayload.json
@@ -5,7 +5,21 @@
"nova_object.data": {
"instance_uuid": "d5e6a7b7-80e5-4166-85a3-cd6115201082",
"reason": {"$ref": "ExceptionPayload.json#"},
- "request_spec": {"$ref": "RequestSpecPayload.json#"},
+ "request_spec": {
+ "$ref": "RequestSpecPayload.json#",
+ "nova_object.data": {
+ "flavor": {
+ "nova_object.data": {
+ "extra_specs": {
+ "hw:numa_cpus.0": "0",
+ "hw:numa_mem.0": "512",
+ "hw:numa_nodes": "1"
+ }
+ }
+ },
+ "numa_topology": {"$ref": "InstanceNUMATopologyPayload.json#"}
+ }
+ },
"state": "error"
}
}
diff --git a/doc/notification_samples/common_payloads/RequestSpecPayload.json b/doc/notification_samples/common_payloads/RequestSpecPayload.json
index 98bcb9852a..3301c18c58 100644
--- a/doc/notification_samples/common_payloads/RequestSpecPayload.json
+++ b/doc/notification_samples/common_payloads/RequestSpecPayload.json
@@ -2,24 +2,23 @@
"nova_object.namespace": "nova",
"nova_object.data": {
"availability_zone": null,
- "flavor": {
- "$ref": "FlavorPayload.json#",
- "nova_object.data": {
- "extra_specs": {
- "hw:numa_cpus.0": "0",
- "hw:numa_mem.0": "512",
- "hw:numa_nodes": "1"
- }
- }
- },
+ "flavor": {"$ref": "FlavorPayload.json#"},
+ "ignore_hosts": null,
"image": {"$ref": "ImageMetaPayload.json#"},
"instance_uuid": "d5e6a7b7-80e5-4166-85a3-cd6115201082",
"num_instances": 1,
- "numa_topology": {"$ref": "InstanceNUMATopologyPayload.json#"},
+ "numa_topology": null,
"pci_requests": {"$ref": "InstancePCIRequestsPayload.json#"},
"project_id": "6f70656e737461636b20342065766572",
+ "scheduler_hints": {},
+ "security_groups": ["default"],
+ "force_hosts": null,
+ "force_nodes": null,
+ "instance_group": null,
+ "requested_destination": null,
+ "retry": null,
"user_id": "fake"
},
"nova_object.name": "RequestSpecPayload",
- "nova_object.version": "1.0"
+ "nova_object.version": "1.1"
}
diff --git a/doc/notification_samples/scheduler-select_destinations-end.json b/doc/notification_samples/scheduler-select_destinations-end.json
new file mode 100644
index 0000000000..76535710f1
--- /dev/null
+++ b/doc/notification_samples/scheduler-select_destinations-end.json
@@ -0,0 +1,6 @@
+{
+ "priority": "INFO",
+ "payload": {"$ref": "common_payloads/RequestSpecPayload.json#"},
+ "event_type": "scheduler.select_destinations.end",
+ "publisher_id": "nova-scheduler:fake-mini"
+}
diff --git a/doc/notification_samples/scheduler-select_destinations-start.json b/doc/notification_samples/scheduler-select_destinations-start.json
new file mode 100644
index 0000000000..b5cacc141b
--- /dev/null
+++ b/doc/notification_samples/scheduler-select_destinations-start.json
@@ -0,0 +1,6 @@
+{
+ "priority": "INFO",
+ "payload": {"$ref": "common_payloads/RequestSpecPayload.json#"},
+ "event_type": "scheduler.select_destinations.start",
+ "publisher_id": "nova-scheduler:fake-mini"
+}