diff --git a/doc/notification_samples/instance-create-end.json b/doc/notification_samples/instance-create-end.json index e33c0717f840..9ea78d54cf15 100644 --- a/doc/notification_samples/instance-create-end.json +++ b/doc/notification_samples/instance-create-end.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-create-error.json b/doc/notification_samples/instance-create-error.json index 846f56ae3d2e..eafecee7c9a3 100644 --- a/doc/notification_samples/instance-create-error.json +++ b/doc/notification_samples/instance-create-error.json @@ -48,7 +48,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-create-start.json b/doc/notification_samples/instance-create-start.json index 9c730f7b2b69..c72f7b87ab7b 100644 --- a/doc/notification_samples/instance-create-start.json +++ b/doc/notification_samples/instance-create-start.json @@ -38,7 +38,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-delete-end.json b/doc/notification_samples/instance-delete-end.json index 92cc3e59e461..1989584aa293 100644 --- a/doc/notification_samples/instance-delete-end.json +++ b/doc/notification_samples/instance-delete-end.json @@ -38,7 +38,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-delete-start.json b/doc/notification_samples/instance-delete-start.json index 08fb67c73b54..2616b7a17218 100644 --- a/doc/notification_samples/instance-delete-start.json +++ b/doc/notification_samples/instance-delete-start.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-pause-end.json b/doc/notification_samples/instance-pause-end.json index 52323bfe19a4..1e7f2146b35c 100644 --- a/doc/notification_samples/instance-pause-end.json +++ b/doc/notification_samples/instance-pause-end.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-pause-start.json b/doc/notification_samples/instance-pause-start.json index 8af184bbb60e..3bdd551caace 100644 --- a/doc/notification_samples/instance-pause-start.json +++ b/doc/notification_samples/instance-pause-start.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-power_off-end.json b/doc/notification_samples/instance-power_off-end.json index 7c5084571eaf..e0f99a26e67d 100644 --- a/doc/notification_samples/instance-power_off-end.json +++ b/doc/notification_samples/instance-power_off-end.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-power_off-start.json b/doc/notification_samples/instance-power_off-start.json index daa721679e4f..54de4f029e4a 100644 --- a/doc/notification_samples/instance-power_off-start.json +++ b/doc/notification_samples/instance-power_off-start.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-power_on-end.json b/doc/notification_samples/instance-power_on-end.json index 08d46a2208c0..f08be50603c4 100644 --- a/doc/notification_samples/instance-power_on-end.json +++ b/doc/notification_samples/instance-power_on-end.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-power_on-start.json b/doc/notification_samples/instance-power_on-start.json index ba6e514183e2..92587a4b835f 100644 --- a/doc/notification_samples/instance-power_on-start.json +++ b/doc/notification_samples/instance-power_on-start.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-resize-end.json b/doc/notification_samples/instance-resize-end.json index 27c90fa92339..860714f88bc2 100644 --- a/doc/notification_samples/instance-resize-end.json +++ b/doc/notification_samples/instance-resize-end.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-resize-start.json b/doc/notification_samples/instance-resize-start.json index b56071f97fd6..0971f336c681 100644 --- a/doc/notification_samples/instance-resize-start.json +++ b/doc/notification_samples/instance-resize-start.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-resize_finish-end.json b/doc/notification_samples/instance-resize_finish-end.json index 007ee71646aa..65cc35ec87cd 100644 --- a/doc/notification_samples/instance-resize_finish-end.json +++ b/doc/notification_samples/instance-resize_finish-end.json @@ -51,7 +51,9 @@ "memory_mb": 256, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "reset" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-resize_finish-start.json b/doc/notification_samples/instance-resize_finish-start.json index 1787f20e66cd..6e6bed20f82d 100644 --- a/doc/notification_samples/instance-resize_finish-start.json +++ b/doc/notification_samples/instance-resize_finish-start.json @@ -51,7 +51,9 @@ "memory_mb": 256, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "reset" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-restore-end.json b/doc/notification_samples/instance-restore-end.json index 0c5ca25391dd..e6d3fbc29535 100644 --- a/doc/notification_samples/instance-restore-end.json +++ b/doc/notification_samples/instance-restore-end.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-restore-start.json b/doc/notification_samples/instance-restore-start.json index f0d6e124f239..5393681c6e71 100644 --- a/doc/notification_samples/instance-restore-start.json +++ b/doc/notification_samples/instance-restore-start.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-resume-end.json b/doc/notification_samples/instance-resume-end.json index c2589c022720..2bf5d10ae67e 100644 --- a/doc/notification_samples/instance-resume-end.json +++ b/doc/notification_samples/instance-resume-end.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-resume-start.json b/doc/notification_samples/instance-resume-start.json index f5efef50120c..ee83ae5da14c 100644 --- a/doc/notification_samples/instance-resume-start.json +++ b/doc/notification_samples/instance-resume-start.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-shelve-end.json b/doc/notification_samples/instance-shelve-end.json index a18b3e1a8a9d..d713c62c3d0f 100644 --- a/doc/notification_samples/instance-shelve-end.json +++ b/doc/notification_samples/instance-shelve-end.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-shelve-start.json b/doc/notification_samples/instance-shelve-start.json index 3f0066e17d05..34ee9df3af92 100644 --- a/doc/notification_samples/instance-shelve-start.json +++ b/doc/notification_samples/instance-shelve-start.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-shelve_offload-end.json b/doc/notification_samples/instance-shelve_offload-end.json index 00bf5ddb2a0b..029eca9f6e79 100644 --- a/doc/notification_samples/instance-shelve_offload-end.json +++ b/doc/notification_samples/instance-shelve_offload-end.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-shelve_offload-start.json b/doc/notification_samples/instance-shelve_offload-start.json index 570ba445fa45..a60686d14ec3 100644 --- a/doc/notification_samples/instance-shelve_offload-start.json +++ b/doc/notification_samples/instance-shelve_offload-start.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-shutdown-end.json b/doc/notification_samples/instance-shutdown-end.json index 308b0ac4bbe5..2083b66c2f68 100644 --- a/doc/notification_samples/instance-shutdown-end.json +++ b/doc/notification_samples/instance-shutdown-end.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-shutdown-start.json b/doc/notification_samples/instance-shutdown-start.json index 2e1c6e8bd648..09afea752ba0 100644 --- a/doc/notification_samples/instance-shutdown-start.json +++ b/doc/notification_samples/instance-shutdown-start.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-snapshot-end.json b/doc/notification_samples/instance-snapshot-end.json index f93ef7a0f5a7..623de2c7922c 100644 --- a/doc/notification_samples/instance-snapshot-end.json +++ b/doc/notification_samples/instance-snapshot-end.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-snapshot-start.json b/doc/notification_samples/instance-snapshot-start.json index 43f9bf14fb9f..1c579b857602 100644 --- a/doc/notification_samples/instance-snapshot-start.json +++ b/doc/notification_samples/instance-snapshot-start.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-suspend-end.json b/doc/notification_samples/instance-suspend-end.json index 9fd890efe468..f63bc83b205f 100644 --- a/doc/notification_samples/instance-suspend-end.json +++ b/doc/notification_samples/instance-suspend-end.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-suspend-start.json b/doc/notification_samples/instance-suspend-start.json index 5c9e3f7cf7bc..df1b38f6f7f9 100644 --- a/doc/notification_samples/instance-suspend-start.json +++ b/doc/notification_samples/instance-suspend-start.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-unpause-end.json b/doc/notification_samples/instance-unpause-end.json index a5d2482fed54..646b152ae6bc 100644 --- a/doc/notification_samples/instance-unpause-end.json +++ b/doc/notification_samples/instance-unpause-end.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-unpause-start.json b/doc/notification_samples/instance-unpause-start.json index 8f8fb68f17c2..23b273ca1d9b 100644 --- a/doc/notification_samples/instance-unpause-start.json +++ b/doc/notification_samples/instance-unpause-start.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-unshelve-end.json b/doc/notification_samples/instance-unshelve-end.json index b2288d0a8772..9de657c1dca6 100644 --- a/doc/notification_samples/instance-unshelve-end.json +++ b/doc/notification_samples/instance-unshelve-end.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-unshelve-start.json b/doc/notification_samples/instance-unshelve-start.json index 47bceec5f558..334f3969b6b6 100644 --- a/doc/notification_samples/instance-unshelve-start.json +++ b/doc/notification_samples/instance-unshelve-start.json @@ -51,7 +51,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-update.json b/doc/notification_samples/instance-update.json index f3ad7e27d129..88381628908f 100644 --- a/doc/notification_samples/instance-update.json +++ b/doc/notification_samples/instance-update.json @@ -56,7 +56,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-volume_swap-end.json b/doc/notification_samples/instance-volume_swap-end.json index f0358a5c9b2d..af22bc3a09c2 100644 --- a/doc/notification_samples/instance-volume_swap-end.json +++ b/doc/notification_samples/instance-volume_swap-end.json @@ -19,7 +19,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-volume_swap-error.json b/doc/notification_samples/instance-volume_swap-error.json index 01bc37be7b7f..e55d839ed561 100644 --- a/doc/notification_samples/instance-volume_swap-error.json +++ b/doc/notification_samples/instance-volume_swap-error.json @@ -29,7 +29,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/doc/notification_samples/instance-volume_swap-start.json b/doc/notification_samples/instance-volume_swap-start.json index 963f8fe63f19..0590186044f8 100644 --- a/doc/notification_samples/instance-volume_swap-start.json +++ b/doc/notification_samples/instance-volume_swap-start.json @@ -19,7 +19,9 @@ "memory_mb": 512, "disabled": false, "rxtx_factor": 1.0, - "extra_specs": {}, + "extra_specs": { + "hw:watchdog_action": "disabled" + }, "swap": 0, "is_public": true, "vcpu_weight": 0 diff --git a/nova/tests/functional/notification_sample_tests/notification_sample_base.py b/nova/tests/functional/notification_sample_tests/notification_sample_base.py index cc1f7380db8f..129bbe6e4115 100644 --- a/nova/tests/functional/notification_sample_tests/notification_sample_base.py +++ b/nova/tests/functional/notification_sample_tests/notification_sample_base.py @@ -143,6 +143,11 @@ class NotificationSampleTestBase(test.TestCase, }} flavor_id = self.api.post_flavor(flavor_body)['id'] + extra_specs = { + "extra_specs": { + "hw:watchdog_action": "disabled"}} + self.admin_api.post_extra_spec(flavor_id, extra_specs) + # Ignore the create flavor notification fake_notifier.reset() diff --git a/nova/tests/functional/notification_sample_tests/test_instance.py b/nova/tests/functional/notification_sample_tests/test_instance.py index 2ec054a54620..4bd3e3220450 100644 --- a/nova/tests/functional/notification_sample_tests/test_instance.py +++ b/nova/tests/functional/notification_sample_tests/test_instance.py @@ -491,6 +491,11 @@ class TestInstanceNotificationSample( } } other_flavor_id = self.api.post_flavor(other_flavor_body)['id'] + extra_specs = { + "extra_specs": { + "hw:watchdog_action": "reset"}} + self.admin_api.post_extra_spec(other_flavor_id, extra_specs) + # Ignore the create flavor notification fake_notifier.reset()