Send out notification about server group changes when delete instances

Bug #1639152 reported by Zhenyu Zheng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Wishlist
Unassigned

Bug Description

When create instance with server group information provided, nova will send out notification
about "servergroup.addmember":
https://git.openstack.org/cgit/openstack/nova/tree/nova/objects/instance_group.py#n425

Services like Searchlight and Telemetry are listen to the notification to do their jobs
Take Searchlight as an example, when an instance has been added to a server group SL will
catch the notification and index the up-to-date data to its database for searching perpose.

Currently, when delete instances, the related server group's member field will also be
cleaned, but no notification will be send out (nova performs direct DB action):
https://git.openstack.org/cgit/openstack/nova/tree/nova/db/sqlalchemy/api.py#n1862
Take again SearchLight as an example, it cannot perform sync actions under this situation,
thus the indexed data will be out-of-date.

We should send out notification about server group changes when delete instances.

Changed in nova:
assignee: nobody → Zhenyu Zheng (zhengzhenyu)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/393649

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Zhenyu Zheng (<email address hidden>) on branch: master
Review: https://review.openstack.org/393649

Revision history for this message
Balazs Gibizer (balazs-gibizer) wrote :

I don't think this is in progress any more as the patch is abandoned

Changed in nova:
status: In Progress → New
Sean Dague (sdague)
Changed in nova:
assignee: Zhenyu Zheng (zhengzhenyu) → nobody
status: New → Confirmed
importance: Undecided → Wishlist
Changed in nova:
assignee: nobody → Takashi NATSUME (natsume-takashi)
Revision history for this message
Balazs Gibizer (balazs-gibizer) wrote :

It was discussed in the Rocky PTG and agreed to do this. A new specless bp has been created to track the effort https://blueprints.launchpad.net/nova/+spec/add-server-group-remove-member-notifications

tags: added: notifications
Changed in nova:
assignee: Takashi NATSUME (natsume-takashi) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.