summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaverio Proto <saverio.proto@switch.ch>2017-11-13 12:44:42 +0100
committerSaverio Proto <saverio.proto@switch.ch>2017-11-14 09:52:46 +0100
commit3c8945835855ea6c8a42c269ec55cde71059bda9 (patch)
treec4bdc00918ee6fb226aa5d49e4f8c98d94b1de5e
parentf8a9b10736706311019a3ae4ead4ad77e6eb36ab (diff)
downloadnova-3c8945835855ea6c8a42c269ec55cde71059bda9.tar.gz
Correct log message when removing a security group
When a security group is removed from a port nova incorrectly logs this as a security group addition Change-Id: If525313c63c4553abe8bea6f2bfaf75431ed18ea Closes-bug: 1731889 (cherry picked from commit 01da04a0a7eff4c52bd0e35d404545f9a413b602)
-rw-r--r--nova/network/security_group/neutron_driver.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/network/security_group/neutron_driver.py b/nova/network/security_group/neutron_driver.py
index 5b905f8f9f..c4f26a2259 100644
--- a/nova/network/security_group/neutron_driver.py
+++ b/nova/network/security_group/neutron_driver.py
@@ -525,8 +525,8 @@ class SecurityGroupAPI(security_group_base.SecurityGroupBase):
updated_port = {'security_groups': port['security_groups']}
try:
- LOG.info(_LI("Adding security group %(security_group_id)s to "
- "port %(port_id)s"),
+ LOG.info(_LI("Removing security group %(security_group_id)s "
+ "from port %(port_id)s"),
{'security_group_id': security_group_id,
'port_id': port['id']})
neutron.update_port(port['id'], {'port': updated_port})