-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Routed: fix create network exception when auto-allocation is disabled #11624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Routed: fix create network exception when auto-allocation is disabled #11624
Conversation
… for regular users
…xception which gives vague message to regular users
|
@blueorangutan package |
|
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #11624 +/- ##
=========================================
Coverage 16.17% 16.17%
- Complexity 13297 13299 +2
=========================================
Files 5656 5656
Lines 498136 498147 +11
Branches 60432 60434 +2
=========================================
+ Hits 80584 80593 +9
- Misses 408584 408586 +2
Partials 8968 8968
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 14979 |
|
@blueorangutan test |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-14310)
|
DaanHoogland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm
|
@blueorangutan package |
|
@rosi-shapeblue a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✖️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 15441 |
|
@blueorangutan package |
|
@rosi-shapeblue a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15444 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Verification passed.
Verified routed network creation with and without CIDR under different auto-allocation states. Confirmed correct behavior after the fix - manual CIDR works when auto-allocation is disabled, and subnet is auto-assigned when enabled. Tested via API and UI (CIDR not shown in UI but network creation succeeded).
Performed Tests
1. Create IPV4 subnet for zone
(localcloud) 🐱 > createIpv4SubnetForZone zoneid=cc565e94-b5cf-4c4a-8d22-6aeaf5cbe538 subnet=10.10.0.0/20
{
"zoneipv4subnet": {
"created": "2025-10-14T09:40:38+0000",
"id": "0cf41eaf-1139-4194-98bc-3ed54da87a6f",
"subnet": "10.10.0.0/20",
"zoneid": "cc565e94-b5cf-4c4a-8d22-6aeaf5cbe538",
"zonename": "ref-trl-9680-k-Mol8-rositsa-kyuchukova"
}
}2. Create a routed network offering
(localcloud) 🐱 > create networkoffering name="Routed-Test" displaytext="Routed-Test" guestiptype=Isolated supportedservices=Dhcp,Dns,UserData,SourceNat serviceproviderlist[0].service=Dhcp serviceproviderlist[0].provider=VirtualRouter serviceproviderlist[1].service=Dns serviceproviderlist[1].provider=VirtualRouter serviceproviderlist[2].service=UserData serviceproviderlist[2].provider=VirtualRouter serviceproviderlist[3].service=SourceNat serviceproviderlist[3].provider=VirtualRouter traffictype=GUEST availability=Optional iptype=Routed
{
"networkoffering": {
"availability": "Optional",
"conservemode": true,
"created": "2025-10-14T09:41:52+0000",
"displaytext": "Routed-Test",
"egressdefaultpolicy": true,
"fornsx": false,
"fortungsten": false,
"forvpc": false,
"guestiptype": "Isolated",
"hasannotations": false,
"id": "41c8a8db-2074-4648-9b1b-b221211930ab",
"internetprotocol": "IPv4",
"isdefault": false,
"ispersistent": false,
"name": "Routed-Test",
"networkrate": 200,
"service": [
{
"name": "Dhcp",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"name": "UserData",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"name": "Dns",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [
{
"canchooseservicecapability": false,
"name": "SupportedSourceNatTypes",
"value": "peraccount"
},
{
"canchooseservicecapability": false,
"name": "RedundantRouter",
"value": "false"
}
],
"name": "SourceNat",
"provider": [
{
"name": "VirtualRouter"
}
]
}
],
"serviceofferingid": "3abe7dfb-5ead-48f8-be27-b4b06f61200a",
"specifyasnumber": false,
"specifyipranges": false,
"specifyvlan": false,
"state": "Disabled",
"supportsinternallb": false,
"supportspublicaccess": false,
"supportsstrechedl2subnet": false,
"traffictype": "Guest"
}
}3. Enable the routed network offering
(localcloud) 🐱 > list networkofferings id=41c8a8db-2074-4648-9b1b-b221211930ab filter=state
{
"count": 1,
"networkoffering": [
{
"state": "Enabled"
}
]
}4. Add a Guest IPv4 subnet /24
(localcloud) 🐱 > createIpv4SubnetForGuestNetwork zoneid=cc565e94-b5cf-4c4a-8d22-6aeaf5cbe538 subnet=10.10.1.0/24 parentid=0cf41eaf-1139-4194-98bc-3ed54da87a6f
{
"ipv4subnetforguestnetwork": {
"created": "2025-10-14T09:44:55+0000",
"id": "0d30421c-2c4e-4436-a1de-a7e130aa68f6",
"parentid": "0cf41eaf-1139-4194-98bc-3ed54da87a6f",
"parentsubnet": "10.10.0.0/20",
"state": "Free",
"subnet": "10.10.1.0/24",
"zoneid": "cc565e94-b5cf-4c4a-8d22-6aeaf5cbe538",
"zonename": "ref-trl-9680-k-Mol8-rositsa-kyuchukova"
}
}
(localcloud) 🐱 > 5. Disable auto-allocation
(localcloud) 🐱 > update configuration name=routed.ipv4.network.cidr.auto.allocation.enabled value=false
{
"configuration": {
"category": "Network",
"component": "RoutedIpv4Manager",
"defaultvalue": "true",
"description": "Indicates whether the auto-allocation of network CIDR for routed network is enabled or not.",
"displaytext": "Routed ipv4 network cidr auto allocation enabled",
"group": "Network",
"isdynamic": true,
"name": "routed.ipv4.network.cidr.auto.allocation.enabled",
"subgroup": "Network",
"type": "Boolean",
"value": "false"
}
}6. Try creating a Routed network with manual CIDR:
(localcloud) 🐱 > create network name="Routed-Network-Manual" displaytext="Routed-Network-Manual" networkofferingid=41c8a8db-2074-4648-9b1b-b221211930ab zoneid=cc565e94-b5cf-4c4a-8d22-6aeaf5cbe538 subnet=10.10.1.0/24
{
"network": {
"account": "admin",
"acltype": "Account",
"broadcastdomaintype": "Vlan",
"canusefordeploy": true,
"cidr": "10.1.1.0/24",
"created": "2025-10-14T09:46:56+0000",
"details": {},
"displaynetwork": true,
"displaytext": "Routed-Network-Manual",
"dns1": "10.0.32.1",
"dns2": "8.8.8.8",
"domain": "ROOT",
"domainid": "39ccd0af-a8ba-11f0-86a0-1e00f00003ce",
"domainpath": "/",
"egressdefaultpolicy": true,
"gateway": "10.1.1.1",
"hasannotations": false,
"id": "fd737c5d-2a15-48ce-8d20-fd9ca30798e4",
"ispersistent": false,
"issystem": false,
"name": "Routed-Network-Manual",
"netmask": "255.255.255.0",
"networkdomain": "cs2cloud.internal",
"networkofferingavailability": "Optional",
"networkofferingconservemode": true,
"networkofferingdisplaytext": "Routed-Test",
"networkofferingid": "41c8a8db-2074-4648-9b1b-b221211930ab",
"networkofferingname": "Routed-Test",
"physicalnetworkid": "9e41d356-ee2d-402b-afcb-a5742a2894e3",
"privatemtu": 1500,
"publicmtu": 1500,
"receivedbytes": 0,
"redundantrouter": false,
"related": "fd737c5d-2a15-48ce-8d20-fd9ca30798e4",
"restartrequired": false,
"sentbytes": 0,
"service": [
{
"capability": [
{
"canchooseservicecapability": false,
"name": "DhcpAccrossMultipleSubnets",
"value": "true"
}
],
"name": "Dhcp",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [],
"name": "UserData",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [
{
"canchooseservicecapability": false,
"name": "AllowDnsSuffixModification",
"value": "true"
}
],
"name": "Dns",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [
{
"canchooseservicecapability": true,
"name": "SupportedSourceNatTypes",
"value": "peraccount"
},
{
"canchooseservicecapability": true,
"name": "RedundantRouter",
"value": "false"
}
],
"name": "SourceNat",
"provider": [
{
"name": "VirtualRouter"
}
]
}
],
"specifyipranges": false,
"specifyvlan": false,
"state": "Allocated",
"strechedl2subnet": false,
"supportsvmautoscaling": false,
"tags": [],
"traffictype": "Guest",
"type": "Isolated",
"zoneid": "cc565e94-b5cf-4c4a-8d22-6aeaf5cbe538",
"zonename": "ref-trl-9680-k-Mol8-rositsa-kyuchukova"
}
}7. Try creating the same, without specifying the CIDR
(localcloud) 🐱 > create network name="Routed-Network-NoCIDR" displaytext="Routed-Network-NoCIDR" networkofferingid=41c8a8db-2074-4648-9b1b-b221211930ab zoneid=cc565e94-b5cf-4c4a-8d22-6aeaf5cbe538
{
"network": {
"account": "admin",
"acltype": "Account",
"broadcastdomaintype": "Vlan",
"canusefordeploy": true,
"cidr": "10.1.1.0/24",
"created": "2025-10-14T09:47:28+0000",
"details": {},
"displaynetwork": true,
"displaytext": "Routed-Network-NoCIDR",
"dns1": "10.0.32.1",
"dns2": "8.8.8.8",
"domain": "ROOT",
"domainid": "39ccd0af-a8ba-11f0-86a0-1e00f00003ce",
"domainpath": "/",
"egressdefaultpolicy": true,
"gateway": "10.1.1.1",
"hasannotations": false,
"id": "5a71909a-4bb6-447b-8f30-edfb2eeaeb40",
"ispersistent": false,
"issystem": false,
"name": "Routed-Network-NoCIDR",
"netmask": "255.255.255.0",
"networkdomain": "cs2cloud.internal",
"networkofferingavailability": "Optional",
"networkofferingconservemode": true,
"networkofferingdisplaytext": "Routed-Test",
"networkofferingid": "41c8a8db-2074-4648-9b1b-b221211930ab",
"networkofferingname": "Routed-Test",
"physicalnetworkid": "9e41d356-ee2d-402b-afcb-a5742a2894e3",
"privatemtu": 1500,
"publicmtu": 1500,
"receivedbytes": 0,
"redundantrouter": false,
"related": "5a71909a-4bb6-447b-8f30-edfb2eeaeb40",
"restartrequired": false,
"sentbytes": 0,
"service": [
{
"capability": [
{
"canchooseservicecapability": false,
"name": "DhcpAccrossMultipleSubnets",
"value": "true"
}
],
"name": "Dhcp",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [],
"name": "UserData",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [
{
"canchooseservicecapability": false,
"name": "AllowDnsSuffixModification",
"value": "true"
}
],
"name": "Dns",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [
{
"canchooseservicecapability": true,
"name": "SupportedSourceNatTypes",
"value": "peraccount"
},
{
"canchooseservicecapability": true,
"name": "RedundantRouter",
"value": "false"
}
],
"name": "SourceNat",
"provider": [
{
"name": "VirtualRouter"
}
]
}
],
"specifyipranges": false,
"specifyvlan": false,
"state": "Allocated",
"strechedl2subnet": false,
"supportsvmautoscaling": false,
"tags": [],
"traffictype": "Guest",
"type": "Isolated",
"zoneid": "cc565e94-b5cf-4c4a-8d22-6aeaf5cbe538",
"zonename": "ref-trl-9680-k-Mol8-rositsa-kyuchukova"
}
}8. Re-enable auto-allocation
(localcloud) 🐱 > update configuration name=routed.ipv4.network.cidr.auto.allocation.enabled value=true
{
"configuration": {
"category": "Network",
"component": "RoutedIpv4Manager",
"defaultvalue": "true",
"description": "Indicates whether the auto-allocation of network CIDR for routed network is enabled or not.",
"displaytext": "Routed ipv4 network cidr auto allocation enabled",
"group": "Network",
"isdynamic": true,
"name": "routed.ipv4.network.cidr.auto.allocation.enabled",
"subgroup": "Network",
"type": "Boolean",
"value": "true"
}
}
```
9. Create a new Routed network without specifying subnet
(localcloud) 🐱 > create network name="Routed-Network-Auto" displaytext="Routed-Network-Auto" networkofferingid=41c8a8db-2074-4648-9b1b-b221211930ab zoneid=cc565e94-b5cf-4c4a-8d22-6aeaf5cbe538
{
"network": {
"account": "admin",
"acltype": "Account",
"broadcastdomaintype": "Vlan",
"canusefordeploy": true,
"cidr": "10.1.1.0/24",
"created": "2025-10-14T10:47:00+0000",
"details": {},
"displaynetwork": true,
"displaytext": "Routed-Network-Auto",
"dns1": "10.0.32.1",
"dns2": "8.8.8.8",
"domain": "ROOT",
"domainid": "39ccd0af-a8ba-11f0-86a0-1e00f00003ce",
"domainpath": "/",
"egressdefaultpolicy": true,
"gateway": "10.1.1.1",
"hasannotations": false,
"id": "3d1e6c9d-11e6-4ca2-8421-25d00b323e25",
"ispersistent": false,
"issystem": false,
"name": "Routed-Network-Auto",
"netmask": "255.255.255.0",
"networkdomain": "cs2cloud.internal",
"networkofferingavailability": "Optional",
"networkofferingconservemode": true,
"networkofferingdisplaytext": "Routed-Test",
"networkofferingid": "41c8a8db-2074-4648-9b1b-b221211930ab",
"networkofferingname": "Routed-Test",
"physicalnetworkid": "9e41d356-ee2d-402b-afcb-a5742a2894e3",
"privatemtu": 1500,
"publicmtu": 1500,
"receivedbytes": 0,
"redundantrouter": false,
"related": "3d1e6c9d-11e6-4ca2-8421-25d00b323e25",
"restartrequired": false,
"sentbytes": 0,
"service": [
{
"capability": [
{
"canchooseservicecapability": false,
"name": "DhcpAccrossMultipleSubnets",
"value": "true"
}
],
"name": "Dhcp",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [],
"name": "UserData",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [
{
"canchooseservicecapability": false,
"name": "AllowDnsSuffixModification",
"value": "true"
}
],
"name": "Dns",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [
{
"canchooseservicecapability": true,
"name": "SupportedSourceNatTypes",
"value": "peraccount"
},
{
"canchooseservicecapability": true,
"name": "RedundantRouter",
"value": "false"
}
],
"name": "SourceNat",
"provider": [
{
"name": "VirtualRouter"
}
]
}
],
"specifyipranges": false,
"specifyvlan": false,
"state": "Allocated",
"strechedl2subnet": false,
"supportsvmautoscaling": false,
"tags": [],
"traffictype": "Guest",
"type": "Isolated",
"zoneid": "cc565e94-b5cf-4c4a-8d22-6aeaf5cbe538",
"zonename": "ref-trl-9680-k-Mol8-rositsa-kyuchukova"
}
}10. Verify the allocated subnets
(localcloud) 🐱 > list networks name="Routed-Network-Auto"
{
"count": 4,
"network": [
{
"account": "admin",
"acltype": "Account",
"broadcastdomaintype": "Vlan",
"canusefordeploy": true,
"cidr": "10.1.1.0/24",
"created": "2025-10-14T10:47:00+0000",
"details": {},
"displaynetwork": true,
"displaytext": "Routed-Network-Auto",
"dns1": "10.0.32.1",
"dns2": "8.8.8.8",
"domain": "ROOT",
"domainid": "39ccd0af-a8ba-11f0-86a0-1e00f00003ce",
"domainpath": "/",
"egressdefaultpolicy": true,
"gateway": "10.1.1.1",
"hasannotations": false,
"id": "3d1e6c9d-11e6-4ca2-8421-25d00b323e25",
"ispersistent": false,
"issystem": false,
"name": "Routed-Network-Auto",
"netmask": "255.255.255.0",
"networkdomain": "cs2cloud.internal",
"networkofferingavailability": "Optional",
"networkofferingconservemode": true,
"networkofferingdisplaytext": "Routed-Test",
"networkofferingid": "41c8a8db-2074-4648-9b1b-b221211930ab",
"networkofferingname": "Routed-Test",
"physicalnetworkid": "9e41d356-ee2d-402b-afcb-a5742a2894e3",
"privatemtu": 1500,
"publicmtu": 1500,
"receivedbytes": 0,
"redundantrouter": false,
"related": "3d1e6c9d-11e6-4ca2-8421-25d00b323e25",
"restartrequired": false,
"sentbytes": 0,
"service": [
{
"capability": [
{
"canchooseservicecapability": false,
"name": "DhcpAccrossMultipleSubnets",
"value": "true"
}
],
"name": "Dhcp",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [],
"name": "UserData",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [
{
"canchooseservicecapability": false,
"name": "AllowDnsSuffixModification",
"value": "true"
}
],
"name": "Dns",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [
{
"canchooseservicecapability": true,
"name": "SupportedSourceNatTypes",
"value": "peraccount"
},
{
"canchooseservicecapability": true,
"name": "RedundantRouter",
"value": "false"
}
],
"name": "SourceNat",
"provider": [
{
"name": "VirtualRouter"
}
]
}
],
"specifyipranges": false,
"specifyvlan": false,
"state": "Allocated",
"strechedl2subnet": false,
"supportsvmautoscaling": false,
"tags": [],
"traffictype": "Guest",
"type": "Isolated",
"zoneid": "cc565e94-b5cf-4c4a-8d22-6aeaf5cbe538",
"zonename": "ref-trl-9680-k-Mol8-rositsa-kyuchukova"
},
{
"account": "admin",
"acltype": "Account",
"broadcastdomaintype": "Vlan",
"canusefordeploy": true,
"cidr": "10.10.1.0/24",
"created": "2025-10-14T10:01:25+0000",
"details": {},
"displaynetwork": true,
"displaytext": "test PR - added via UI",
"dns1": "10.0.32.1",
"dns2": "8.8.8.8",
"domain": "ROOT",
"domainid": "39ccd0af-a8ba-11f0-86a0-1e00f00003ce",
"domainpath": "/",
"egressdefaultpolicy": true,
"gateway": "10.10.1.1",
"hasannotations": false,
"id": "3ff80687-c836-4c0a-963e-acb91ff6009a",
"ispersistent": false,
"issystem": false,
"name": "Routed-Network-NoCIDR-UI",
"netmask": "255.255.255.0",
"networkdomain": "cs2cloud.internal",
"networkofferingavailability": "Optional",
"networkofferingconservemode": true,
"networkofferingdisplaytext": "Routed-Test",
"networkofferingid": "41c8a8db-2074-4648-9b1b-b221211930ab",
"networkofferingname": "Routed-Test",
"physicalnetworkid": "9e41d356-ee2d-402b-afcb-a5742a2894e3",
"privatemtu": 1500,
"publicmtu": 1500,
"receivedbytes": 0,
"redundantrouter": false,
"related": "3ff80687-c836-4c0a-963e-acb91ff6009a",
"restartrequired": false,
"sentbytes": 0,
"service": [
{
"capability": [
{
"canchooseservicecapability": false,
"name": "DhcpAccrossMultipleSubnets",
"value": "true"
}
],
"name": "Dhcp",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [],
"name": "UserData",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [
{
"canchooseservicecapability": false,
"name": "AllowDnsSuffixModification",
"value": "true"
}
],
"name": "Dns",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [
{
"canchooseservicecapability": true,
"name": "SupportedSourceNatTypes",
"value": "peraccount"
},
{
"canchooseservicecapability": true,
"name": "RedundantRouter",
"value": "false"
}
],
"name": "SourceNat",
"provider": [
{
"name": "VirtualRouter"
}
]
}
],
"specifyipranges": false,
"specifyvlan": false,
"state": "Allocated",
"strechedl2subnet": false,
"supportsvmautoscaling": false,
"tags": [],
"traffictype": "Guest",
"type": "Isolated",
"zoneid": "cc565e94-b5cf-4c4a-8d22-6aeaf5cbe538",
"zonename": "ref-trl-9680-k-Mol8-rositsa-kyuchukova"
},
{
"account": "admin",
"acltype": "Account",
"broadcastdomaintype": "Vlan",
"canusefordeploy": true,
"cidr": "10.1.1.0/24",
"created": "2025-10-14T09:47:28+0000",
"details": {},
"displaynetwork": true,
"displaytext": "Routed-Network-NoCIDR",
"dns1": "10.0.32.1",
"dns2": "8.8.8.8",
"domain": "ROOT",
"domainid": "39ccd0af-a8ba-11f0-86a0-1e00f00003ce",
"domainpath": "/",
"egressdefaultpolicy": true,
"gateway": "10.1.1.1",
"hasannotations": false,
"id": "5a71909a-4bb6-447b-8f30-edfb2eeaeb40",
"ispersistent": false,
"issystem": false,
"name": "Routed-Network-NoCIDR",
"netmask": "255.255.255.0",
"networkdomain": "cs2cloud.internal",
"networkofferingavailability": "Optional",
"networkofferingconservemode": true,
"networkofferingdisplaytext": "Routed-Test",
"networkofferingid": "41c8a8db-2074-4648-9b1b-b221211930ab",
"networkofferingname": "Routed-Test",
"physicalnetworkid": "9e41d356-ee2d-402b-afcb-a5742a2894e3",
"privatemtu": 1500,
"publicmtu": 1500,
"receivedbytes": 0,
"redundantrouter": false,
"related": "5a71909a-4bb6-447b-8f30-edfb2eeaeb40",
"restartrequired": false,
"sentbytes": 0,
"service": [
{
"capability": [
{
"canchooseservicecapability": false,
"name": "DhcpAccrossMultipleSubnets",
"value": "true"
}
],
"name": "Dhcp",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [],
"name": "UserData",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [
{
"canchooseservicecapability": false,
"name": "AllowDnsSuffixModification",
"value": "true"
}
],
"name": "Dns",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [
{
"canchooseservicecapability": true,
"name": "SupportedSourceNatTypes",
"value": "peraccount"
},
{
"canchooseservicecapability": true,
"name": "RedundantRouter",
"value": "false"
}
],
"name": "SourceNat",
"provider": [
{
"name": "VirtualRouter"
}
]
}
],
"specifyipranges": false,
"specifyvlan": false,
"state": "Allocated",
"strechedl2subnet": false,
"supportsvmautoscaling": false,
"tags": [],
"traffictype": "Guest",
"type": "Isolated",
"zoneid": "cc565e94-b5cf-4c4a-8d22-6aeaf5cbe538",
"zonename": "ref-trl-9680-k-Mol8-rositsa-kyuchukova"
},
{
"account": "admin",
"acltype": "Account",
"broadcastdomaintype": "Vlan",
"canusefordeploy": true,
"cidr": "10.1.1.0/24",
"created": "2025-10-14T09:46:56+0000",
"details": {},
"displaynetwork": true,
"displaytext": "Routed-Network-Manual",
"dns1": "10.0.32.1",
"dns2": "8.8.8.8",
"domain": "ROOT",
"domainid": "39ccd0af-a8ba-11f0-86a0-1e00f00003ce",
"domainpath": "/",
"egressdefaultpolicy": true,
"gateway": "10.1.1.1",
"hasannotations": false,
"id": "fd737c5d-2a15-48ce-8d20-fd9ca30798e4",
"ispersistent": false,
"issystem": false,
"name": "Routed-Network-Manual",
"netmask": "255.255.255.0",
"networkdomain": "cs2cloud.internal",
"networkofferingavailability": "Optional",
"networkofferingconservemode": true,
"networkofferingdisplaytext": "Routed-Test",
"networkofferingid": "41c8a8db-2074-4648-9b1b-b221211930ab",
"networkofferingname": "Routed-Test",
"physicalnetworkid": "9e41d356-ee2d-402b-afcb-a5742a2894e3",
"privatemtu": 1500,
"publicmtu": 1500,
"receivedbytes": 0,
"redundantrouter": false,
"related": "fd737c5d-2a15-48ce-8d20-fd9ca30798e4",
"restartrequired": false,
"sentbytes": 0,
"service": [
{
"capability": [
{
"canchooseservicecapability": false,
"name": "DhcpAccrossMultipleSubnets",
"value": "true"
}
],
"name": "Dhcp",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [],
"name": "UserData",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [
{
"canchooseservicecapability": false,
"name": "AllowDnsSuffixModification",
"value": "true"
}
],
"name": "Dns",
"provider": [
{
"name": "VirtualRouter"
}
]
},
{
"capability": [
{
"canchooseservicecapability": true,
"name": "SupportedSourceNatTypes",
"value": "peraccount"
},
{
"canchooseservicecapability": true,
"name": "RedundantRouter",
"value": "false"
}
],
"name": "SourceNat",
"provider": [
{
"name": "VirtualRouter"
}
]
}
],
"specifyipranges": false,
"specifyvlan": false,
"state": "Allocated",
"strechedl2subnet": false,
"supportsvmautoscaling": false,
"tags": [],
"traffictype": "Guest",
"type": "Isolated",
"zoneid": "cc565e94-b5cf-4c4a-8d22-6aeaf5cbe538",
"zonename": "ref-trl-9680-k-Mol8-rositsa-kyuchukova"
}
]
}11. Verify the network associated with the new guest IPv4 subnet was automatically picked up
(localcloud) 🐱 > listIpv4SubnetsForGuestNetwork
{
"count": 1,
"ipv4subnetforguestnetwork": [
{
"created": "2025-10-14T09:44:55+0000",
"id": "0d30421c-2c4e-4436-a1de-a7e130aa68f6",
"parentid": "0cf41eaf-1139-4194-98bc-3ed54da87a6f",
"parentsubnet": "10.10.0.0/20",
"state": "Free",
"subnet": "10.10.1.0/24",
"zoneid": "cc565e94-b5cf-4c4a-8d22-6aeaf5cbe538",
"zonename": "ref-trl-9680-k-Mol8-rositsa-kyuchukova"
}
]
}
|
great, thanks @rosi-shapeblue a lot for the testing thanks @DaanHoogland @sureshanaparti for reviews |
…apache#11624) * Routed: fix create network exception when auto-allocation is disabled for regular users * routed: throw InvalidParameterValueException instead of CloudRuntimeException which gives vague message to regular users
Description
This PR fixes the issue which can be reproduced by steps below
routed.ipv4.network.cidr.auto.allocation.enabledwithout this PR: got an error on UI:
Internal error executing command, please contact your system administratorwith this PR: the network is created successfully
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?