No port create notifications received for DHCP subnet creation nor router interface attach
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Searchlight |
New
|
Medium
|
Unassigned | ||
neutron |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Creating a subnet with DHCP enabled either creates or updates a port with device_owner network:dhcp matching the network id to which the subnet belongs. While there is a notification received for the subnet creation, the port creation or update is implicit and has not necessarily taken place when the subnet creation event is received (and similarly we don't get a notification that the port has changed or been deleted when the subnet has DHCP disabled).
My specific use case is that we're trying to index resource create/
The same problem exists for router interface:attach events, though with a difference that we do at least get a notification indicating the port id created. It would be nice if the ports created when attaching a router to a network also sent port.create notifications.
Tested under mitaka RC-1 (or very close to) with 'messaging' as the notification driver.
Changed in searchlight: | |
importance: | Undecided → Medium |
Changed in searchlight: | |
assignee: | nobody → SHI Peiqi (uestc-shi) |
Changed in neutron: | |
assignee: | nobody → SHI Peiqi (uestc-shi) |
Changed in searchlight: | |
assignee: | SHI Peiqi (uestc-shi) → nobody |
Changed in neutron: | |
assignee: | SHI Peiqi (uestc-shi) → nobody |
Can you tell us a little bit the messages you consume? As far I can tell the 'public' notifications are emitted for Create/ Delete/ Update operations (see [1,2,3] for pointers on create). If you are watching notifications like [4,5], it's probably wiser that you don't as these are not considered part of a stable interface and may be subject to change without notice (even if they haven't for ages)!
[1] https:/ /github. com/openstack/ neutron/ blob/master/ neutron/ api/v2/ base.py# L80 /github. com/openstack/ neutron/ blob/master/ neutron/ api/v2/ base.py# L409 /github. com/openstack/ neutron/ blob/master/ neutron/ api/v2/ base.py# L472 /github. com/openstack/ neutron/ blob/master/ neutron/ api/rpc/ agentnotifiers/ dhcp_rpc_ agent_api. py#L124 /github. com/openstack/ neutron/ blob/master/ neutron/ api/rpc/ agentnotifiers/ l3_rpc_ agent_api. py#L115
[2] https:/
[3] https:/
[4] https:/
[5] https:/