Commit Graph

170 Commits

Author SHA1 Message Date
Zuul 8a6665bc58 Merge "Transform live_migration.post.dest notifications" 2018-03-13 16:10:31 +00:00
Béla Vancsics 67f1c98898 Transform live_migration.post.dest notifications
The following notifications has been transformed to
the versioned notification framework.

* live_migration.post.dest.start
* live_migration.post.dest.end

Co-Authored-By: Takashi Natsume <natsume.takashi@lab.ntt.co.jp>
Change-Id: I510136a7eb0a832dfe469cb68d06d1b9472d9ae4
Implements: bp versioned-notification-transformation-rocky
2018-03-13 11:19:44 +00:00
Takashi NATSUME c4397d5e5a Transform servergroup.addmember notification
The servergroup.addmember notification has been transformed
to the versioned notification framework.

Change-Id: I5291e453ba06f0f26c4928e4f7482c40e725a781
Implements: bp versioned-notification-transformation-rocky
2018-03-06 22:03:00 +00:00
Zuul 648239466b Merge "Deduplicate service status notification samples" 2018-02-01 21:26:47 +00:00
Zuul f93881d162 Merge "Deduplicate aggregate notification samples" 2018-02-01 21:26:34 +00:00
Zuul 62543e666c Merge "Transform instance.resize_prep notification" 2018-01-27 01:36:42 +00:00
Zuul 508a971bf8 Merge "Transform instance-evacuate notification" 2018-01-26 12:48:07 +00:00
Gábor Antal d775dd7066 Transform instance.resize_prep notification
The instance.resize_prep.start and instance.resize_prep.end
notifications are transformed to the versioned framework.

Co-Authored-By: Takashi Natsume <natsume.takashi@lab.ntt.co.jp>
Change-Id: If33d092e8688ed4d4864b2f7130104ab85ce1ea4
Implements: bp versioned-notification-transformation-queens
2018-01-25 09:30:50 +09:00
Alex Szarka 575fd9bbd2 Transform instance-evacuate notification
Co-Authored-By: Takashi Natsume <natsume.takashi@lab.ntt.co.jp>
Co-Authored-By: Gábor Antal <antal@inf.u-szeged.hu>
Change-Id: Ie1914b1f5f71c23dd441dafaea9e4261541d338d
Implements: bp versioned-notification-transformation-queens
2018-01-22 17:49:32 +09:00
Lajos Katona ab937d8e7a Deduplicate service status notification samples
This patch refactors the sample files of service-create, service-delete
and service-update notifications to use a common ServiceStatusPayload
sample data.

This patch addresses the problem which lead the revert of the commit
I708ce5423806d2913e77abbe338aec970a5009dc.

Change-Id: I2f619089ae88d05207bb3432c63546a298f0bf15
2018-01-19 08:35:19 +00:00
Béla Vancsics 8ec0b43904 Transform instance.resize_confirm notification
The instance.resize_confirm.start and instance.resize_confirm.end
notifications are transformed to the versioned framework.

Change-Id: I6a51542216340299d250576714e303f74e0ceb0f
Co-Authored-By: Takashi Natsume <natsume.takashi@lab.ntt.co.jp>
Co-Authored-By: stewie925 <st3wty@att.com>
Co-Authored-By: MikeG451 <michael.glaser@att.com>
Implements: bp versioned-notification-transformation-queens
2018-01-18 08:01:10 +09:00
Zuul 73d72b3833 Merge "Remove unnecessary execute permissions in files" 2018-01-17 16:57:24 +00:00
Lajos Katona 688de7333f Deduplicate aggregate notification samples
This patch refactors the sample files of aggregate-add_host,
aggregate-delete, aggregate-create and aggregate-remove_host
notifications to use a common AggregatePayload sample data.

Change-Id: I50382f4d829693412bbfe47ffd08a24e69342715
2018-01-16 15:59:16 +01:00
Takashi NATSUME c32ca60283 Remove unnecessary execute permissions in files
TrivialFix
Change-Id: I18c80f375ff0811a69941a0e265f79d5249ef34f
2018-01-15 23:53:01 +09:00
Béla Vancsics df7442ee5a Transform rescue/unrescue instance notifications
The rescue (instance.rescue.start and instance.rescue.end) and unrescue
(instance.unrescue.start and instance.unrescue.end) notifications are
transformed to the versioned framework.

This patch also fixes the power state of the server
when unrescuing it with the fake compute driver.

Co-Authored-By: Takashi Natsume <natsume.takashi@lab.ntt.co.jp>
Change-Id: Ib1d03c6d693e3b04886c638c956e35809fed8fc2
Implements: bp versioned-notification-transformation-queens
Closes-Bug: #1742133
2018-01-14 02:15:18 +00:00
Balazs Gibizer 3881f9e1ef Revert "Deduplicate service status notification samples"
This reverts commit 39f9ef719e.

The reverted change made the service.update notification sample tests
failing consistently on master. The CI did not catch this problem as
the functional test does not run for changes that only touches
nova/docs. This is a quick fix to unblock the gate and fix the
functional job defintion in a separate patch.

Change-Id: Idabbf70ae46f36be8343c0a00d812cbebf7f7670
Closes-Bug: #1742935
2018-01-12 15:14:49 +01:00
Lajos Katona 39f9ef719e Deduplicate service status notification samples
This patch refactors the sample files of service-create, service-delete
and service-update notifications to use a common ServiceStatusPayload
sample data.

Change-Id: I708ce5423806d2913e77abbe338aec970a5009dc
2018-01-10 15:29:28 +00:00
Zuul dc7805d7db Merge "Deduplicate instance.create notification samples" 2017-12-19 23:51:56 +00:00
Zuul bd93b3266a Merge "Transform instance.resize_revert notification" 2017-12-05 10:03:36 +00:00
stewie925 ac0745babd Transform instance.resize_revert notification
The instance.resize_revert.start and instance.resize_revert.end
notifications are transformed to the versioned framework.

Change-Id: Ia86c8804b284ed4ad72a1993c454ec373c063b99
Implements: bp versioned-notification-transformation-queens
2017-12-04 20:54:39 -05:00
Balazs Gibizer 470d165d04 Deduplicate instance.create notification samples
This patch refactors the sample files of instance.create notifications.
As these notifications use a different payload class as the most of the
instance notifications a new common payload sample fragment was also
needed.

Change-Id: I7a8e9507ee30d404e075a46e48070a0f94276e33
2017-11-28 17:17:15 +01:00
Zuul b9d9de8962 Merge "Versioned notifications for service create and delete" 2017-11-27 19:41:04 +00:00
liyingjun 8e793a6c6f Versioned notifications for service create and delete
New notifications service.create and service.delete are introduced
with INFO priority and the payload of the notification is the serialized
form of the already existing Service versioned object. Service.create
notification will be emitted after the service is created (so the uuid
is available) and also send the service.delete notification after the
service is deleted.

Implement blueprint: service-create-destroy-notification

Change-Id: I955d98f9fd4b121f98e172e5ab30eb668a24006d
2017-11-27 11:11:44 -05:00
Zuul 491052995a Merge "Transform instance-live_migration_pre notification" 2017-11-23 12:47:43 +00:00
Béla Vancsics 2578a308e6 Transform instance-live_migration_pre notification
The instance.live_migration_pre.start and instance.live_migration_pre.end
notifications has been transformed to the versioned notification framework.

Co-Authored-By: Elod Illes <elod.illes@ericsson.com>
Change-Id: Ied6e9016e7406365c9d0beb281eeb31b7d0cf71b
Implements: bp versioned-notification-transformation-queens
2017-11-22 16:59:13 +01:00
Előd Illés de9ce26c73 Deduplicate keypair notification samples
This patch refactors the sample files of keypair-create, keypair-delete
and keypair-import notifications to use a common KeypairPayload sample
data.

Change-Id: Ic8f2d51fe4922cd7633b0d77dc86702798bae1d6
2017-11-20 16:30:21 +01:00
Zuul adb1f161df Merge "Deduplicate server_group samples" 2017-11-14 22:16:50 +00:00
Matt Riedemann 48259c2bd7 Add FlavorPayload.description for versioned notifications
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
2017-11-14 09:14:12 -05:00
Előd Illés c3dc5c5c43 Deduplicate server_group samples
This patch refactors the sample files of server_group notifications to
use a common ServerGroupPayload sample data.

Change-Id: I4e7531c180484a7b430d267153d185f1006543f0
2017-11-14 13:06:40 +01:00
Zuul 8771db8ca9 Merge "Deduplicate instance.reboot notification samples" 2017-11-11 02:13:18 +00:00
Zuul a7c29fa7e6 Merge "Deduplicate instance.live_migration notification samples" 2017-11-11 02:13:12 +00:00
Zuul f30793ce86 Merge "Deduplicate instance.interface_attach samples" 2017-11-11 02:13:06 +00:00
Zuul b649190ca8 Merge "Deduplicate instance.power-off notification samples" 2017-11-11 02:13:01 +00:00
Zuul b84f2c025d Merge "Deduplicated instance.(un)pause notification samples" 2017-11-11 01:55:13 +00:00
Zuul 8b174196c1 Merge "Factor out duplicated notification sample data (2)" 2017-11-11 01:55:07 +00:00
Balazs Gibizer 41c86ff103 Deduplicate instance.reboot notification samples
This patch refactors the sample files of instance.reboot notifications
to use the previously introduced common sample data.

Change-Id: I6a9e8af79153a9b7825aef0838b60a8d1f97a421
2017-11-06 16:18:22 +01:00
Balazs Gibizer 397535ba2d Deduplicate instance.live_migration notification samples
This patch refactors the sample files of instance.live_migration_rollback
notification samples to use the previously introduced common sample
data. This patch is small as the other live migration notification
transformations haven't been merged yet.

Change-Id: I834c2d5ce0257b053f7023eae55d4c9e6c9a47e1
2017-11-06 16:13:47 +01:00
Balazs Gibizer da0e385c4b Deduplicate instance.interface_attach samples
This patch refactors the sample files of instance.interface_attach and
interface_detach notifications to use the previously introduced common
sample data.

Change-Id: I74396b680f35290e32f667d2ddba227e1cbbab2f
2017-11-06 16:10:19 +01:00
Balazs Gibizer 10d3e240c2 Deduplicate instance.power-off notification samples
This patch refactors the sample files of instance.power-off and
power-on notifications to use the previously introduced common sample
data.

Change-Id: Ifead36ba0dcef86e98e82819c48255d2d9f06d37
2017-11-06 16:07:33 +01:00
Alex Szarka b4b61240f7 Transform instance-live_migration_abort notification
Co-Authored-By: Gábor Antal <antal@inf.u-szeged.hu>
Change-Id: I27608f60dd5f8458e476286c6991c47dba7852b1
Implements: bp versioned-notification-transformation-queens
2017-11-06 16:05:16 +01:00
Balazs Gibizer 45adc60b1d Deduplicated instance.(un)pause notification samples
This patch refactors the sample files of instance.pause and unpause
notifications to use the previously introduced common sample data

Change-Id: I767f082ca244b9f4f940244ab83f69c6e995a442
2017-11-06 16:03:08 +01:00
Balazs Gibizer 4b783a206c Factor out duplicated notification sample data (2)
To remove duplicated data this patch introduce common json fragments for
the instance related notifications and refactors the sample file of
instance.delete.start and instance.delete.end.

The common sample fragments define an active instance as that is the
most common state in the instance action notifications. This way
we can minimize the difference between the common sample and the
generated notification. Still there will be differences. For example
instance.delete.end notification will contain different instance status
and some other deletion related fields are also set. To make sure
the the sample matches with the generated notification we have to
override some of the fields coming from the common sample fragment.
Such overrides could be added in the test case directly to the
_verify_notification() call as it is done in case of dynamic values
like instance uuid. However the sample files not only used in the
functional tests but also during the generation of the notification
dev-ref. To have meaningful samples in the doc we have to do such
overrides during the reference resolving and not directly in the
test case.

Change-Id: I0669a075c94ba2a435116791e3391d8d745bc639
2017-11-06 15:54:09 +01:00
Matt Riedemann 211e9b1961 Implement power_off/power_on for the FakeDriver
When trying to recreate hundreds of instance action
events for scale testing with the FakeDriver, a nice
simple way to do that is by stopping those instances
and starting them again.

However, since power_off/on aren't implemented, once
you "stop" them the sync_instance_power_state periodic
task in the compute manager thinks they are still running
on the "hypervisor" and will stop them again via the API,
which records yet another instance action and set of
events.

This just toggles the power state bit on the fake instance
in the FakeDriver to make the periodic task do the right
thing.

As a result, we also have more realistic API and
notification samples.

Change-Id: Ie621686053ad774c4ae4f22bb2a455f98900b611
2017-11-02 11:34:42 -04:00
Zuul 8350f20167 Merge "Transform keypair.import notification" 2017-10-31 00:26:33 +00:00
Béla Vancsics a4c7ab8851 Transform keypair.import notification
The keypair.import.start and keypair.import.end notifications
has been transformed to the versioned notification framework.

Change-Id: Icadc53d84fa021aae0f9ec2e18e9125de98e00f6
Implements: bp versioned-notification-transformation-queens
2017-10-30 16:44:29 -04:00
Béla Vancsics cfa4bfedbb Transform instance.trigger_crash_dump notification
Co-Authored-By: Balazs Gibizer <balazs.gibizer@ericsson.com>
Co-Authored-By: Gábor Antal <antal@inf.u-szeged.hu>
Change-Id: I10f120e4ff227f96d6c3fdd4a7123f13b84c4337
Implements: bp versioned-notification-transformation-queens
2017-10-20 18:40:54 +02:00
Jenkins 871c824328 Merge "Add snapshot id to the snapshot notifications" 2017-10-12 19:52:13 +00:00
Balazs Gibizer 581c537cf5 Add snapshot id to the snapshot notifications
The versioned instance.snapshot.start and .end notifications now
contain the id of the image that stores the instance snapshot.

Change-Id: I1c8c038078bbe1a5914a92d44b3e977287294a88
Implements: bp versioned-notification-transformation-queens
2017-10-12 09:13:13 +00:00
Jenkins d70bfd78fa Merge "Transform aggregate.remove_host notification" 2017-10-10 22:34:39 +00:00
Jenkins 253aad457f Merge "Transform aggregate.add_host notification" 2017-10-10 15:34:10 +00:00