Skip to content

Commit fbe1af9

Browse files
jamepark4fultonj
authored andcommitted
Decouple network and controlplane
1 parent d54ddf3 commit fbe1af9

File tree

10 files changed

+89
-22
lines changed

10 files changed

+89
-22
lines changed

automation/vars/nova02beta.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
vas:
33
nova02beta:
44
stages:
5-
- path: examples/dt/nova/nova02beta/nncp
5+
- path: examples/dt/nova/nova02beta/networking/nncp
66
wait_conditions:
77
- >-
88
oc -n openstack wait nncp
@@ -14,14 +14,26 @@ vas:
1414
src_file: values.yaml
1515
build_output: nncp.yaml
1616

17+
- path: examples/dt/nova/nova02beta/networking
18+
wait_conditions:
19+
- >-
20+
oc -n metallb-system wait pod
21+
-l app=metallb -l component=speaker
22+
--for condition=Ready
23+
--timeout=5m
24+
values:
25+
- name: network-values
26+
src_file: nncp/values.yaml
27+
build_output: network.yaml
28+
1729
- path: examples/dt/nova/nova02beta
1830
wait_conditions:
1931
- >-
2032
oc -n openstack wait osctlplane controlplane --for condition=Ready
2133
--timeout=600s
2234
values:
2335
- name: network-values
24-
src_file: nncp/values.yaml
36+
src_file: networking/nncp/values.yaml
2537
- name: service-values
2638
src_file: service-values.yaml
2739
build_output: control-plane.yaml

dt/nova/nova02beta/kustomization.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ transformers:
1818
create: true
1919
2020
components:
21-
- ../../../lib/networking/metallb
22-
- ../../../lib/networking/netconfig
23-
- ../../../lib/networking/nad
2421
- ../../../lib/control-plane
2522

2623
replacements:
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1alpha1
3+
kind: Component
4+
5+
transformers:
6+
# Set namespace to OpenStack on all namespaced objects without a namespace
7+
- |-
8+
apiVersion: builtin
9+
kind: NamespaceTransformer
10+
metadata:
11+
name: _ignored_
12+
namespace: openstack
13+
setRoleBindingSubjects: none
14+
unsetOnly: true
15+
fieldSpecs:
16+
- path: metadata/name
17+
kind: Namespace
18+
create: true
19+
20+
components:
21+
- ../../../../lib/networking/metallb
22+
- ../../../../lib/networking/netconfig
23+
- ../../../../lib/networking/nad

examples/dt/nova/nova02beta/control-plane.md

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,13 @@ Switch to the "openstack" namespace
1010
```
1111
oc project openstack
1212
```
13-
Change to the nova/nova02beta directory
13+
Change to the nova/nova02beta/networking directory
1414
```
15-
cd architecture/examples/dt/nova/nova02beta
15+
cd architecture/examples/dt/nova/nova02beta/networking/
1616
```
17-
Edit the [nncp/values.yaml](nncp/values.yaml) and
18-
[service-values.yaml](service-values.yaml) files to suit
19-
your environment.
17+
Edit the [nncp/values.yaml](networking/nncp/values.yaml)
2018
```
2119
vi nncp/values.yaml
22-
vi service-values.yaml
2320
```
2421

2522
## Apply node network configuration
@@ -37,7 +34,37 @@ Wait for NNCPs to be available
3734
oc wait nncp -l osp/nncm-config-type=standard --for jsonpath='{.status.conditions[0].reason}'=SuccessfullyConfigured --timeout=300s
3835
```
3936

40-
## Apply networking and control-plane configuration
37+
## Create NAD's, IPAddressPool, and NetConfig
38+
39+
Generate Network attachment definitions, IPAddressPools and remaining
40+
networking CRs. Note that the associated values for these resources are also
41+
defined in [nncp/values.yaml](networking/nncp/values.yaml)
42+
```
43+
kustomize build > network.yaml
44+
```
45+
Apply the CRs
46+
```
47+
oc apply -f network.yaml
48+
```
49+
50+
Wait for networking resources to be available
51+
```
52+
oc -n metallb-system wait pod -l app=metallb -l component=speaker --for condition=Ready --timeout=5m
53+
```
54+
55+
## Create control-plane configuration
56+
57+
Change to the architecture/examples/dt/nova/nova02beta directory
58+
```
59+
cd architecture/examples/dt/nova/nova02beta
60+
```
61+
Edit the [service-values.yaml](service-values.yaml) files to suit your
62+
environment.
63+
```
64+
vi service-values.yaml
65+
```
66+
67+
## Apply control-plane configuration
4168

4269
Generate the control-plane and networking CRs.
4370
```
@@ -47,8 +74,7 @@ Apply the CRs
4774
```
4875
oc apply -f control-plane.yaml
4976
```
50-
5177
Wait for control plane to be available
5278
```
5379
oc wait osctlplane controlplane --for condition=Ready --timeout=600s
54-
```
80+
```

examples/dt/nova/nova02beta/dataplane.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ oc apply -f dataplane-deployment.yaml
5555
```
5656
Wait for dataplane deployment to finish
5757
```
58-
oc wait osdpns openstack-edpm --for condition=Ready --timeout=40m
58+
oc -n openstack wait osdpd edpm-deployment --for condition=Ready --timeout=90m
5959
```
6060

6161
## Generate yamls necessary to finialize Nvidia GPU installation
@@ -82,7 +82,6 @@ Start the deployment
8282
```
8383
oc apply -f dataplane-post-driver-deployment.yaml
8484
```
85-
8685
Wait for dataplane deployment to finish
8786
```
8887
oc wait osdpd edpm-deployment-post-driver --for condition=Ready --timeout=20m
@@ -93,10 +92,10 @@ Change to the nova/nova02beta/edpm-deploy-provider directory
9392
```
9493
cd architecture/examples/dt/nova/nova02beta/edpm-deploy-provider/
9594
```
96-
Edit the [nodeset/values.yaml](edpm-deploy-provider/nodeset/values.yaml) files to suit
95+
Edit the [dataplaneservice/values.yaml](edpm-deploy-provider/dataplaneservice/values.yaml) files to suit
9796
your environment.
9897
```
99-
vi nodeset/values.yaml
98+
vi dataplaneservice/values.yaml
10099
```
101100
Edit the [deployment/values.yaml](edpm-deploy-provider/deployment/values.yaml) files to suit
102101
your environment.
@@ -119,7 +118,7 @@ oc apply -f dataplane-provider-service.yaml
119118
```
120119
Wait for dataplane service to finish
121120
```
122-
oc wait osdpns openstack-edpm --for condition=SetupReadyy --timeout=60m
121+
oc -n default wait ns openstack --for jsonpath='{.status.phase}'=Active --timeout=5m
123122
```
124123
Start the deployment
125124
```

examples/dt/nova/nova02beta/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ components:
99
## https://github.com/kubernetes-sigs/kustomize/blob/master/examples/remoteBuild.md
1010

1111
resources:
12-
- nncp/values.yaml
12+
- networking/nncp/values.yaml
1313
- service-values.yaml
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1beta1
3+
kind: Kustomization
4+
5+
components:
6+
- ../../../../../dt/nova/nova02beta/networking/
7+
8+
resources:
9+
- nncp/values.yaml

examples/dt/nova/nova02beta/nncp/kustomization.yaml renamed to examples/dt/nova/nova02beta/networking/nncp/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ transformers:
1818
create: true
1919
2020
components:
21-
- ../../../../../lib/nncp
21+
- ../../../../../../lib/nncp
2222

2323
resources:
2424
- values.yaml

zuul.d/validations.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@
200200
- examples/dt/nova/nova02beta/edpm/deployment
201201
- examples/dt/nova/nova02beta/edpm/nodeset
202202
- examples/dt/nova/nova02beta/edpm/nodeset2
203-
- examples/dt/nova/nova02beta/nncp
203+
- examples/dt/nova/nova02beta/networking
204+
- examples/dt/nova/nova02beta/networking/nncp
204205
- lib
205206
name: rhoso-architecture-validate-nova02beta
206207
parent: rhoso-architecture-base-job

0 commit comments

Comments
 (0)