reproduce:
1. vm A in compute A with ip:192.168.83.2, vm B in compute B with ip:192.168.83.3
2. update vm A port ip to 192.168.83.4
3. the ipset in compute B can't be updated
the reason is that this path:https://review.openstack.org/58415 delete the 'notify_security_groups_member_updated' in method 'is_security_group_member_updated'
def is_security_group_member_updated(self, context,
original_port, updated_port):
"""Check security group member updated or not.
This method returns a flag which indicates request notification
is required and does not perform notification itself.
It is because another changes for the port may require notification.
"""
need_notify = False
if (original_port['fixed_ips'] != updated_port['fixed_ips'] or
original_port['mac_address'] != updated_port['mac_address'] or
not utils.compare_elements(
original_port.get(ext_sg.SECURITYGROUPS),
updated_port.get(ext_sg.SECURITYGROUPS))):
need_notify = True
return need_notify
Reviewed: https:/ /review. openstack. org/177159 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=b17ff81ef1b 18395c0b0671a48 7f68201d739f43
Committed: https:/
Submitter: Jenkins
Branch: master
commit b17ff81ef1b1839 5c0b0671a487f68 201d739f43
Author: shihanzhang <email address hidden>
Date: Fri Apr 24 18:28:17 2015 +0800
Send 'security_ groups_ member_ updated' when port changes
With ml2 plugin, when a port's IP or security group changes, it groups_ member_ updated' message to other l2
should send 'security_
agents which have same security group with this changed port.
Change-Id: I2e7622d2db4c17 3ac879a95a6e0ad f92b858fe82
Closes-bug: #1448022