akrasnov-drv commented on issue #11607:
URL: https://github.com/apache/cloudstack/issues/11607#issuecomment-3280480470
You mean that IP is assigned and should be marked as allocated the first
time the router is created, and then just reused?
The only errors I see in the log at that time:
```
2025-08-20 14:17:28,444 DEBUG [c.c.d.DeploymentPlanningManagerImpl]
(API-Job-Executor-1:[ctx-e9b8eac1, job-75131, ctx-29b5c96b]) (logid:f4f64507)
Trying to deploy VM [error decoding VM instance
{"id":23456,"instanceName":"i-2-23456-VM","state":"Stopped","type":"User","uuid":"3ce19dd4-ddd5-43aa-9de2-b02148608e5d"}]
and details: Plan
[{"_dcId":1,"_podId":1,"_clusterId":1,"_hostId":15,"_recreateDisks":false,"preferredHostIds":[],"migrationPlan":false,"hostPriorities":{}}];
avoid list [{}] and planner: [].
2025-08-20 14:17:28,449 DEBUG [c.c.d.DeploymentPlanningManagerImpl]
(API-Job-Executor-1:[ctx-e9b8eac1, job-75131, ctx-29b5c96b]) (logid:f4f64507)
Adding pods [[]], clusters [[]] and hosts [[]] to the avoid list in the deploy
process of user VM [error decoding VM instance
{"id":23456,"instanceName":"i-2-23456-VM","state":"Stopped","type":"User","uuid":"3ce19dd4-ddd5-43aa-9de2-b02148608e5d"}],
because this VM is not explicitly dedicated to these components.
2025-08-20 14:17:29,563 DEBUG [c.c.v.ClusteredVirtualMachineManagerImpl]
(Work-Job-Executor-3:[ctx-828df247, job-75131/job-75132, ctx-8c19ba15])
(logid:f4f64507) Trying to deploy VM [error decoding VM instance
{"id":23456,"instanceName":"i-2-23456-VM","state":"Starting","type":"User","uuid":"3ce19dd4-ddd5-43aa-9de2-b02148608e5d"}]
and details: Plan
[{"_dcId":1,"_podId":1,"_clusterId":1,"_hostId":15,"_recreateDisks":false,"preferredHostIds":[],"migrationPlan":false,"hostPriorities":{}}];
avoid list [] and planner: [].
2025-08-20 14:17:29,566 DEBUG [c.c.d.DeploymentPlanningManagerImpl]
(Work-Job-Executor-3:[ctx-828df247, job-75131/job-75132, ctx-8c19ba15])
(logid:f4f64507) Trying to deploy VM [error decoding VM instance
{"id":23456,"instanceName":"i-2-23456-VM","state":"Starting","type":"User","uuid":"3ce19dd4-ddd5-43aa-9de2-b02148608e5d"}]
and details: Plan [error decoding
{"_clusterId":1,"_dcId":1,"_physicalNetworkId":null,"_podId":1,"_poolId":null,"migrationPlan":false}];
avoid list [{}] and planner: [].
2025-08-20 14:17:29,570 DEBUG [c.c.d.DeploymentPlanningManagerImpl]
(Work-Job-Executor-3:[ctx-828df247, job-75131/job-75132, ctx-8c19ba15])
(logid:f4f64507) Adding pods [[]], clusters [[]] and hosts [[]] to the avoid
list in the deploy process of user VM [error decoding VM instance
{"id":23456,"instanceName":"i-2-23456-VM","state":"Starting","type":"User","uuid":"3ce19dd4-ddd5-43aa-9de2-b02148608e5d"}],
because this VM is not explicitly dedicated to these components.
2025-08-20 14:17:29,731 DEBUG [c.c.d.DeploymentPlanningManagerImpl]
(Work-Job-Executor-3:[ctx-828df247, job-75131/job-75132, ctx-8c19ba15])
(logid:f4f64507) Trying to deploy VM [error decoding VM instance
{"id":23457,"instanceName":"r-23457-VM","state":"Starting","type":"DomainRouter","uuid":"7c4316e2-4709-4264-b8ac-d73f2c6b6d91"}]
and details: Plan [error decoding
{"_clusterId":null,"_dcId":1,"_physicalNetworkId":null,"_podId":1,"_poolId":null,"migrationPlan":false}];
avoid list [{}] and planner: [].
2025-08-20 14:17:29,738 DEBUG [c.c.d.DeploymentPlanningManagerImpl]
(Work-Job-Executor-3:[ctx-828df247, job-75131/job-75132, ctx-8c19ba15])
(logid:f4f64507) Adding pods [[]], clusters [[]] and hosts [[]] to the avoid
list in the deploy process of VR VM [error decoding VM instance
{"id":23457,"instanceName":"r-23457-VM","state":"Starting","type":"DomainRouter","uuid":"7c4316e2-4709-4264-b8ac-d73f2c6b6d91"}],
because this VM is not dedicated to this components.
```
here are more logs related to the event, let me know if more logs are
required
```
2025-08-20 14:17:28,265 DEBUG [c.c.n.NetworkModelImpl]
(qtp1404565079-326:[ctx-c09e1680, ctx-d968c29b, ctx-5de2269d]) (logid:b186334d)
Service SecurityGroup is not supported in the network Network {"id": 204,
"name": "defaultGuestNetwork", "uuid": "01986b9a-e178-4a8d-ac9b-ebbefbef48b8",
"networkofferingid": 8}
2025-08-20 14:17:28,284 DEBUG [c.c.n.NetworkModelImpl]
(qtp1404565079-326:[ctx-c09e1680, ctx-d968c29b, ctx-5de2269d]) (logid:b186334d)
Service SecurityGroup is not supported in the network Network {"id": 204,
"name": "defaultGuestNetwork", "uuid": "01986b9a-e178-4a8d-ac9b-ebbefbef48b8",
"networkofferingid": 8}
2025-08-20 14:17:28,337 DEBUG [o.a.c.e.o.NetworkOrchestrator]
(qtp1404565079-326:[ctx-c09e1680, ctx-d968c29b, ctx-5de2269d]) (logid:b186334d)
Allocating nic for vm VM instance
{"id":23456,"instanceName":"i-2-23456-VM","state":"Stopped","type":"User","uuid":"3ce19dd4-ddd5-43aa-9de2-b02148608e5d"}
in network Network {"id": 204, "name": "defaultGuestNetwork", "uuid":
"01986b9a-e178-4a8d-ac9b-ebbefbef48b8", "networkofferingid": 8} with requested
profile NicProfile
{"broadcastUri":null,"deviceId":null,"iPv4Address":null,"id":0,"reservationId":null,"uuid":null,"vmId":0}
2025-08-20 14:17:28,344 DEBUG [c.c.n.NetworkModelImpl]
(qtp1404565079-326:[ctx-c09e1680, ctx-d968c29b, ctx-5de2269d]) (logid:b186334d)
Service SecurityGroup is not supported in the network Network {"id": 204,
"name": "defaultGuestNetwork", "uuid": "01986b9a-e178-4a8d-ac9b-ebbefbef48b8",
"networkofferingid": 8}
2025-08-20 14:17:28,391 DEBUG [c.c.n.NetworkModelImpl]
(qtp1404565079-326:[ctx-c09e1680, ctx-d968c29b, ctx-5de2269d]) (logid:b186334d)
Service SecurityGroup is not supported in the network Network {"id": 204,
"name": "defaultGuestNetwork", "uuid": "01986b9a-e178-4a8d-ac9b-ebbefbef48b8",
"networkofferingid": 8}
2025-08-20 14:17:28,393 DEBUG [c.c.n.NetworkModelImpl]
(qtp1404565079-326:[ctx-c09e1680, ctx-d968c29b, ctx-5de2269d]) (logid:b186334d)
Service SecurityGroup is not supported in the network Network {"id": 204,
"name": "defaultGuestNetwork", "uuid": "01986b9a-e178-4a8d-ac9b-ebbefbef48b8",
"networkofferingid": 8}
2025-08-20 14:17:28,430 DEBUG [c.c.n.NetworkModelImpl]
(API-Job-Executor-1:[ctx-e9b8eac1, job-75131, ctx-29b5c96b]) (logid:f4f64507)
Service SecurityGroup is not supported in the network Network {"id": 204,
"name": "defaultGuestNetwork", "uuid": "01986b9a-e178-4a8d-ac9b-ebbefbef48b8",
"networkofferingid": 8}
2025-08-20 14:17:28,432 DEBUG [c.c.n.NetworkModelImpl]
(API-Job-Executor-1:[ctx-e9b8eac1, job-75131, ctx-29b5c96b]) (logid:f4f64507)
Service SecurityGroup is not supported in the network Network {"id": 204,
"name": "defaultGuestNetwork", "uuid": "01986b9a-e178-4a8d-ac9b-ebbefbef48b8",
"networkofferingid": 8}
2025-08-20 14:17:29,613 DEBUG [o.a.c.e.o.NetworkOrchestrator]
(Work-Job-Executor-3:[ctx-828df247, job-75131/job-75132, ctx-8c19ba15])
(logid:f4f64507) Network Network {"id": 204, "name": "defaultGuestNetwork",
"uuid": "01986b9a-e178-4a8d-ac9b-ebbefbef48b8", "networkofferingid": 8} is
already implemented
2025-08-20 14:17:29,619 DEBUG [c.c.n.NetworkModelImpl]
(Work-Job-Executor-3:[ctx-828df247, job-75131/job-75132, ctx-8c19ba15])
(logid:f4f64507) Service SecurityGroup is not supported in the network Network
{"id": 204, "name": "defaultGuestNetwork", "uuid":
"01986b9a-e178-4a8d-ac9b-ebbefbef48b8", "networkofferingid": 8}
2025-08-20 14:17:29,639 DEBUG [o.a.c.e.o.NetworkOrchestrator]
(Work-Job-Executor-3:[ctx-828df247, job-75131/job-75132, ctx-8c19ba15])
(logid:f4f64507) Changing active number of nics for network id=Network {"id":
204, "name": "defaultGuestNetwork", "uuid":
"01986b9a-e178-4a8d-ac9b-ebbefbef48b8", "networkofferingid": 8} on 1
2025-08-20 14:17:29,676 DEBUG [c.c.n.r.NetworkHelperImpl]
(Work-Job-Executor-3:[ctx-828df247, job-75131/job-75132, ctx-8c19ba15])
(logid:f4f64507) Adding nic for Virtual Router in Guest network Network {"id":
204, "name": "defaultGuestNetwork", "uuid":
"01986b9a-e178-4a8d-ac9b-ebbefbef48b8", "networkofferingid": 8}
2025-08-20 14:17:29,686 DEBUG [o.a.c.e.o.NetworkOrchestrator]
(Work-Job-Executor-3:[ctx-828df247, job-75131/job-75132, ctx-8c19ba15])
(logid:f4f64507) Allocating nic for vm VM instance
{"id":23457,"instanceName":"r-23457-VM","state":"Stopped","type":"DomainRouter","uuid":"7c4316e2-4709-4264-b8ac-d73f2c6b6d91"}
in network Network {"id": 204, "name": "defaultGuestNetwork", "uuid":
"01986b9a-e178-4a8d-ac9b-ebbefbef48b8", "networkofferingid": 8} with requested
profile NicProfile
{"broadcastUri":null,"deviceId":null,"iPv4Address":null,"id":0,"reservationId":null,"uuid":null,"vmId":0}
2025-08-20 14:17:29,692 DEBUG [c.c.n.NetworkModelImpl]
(Work-Job-Executor-3:[ctx-828df247, job-75131/job-75132, ctx-8c19ba15])
(logid:f4f64507) Service SecurityGroup is not supported in the network Network
{"id": 204, "name": "defaultGuestNetwork", "uuid":
"01986b9a-e178-4a8d-ac9b-ebbefbef48b8", "networkofferingid": 8}
2025-08-20 14:17:29,722 DEBUG [o.a.c.n.r.d.RouterDeploymentDefinition]
(Work-Job-Executor-3:[ctx-828df247, job-75131/job-75132, ctx-8c19ba15])
(logid:f4f64507) Lock is released for network [id: 204] (Network {"id": 204,
"name": "defaultGuestNetwork", "uuid": "01986b9a-e178-4a8d-ac9b-ebbefbef48b8",
"networkofferingid": 8}) as a part of router startup in
Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))]
: Dest[Zone(1)-Pod(1)-Cluster(1)-Host(15)-Storage(Volume(23456|ROOT-->Pool(53))]
2025-08-20 14:17:29,795 DEBUG [c.c.n.NetworkModelImpl]
(Work-Job-Executor-3:[ctx-828df247, job-75131/job-75132, ctx-8c19ba15])
(logid:f4f64507) Service SecurityGroup is not supported in the network Network
{"id": 204, "name": "defaultGuestNetwork", "uuid":
"01986b9a-e178-4a8d-ac9b-ebbefbef48b8", "networkofferingid": 8}
2025-08-20 14:17:29,807 DEBUG [c.c.n.g.DirectPodBasedNetworkGuru]
(Work-Job-Executor-3:[ctx-828df247, job-75131/job-75132, ctx-8c19ba15])
(logid:f4f64507) Saving placeholder nic with ip4 address 10.10.126.13 for the
network Network {"id": 204, "name": "defaultGuestNetwork", "uuid":
"01986b9a-e178-4a8d-ac9b-ebbefbef48b8", "networkofferingid": 8}
2025-08-20 14:17:29,815 DEBUG [c.c.n.NetworkModelImpl]
(Work-Job-Executor-3:[ctx-828df247, job-75131/job-75132, ctx-8c19ba15])
(logid:f4f64507) Service SecurityGroup is not supported in the network Network
{"id": 204, "name": "defaultGuestNetwork", "uuid":
"01986b9a-e178-4a8d-ac9b-ebbefbef48b8", "networkofferingid": 8}
2025-08-20 14:17:36,187 DEBUG [c.c.n.NetworkModelImpl]
(Work-Job-Executor-3:[ctx-828df247, job-75131/job-75132, ctx-8c19ba15])
(logid:f4f64507) Service SecurityGroup is not supported in the network Network
{"id": 204, "name": "defaultGuestNetwork", "uuid":
"01986b9a-e178-4a8d-ac9b-ebbefbef48b8", "networkofferingid": 8}
2025-08-20 14:17:36,242 DEBUG [c.c.a.t.Request]
(Work-Job-Executor-3:[ctx-828df247, job-75131/job-75132, ctx-8c19ba15])
(logid:f4f64507) Seq 15-753789987631136791: Sending { Cmd , MgmtId:
179113803344805, via: 15(kvm130), Ver: v1, Flags: 100011,
[{"com.cloud.agent.api.StartCommand":{"vm":{"id":"23457","name":"r-23457-VM","state":"Starting","type":"DomainRouter","cpus":"1","minSpeed":"500","maxSpeed":"500","minRam":"(512.00
MB) 536870912","maxRam":"(512.00 MB) 536870912","arch":"x86_64","os":"Debian
GNU/Linux 5.0 (64-bit)","platformEmulator":"Debian GNU/Linux 5","bootArgs":"
template=domP name=r-23457-VM
authorized_key=ZWNkc2Etc2hhMi1uaXN0cDI1NiBBQUFBRTJWalpITmhMWE5vWVRJdGJtbHpkSEF5TlRZQUFBQUlibWx6ZEhBeU5UWUFBQUJCQkJoa3NUUW5WbGkzUlNqREQxb3pGMFVtK2QzMDIwVytZdG0rMW1CUmNLWTNSMnFqMlVlSmNJVDcrT3BDRVlHeHRZOEtJZmVaViszbUtuZC8xdEh3SEZ3PSBjbG91ZEBoMjM5Cg==
eth0ip=10.10.126.13 eth0mask=255.255.240.0 gateway=10.10.127.254
privateMtu=1500 domain=cs1cloud.internal cidrsize=20 dhcprange=10.10.1
12.1 eth1ip=169.254.91.86 eth1mask=255.255.0.0 type=dhcpsrvr
disable_rp_filter=true dns1=100.64.15.2 dns2=100.64.15.3
baremetalnotificationsecuritykey=5yfMmhfgd3hTEA6zaOKiUZmaXWrN2D_Er08kFjgXjlM-2dziSG4XNPiN53SE57cC73H1VSlTLBAlkFtHVtXVFg
baremetalnotificationapikey=dcg3MUyahz4S8GK8ZRHI0KTetnvLyiqC5H0BPo0h9PPtRJjwnu4ReNdrk3xe8OZ7rujKkAwdknvXzLcFfk-U_w
host=10.10.67.1 port=8080
logrotatefrequency=*:00:00","enableHA":"true","limitCpuUse":"false","enableDynamicallyScaleVm":"false","params":{},"uuid":"7c4316e2-4709-4264-b8ac-d73f2c6b6d91","enterHardwareSetup":"false","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"2868a901-ac4d-4de2-82c9-b413d9d82a4f","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"4acb163a-f70c-3d9c-baa7-ea64930f6c94","name":"h239-nfs1","id":"61","poolType":"NetworkFilesystem","host":"10.10.67.1","path":"/var/lib/libvirt/images/cloudstack/storage1","port":"2049","url":"NetworkFilesystem://10.10
.67.1/var/lib/libvirt/images/cloudstack/storage1/?ROLE=Primary&STOREUUID=4acb163a-f70c-3d9c-baa7-ea64930f6c94","isManaged":"false"}},"name":"ROOT-23457","size":"(4.88
GB)
5242880000","path":"2868a901-ac4d-4de2-82c9-b413d9d82a4f","volumeId":"23457","vmName":"r-23457-VM","accountId":"1","format":"QCOW2","provisioningType":"THIN","poolId":"61","id":"23457","deviceId":"0","bytesReadRate":"(0
bytes) 0","bytesWriteRate":"(0 bytes) 0","iopsReadRate":"(0 bytes)
0","iopsWriteRate":"(0 bytes)
0","hypervisorType":"KVM","directDownload":"false","deployAsIs":"false","followRedirects":"false"}},"diskSeq":"0","path":"2868a901-ac4d-4de2-82c9-b413d9d82a4f","type":"ROOT","_details":{"storageHost":"10.10.67.1","managed":"false","storagePort":"2049","storage.pool.disk.wait":"60","volumeSize":"(4.88
GB)
5242880000"}}],"nics":[{"deviceId":"0","networkRateMbps":"65535","defaultNic":"true","pxeDisable":"true","nicUuid":"0f3f95e2-46fd-4cd3-8d20-14d6a15166a4","details":{"MacAddressChanges":"true","MacLearnin
g":"false","PromiscuousMode":"false","ForgedTransmits":"true"},"dpdkEnabled":"false","mtu":"1500","networkId":"204","networkSegmentName":"D1-A1-Z1-S204","uuid":"01986b9a-e178-4a8d-ac9b-ebbefbef48b8","ip":"10.10.126.13","netmask":"255.255.240.0","gateway":"10.10.127.254","mac":"1e:00:aa:00:00:7d","dns1":"100.64.15.2","dns2":"100.64.15.3","broadcastType":"Native","type":"Guest","broadcastUri":"vlan://untagged","isSecurityGroupEnabled":"false"},{"deviceId":"1","networkRateMbps":"-1","defaultNic":"false","pxeDisable":"true","nicUuid":"96b8da56-1f73-4699-addd-c804eff3291e","details":{"MacAddressChanges":"true","MacLearning":"false","PromiscuousMode":"false","ForgedTransmits":"true"},"dpdkEnabled":"false","networkId":"202","networkSegmentName":"D1-A1-Z1-S202","uuid":"f109d794-d960-464e-86fa-43527f204f2d","ip":"169.254.91.86","netmask":"255.255.0.0","gateway":"169.254.0.1","mac":"0e:00:a9:fe:5b:56","broadcastType":"LinkLocal","type":"Control","isSecurityGroupEnabled":"false"}],"vcpuMaxLimi
t":"1","configDriveLocation":"SECONDARY","guestOsDetails":{},"extraConfig":{},"networkIdToNetworkNameMap":{},"metadataManufacturer":"Apache
Software Foundation","metadataProductName":"CloudStack KVM
Hypervisor"},"hostIp":"10.10.67.2","executeInSequence":"false","wait":"0","bypassHostMaintenance":"false"}},{"com.cloud.agent.api.check.CheckSshCommand":{"ip":"169.254.91.86","port":"3922","interval":"6","retries":"100","name":"r-23457-VM","wait":"0","bypassHostMaintenance":"false"}},{"com.cloud.agent.api.GetDomRVersionCmd":{"accessDetails":{"router.name":"r-23457-VM","router.ip":"169.254.91.86"},"wait":"0","bypassHostMaintenance":"false"}},{"com.cloud.agent.api.NetworkUsageCommand":{"privateIP":"169.254.91.86","domRName":"r-23457-VM","option":"create","forVpc":"false","wait":"0","bypassHostMaintenance":"false"}},{"com.cloud.agent.api.routing.AggregationControlCommand":{"action":"Start","accessDetails":{"router.name":"r-23457-VM","router.ip":"169.254.91.86","router.guest.ip":"10.10.126.1
3"},"wait":"0","bypassHostMaintenance":"false"}},{"com.cloud.agent.api.routing.SetMonitorServiceCommand":{"services":[{"id":"0","service":"dhcp","processname":"dnsmasq","serviceName":"dnsmasq","servicePath":"/var/run/dnsmasq/dnsmasq.pid","pidFile":"/var/run/dnsmasq/dnsmasq.pid","isDefault":"false"},{"id":"0","service":"ssh","processname":"sshd","serviceName":"ssh","servicePath":"/var/run/sshd.pid","pidFile":"/var/run/sshd.pid","isDefault":"true"},{"id":"0","service":"webserver","processname":"apache2","serviceName":"apache2","servicePath":"/var/run/apache2/apache2.pid","pidFile":"/var/run/apache2/apache2.pid","isDefault":"true"}],"healthChecksConfig":{"gateways":"gatewaysIps=10.10.127.254
169.254.0.1
","portForwarding":"","systemThresholds":"minDiskNeeded=100.0,maxCpuUsage=100.0,maxMemoryUsage=100.0;","haproxyData":"","virtualMachines":""},"reconfigureAfterUpdate":"false","deleteFromProcessedCache":"false","accessDetails":{"router.health.checks.enabled":"true","router.guest.ip":"10.
10.126.13","router.ip":"169.254.91.86","router.name":"r-23457-VM","router.health.checks.advanced.interval":"10","router.health.checks.basic.interval":"3","router.health.checks.excluded":""},"wait":"0","bypassHostMaintenance":"false"}},{"com.cloud.agent.api.routing.AggregationControlCommand":{"action":"Finish","accessDetails":{"router.name":"r-23457-VM","router.ip":"169.254.91.86","router.guest.ip":"10.10.126.13"},"wait":"0","bypassHostMaintenance":"false"}}]
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]