Skip to content

Commit e1346ac

Browse files
Zuulopenstack-gerrit
Zuul
authored andcommitted
Merge "Deduplicate notification samples Rocky - 3"
2 parents b2e013a + 71ee33c commit e1346ac

File tree

6 files changed

+26
-493
lines changed

6 files changed

+26
-493
lines changed

doc/notification_samples/instance-shelve-end.json

Lines changed: 4 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,11 @@
11
{
22
"event_type":"instance.shelve.end",
33
"payload":{
4+
"$ref": "common_payloads/InstanceActionPayload.json#",
45
"nova_object.data":{
5-
"architecture":"x86_64",
6-
"availability_zone": "nova",
7-
"block_devices": [{
8-
"nova_object.data": {
9-
"boot_index": null,
10-
"delete_on_termination": false,
11-
"device_name": "/dev/sdb",
12-
"tag": null,
13-
"volume_id": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113"
14-
},
15-
"nova_object.name": "BlockDevicePayload",
16-
"nova_object.namespace": "nova",
17-
"nova_object.version": "1.0"
18-
}],
19-
"created_at":"2012-10-29T13:42:11Z",
20-
"deleted_at":null,
21-
"display_name":"some-server",
22-
"display_description":"some-server",
23-
"fault":null,
24-
"host":"compute",
25-
"host_name":"some-server",
26-
"ip_addresses": [{
27-
"nova_object.name": "IpPayload",
28-
"nova_object.namespace": "nova",
29-
"nova_object.version": "1.0",
30-
"nova_object.data": {
31-
"mac": "fa:16:3e:4c:2c:30",
32-
"address": "192.168.1.3",
33-
"port_uuid": "ce531f90-199f-48c0-816c-13e38010b442",
34-
"meta": {},
35-
"version": 4,
36-
"label": "private-network",
37-
"device_name": "tapce531f90-19"
38-
}
39-
}],
40-
"key_name": "my-key",
41-
"kernel_id":"",
42-
"launched_at":"2012-10-29T13:42:11Z",
43-
"image_uuid": "155d900f-4e14-4e4c-a73d-069cbf4541e6",
44-
"metadata":{},
45-
"locked":false,
46-
"node":"fake-mini",
47-
"os_type":null,
48-
"progress":0,
49-
"ramdisk_id":"",
50-
"reservation_id":"r-npxv0e40",
51-
"state":"shelved",
52-
"task_state":null,
53-
"power_state":"shutdown",
54-
"tenant_id":"6f70656e737461636b20342065766572",
55-
"terminated_at":null,
56-
"auto_disk_config":"MANUAL",
57-
"flavor": {
58-
"nova_object.name": "FlavorPayload",
59-
"nova_object.data": {
60-
"flavorid": "a22d5517-147c-4147-a0d1-e698df5cd4e3",
61-
"name": "test_flavor",
62-
"root_gb": 1,
63-
"vcpus": 1,
64-
"ephemeral_gb": 0,
65-
"memory_mb": 512,
66-
"disabled": false,
67-
"rxtx_factor": 1.0,
68-
"extra_specs": {
69-
"hw:watchdog_action": "disabled"
70-
},
71-
"projects": null,
72-
"swap": 0,
73-
"is_public": true,
74-
"vcpu_weight": 0,
75-
"description":null
76-
},
77-
"nova_object.version": "1.4",
78-
"nova_object.namespace": "nova"
79-
},
80-
"user_id":"fake",
81-
"uuid":"178b0921-8f85-4257-88b6-2e743b5a975c",
82-
"updated_at": "2012-10-29T13:42:11Z"
83-
},
84-
"nova_object.name":"InstanceActionPayload",
85-
"nova_object.namespace":"nova",
86-
"nova_object.version":"1.5"
6+
"state": "shelved",
7+
"power_state": "shutdown"
8+
}
879
},
8810
"priority":"INFO",
8911
"publisher_id":"nova-compute:compute"

doc/notification_samples/instance-shelve-start.json

Lines changed: 3 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,10 @@
11
{
22
"event_type":"instance.shelve.start",
33
"payload":{
4+
"$ref": "common_payloads/InstanceActionPayload.json#",
45
"nova_object.data":{
5-
"architecture":"x86_64",
6-
"availability_zone": "nova",
7-
"block_devices": [{
8-
"nova_object.data": {
9-
"boot_index": null,
10-
"delete_on_termination": false,
11-
"device_name": "/dev/sdb",
12-
"tag": null,
13-
"volume_id": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113"
14-
},
15-
"nova_object.name": "BlockDevicePayload",
16-
"nova_object.namespace": "nova",
17-
"nova_object.version": "1.0"
18-
}],
19-
"created_at":"2012-10-29T13:42:11Z",
20-
"deleted_at":null,
21-
"display_name":"some-server",
22-
"display_description":"some-server",
23-
"fault":null,
24-
"host":"compute",
25-
"host_name":"some-server",
26-
"ip_addresses": [{
27-
"nova_object.name": "IpPayload",
28-
"nova_object.namespace": "nova",
29-
"nova_object.version": "1.0",
30-
"nova_object.data": {
31-
"mac": "fa:16:3e:4c:2c:30",
32-
"address": "192.168.1.3",
33-
"port_uuid": "ce531f90-199f-48c0-816c-13e38010b442",
34-
"meta": {},
35-
"version": 4,
36-
"label": "private-network",
37-
"device_name": "tapce531f90-19"
38-
}
39-
}],
40-
"key_name": "my-key",
41-
"kernel_id":"",
42-
"launched_at":"2012-10-29T13:42:11Z",
43-
"image_uuid": "155d900f-4e14-4e4c-a73d-069cbf4541e6",
44-
"metadata":{},
45-
"locked":false,
46-
"node":"fake-mini",
47-
"os_type":null,
48-
"progress":0,
49-
"ramdisk_id":"",
50-
"reservation_id":"r-npxv0e40",
51-
"state":"active",
52-
"task_state":"shelving",
53-
"power_state":"running",
54-
"tenant_id":"6f70656e737461636b20342065766572",
55-
"terminated_at":null,
56-
"auto_disk_config":"MANUAL",
57-
"flavor": {
58-
"nova_object.name": "FlavorPayload",
59-
"nova_object.data": {
60-
"flavorid": "a22d5517-147c-4147-a0d1-e698df5cd4e3",
61-
"name": "test_flavor",
62-
"root_gb": 1,
63-
"vcpus": 1,
64-
"ephemeral_gb": 0,
65-
"memory_mb": 512,
66-
"disabled": false,
67-
"rxtx_factor": 1.0,
68-
"extra_specs": {
69-
"hw:watchdog_action": "disabled"
70-
},
71-
"projects": null,
72-
"swap": 0,
73-
"is_public": true,
74-
"vcpu_weight": 0,
75-
"description":null
76-
},
77-
"nova_object.version": "1.4",
78-
"nova_object.namespace": "nova"
79-
},
80-
"user_id":"fake",
81-
"uuid":"178b0921-8f85-4257-88b6-2e743b5a975c",
82-
"updated_at": "2012-10-29T13:42:11Z"
83-
},
84-
"nova_object.name":"InstanceActionPayload",
85-
"nova_object.namespace":"nova",
86-
"nova_object.version":"1.5"
6+
"task_state": "shelving"
7+
}
878
},
889
"priority":"INFO",
8910
"publisher_id":"nova-compute:compute"

doc/notification_samples/instance-shelve_offload-end.json

Lines changed: 6 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,13 @@
11
{
22
"event_type":"instance.shelve_offload.end",
33
"payload":{
4+
"$ref": "common_payloads/InstanceActionPayload.json#",
45
"nova_object.data":{
5-
"architecture":"x86_64",
6-
"availability_zone": "nova",
7-
"block_devices": [{
8-
"nova_object.data": {
9-
"boot_index": null,
10-
"delete_on_termination": false,
11-
"device_name": "/dev/sdb",
12-
"tag": null,
13-
"volume_id": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113"
14-
},
15-
"nova_object.name": "BlockDevicePayload",
16-
"nova_object.namespace": "nova",
17-
"nova_object.version": "1.0"
18-
}],
19-
"created_at":"2012-10-29T13:42:11Z",
20-
"deleted_at":null,
21-
"display_name":"some-server",
22-
"display_description":"some-server",
23-
"fault":null,
24-
"host":null,
25-
"host_name":"some-server",
26-
"ip_addresses": [{
27-
"nova_object.name": "IpPayload",
28-
"nova_object.namespace": "nova",
29-
"nova_object.version": "1.0",
30-
"nova_object.data": {
31-
"mac": "fa:16:3e:4c:2c:30",
32-
"address": "192.168.1.3",
33-
"port_uuid": "ce531f90-199f-48c0-816c-13e38010b442",
34-
"meta": {},
35-
"version": 4,
36-
"label": "private-network",
37-
"device_name": "tapce531f90-19"
38-
}
39-
}],
40-
"key_name": "my-key",
41-
"kernel_id":"",
42-
"launched_at":"2012-10-29T13:42:11Z",
43-
"image_uuid": "155d900f-4e14-4e4c-a73d-069cbf4541e6",
44-
"metadata":{},
45-
"locked":false,
46-
"node":null,
47-
"os_type":null,
48-
"progress":0,
49-
"ramdisk_id":"",
50-
"reservation_id":"r-npxv0e40",
51-
"state":"shelved_offloaded",
52-
"task_state":null,
53-
"power_state":"shutdown",
54-
"tenant_id":"6f70656e737461636b20342065766572",
55-
"terminated_at":null,
56-
"auto_disk_config":"MANUAL",
57-
"flavor": {
58-
"nova_object.name": "FlavorPayload",
59-
"nova_object.data": {
60-
"flavorid": "a22d5517-147c-4147-a0d1-e698df5cd4e3",
61-
"name": "test_flavor",
62-
"root_gb": 1,
63-
"vcpus": 1,
64-
"ephemeral_gb": 0,
65-
"memory_mb": 512,
66-
"disabled": false,
67-
"rxtx_factor": 1.0,
68-
"extra_specs": {
69-
"hw:watchdog_action": "disabled"
70-
},
71-
"projects": null,
72-
"swap": 0,
73-
"is_public": true,
74-
"vcpu_weight": 0,
75-
"description":null
76-
},
77-
"nova_object.version": "1.4",
78-
"nova_object.namespace": "nova"
79-
},
80-
"user_id":"fake",
81-
"uuid":"178b0921-8f85-4257-88b6-2e743b5a975c",
82-
"updated_at": "2012-10-29T13:42:11Z"
83-
},
84-
"nova_object.name":"InstanceActionPayload",
85-
"nova_object.namespace":"nova",
86-
"nova_object.version":"1.5"
6+
"state": "shelved_offloaded",
7+
"power_state": "shutdown",
8+
"host": null,
9+
"node": null
10+
}
8711
},
8812
"priority":"INFO",
8913
"publisher_id":"nova-compute:compute"

doc/notification_samples/instance-shelve_offload-start.json

Lines changed: 5 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,12 @@
11
{
22
"event_type":"instance.shelve_offload.start",
33
"payload":{
4+
"$ref": "common_payloads/InstanceActionPayload.json#",
45
"nova_object.data":{
5-
"architecture":"x86_64",
6-
"availability_zone": "nova",
7-
"block_devices": [{
8-
"nova_object.data": {
9-
"boot_index": null,
10-
"delete_on_termination": false,
11-
"device_name": "/dev/sdb",
12-
"tag": null,
13-
"volume_id": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113"
14-
},
15-
"nova_object.name": "BlockDevicePayload",
16-
"nova_object.namespace": "nova",
17-
"nova_object.version": "1.0"
18-
}],
19-
"created_at":"2012-10-29T13:42:11Z",
20-
"deleted_at":null,
21-
"display_name":"some-server",
22-
"display_description":"some-server",
23-
"fault":null,
24-
"host":"compute",
25-
"host_name":"some-server",
26-
"ip_addresses": [{
27-
"nova_object.name": "IpPayload",
28-
"nova_object.namespace": "nova",
29-
"nova_object.version": "1.0",
30-
"nova_object.data": {
31-
"mac": "fa:16:3e:4c:2c:30",
32-
"address": "192.168.1.3",
33-
"port_uuid": "ce531f90-199f-48c0-816c-13e38010b442",
34-
"meta": {},
35-
"version": 4,
36-
"label": "private-network",
37-
"device_name": "tapce531f90-19"
38-
}
39-
}],
40-
"key_name": "my-key",
41-
"kernel_id":"",
42-
"launched_at":"2012-10-29T13:42:11Z",
43-
"image_uuid": "155d900f-4e14-4e4c-a73d-069cbf4541e6",
44-
"metadata":{},
45-
"locked":false,
46-
"node":"fake-mini",
47-
"os_type":null,
48-
"progress":0,
49-
"ramdisk_id":"",
50-
"reservation_id":"r-npxv0e40",
51-
"state":"shelved",
52-
"task_state":"shelving_offloading",
53-
"power_state":"shutdown",
54-
"tenant_id":"6f70656e737461636b20342065766572",
55-
"terminated_at":null,
56-
"auto_disk_config":"MANUAL",
57-
"flavor": {
58-
"nova_object.name": "FlavorPayload",
59-
"nova_object.data": {
60-
"flavorid": "a22d5517-147c-4147-a0d1-e698df5cd4e3",
61-
"name": "test_flavor",
62-
"root_gb": 1,
63-
"vcpus": 1,
64-
"ephemeral_gb": 0,
65-
"memory_mb": 512,
66-
"disabled": false,
67-
"rxtx_factor": 1.0,
68-
"extra_specs": {
69-
"hw:watchdog_action": "disabled"
70-
},
71-
"projects": null,
72-
"swap": 0,
73-
"is_public": true,
74-
"vcpu_weight": 0,
75-
"description":null
76-
},
77-
"nova_object.version": "1.4",
78-
"nova_object.namespace": "nova"
79-
},
80-
"user_id":"fake",
81-
"uuid":"178b0921-8f85-4257-88b6-2e743b5a975c",
82-
"updated_at": "2012-10-29T13:42:11Z"
83-
},
84-
"nova_object.name":"InstanceActionPayload",
85-
"nova_object.namespace":"nova",
86-
"nova_object.version":"1.5"
6+
"state": "shelved",
7+
"task_state": "shelving_offloading",
8+
"power_state": "shutdown"
9+
}
8710
},
8811
"priority":"INFO",
8912
"publisher_id":"nova-compute:compute"

0 commit comments

Comments
 (0)