RosiKyu commented on PR #14484:
URL: https://github.com/apache/cloudstack/pull/14484#issuecomment-7125989102
LGTM
@Pearl1594 I retested the fix for incremental snapshots failing after a
middle snapshot is deleted and the VM is restarted (3aa5dc3), with the PR
packages on a 4-host KVM cluster with NFS and CLVM_NG pools,
`kvm.incremental.snapshot=true`.
- I confirmed first that the problem is not from this PR: on a clean 24.0
build the same steps fail on NFS too.
- With the fix: snapshot S1, S2, S3, delete S2, stop and start the VM, the
next snapshots succeed on NFS and on CLVM_NG, with the VM running or stopped at
the delete.
- Upgrade: a chain broken on 24.0 (NFS) works again after upgrading to the
PR packages, once the VM is stopped and started.
- Other cases now work too: deleting the first snapshot or two middle ones,
then restarting. On 24.0 they broke the chain the same way.
- Regression, same result as on 24.0 (NFS and CLVM_NG): restart with no
deleted snapshots, deleting the last snapshot, deleting all snapshots, volume,
template and revert from a snapshot, live migration, VM snapshot allowed with
no volume snapshots and refused while incremental snapshots exist,
`kvm.incremental.snapshot=false`.
Lab mapping: VM V = `vm-ha-nfs` (NFS root disk D1
`a30650c9-ef44-43ca-95b5-8593aca1bc2b`), VM W = `vm-t1` (CLVM_NG root disk D2
`b115e913-4dc1-46e4-9a99-1e9e32619d2d`).
**Clean 24.0 build, NFS disk D1: after deleting the middle snapshot and
restarting V, the next snapshots fail**
```
NF-1: jobstatus 1
NF-2: jobstatus 1
NF-3: jobstatus 1
-- delete NF-2 (middle), 15:38:32
delete NF-2: jobstatus 1 "success": true
stop vm-ha-nfs: jobstatus 1
start vm-ha-nfs: jobstatus 1 Running
ref-trl-12929-k-mol8-rositsa-kyuchukova-kvm4 i-2-7-VM
-- snapshot NF-4 after the restart, 15:40:53
NF-4: jobstatus 2 "errortext": "Failed to create Snapshot due to an
internal error creating Snapshot for volume
a30650c9-ef44-43ca-95b5-8593aca1bc2b"
NF-5: jobstatus 2 "errortext": "Failed to create Snapshot due to an
internal error creating Snapshot for volume
a30650c9-ef44-43ca-95b5-8593aca1bc2b"
```
**PR packages, NFS disk D1, V running at the delete: the next snapshots
succeed**
```
PN-1: jobstatus 1
PN-2: jobstatus 1
PN-3: jobstatus 1
-- delete PN-2 (middle) 16:29:41
delete PN-2: jobstatus 1 "success": true
stop vm-ha-nfs: jobstatus 1
start vm-ha-nfs: jobstatus 1 Running kvm1
-- snapshots after the restart 16:30:37
PN-4: jobstatus 1
PN-5: jobstatus 1
```
**PR packages, CLVM_NG disk D2, W running at the delete: the next snapshots
succeed**
```
PG-1: jobstatus 1
PG-2: jobstatus 1
PG-3: jobstatus 1
-- delete PG-2 (middle) 16:31:43
delete PG-2: jobstatus 1 "success": true
stop vm-t1: jobstatus 1
start vm-t1: jobstatus 1 Running kvm4
-- snapshots after the restart 16:32:49
PG-4: jobstatus 1
PG-5: jobstatus 1
```
**PR packages, CLVM_NG disk D2, W stopped at the delete: the next snapshots
succeed**
```
PS-1: jobstatus 1
PS-2: jobstatus 1
PS-3: jobstatus 1
stop vm-t1: jobstatus 1
-- delete PS-2 (middle), VM stopped 16:34:26
delete PS-2: jobstatus 1 "success": true
start vm-t1: jobstatus 1 Running kvm4
-- snapshots after the start 16:34:47
PS-4: jobstatus 1
PS-5: jobstatus 1
```
--
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]