Commit Graph

56 Commits

Author SHA1 Message Date
Sylvain Bauza d486315e0c Block starting compute unless placement conf is provided
We need to signal that the compute is Ocata and since the placement is now
mandatory for Ocata, we want to hard-fail if the conf is not correct.

Depends-On: I573149b9415da2a8bb3951a4c4ce71c4c3e48c6f
Change-Id: I3919f652040f2be2641420dd469af01b268e65c9
2017-01-27 16:35:09 -08:00
Jenkins 5ba04f4335 Merge "Improve flavor sample in notification sample tests" 2017-01-23 15:03:31 +00:00
Jenkins 0308c00d0d Merge "Update notification for flavor" 2017-01-11 21:58:06 +00:00
Balazs Gibizer af17b95073 Improve flavor sample in notification sample tests
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
2017-01-11 19:50:20 +01:00
Jenkins 799efc7631 Merge "Notifications for flavor operations" 2017-01-11 16:45:50 +00:00
Matt Riedemann e05f678e0a Update notification for flavor
This patch adds versioned notification for flavor update operation.

Implement blueprint: flavor-notifications

Change-Id: I770e3c0c1675bbb7844b13826f3fdc48ad5491a2
2017-01-11 11:16:49 -05:00
liyingjun 8d9b3d6b9d Notifications for flavor operations
This patch implements the versioned notifications for flavor
create and destroy.

Implement blueprint: flavor-notifications

Change-Id: Icc2169b87ffba4e7e2079076a82029156c584c6a
2017-01-09 20:39:58 +08:00
Balazs Gibizer ce17c3d83b Transform aggregate.delete notification
The aggregate.delete.start and aggregate.delete.end notifications
has been transformed to the versioned notification framework.

Implements: bp versioned-notification-transformation-ocata
Change-Id: I911e7aef813380291e6cf166eac91b53215a3726
2017-01-04 17:45:12 +00:00
Balazs Gibizer 8ee3e30bd1 Transform aggregate.create notification
The aggregate.create.start and aggregate.create.end notifications
has been transformed to the versioned notification framework.

The notification payload contains the 'id' of the aggregate which
is the db primary key. It is added because the REST API also
uses the db id instead of the uuid in the os-aggregates' requests
and responses.

Implements: bp versioned-notification-transformation-ocata
Change-Id: I92fe504a8f7dc19b0e1df5884045d4bc0d9e4f98
2017-01-04 17:44:30 +00:00
Anusha Unnam 5c796cbfba Add more field's in InstancePayload
Add instance's locked field and instance's
display_description field in InstancePayload.

Implements: bp additional-notification-fields-for-searchlight

Change-Id: Iceae25ca8a0d7f2e5f22cab1364215bda2fae93c
2016-12-29 16:34:26 +00:00
Jenkins 3d917199aa Merge "Transform instance.snapshot notifications" 2016-12-15 00:21:40 +00:00
liyingjun 5ae26f3c7e Remove extra ^M for json file
There is a ^M symbol in the end of each line in
instance-shelve_offload-end.json, remove that.

Change-Id: I9eac6348f9714dfe637ea8cee01a8c1b6ca5f051
2016-12-08 17:22:48 +08:00
Julian Sy 2d92ab7019 Transform instance.snapshot notifications
The instance.snapshot.start and instance.snapshot.end notifications
are transformed to the versioned framework.

Change-Id: I0bde5fce14c181d47f5ad052a68382e01bf95524
Implements: bp versioned-notification-transformation-ocata
2016-12-06 15:29:50 +00:00
Jenkins 852baf1037 Merge "Transform instance.finish_resize notifications" 2016-11-24 11:12:16 +00:00
Julian Sy 4f75a50682 Transform instance.finish_resize notifications
The instance.finish_resize.start and instance.finish_resize.end
notifications are transformed to the versioned framework.

Change-Id: I2ca79040a91368212fdf50593ef012a669a4a12a
Implements: bp versioned-notification-transformation-ocata
2016-11-22 16:17:17 -05:00
Gábor Antal 94563ade46 Transform instance.create.error notification
Along with the transformation changes, I modified notify_about_instance_action
method so it can handle errors now. (It wraps the exception object into an
ExceptionPayload.)

Implements: bp versioned-notification-transformation-ocata

Change-Id: I171990290c8de529c9521a5ee556f97b18b741b0
2016-11-22 15:03:52 -05:00
Gábor Antal 80bf21d889 Transform instance.create notification
We don't need image_name as an extra usage information, because
in the versioned notification, we have image_uuid which can be used
to get the name of the image from glance, if needed.

Change-Id: I1f3ea8d74a2e59049447c3045a293ce0babfb427
Implements: bp versioned-notification-transformation-ocata
2016-11-22 15:03:47 -05:00
Jenkins 20591e1ed6 Merge "Transform instance.shutdown notifications" 2016-11-03 16:09:49 +00:00
Jenkins 0825f6fc0b Merge "Transform instance.power_off notifications" 2016-11-03 16:08:55 +00:00
Jenkins ad0789313f Merge "Transform instance.unpause notifications" 2016-11-03 16:08:19 +00:00
Jenkins 8da29bfbf0 Merge "Transform instance.unshelve notifications" 2016-11-03 16:07:43 +00:00
Sivasathurappan Radhakrishnan 42b6716a33 Transform instance.shutdown notifications
Instance.shutdown.start and instance.shutdown.end notifications
are transformed to the new versioned framework.

Change-Id: I01732837cf5a54ecd04b00771bac92c9864cd3b0
Implements: bp versioned-notification-transformation-ocata
2016-11-02 21:32:20 +00:00
Jenkins 1bd4d7fb08 Merge "Transform instance.resume notifications" 2016-10-28 10:58:26 +00:00
MikeG451 2c68148b61 Transform instance.unpause notifications
The instance.unpause.start and instance.unpause.end notifications
are transformed to the versioned framework.

Change-Id: Ia11b63b93ac941bf6922abfe9c380c9647ee7f83
Implements: bp versioned-notification-transformation-ocata
2016-10-28 10:09:35 +00:00
stewie925 39bf87a24c Transform instance.unshelve notifications
The instance.unshelve.start and instance.unshelve.end
notifications are transformed to the versioned framework.

Change-Id: Ie3fe83a6b18a1a09a8d8aab75b41297c62cdb74b
Implements: bp versioned-notification-transformation-ocata
2016-10-26 10:33:53 -07:00
stewie925 eca23d4a7f Transform instance.resume notifications
The instance.resume.start and instance.resume.end notifications
are transformed to the versioned framework using the generic
InstanceActionNotification and InstanceActionPayload class.

Implements: bp versioned-notification-transformation-ocata

Change-Id: I923971ea2f6c1f450ace27b246aa6f372a72bb30
2016-10-25 11:14:01 -07:00
Béla Vancsics b1b86c8d91 Transform instance.shelve_offload notifications
Instance.shelve_offload.start and instance.shelve_offload.end notifications
are transformed to the new versioned framework.

Change-Id: Ifccb61527854cdc1a4ceef34059710b5fd802ff9
Implements: bp versioned-notification-transformation-ocata
2016-10-25 13:40:39 +02:00
Andy Hsiang 865f0d2050 Transform instance.power_off notifications
The instance.power_off.start and instance.power_off.end notifications
are transformed to the versioned framework.

Change-Id: I45b7b2175f318747158564eb14e21129add86fe9
Implements: bp versioned-notification-transformation-ocata
2016-10-21 13:04:36 +00:00
Takashi NATSUME 70b01c9c62 Add swap volume notifications (error)
Add the following notification when swapping volumes.

* 'instance.volume_swap.error'

Change-Id: I90d4ffcb2ffc318de2365a655b5fde8bb6c05ff2
Implements: blueprint add-swap-volume-notifications
2016-10-20 13:50:44 +00:00
Takashi NATSUME 47fb8b7579 Add swap volume notifications (start, end)
Add the following notifications when swapping volumes.

* 'instance.volume_swap.start'
* 'instance.volume_swap.end'

A subsequent patch will add 'instance.volume_swap.error'.

Change-Id: Ic4d9d25bdc611221157e4663817e918b8d667ce9
Implements: blueprint add-swap-volume-notifications
2016-10-11 19:17:23 +09:00
Mark Doffman 7f82c5e681 Aggregate create and destroy work against API db
Make aggregate.create() and destroy() use the API rather than cell database.
Also block aggregate creation until main database empty. This makes
Aggregate.create() fail until the main database has had all of its aggreagtes
migrated. Since we want to avoid any overlap or clashes in integer ids we
need to enforce this.

Note that this includes a change to a notification sample, which encodes
the function and module of a sample exception (which happens to be during
an aggregate operation). Since the notifications are encoding internal
function names, which can and will change over time, this is an expected
change.

blueprint cells-aggregate-api-db

Co-Authored-By: Dan Smith <dansmith@redhat.com>
Change-Id: Ida70e3c05f93d6044ddef4fcbc1af999ac1b1944
2016-08-01 08:22:08 -07:00
Jenkins eec3a2b9e8 Merge "Bump service version for BuildRequest deletion" 2016-07-21 00:44:34 +00:00
Zhihai Song bd0ba826e4 Transform instance.restore notifications
The instance.restore.start and instance.restore.end notifications
are transformed to the versioned framework.

Change-Id: I4459ec05a7153af7a0f04adcccb9d99cb5f661e5
Implements: bp versioned-notification-transformation-newton
2016-07-12 20:57:07 -04:00
Andrew Laski 916f01ef7d Bump service version for BuildRequest deletion
This service version indicates that the successful delete of a
BuildRequest during instance deletion will cause nova-conductor to stop
a build when it notices that the BuildRequest is gone. This simplifies
the delete code for dealing with pre-scheduled instances.

Change-Id: I961d002cccd3e01a26cb5174e0804db7fc1f836d
2016-07-12 13:35:36 -04:00
Jenkins 9f2597fac6 Merge "Transform instance.resize notifications" 2016-07-11 02:17:47 +00:00
Jenkins 1a074a7284 Merge "Transform instance.pause notifications" 2016-07-11 02:15:59 +00:00
Anusha Unnam 029f92d93a Transform instance.resize notifications
The instance.resize.start and instance.resize.end notifications
are transformed to the versioned framework.

Implements: bp versioned-notification-transformation-newton
Change-Id: If5183eddb7d79712f360cde11c554e4798f86255
2016-07-08 16:52:15 +01:00
Balazs Gibizer 9fafcc7883 Replace DOS line ending with UNIX
Some of the notification sample files had DOS line endings.

Change-Id: If1a120fc782a144966d41e0c3b2e0859bbffcb44
2016-07-08 09:21:15 +02:00
Sujitha 5bd8e2d47c Transform instance.pause notifications
The instance.pause.start and instance.pause.end notifications
are transformed to the versioned framework.

Implements: bp versioned-notification-transformation-newton

Change-Id: I67979c1cd7cd221a2241846255bf2a884a9d60f5
2016-07-07 15:26:53 +00:00
Béla Vancsics 1d0326cce1 Transform instance.shelve notifications
Instance.shelve.start and instance.shelve.end notifications
are transformed to the new versioned framework.

Change-Id: Ibb52f4c9d8ec10810916a6ccb2bb494db7300d05
Implements: bp versioned-notification-transformation-newton
2016-07-07 09:44:11 +02:00
Pushkar Umaranikar db064bbb40 Transform instance.suspend notifications
The instance.suspend.start and instance.suspend.end
notifications are transformed to the versioned notifications
framework.

Change-Id: I6a90019773c415db9d27c893eb64466ae101b7d7
Implements: blueprint versioned-notification-transformation-newton
Depends-On: #313654
2016-07-01 19:04:04 +00:00
Zhihai Song 2a99eb1f3a Transform instance.power_on notifications
The instance.power_on.start and instance.power_on.end notifications
are transformed to the versioned framework.

Change-Id: I4e4fd701a59064b89e38b50dcc01c9d8846a09b0
Implements: bp versioned-notification-transformation-newton
2016-07-01 15:36:41 +00:00
Balazs Gibizer 87e13112b1 Transform instance.update notification
Change-Id: I4e1ca357322bdbcb95e4803001f4a7dc1bd37f04
Implements: bp versioned-notification-transformation-newton
2016-06-30 16:54:57 +02:00
Balazs Gibizer 998235da63 Transform instance.delete notifications
The instance.delete.start and instance.delete.end notifications
are transformed to the versioned framework using the generic
InstanceActionNotification and InstanceActionPayload class.

There is no instance.delete.error notification in legacy so
it is not added here but considered as a future improvement.

Change-Id: Iddbe50ce0ad3c14562df800bbc09ec5a7e840485
Implements: bp versioned-notification-transformation-newton
2016-06-30 16:54:51 +02:00
Artom Lifshitz e2eb6659a4 Compute manager device tagging support
This patch allows the network manager(s) to set virtual device tags if
they are present during allocation.

Implements: blueprint virt-device-role-tagging
Co-authored-by: Vladik Romanovsky <vromanso@redhat.com>
Co-authored-by: Dan Smith <dansmith@redhat.com>
Change-Id: I8367f740d6d4ebaeb81bc74c6a82a8faf5cd8308
2016-06-29 16:53:34 -07:00
Andrew Laski aeebd6614a Update get_instance_diagnostics for instance objects
Removes a longstanding TODO to update this method to handle instance
objects. The method is not actually used anywhere so there are no
upgrade concerns, but proper protocol is observed regardless.

Change-Id: Ieaf538fa2dc5c4a15574cc6aacac26abbac3b5a2
2016-06-28 10:36:25 -04:00
Matt Riedemann df0a4e0990 Bump the service version for get-me-a-network support
The REST API is going to be checking that all computes
in the deployment are running new enough code to support
network requests with the special 'auto' and 'none' values
for Get Me a Network, so we need to bump the service version
which can be used as the minimum version to check.

Part of blueprint get-me-a-network

Change-Id: Ia1af75422d5e1fd4535c1ed9703d855239282559
2016-06-24 14:02:24 -04:00
Laszlo Hegedus 6329d721ef Transform wrap_exception notification to versioned format
A new versioned notification is emitted from the wrap_exception
decorator.

Change-Id: I8fcbce111537dae6ad3ba0961fb761540ae800ed
Partially-Implements: bp versioned-notification-transformation-newton
2016-06-21 09:39:47 +02:00
Timofey Durakov 86a8006202 force_live_migration remove redundant check
During force_live_migration operation there are 2
checks of migration status, one on api layer and one on
compute side, second one requires rpc request to be done
and also to query the db. This check could be removed as additional
one doesn't guarantee that live_migration is not already completed,
also is very small window between api and compute side.
Target compute host is now taken from migration object rather
then instance.host field, which allows to guarantee that nova will not
pause already migrated instance.

Change-Id: I51585302e898251e26cbf311aeac38a0ec329001
2016-05-11 16:54:27 +03:00
Dan Smith f9b62dffe0 Migrate compute node resource information to Inventory objects
This does a live migration of compute node resource information from the
current location (in compute_nodes columns) to the new desired location
of records in the inventories table. It only does this if all control
services have been upgraded to a level that understands this.

Related to blueprint compute-node-inventory-newton

Change-Id: Ieda099d3f617713f09315b2b1e932a7c1d6f45c4
2016-04-11 07:43:04 -07:00