Jump to: navigation, search

Difference between revisions of "Nova/VersionedNotificationTransformation"

(Tasks)
(Follow up tasks)
Line 179: Line 179:
  
 
=== Follow up tasks ===
 
=== Follow up tasks ===
Mostly for after N-2
 
* <strike>gibi adds a reno note about the transformed notifications
 
** Proposed in https://review.openstack.org/#/c/341352 </strike>
 
* rlrossit will remove the vm_state - InstanceState value duplication
 
** Proposed in https://review.openstack.org/#/c/335066/
 
* gibi improves doc generation, include a sample link in the doc that is valid also before the sample adding patch is merged. (look at the api-ref doc work for ideas)
 
** Proposed in https://review.openstack.org/#/c/344170/
 
* <strike> separate the notification object unit test from the nova object version test.</strike> Done
 
 
* syjulian will solve security issue in wrap_exception notification see the comments in https://review.openstack.org/#/c/310700/19/nova/compute/utils.py and https://review.openstack.org/#/c/310700/19/nova/exception_wrapper.py
 
* syjulian will solve security issue in wrap_exception notification see the comments in https://review.openstack.org/#/c/310700/19/nova/compute/utils.py and https://review.openstack.org/#/c/310700/19/nova/exception_wrapper.py
 
** Proposed in https://review.openstack.org/#/c/336284/
 
** Proposed in https://review.openstack.org/#/c/336284/
* gibi refactors the sample test to avoid booting a new instance for every sample test.
 
** time the test first to see how much time a single instance boot needs in functional test env.
 
** Proposed in: https://review.openstack.org/342944
 
* gibi refactors the sample test to assert reservation_id instead of ignoring it  see comment in https://review.openstack.org/#/c/332696/5/nova/tests/functional/notification_sample_tests/test_instance.py@236
 
** Proposed  in https://review.openstack.org/#/c/341422/
 
 
* syjulian to refactor out the additional notify_about_instance_action() calls see comments in https://review.openstack.org/#/c/313654/37/nova/compute/manager.py
 
* syjulian to refactor out the additional notify_about_instance_action() calls see comments in https://review.openstack.org/#/c/313654/37/nova/compute/manager.py
 
** Proposed in https://review.openstack.org/#/c/344990/
 
** Proposed in https://review.openstack.org/#/c/344990/
* <strike> replace set_override with self.flags in https://review.openstack.org/#/c/332696/5/nova/tests/functional/notification_sample_tests/test_instance.py </strike>
 
 
In Ocata:
 
 
* after the json schema patch is merged in ovo and a new ovo lib version is released we can add a tool to nova generate the json schemas for the versioned notifications.
 
* after the json schema patch is merged in ovo and a new ovo lib version is released we can add a tool to nova generate the json schemas for the versioned notifications.

Revision as of 08:38, 21 September 2016

Goal

Transform every legacy notification to the new versioned notification framework.

How to do it

Tasks

The master is now open for Ocata so work can continue.

Please use the https://review.openstack.org/#/q/topic:bp/versioned-notification-transformation-ocata topic for the transformation commits


The easy ones that uses the same payload as instance.delete:

event type status taken by review comments
instance.shutdown move to Ocata siva_krishnan https://review.openstack.org/#/c/329214
instance.create_ip move to Ocata antal https://review.openstack.org/#/c/332876/ renamed to add_fixed_ip to be more precise
instance.snapshot move to Ocata syjulian https://review.openstack.org/#/c/330128/
instance.scheduled open
instance.delete_ip open rename it to remove_fixed_ip
instance.evacuate open
instance.migration open
instance.unpause open sneti
instance.reboot.error open
instance.shelve_offload open
instance.unshelve open
instance.soft_delete open
instance.resume open siva_krishnan
instance.trigger_crash_dump open
instance.unrescue open
instance.create open Some of the instance.create.<phase> notifications has extra payload
instance.rebuild open pumaranikar
instance.rebuild.scheduled open we might need to change the event_type
instance.resize.error open
instance.resize.prep open we might need to change the event_type
instance.finish_resize open we might want to change the even_type
instance.resize.confirm open
instance.resize.revert open
instance.live.migration.abort open we might need to change the even_type to make it consistent
instance.live_migration.pre open we might want to change the event_type
instance.live_migration.rollback.dest open we might want to change the event_type
instance.live_migration._rollback open we might want to change the event_type
instance.live_migration._post open we might want to change the even_type
instance.live_migration.post.dest open we might want to change the event_type
instance.delete merged gibi https://review.openstack.org/#/c/313654 This shall be the base of for the other instance.<action> transformation
instance.pause merged sneti https://review.openstack.org/#/c/329141/
instance.power_on merged zhs https://review.openstack.org/#/c/329746/
instance.shelve merged vancsics https://review.openstack.org/#/c/332696/
instance.suspend merged pumaranikar https://review.openstack.org/#/c/329089
instance.restore merged zhs https://review.openstack.org/#/c/331972/
instance.resize merged aunnam https://review.openstack.org/#/c/329255/

The complex instance.<action> notifications that needs payload extension.

event type status taken by review comments
instance.update merged gibi https://review.openstack.org/#/c/325923/ This shall be the example for creating instance.<action> notification with extended InstancePayload
instance.exists open
instance.rescue open
instance.volume.attach open

The rest:

event type status taken by review comments
compute.exception merged laszloh https://review.openstack.org/#/c/310700
aggregate.addhost open
aggregate.create open
aggregate.delete open
aggregate.removehost open
aggregate.updatemetadata open
aggregate.updateprop open
api.fault open
libvirt.error open
compute_task.build_instances open
compute_task.migrate_server open
compute_task.rebuild_server open
HostAPI.power_action open
HostAPI.set_enabled open
HostAPI.set_maintenance open
keypair.create spec exists h-eguchi spec: https://review.openstack.org/#/c/300942
keypair.delete spec exists h-eguchi spec: https://review.openstack.org/#/c/300942
keypair.import spec exists h-eguchi spec: https://review.openstack.org/#/c/300942
network.floating_ip.allocate open
network.floating_ip.associate open
network.floating_ip.deallocate open
network.floating_ip.disassociate open
scheduler.select_destinations open
servergroup.addmember open
servergroup.create open
servergroup.delete open
volume.usage open
metrics.update open sudipto


Follow up tasks