← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1639152] [NEW] Send out notification about server group changes when delete instances

 

Public bug reported:

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.

** Affects: nova
     Importance: Undecided
     Assignee: Zhenyu Zheng (zhengzhenyu)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Zhenyu Zheng (zhengzhenyu)

** Description changed:

  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). Take
- again SearchLight as an example, it cannot perform sync actions under this situation,
+ 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.

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1639152

Title:
  Send out notification about server group changes when delete instances

Status in OpenStack Compute (nova):
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1639152/+subscriptions