Neutron port detach isn't detected by nova event handler
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Opinion
|
Wishlist
|
Unassigned | ||
OpenStack Searchlight |
New
|
Critical
|
Unassigned |
Bug Description
For reasons no longer clear to me, the nova event handler listens for neutron port.create.end events (possibly because we receive the nova creation events, but port attachment follows later?). It doesn't capture explicit attach/detach port events.
For example:
neutron port-create test-net # id is ee486fc1-
nova interface-attach server-1 --port-id ee486fc1-
The events received are port.update.end. For attaching, the device_owner and device_id are changed, although there's no indication of the reason for the update event.
For detach it's even worse because we don't even know what the port was previously attached to. Not sure here what the right answer is; a detach/attach event would be ideal.
Changed in searchlight: | |
importance: | Undecided → High |
importance: | High → Critical |
Changed in nova: | |
status: | New → Opinion |
Changed in searchlight: | |
assignee: | nobody → looperx (looperx) |
assignee: | looperx (looperx) → nobody |
on interface-attach, device_id identifies the server
{ allowed_ address_ pairs": [], extra_dhcp_ opts": [], 06T17:38: 09", device_ owner": "compute:None", port_security_ enabled" : true, binding: profile" : {},
"subnet_ id": "e89b3879- db18-4c9d- a2b5-9a985f0bd5 12",
"ip_ address" : "172.40.0.4"
"subnet_ id": "44064101- 3f26-4eae- ab0e-2c9e6751f8 49",
"ip_ address" : "fd4f:2ae3: e98a:0: f816:3eff: fe2e:2028" 0919-4109- 9990-a2f21b25fe c7", security_ groups" : [
"9790d25c- aea7-4342- b4ef-5f0f7cb657 bd" binding: vif_details" : {
"port_ filter" : true,
"ovs_hybrid_ plug": true binding: vif_type" : "ovs", mac_address" : "fa:16: 3e:2e:20: 28", binding: host_id" : "devstack", description" : "", 7d54-4f6a- 8511-46eeb3dd4a be", admin_state_ up": true, b4f2-4ee3- b131-27829ab599 84", 01T17:47: 16", binding: vnic_type" : "normal", 8c95d6e84483fc9 95a"
"event_type": "port.update.end",
"payload": {
"port": {
"
"
"updated_at": "2016-04-
"
"
"
"fixed_ips": [
{
},
{
}
],
"id": "ee486fc1-
"
],
"
},
"
"
"status": "DOWN",
"
"
"device_id": "e861a26d-
"name": "attaching-port",
"
"network_id": "910cc348-
"dns_name": "octo-1",
"created_at": "2016-04-
"
"tenant_id": "3307049f95b740
}
}
# <SNIP>
}