You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Problem with vRouter after Livepatching from 4.20.1.0 -> 4.20.2.0 #12211
The existing vRouter have been live patched from 4.20.1.0 to 4.20.2.0, everything shows up fine in the UI. The systemvm template used by the vRouter still shows 4.20.1.0, but the software version is correctly displayed with 4.20.2.0
Now, when i tried to start a vm, it failed with an error "Network is unavailable. Please contact administrator".
The cloudstack management servers log shows this
2025-12-09 11:40:35,705 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-92:[ctx-04bdbebb, job-717188]) (logid:8225e4c6) Unexpected exception while executing org.apache.cloudstack.api.command.admin.vm.StartVMCmdByAdmin com.cloud.utils.exception.CloudRuntimeException: Network is unavailable. Please contact administrator
...
...
...
Caused by: com.cloud.exception.ResourceUnavailableException: Resource [VirtualRouter:5014] is unreachable: Unable to send command. Router requires upgrade
after rebooting the vRouter everything started working again. Live patching seems to be broken here, i had a similar effect a few days ago as well. After a reboot, the vRouter also uses the newer systemvm template 4.20.2.0
we are on Ubuntu 24.04, our vRouters are redundant.
yes it worked after switching the template version. But, as i said, the newer template version was set by the update routines (i guess, i didnt check it). This breaks livepatching, the workaround is to switch the template version back to the previous one.
@sudo87
I think no code changes are needed.
just check if the change of minreq.sysvmtemplate.version setting is mentioned in the section of VR live-patch in cloudstack doc, update doc if not found.
Thank you @weizhouapache for your suggestion to update the document. We add note specifying what value should be set for config wrt VR template version in the following pr: minreq.sysvmtemplate.version
I have tried replicating the issue with 4.20.1 env and even after upgrade, live patch of VR worked successfully.
After live patch I am able to create instance without any issues.
Env with 4.20.1.0 -> upgraded to 4.20.2.0
Before upgrade:
Minreq sysvmtemplate version (minreq.sysvmtemplate.version): 4.10.0
VR
Software version: 4.20.1.0
Template version: 4.20.1
After upgrade
Minreq sysvmtemplate version (minreq.sysvmtemplate.version): 4.20.2
Before live Patch
Software version: 4.20.1.0
Template version: 4.20.1
After live Patch
Software version: 4.20.2.0
Template version: 4.20.1
Created few instances in the network associated to same VR. cc: @weizhouapache
Repeated the upgrade (4.20.1.0 -> 4.20.2.0) -> live patch -> Instance deployment with:
minreq.sysvmtemplate.version: 4.20.2.0
Didn't face any error either with Live patch or Instance deployment.
Activity
weizhouapache commentedon Dec 9, 2025
@jgotteswinter
can you check the global setting
minreq.sysvmtemplate.version?if it is
4.20.2.0, change it to4.20.1.0jgotteswinter commentedon Dec 9, 2025
yes its indeed 4.20.2.0, i guess this has been set by the update routines? I did not change it
DaanHoogland commentedon Dec 10, 2025
@jgotteswinter , has the workaround @weizhouapache gave worked for you?
abh1sar commentedon Dec 31, 2025
@jgotteswinter did it work?
jgotteswinter commentedon Dec 31, 2025
yes it worked after switching the template version. But, as i said, the newer template version was set by the update routines (i guess, i didnt check it). This breaks livepatching, the workaround is to switch the template version back to the previous one.
Thanks @weizhouapache for the hint
DaanHoogland commentedon Dec 31, 2025
@weizhouapache , I think we can close this as it won’t be an issue in 20.3 anymore, can we?
sudo87 commentedon Jan 12, 2026
@weizhouapache @DaanHoogland is there any fix we need to add to address this issue?
weizhouapache commentedon Jan 12, 2026
@sudo87
I think no code changes are needed.
just check if the change of
minreq.sysvmtemplate.versionsetting is mentioned in the section of VR live-patch in cloudstack doc, update doc if not found.sudo87 commentedon Jan 13, 2026
Thank you @weizhouapache for your suggestion to update the document. We add note specifying what value should be set for config wrt VR template version in the following pr:
minreq.sysvmtemplate.versionDoc pr: apache/cloudstack-documentation#618
sudo87 commentedon Jan 13, 2026
@weizhouapache has another suggestion to add an optional version check in live patch path, described as below:
sudo87 commentedon Jan 21, 2026
There is an existing version check, we need not to implement above.
cloudstack/server/src/main/java/com/cloud/network/router/NetworkHelperImpl.java
Line 200 in 1b0a036
It logs following message:
We can close this issue as document is updated and required version check is in place. @weizhouapache @DaanHoogland
sudo87 commentedon Jan 22, 2026
I have tried replicating the issue with 4.20.1 env and even after upgrade, live patch of VR worked successfully.
After live patch I am able to create instance without any issues.
Created few instances in the network associated to same VR. cc: @weizhouapache
Repeated the upgrade (4.20.1.0 -> 4.20.2.0) -> live patch -> Instance deployment with:
Didn't face any error either with Live patch or Instance deployment.
abh1sar commentedon Jan 23, 2026
Closing the issue as discussed above.