designate plugin is not indexing/listening for server(nameservers)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Searchlight |
New
|
Medium
|
Unassigned |
Bug Description
nameservers are not being indexed in designate plugin.
ex.
designate server-list
| id | name |
+------
| b4502fe4-
| 165cea96-
+------
designate server-get b4502fe4-
+------
| Field | Value |
+------
| id | 2016-03-
| created_at | 2016-03-
| updated_at | b4502fe4-
| name | ns.foo.com. |
+------
designate sends dns.pool.update events for updates to nameservers.
2016-03-29 11:29:09.263 42467 INFO searchlight.
2016-03-29 11:29:09.264 42467 INFO searchlight.
Changed in searchlight: | |
importance: | Undecided → Medium |
Related to same issue, the current OS::Designate: :RecordSet document has "records" item(see below) which has a list of nameservers. This goes out of sync whenever a new nameserver is created in designate, since it only sends dns.poo.update event. The is no additional event for record "update". We need to check if we should update records in OS::Designate: :RecordSet for every nameserver create/delete or just maintain a separate document type for nameservers.
{
"_ index": "searchlight- 2016_03_ 29_19_02_ 27",
"_ type": "OS::Designate: :RecordSet" , da69-494f- 98e5-d8a8d76153 b4",
"_ score": 1,
"_ source" : {
"status" : "PENDING",
"zone_ id": "2f647395- 60dc-4949- 9249-a5c6a03ce3 15",
"description" : null,
"created_ at": "2016-03- 29T18:19: 44.000000" ,
"__searchlight -user-role" : [
"user" ,
"admin"
"updated_ at": "2016-03- 29T18:19: 44.000000" ,
"_parent" : "2f647395- 60dc-4949- 9249-a5c6a03ce3 15",
"records" : [
"data": "ns.foo.com."
},
"data": "ns4.foo.com."
},
"data": "ns3.foo.com."
"version" : 3,
"ttl": null,
"action" : "UPDATE",
"project_ id": "80264096ac454d 3d904002491fafe 2ec",
"type" : "NS",
"id": "f884912f- da69-494f- 98e5-d8a8d76153 b4",
"name" : "designate- example. com."
"_id": "f884912f-
],
{
{
{
}
],
}
}