JoaoJandre opened a new pull request, #13880:
URL: https://github.com/apache/cloudstack/pull/13880
### Description
If a new incremental backup is created for a stopped VM, that has a delta
tree with more than one branch for one of its volumes, and the VM snapshot
following the last backup is the current one, a problem occurs during backup
creation where the current VM snapshot delta is not rebased to its new parent,
causing subsequent backups to fail and the chain to become inconsistent.
This PR fixes this issue.
### Types of changes
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] Enhancement (improves an existing feature and functionality)
- [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
- [ ] Build/CI
- [ ] Test (unit or integration test code)
### Feature/Enhancement Scale or Bug Severity
#### Feature/Enhancement Scale
- [ ] Major
- [ ] Minor
#### Bug Severity
- [ ] BLOCKER
- [ ] Critical
- [ ] Major
- [x] Minor
- [ ] Trivial
### Screenshots (if appropriate):
### How Has This Been Tested?
### Test description
With a stopped VM, the following tests were performed:
| Test
| Previous result
| Result with
patch |
|
--------------------------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------
| ---------------------------- |
| Take a backup, a VM snapshot, and a new backup
| Success and consistent
chain | Success and
consistent chain |
| Take a backup, two consecutive VM snapshots, revert to the first VM
snapshot, take a new VM snapshot, and then take a new backup | Success and
consistent chain |
Success and consistent chain |
| Take a backup, two consecutive VM snapshots, revert to the first VM
snapshot, and then take a new backup | **Success, but
the chain becomes inconsistent, making it impossible to start the VM** |
Success and consistent chain |
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]