Fix interface-attach removes existing interfaces from db
The following commit 394c693e359ed4f19cc2f7d975b1f9ee5500b7f6 changed
allocate_port_for_instance() to only return the ports that were created
rather than all of the ports on the instance which broke the attach-interface
code.
This patch fixes this issue by remove the sync decorators from:
allocate_for_instance, allocate_port_for_instance, and
deallocate_port_for_instance to just _build_instance_nw_info which
is called in all these cases instead.
Reviewed: https:/ /review. openstack. org/53969 github. com/openstack/ nova/commit/ 1957339df302e2d a75e0dbe78b5d56 6194ab2c08
Committed: http://
Submitter: Jenkins
Branch: master
commit 1957339df302e2d a75e0dbe78b5d56 6194ab2c08
Author: Aaron Rosen <email address hidden>
Date: Fri Oct 25 15:32:01 2013 -0700
Fix interface-attach removes existing interfaces from db
The following commit 394c693e359ed4f 19cc2f7d975b1f9 ee5500b7f6 changed port_for_ instance( ) to only return the ports that were created
allocate_
rather than all of the ports on the instance which broke the attach-interface
code.
This patch fixes this issue by remove the sync decorators from: for_instance, allocate_ port_for_ instance, and port_for_ instance to just _build_ instance_ nw_info which
allocate_
deallocate_
is called in all these cases instead.
Closes-bug: #1223859
Change-Id: I66eb0c0ab926e0 a8d1e2c9cfe1f7f d579ea3aa27