GitHub user weizhouapache added a comment to the discussion: Failures while 
assigning public IP via enableStaticNat

> Nexthop has invalid gateway.

it looks @akrasnov-drv uses redundant VRs, the error happens in the BACKUP VR 
which do not have default route as the public nic is DOWN.

```
mgmt.log:2025-02-03 16:32:46,485 DEBUG [c.c.a.t.Request] 
(qtp1438988851-11443:[ctx-5bff4776, ctx-109acf86, ctx-c08147b9]) 
(logid:d6760df6) Seq 9-1265230020314433522: Sending  { Cmd , MgmtId: 
108380656826451, via: 9(kvm23), Ver: v1, Flags: 100011, 
[{"com.cloud.agent.api.routing.VmDataCommand":{"vmIpAddress":"10.10.240.223","vmName":"tiny-test206","executeInSequence":"false","accessDetails":{"router.name":"r-1055-VM","router.guest.ip":"10.10.250.155","router.ip":"169.254.158.18","zone.network.type":"Advanced"},"wait":"0","bypassHostMaintenance":"false"}}]
 }
mgmt.log:2025-02-03 16:32:48,944 DEBUG [c.c.a.t.Request] 
(AgentManager-Handler-2:[]) (logid:) Seq 9-1265230020314433522: Processing:  { 
Ans: , MgmtId: 108380656826451, via: 9, Ver: v1, Flags: 10, 
[{"com.cloud.agent.api.routing.GroupAnswer":{"results":["null - success: 
Creating file in VR, with ip: 169.254.158.18, file: 
vm_metadata.json.aff5bcbb-6aa2-44a8-bd2d-8100c26a1095","null - success: Invalid 
unit name "cloud-password-server@10.10.240.1,10.10.250.155" escaped as 
"cloud-password-server@10.10.240.1\x2c10.10.250.155" (maybe you should use 
systemd-escape?).
mgmt.log:2025-02-03 16:32:48,955 DEBUG [c.c.a.t.Request] 
(qtp1438988851-11443:[ctx-5bff4776, ctx-109acf86, ctx-c08147b9]) 
(logid:d6760df6) Seq 1-1529253548469028851: Sending  { Cmd , MgmtId: 
108380656826451, via: 1(h239), Ver: v1, Flags: 100011, 
[{"com.cloud.agent.api.routing.VmDataCommand":{"vmIpAddress":"10.10.240.223","vmName":"tiny-test206","executeInSequence":"false","accessDetails":{"router.name":"r-1056-VM","router.guest.ip":"10.10.248.182","router.ip":"169.254.100.174","zone.network.type":"Advanced"},"wait":"0","bypassHostMaintenance":"false"}}]
 }
mgmt.log:2025-02-03 16:32:50,667 DEBUG [c.c.a.t.Request] 
(AgentManager-Handler-4:[]) (logid:) Seq 1-1529253548469028851: Processing:  { 
Ans: , MgmtId: 108380656826451, via: 1, Ver: v1, Flags: 10, 
[{"com.cloud.agent.api.routing.GroupAnswer":{"results":["null - success: 
Creating file in VR, with ip: 169.254.100.174, file: 
vm_metadata.json.f026f90b-9aa8-4e05-ae39-21c2b3113891","null - success: Error: 
Nexthop has invalid gateway.
mgmt.log:Error: Nexthop has invalid gateway.
mgmt.log:Error: Nexthop has invalid gateway.
mgmt.log:Error: Nexthop has invalid gateway.
mgmt.log:Error: Nexthop has invalid gateway.
mgmt.log:Error: Nexthop has invalid gateway.
mgmt.log:Error: Nexthop has invalid gateway.
mgmt.log:Error: Nexthop has invalid gateway.
```



GitHub link: 
https://github.com/apache/cloudstack/discussions/10512#discussioncomment-12405014

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org

Reply via email to