VM Snapshot: Prevent vm snapshots being indefinitely stuck in Expunging state on deletion failure#4898
Conversation
…tate on deletion failure
|
@blueorangutan package |
|
@blueorangutan package |
|
@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 350 |
|
@blueorangutan test |
|
@Pearl1594 a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
| } catch (OperationTimedoutException e) { | ||
| throw new CloudRuntimeException("Delete vm snapshot " + vmSnapshot.getName() + " of vm " + userVm.getInstanceName() + " failed due to " + e.getMessage()); | ||
| } catch (AgentUnavailableException e) { | ||
| } catch (OperationTimedoutException | AgentUnavailableException e) { |
|
Trillian test result (tid-373)
|
|
@blueorangutan package |
|
@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 360 |
|
@blueorangutan test centos7 vmware-67u3 |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
harikrishna-patnala
left a comment
There was a problem hiding this comment.
Testes with the PR changes. Observed VM snapshots in error state upon expunge failure and later I could delete the snapshot which is in error state.
LGTM
|
@blueorangutan test centos7 vmware-67u3 |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
|
Trillian test result (tid-401)
|
Description
Fixes #4201
This PR addresses the issue of a vm snapshot being indefinitely stuck is Expunging state in case deletion fails.
Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Simulated an exception at the hypervisor end while deleting a VM snapshot and verified that the vm snapshot goes back to Ready state.