From 00c03dea4841a4a7f7783a557b73d3d2866533e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20Jens=C3=A5s?= Date: Tue, 10 Dec 2024 15:46:07 +0100 Subject: [PATCH] Set the IP ranges for Ironic Inspector DHCP service This is using static hostnames to give separate ranges for the 3 OSP controllers. To have the predictable node name the ci-framework must run with a static "run_id" i.e `cifmw_run_id: uni01alpha` must be set in the scenario env. --- scenarios/uni01alpha/config_download.yaml | 10 ++++++++++ scenarios/uni01alpha/network_data.yaml.j2 | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/scenarios/uni01alpha/config_download.yaml b/scenarios/uni01alpha/config_download.yaml index 9dff56828..a77a58b2f 100644 --- a/scenarios/uni01alpha/config_download.yaml +++ b/scenarios/uni01alpha/config_download.yaml @@ -79,3 +79,13 @@ parameter_defaults: host_routes: [] name: ctlplane-subnet ip_version: 4 + # Since we need predictable node names to be able to set this paremeter, + # it a requirement to set the ci-framework parameter cifmw_run_id with + # this value 'uni01alpha'. + IronicInspectorSubnets: + osp-controller-uni01alpha-0: + - ip_range: 172.20.0.210,172.20.0.219 + osp-controller-uni01alpha-1: + - ip_range: 172.20.0.220,172.20.0.229 + osp-controller-uni01alpha-2: + - ip_range: 172.20.0.230,172.20.0.239 diff --git a/scenarios/uni01alpha/network_data.yaml.j2 b/scenarios/uni01alpha/network_data.yaml.j2 index d61a74d2d..f97a028eb 100644 --- a/scenarios/uni01alpha/network_data.yaml.j2 +++ b/scenarios/uni01alpha/network_data.yaml.j2 @@ -55,5 +55,5 @@ ironic_subnet: ip_subnet: 172.20.0.0/24 allocation_pools: - - start: 172.20.0.200 - end: 172.20.0.250 + - start: 172.20.0.150 + end: 172.20.0.200