summaryrefslogtreecommitdiff
path: root/doc/notification_samples/instance-shutdown-start.json
Commit message (Collapse)AuthorAgeFilesLines
* Deduplicate notification samples Rocky - 5Kevin_Zheng2018-04-171-82/+3
| | | | | | | | | | | | | | | | | | | | This patch refactors the sample files of: * instance-live_migration_abort_start * instance-live_migration_abort_end * instance-shutdown-start * instance-shutdown-end notifications to use a common InstanceActionPayload sample data. refactors the sample files: * instance-snapshot-start * instance-snapshot-end notifications to use a common InstanceActionSnapshotPayload sample data. Change-Id: I762b619c4410e3ff4a3660fc318832f81f523c05
* Add FlavorPayload.description for versioned notificationsMatt Riedemann2017-11-141-2/+3
| | | | | | | | | | This adds the description field to the FlavorPayload for versioned notifications on flavor create/update/delete notifications. Part of blueprint flavor-description Change-Id: I9a5dc8b603b5e4e0d37c59cf2749e3ffc217580c
* Add 'updated_at' field to InstancePayload in notificationsTakashi NATSUME2017-07-251-2/+3
| | | | | | Change-Id: Iddc5ec3b5053ddf5dce73c86edca26c4552d451b Implements: bp versioned-notification-transformation-pike Closes-Bug: #1684860
* Add BDM to InstancePayloadBalazs Gibizer2017-07-121-1/+13
| | | | | | | | | | | | This patch adds bdm related data to InstancePayload. As loading BDM can be expensive a new configuration flag 'bdms_in_notifications' is introduced. If this is set to false (as by default) then the instance notifications will contain 'null' value in block_devices field. If this configuration flag is set to true then the block devices will be loaded from the db and will be included in the notification payload. Implements: bp additional-notification-fields-for-searchlight Change-Id: I18e7483ec9a484a660e1d306fdc0986e1d5f952b
* Add key_name field to InstancePayloadBalazs Gibizer2017-06-281-1/+2
| | | | | | | | Add key_name field to InstancePayload which means every instance.<action> notification now have key_name field based on the instance.key_name. Change-Id: I39059c5077c790aa85dff6b4563f581c54536b86 Implements: bp additional-notification-fields-for-searchlight
* Adding auto_disk_config field to InstancePayloadSujitha2017-04-211-1/+2
| | | | | | | | | Add auto_disk_config field to InstancePayload based on instance.auto_disk_config boolean value. If true, set it to AUTO else MANUAL. Implements: bp additional-notification-fields-for-searchlight Change-Id: I18af99479562e2fe5e74e6e1252b804b074fee58
* Set instance.availability_zone whenever we scheduleDan Smith2017-03-231-1/+1
| | | | | | | | | | | | This ensures that instance.availability_zone reflects what AZ the instance is actually in. In the case where no AZ was requested at boot, previously this would always be some default value, which isn't as useful to the things that need to consider what AZ the instance is actually in (without doing all the aggregate math to determine it on the fly). Related to blueprint cells-aware-api Change-Id: I8d426f2635232ffc4b510548a905794ca88d7f99
* handle uninited fields in notification payloadBalazs Gibizer2017-03-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to the not strict handling of uninitialized fields during notification payload population it is possible that the emitted notification missing some of the fields defined in the schema. There are two problematic cases: 1) no load tirggered for lazy loaded fields. If the field was not loaded it is not added to the payload. 2) uninitialized, not lazy loadable fields are not added to the payload. This patch makes sure that lazy load is triggered. If the field is not lazy loadable and also not initialized then related payload field will be set to None. If the payload field is not nullable the code will fail to make sure that the inconsistency is detected. The following changes cannot be split to different commits because as soon as the generic schema population code is fixed every listed notification starts behaving differently. In some cases the availability_zone field of the Service object is left unitialized by both the constructor and the obj_load_attr function this caused that the availability_zone field of the service.update notification was missing from the emitted notification payload. The extra_specs field of the Flavor object is not lazy loadable and not initialized in the Flavor destroy case. So the extra_specs field of the FlavorPayload needed to be made nullable. The projects field of the Flavor object is lazy loaded but when the Flavor object is loaded as part of an Instance object Flavor is orphaned and no lazy load is allowed on that Flavor object. In this case the projects field of the FlavorPayload will be set to None to signal that the information is not available. This also means that the projects field of the FlavorPayload needed to be changed to nullable. The hosts and id fields of the Aggregate object is not initialized during the create of the Aggregate before the aggregate.create.start needs to be sent. Therefore these fields needs to be nullable. Closes-Bug: #1653221 Change-Id: Ib122cd98ee0cc31938d5ff1d5c753053267a3bd4
* Merge "Improve flavor sample in notification sample tests"Jenkins2017-01-231-1/+3
|\
| * Improve flavor sample in notification sample testsBalazs Gibizer2017-01-111-1/+3
| | | | | | | | | | | | | | | | This patch adds an extra_specs key to the flavor used in the instance action sample test to make the samples more realistic. Change-Id: I5ec2b536469daaea16efb1ef1537a951dc52997a Implements: bp flavor-notifications
* | Merge "Update notification for flavor"Jenkins2017-01-111-1/+2
|\ \ | |/
| * Update notification for flavorMatt Riedemann2017-01-111-1/+2
| | | | | | | | | | | | | | | | This patch adds versioned notification for flavor update operation. Implement blueprint: flavor-notifications Change-Id: I770e3c0c1675bbb7844b13826f3fdc48ad5491a2
* | Merge "Notifications for flavor operations"Jenkins2017-01-111-2/+8
|\ \ | |/
| * Notifications for flavor operationsliyingjun2017-01-091-2/+8
| | | | | | | | | | | | | | | | | | This patch implements the versioned notifications for flavor create and destroy. Implement blueprint: flavor-notifications Change-Id: Icc2169b87ffba4e7e2079076a82029156c584c6a
* | Add more field's in InstancePayloadAnusha Unnam2016-12-291-1/+3
|/ | | | | | | | | Add instance's locked field and instance's display_description field in InstancePayload. Implements: bp additional-notification-fields-for-searchlight Change-Id: Iceae25ca8a0d7f2e5f22cab1364215bda2fae93c
* Transform instance.shutdown notificationsSivasathurappan Radhakrishnan2016-11-021-0/+62
Instance.shutdown.start and instance.shutdown.end notifications are transformed to the new versioned framework. Change-Id: I01732837cf5a54ecd04b00771bac92c9864cd3b0 Implements: bp versioned-notification-transformation-ocata