Comment 2 for bug 1285158

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

Reviewed: https://review.openstack.org/77802
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=3538a9cd06e1e46ec5698edf4018c8d3075b619b
Submitter: Jenkins
Branch: master

commit 3538a9cd06e1e46ec5698edf4018c8d3075b619b
Author: Aaron Rosen <email address hidden>
Date: Mon Mar 3 22:55:35 2014 -0800

    network_info cache should be cleared before being rescheduled

    If an instance fails to boot due to a non-networking error the instance
    then gets rescheduled and launched on another compute node. In these cases
    deallocate_for_instance() is called which deletes the network ports
    allocated though the info_cache for the instance is never cleared. This patch
    adds a call to update_instance_cache_with_nw_info() which causes the cache
    to get cleared out. Note: the cache is only cleared if the instance hasn't
    been marked for deletion. This is due to how instance_info_cache_update()
    is implemented.

    Change-Id: If967884c9a6276f5949a7a04b597cedcce12ba09
    Closes-bug: #1285158