Comment 3 for bug 1223859

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/53969
Committed: http://github.com/openstack/nova/commit/1957339df302e2da75e0dbe78b5d566194ab2c08
Submitter: Jenkins
Branch: master

commit 1957339df302e2da75e0dbe78b5d566194ab2c08
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 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.

    Closes-bug: #1223859

    Change-Id: I66eb0c0ab926e0a8d1e2c9cfe1f7fd579ea3aa27