Comment 2 for bug 1808819

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

Reviewed: https://review.openstack.org/625616
Committed: https://git.openstack.org/cgit/openstack/nova-lxd/commit/?id=bf3e123e1f7c09c64beecf0ff092c7e6b84590b4
Submitter: Zuul
Branch: master

commit bf3e123e1f7c09c64beecf0ff092c7e6b84590b4
Author: Sahid Orentino Ferdjaoui <email address hidden>
Date: Mon Dec 17 09:54:48 2018 -0500

    fix error on delete interface when destroying instance

    An instance may be destroyed prior nova-compute receives a
    vif-delete-event. detach_interface() will so try to get the lxd
    profile related to the instance which does not exist anymore, the
    process will fail with a NotFound exception raised by lxclib.

    In this commit we solve the issue by handling the exception and so
    avoiding on updatating the lxc profile. We still continue the process
    of vif_driver.un_plug() to ensure all got cleaned.

    Change-Id: If7fd5dd17323ec625df3518311dfb012302b2711
    Closes-Bug: #1808819
    Signed-off-by: Sahid Orentino Ferdjaoui <email address hidden>