apache / apache/cloudstack

VM Snapshot stuck at Expunging with KvmFileBasedStorageVmSnapshotStrategy

Đang mở
#14,019 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Java
Star
3.1k
Fork
1.4k
Merge trung bình
6 ngày 19 giờ
Pull request đã merge (30 ngày)
32

Mô tả

### problem

`KvmFileBasedStorageVmSnapshotStrategy.deleteVMSnapshot` transitions the VM snapshot to `Expunging` during delete but doesn't transition it to `Error` state in case of exception or timeout

`VMSnapshotManagerImpl.hasActiveVMSnapshotTasks` counts `Expunging` as work in
progress, so operations like reboot and snapshot operations are blocked.

### versions

4.22

### The steps to reproduce the bug

1. Take a disk-only VM snapshot.
2. Write lots of data to the VM
3. set commands.timeout=MergeDiskOnlyVmSnapshotCommand=20
4. Delete the snapshot.

...

### What to do about it?

Snapshot state should transition to Error in case of timeout

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu với KvmFileBasedStorageVmSnapshotStrategy.deleteVMSnapshot và VMSnapshotManagerImpl.hasActiveVMSnapshotTasks, sau đó tái hiện việc xóa snapshot chỉ-disk với commands.timeout=MergeDiskOnlyVmSnapshotCommand=20. Theo dõi đường dẫn timeout hoặc ngoại lệ và xác minh rằng snapshot chuyển sang Error thay vì vẫn ở Expunging, để việc khởi động lại và các thao tác snapshot về sau không còn bị chặn.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
cloud, infrastructure
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
68/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.