4.23.0.0: restartVPC cleanup=true with public IPs on two VLANs fails with UnsupportedOperationException and leaves the VPC without a backup router
Los mantenedores suelen responder en 1 día
@bernardodemarco ya está trabajando en esto.
Desde el 28/10/2026.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- java
- Área
- infrastructure
Línea de trabajo
Lee NetworkHelperImpl.java alrededor de la línea 761 y luego sigue el valor publicConfig hasta VpcNetworkHelperImpl.reallocateRouterNetworks alrededor de la línea 165. Reproduce la configuración de las dos VLAN y restartVPC cleanup=true, o añade una prueba de regresión específica para el comportamiento de la lista mutable. Se considera terminado cuando la reasignación de redes del router acepta ambas VLAN y el reinicio gradual finaliza con un router de respaldo.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
problem
NetworkHelperImpl.java line 761 (4.23.0.0 and main) is:
publicConfig.put(publicNetworks.get(0), List.of(defaultNic));
List.of returns an immutable list. VpcNetworkHelperImpl.reallocateRouterNetworks (line 165) then calls addAll on it and throws UnsupportedOperationException (ImmutableCollections.addAll), through NetworkHelperImpl.deployRouterWithTemplates (line 542) and VpcManagerImpl.rollingRestartVpc (line 4046). 4.22.0.0 used new ArrayList(Arrays.asList(defaultNic)).
The API answers "Internal Server Error". The rolling restart has already destroyed the backup router, and the new router stays Stopped.
Related: #12621 (fixed by #12622 in 4.22) has the same setup but a different error ("cidr is not formatted correctly"). This one is a separate bug.
versions
CloudStack 4.23.0.0 and main. 4.22.0.0 is not affected. KVM.
The steps to reproduce the bug
- A zone with public IP ranges on two VLANs.
- A redundant VPC with its source NAT IP on the first VLAN.
- Acquire a second public IP from the second VLAN and enable static NAT on it to a VM in the VPC. (A bare IP with no NAT or rule does not reach this code path; see VpcManagerImpl.isIpAllocatedToVpc.)
- restartVPC cleanup=true.
What to do about it?
Use a mutable list again, for example:
publicConfig.put(publicNetworks.get(0), new ArrayList<>(List.of(defaultNic)));
We carry this one-line change. With it, the new routers get NICs on both VLANs and the restart succeeds.
- Lenguaje dominante
- Java
- Estrellas
- 3.1k
- Forks
- 1.4k
- Merge medio
- 10 d 9 h
- PR fusionados (30 d)
- 20
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
-
Remote access VPN users are disconnected on every LB, ACL, port forward or firewall change (xl2tpd restarted on every iptables pass)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 72/100
apache/cloudstack#14545 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
apache/cloudstack#14530 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug status:has-work-around
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/cloudstack#14465 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
apache/cloudstack#14427 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[UI] "canceled - Unable to reach the management server" notification when switching from project to default view on Instances page (4.20.3)Posiblemente ocupada @Damans227 la tomó hace 20 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
apache/cloudstack#14381 · 1 comentario · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de apache/cloudstack
Issues similares
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Shweit/EtherealPortals#30 ·
-
Typo in jakartaee-bom 12.0.0-SNAPSHOT with cdiPosiblemente ocupada @ElectLive la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
jakartaee/jakartaee-api#205 · 1 comentario ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
liberation-data/drivine4j#547 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
BindingServiceProperties.bindings regressed to a non-thread-safe TreeMap in GH-3158: concurrent first use of binding names corrupts itPosiblemente ocupada @AkashB23 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
spring-cloud/spring-cloud-stream#3321 ·
Los mantenedores suelen responder en 1 día