]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Only send notifications on uuid device_id's
authorAaron Rosen <aaronorosen@gmail.com>
Mon, 31 Mar 2014 18:03:48 +0000 (11:03 -0700)
committerMark McClain <mmcclain@yahoo-inc.com>
Fri, 4 Apr 2014 22:24:04 +0000 (18:24 -0400)
commita5909c079f89f86bd6ca2c764c0c94c8707a555a
tree40a6d211a1b4de5d0379c23e7ad38f86f466a8ed
parentac2718c4aa7b6eb0c0e82df93cf59d890432d652
Only send notifications on uuid device_id's

Neutron assumes that all ports with the device_owner that start with
'compute:' are ports created by nova compute. Thus, when the debug agent
creates a port with device_owner = compute:probe the nova notifier
feature tells nova when this port is wired even though nova does not know
about it (doesn't really matter we just log an error). This patch adds a check
to make sure the device_id is a uuid as nova only uses uuids and the debug
agent uses the hostname for device_id.

Change-Id: I04e7195a1fb30bc37e1c0141315c053174f8722c
Closes-bug: #1288582
(cherry picked from commit 6b4fecb9de0aa80e66b31555001dca95d14c789f)
neutron/notifiers/nova.py
neutron/tests/unit/notifiers/test_notifiers_nova.py