Volume snapshots of CKS node and Shared FileSystem VM volumes are always refused
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 82/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- java
- Lĩnh vực
- backend, infrastructure
Hướng nghiên cứu
Bắt đầu với các kiểm tra trong VolumeApiServiceImpl.isOperationSupported và SnapshotManagerImpl.createPolicy, rồi so sánh chúng với kiểm tra triển khai trong UserVmManagerImpl. Thay đổi cần thiết là kết hợp chính xác các trường hợp loại trừ đối với volume của CKS-node và Shared FileSystem VM, đồng thời duy trì việc từ chối đối với các volume SYSTEM-template khác. Hoàn thành khi snapshot và chính sách snapshot hoạt động đối với volume của CKS node và Shared FileSystem VM nhưng vẫn bị chặn đối với system VM và router.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
problem
Volume snapshots of CKS node volumes are always refused when the cluster was deployed from the SYSTEM-type system VM template, which is the default:
Volume: ... is for System VM , Creating snapshot against System VM volumes is not supported
The same happens for snapshot policies, and for the root volume of a Shared FileSystem VM.
The guard in VolumeApiServiceImpl.isOperationSupported and in SnapshotManagerImpl.createPolicy reads:
template.getTemplateType() == SYSTEM &&
(userVm == null || !CKS_NODE.equals(type) || !SHAREDFSVM.equals(type))
No VM has both types, so the right-hand side is always true and every volume from a SYSTEM template is refused. Before #9208 the guard was (userVm == null || !CKS_NODE.equals(type)), which allowed CKS nodes. #9208 meant to add Shared FileSystem VMs to the exemption (the deploy check it changed in UserVmManagerImpl reads !CKS_NODE.equals(vmType) && !SHAREDFSVM.equals(vmType)), but the || removed the CKS exemption instead.
The same code is on main.
versions
4.20 and later (since #9208), including 4.22 and main. KVM, Ceph RBD primary storage. Any hypervisor and storage is affected; the check runs before the storage layer.
The steps to reproduce the bug
- Create a CKS cluster without a custom node template (nodes use the system VM template).
- Take a volume snapshot of a node's ROOT volume:
create snapshot volumeid=<node root volume>. - The call fails with "Creating snapshot against System VM volumes is not supported".
create snapshotpolicyon the same volume fails the same way.
What to do about it?
Change || to && in both guards, so CKS node and Shared FileSystem VM volumes are allowed and other SYSTEM template volumes (system VMs, routers) are still refused.
- Ngôn ngữ chính
- Java
- Star
- 3.1k
- Fork
- 1.4k
- Merge trung bình
- 6 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 16
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/cloudstack
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
apache/cloudstack#14897 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/cloudstack#14847 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ROUTED VPC router drops replies to its own traffic over a private gatewayCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
apache/cloudstack#14784 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Snapshot lookup by zone ignores the zone in its fallback (stray semicolon)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/cloudstack#14770 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CKS: validate-cks-node merges missing package names into one string on Debian/UbuntuCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
apache/cloudstack#14755 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apache/cloudstack
Issue tương tự
-
bug needs triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
DSpace/DSpace#13391 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
升级 AIDEV 初始化基础镜像至 0.1.7Đang mởbacklog kind/enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
TencentBlueKing/bk-job#4640 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Identify Apache Seata as incubating in the GitHub repository descriptionCó thể đã có người làm @slievrly đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
apache/incubator-seata#8404 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Track FLINK-41442: on Flink 2.1+ an unaligned checkpoint can lose a split assigned just before itĐang mởarea:docs bug module:bigtable module:spanner priority:P3 status:blocked-upstream
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
flink-gcp/flink-connector-gcp#2411 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày