Skip to content

Commit abc447c

Browse files
committed
Add baremetalHostsNetworkData for nova04delta
Based on bmo01 DT, add baremetalHostsNetworkData into kustomizations and example values. Also separate edpm node 0 and edpm node 1 by distinct nodesets 1 and 2. Add a note about missing kustomizations replacements to wire-in other data that can be provided for nodesets values. Signed-off-by: Bohdan Dobrelia <[email protected]>
1 parent 53a51da commit abc447c

File tree

6 files changed

+76
-14
lines changed

6 files changed

+76
-14
lines changed

dt/nova/nova04delta/edpm/nodeset/kustomization.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,24 @@ components:
2222

2323
resources:
2424
- baremetalset-password-secret.yaml
25+
- network-data-secrets.yaml
2526
- nova_gpu.yaml
2627

28+
# TODO: wire-in all missing nodeset data values, like examples/dt/bmo01/dataplane/nodesets/kustomization.yaml
2729
replacements:
30+
# networkData
31+
- source:
32+
kind: ConfigMap
33+
name: edpm-nodeset-values
34+
fieldPath: data.baremetalHostsNetworkData.edpm-compute-0
35+
targets:
36+
- select:
37+
kind: Secret
38+
name: edpm-compute-0-network-data
39+
fieldPaths:
40+
- stringData
41+
options:
42+
create: true
2843
- source:
2944
kind: ConfigMap
3045
name: edpm-nodeset-values
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
apiVersion: v1
3+
kind: Secret
4+
metadata:
5+
name: edpm-compute-0-network-data
6+
namespace: openstack
7+
type: Opaque
8+
stringData: {}

dt/nova/nova04delta/edpm/nodeset2/kustomization.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,24 @@ components:
2222

2323
resources:
2424
- baremetalset-password-secret.yaml
25+
- network-data-secrets.yaml
2526
- nova_gpu.yaml
2627

28+
# TODO: wire-in all missing nodeset data values, like examples/dt/bmo01/dataplane/nodesets/kustomization.yaml
2729
replacements:
30+
# networkData
31+
- source:
32+
kind: ConfigMap
33+
name: edpm-nodeset-values
34+
fieldPath: data.baremetalHostsNetworkData.edpm-compute-1
35+
targets:
36+
- select:
37+
kind: Secret
38+
name: edpm-compute-1-network-data
39+
fieldPaths:
40+
- stringData
41+
options:
42+
create: true
2843
- source:
2944
kind: ConfigMap
3045
name: edpm-nodeset-values
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
apiVersion: v1
3+
kind: Secret
4+
metadata:
5+
name: edpm-compute-1-network-data
6+
namespace: openstack
7+
type: Opaque
8+
stringData: {}

examples/dt/nova/nova04delta/edpm/nodeset/values.yaml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ metadata:
1010
data:
1111
root_password: cmVkaGF0Cg==
1212
preProvisioned: false
13+
baremetalHostsNetworkData:
14+
edpm-compute-0:
15+
networkData: |
16+
CHANGEME
1317
baremetalSetTemplate:
1418
ctlplaneInterface: eno2 # CHANGEME
1519
cloudUserName: cloud-admin
@@ -26,6 +30,7 @@ data:
2630
private: CHANGEME2
2731
# The public key that will have access to the dataplane computes via SSH
2832
public: CHANGEME3
33+
# TODO: wire-in all these with kustomize replaceemtns, like examples/dt/bmo01/dataplane/nodesets/kustomization.yaml
2934
nodeset:
3035
ansible:
3136
ansibleUser: cloud-admin
@@ -49,13 +54,10 @@ data:
4954
# Nics to MAC addresses mappings for the dataplane nodes
5055
edpm_network_config_os_net_config_mappings:
5156
edpm-compute-0:
52-
nic2: CHANGEME
53-
nic3: CHANGEME
54-
edpm-compute-1:
55-
nic2: CHANGEME
56-
nic3: CHANGEME
57+
nic1: CHANGEME
5758
edpm_network_config_template: |
5859
---
60+
# CHANGEME
5961
{% set mtu_list = [ctlplane_mtu] %}
6062
{% for network in nodeset_networks %}
6163
{{ mtu_list.append(lookup('vars', networks_lower[network] ~ '_mtu')) }}
@@ -100,6 +102,7 @@ data:
100102
edpm_sshd_configure_firewall: true
101103
edpm_sshd_allowed_ranges:
102104
- 192.168.122.0/24
105+
# FIXME: should I move this under nodes.edpm-compute-0?
103106
networks:
104107
- defaultRoute: true
105108
name: ctlplane
@@ -113,8 +116,13 @@ data:
113116
nodes:
114117
edpm-compute-0:
115118
hostName: edpm-compute-0
116-
edpm-compute-1:
117-
hostName: edpm-compute-1
119+
bmhLabelSelector:
120+
nodeName: edpm-compute-0
121+
networkData:
122+
name: edpm-compute-0-network-data
123+
namespace: openstack
124+
ansible:
125+
ansibleHost: 192.168.122.100 # CHANGEME
118126
services:
119127
- bootstrap
120128
- download-cache

examples/dt/nova/nova04delta/edpm/nodeset2/values.yaml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ metadata:
1010
data:
1111
root_password: cmVkaGF0Cg==
1212
preProvisioned: false
13+
baremetalHostsNetworkData:
14+
edpm-compute-1:
15+
networkData: |
16+
CHANGEME
1317
baremetalSetTemplate:
1418
ctlplaneInterface: eno2 # CHANGEME
1519
cloudUserName: cloud-admin
@@ -26,6 +30,7 @@ data:
2630
private: CHANGEME2
2731
# The public key that will have access to the dataplane computes via SSH
2832
public: CHANGEME3
33+
# TODO: wire-in all these with kustomize replaceemtns, like examples/dt/bmo01/dataplane/nodesets/kustomization.yaml
2934
nodeset:
3035
ansible:
3136
ansibleUser: cloud-admin
@@ -48,14 +53,11 @@ data:
4853
edpm_network_config_hide_sensitive_logs: false
4954
# Nics to MAC addresses mappings for the dataplane nodes
5055
edpm_network_config_os_net_config_mappings:
51-
edpm-compute-0:
52-
nic2: CHANGEME
53-
nic3: CHANGEME
5456
edpm-compute-1:
55-
nic2: CHANGEME
56-
nic3: CHANGEME
57+
nic1: CHANGEME
5758
edpm_network_config_template: |
5859
---
60+
# CHANGEME
5961
{% set mtu_list = [ctlplane_mtu] %}
6062
{% for network in nodeset_networks %}
6163
{{ mtu_list.append(lookup('vars', networks_lower[network] ~ '_mtu')) }}
@@ -100,6 +102,7 @@ data:
100102
edpm_sshd_configure_firewall: true
101103
edpm_sshd_allowed_ranges:
102104
- 192.168.122.0/24
105+
# FIXME: should I move this under nodes.edpm-compute-1?
103106
networks:
104107
- defaultRoute: true
105108
name: ctlplane
@@ -111,10 +114,15 @@ data:
111114
- name: tenant
112115
subnetName: subnet1
113116
nodes:
114-
edpm-compute-0:
115-
hostName: edpm-compute-0
116117
edpm-compute-1:
117118
hostName: edpm-compute-1
119+
bmhLabelSelector:
120+
nodeName: edpm-compute-1
121+
networkData:
122+
name: edpm-compute-1-network-data
123+
namespace: openstack
124+
ansible:
125+
ansibleHost: 192.168.122.101 # CHANGEME
118126
services:
119127
- bootstrap
120128
- download-cache

0 commit comments

Comments
 (0)