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.
Reviewed: https:/ /review. openstack. org/625616 /git.openstack. org/cgit/ openstack/ nova-lxd/ commit/ ?id=bf3e123e1f7 c09c64beecf0ff0 92c7e6b84590b4
Committed: https:/
Submitter: Zuul
Branch: master
commit bf3e123e1f7c09c 64beecf0ff092c7 e6b84590b4
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 delete- event. detach_interface() will so try to get the lxd
vif-
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 un_plug( ) to ensure all got cleaned.
avoiding on updatating the lxc profile. We still continue the process
of vif_driver.
Change-Id: If7fd5dd17323ec 625df3518311dfb 012302b2711
Closes-Bug: #1808819
Signed-off-by: Sahid Orentino Ferdjaoui <email address hidden>