Volume snapshots of CKS node and Shared FileSystem VM volumes are always refused
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 82/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- java
- Área
- backend, infrastructure
Línea de trabajo
Comienza con las comprobaciones de VolumeApiServiceImpl.isOperationSupported y SnapshotManagerImpl.createPolicy, y compáralas con la comprobación de despliegue de UserVmManagerImpl. El cambio necesario consiste en combinar correctamente las exclusiones de volúmenes de nodos CKS y de Shared FileSystem VM, conservando los rechazos para otros volúmenes SYSTEM-template. La tarea está completa cuando las instantáneas y las políticas de instantáneas funcionan para volúmenes de nodos CKS y de Shared FileSystem VM, pero siguen bloqueadas para VMs del sistema y routers.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Java
- Estrellas
- 3.1k
- Forks
- 1.4k
- Merge medio
- 6 d 1 h
- PR fusionados (30 d)
- 16
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/cloudstack
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
apache/cloudstack#14897 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/cloudstack#14847 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
ROUTED VPC router drops replies to its own traffic over a private gatewayPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
apache/cloudstack#14784 ·
Los mantenedores suelen responder en 1 día
-
Snapshot lookup by zone ignores the zone in its fallback (stray semicolon)Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/cloudstack#14770 ·
Los mantenedores suelen responder en 1 día
-
CKS: validate-cks-node merges missing package names into one string on Debian/UbuntuPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
apache/cloudstack#14755 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de apache/cloudstack
Issues similares
-
bug needs triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
DSpace/DSpace#13391 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
升级 AIDEV 初始化基础镜像至 0.1.7Abiertobacklog kind/enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
TencentBlueKing/bk-job#4640 ·
Los mantenedores suelen responder en 1 día
-
Identify Apache Seata as incubating in the GitHub repository descriptionPosiblemente ocupada @slievrly la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
apache/incubator-seata#8404 ·
Los mantenedores suelen responder en 1 día
-
Track FLINK-41442: on Flink 2.1+ an unaligned checkpoint can lose a split assigned just before itAbiertoarea:docs bug module:bigtable module:spanner priority:P3 status:blocked-upstream
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
flink-gcp/flink-connector-gcp#2411 ·
Los mantenedores suelen responder en 1 día
-
Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día