summaryrefslogtreecommitdiff
path: root/neutron/notifiers
diff options
context:
space:
mode:
authorSam Betts <sam@code-smash.net>2017-01-23 17:02:01 +0000
committerSam Betts <sam@code-smash.net>2017-01-27 11:54:28 +0000
commitcb6eae20fae1f5e46cb2af4f0b0dc5368074580b (patch)
tree78c795c2fb88c9cd7c30fa5fe14a9d8d4671d20d /neutron/notifiers
parenta0d05fd8cf334bd2bebe18f912ec01ac4e45d902 (diff)
downloadneutron-cb6eae20fae1f5e46cb2af4f0b0dc5368074580b.tar.gz
Remove baremetal notification from nova notifier
This is a revert of change I3d53bff8278dabafd929ecbea0b4b3b441c9e1cf The nova notifier was updated to notify nova on ports with the baremetal: device_owner, these ports are owned by Ironic not Nova, so nova is getting notifications that it doesn't understand. Change-Id: I8318a682163f6a5b739be68ce56973c43d0e32f2 Closes-Bug: #1656010 Depends-On: I43c3af9f424a65211ef5a39f13e4810072997339
Diffstat (limited to 'neutron/notifiers')
-rw-r--r--neutron/notifiers/nova.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/neutron/notifiers/nova.py b/neutron/notifiers/nova.py
index dec1270b66..753f304fa4 100644
--- a/neutron/notifiers/nova.py
+++ b/neutron/notifiers/nova.py
@@ -85,9 +85,8 @@ class Notifier(object):
def _is_compute_port(self, port):
try:
if (port['device_id'] and uuidutils.is_uuid_like(port['device_id'])
- and port['device_owner'].startswith((
- constants.DEVICE_OWNER_COMPUTE_PREFIX,
- constants.DEVICE_OWNER_BAREMETAL_PREFIX))):
+ and port['device_owner'].startswith(
+ constants.DEVICE_OWNER_COMPUTE_PREFIX)):
return True
except (KeyError, AttributeError):
pass