Re: [openstack-dev] [nova][searchlight] When do instances get removed from Searchlight?

2017-03-06 Thread McLellan, Steven
Storing the data isn't a problem, but one issue we've had with situations like this where there should be a default filter (soft_deleted==false) that can be overridden is that it's quite hard within the context of the query parser to do it, because it involves examining an incoming query to see

Re: [openstack-dev] [nova][searchlight] When do instances get removed from Searchlight?

2017-03-06 Thread Balazs Gibizer
On Mon, Mar 6, 2017 at 3:06 PM, Lei Zhang wrote: On Mon, Mar 6, 2017 at 1:21 AM, Matt Riedemann wrote: So I'm wondering at what point instances stored in searchlight will be removed. Maybe there is already an answer to this and the

Re: [openstack-dev] [nova][searchlight] When do instances get removed from Searchlight?

2017-03-06 Thread Balazs Gibizer
On Mon, Mar 6, 2017 at 3:06 PM, Zhenyu Zheng wrote: Hi, Gibi Yes, soft_delete.end notification didn't got handled in SL, and we should do it, but what Matt mean here is deferent, even you 'hard' delete an instance the record still exists in DB and user with

Re: [openstack-dev] [nova][searchlight] When do instances get removed from Searchlight?

2017-03-06 Thread Lei Zhang
On Mon, Mar 6, 2017 at 1:21 AM, Matt Riedemann wrote: > > So I'm wondering at what point instances stored in searchlight will be > removed. Maybe there is already an answer to this and the searchlight team > can just inform me. Otherwise we might need to think about data

Re: [openstack-dev] [nova][searchlight] When do instances get removed from Searchlight?

2017-03-06 Thread Zhenyu Zheng
Hi, Gibi Yes, soft_delete.end notification didn't got handled in SL, and we should do it, but what Matt mean here is deferent, even you 'hard' delete an instance the record still exists in DB and user with certain role can list it using deleted=true, so we should also do it in SL On Monday,

Re: [openstack-dev] [nova][searchlight] When do instances get removed from Searchlight?

2017-03-06 Thread Balazs Gibizer
On Mon, Mar 6, 2017 at 3:09 AM, Zhenyu Zheng wrote: Hi, Matt AFAIK, searchlight did delete the record, it catch the instance.delete notification and perform the action:

Re: [openstack-dev] [nova][searchlight] When do instances get removed from Searchlight?

2017-03-05 Thread Zhenyu Zheng
Hi, Matt AFAIK, searchlight did delete the record, it catch the instance.delete notification and perform the action: http://git.openstack.org/cgit/openstack/searchlight/tree/searchlight/elasticsearch/plugins/nova/notification_handler.py#n100 ->