Catch exception while building due to instance being deleted
In run_instance() a instance_update() call in _start_building() can
result in a UnexpectedDeletingTaskStateError if the instance gets
deleted while being built.Since this is an expected situation, we
don't want this exception written in the logs or worse, the instance
be set to error state. Instead catch this and raise a proper
BuildAbortException that gets handled above this call.
Reviewed: https:/ /review. openstack. org/46062 github. com/openstack/ nova/commit/ 64aa897c8a24080 93e277972f1e702 e1a4287db2
Committed: http://
Submitter: Jenkins
Branch: master
commit 64aa897c8a24080 93e277972f1e702 e1a4287db2
Author: Hans Lindgren <email address hidden>
Date: Mon Sep 30 15:15:08 2013 +0200
Catch exception while building due to instance being deleted
In run_instance() a instance_update() call in _start_building() can ingTaskStateErr or if the instance gets xception that gets handled above this call.
result in a UnexpectedDelet
deleted while being built.Since this is an expected situation, we
don't want this exception written in the logs or worse, the instance
be set to error state. Instead catch this and raise a proper
BuildAbortE
Change-Id: Ib9d3dd22b33b10 4f1593d534876a5 387df81d11c
Closes-Bug: #1223843