Skip to content

Commit 437ae79

Browse files
committed
Add nova01alpha DT
1 parent 3d25371 commit 437ae79

File tree

24 files changed

+788
-0
lines changed

24 files changed

+788
-0
lines changed

automation/vars/nova03gamma.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
vas:
3+
nova03gamma:
4+
stages:
5+
- path: examples/dt/nova/nova03gamma/nncp/
6+
wait_conditions:
7+
- >-
8+
oc -n openstack wait nncp
9+
-l osp/nncm-config-type=standard
10+
--for jsonpath='{.status.conditions[0].reason}'=SuccessfullyConfigured
11+
--timeout=60s
12+
values:
13+
- name: network-values
14+
src_file: values.yaml
15+
build_output: nncp.yaml
16+
17+
- path: examples/dt/nova/nova03gamma/
18+
wait_conditions:
19+
- >-
20+
oc -n openstack wait osctlplane controlplane --for condition=Ready
21+
--timeout=600s
22+
values:
23+
- name: network-values
24+
src_file: nncp/values.yaml
25+
- name: service-values
26+
src_file: service-values.yaml
27+
build_output: control-plane.yaml
28+
29+
- path: examples/dt/nova/nova03gamma/edpm/nodeset
30+
wait_conditions:
31+
- >-
32+
oc -n openstack wait
33+
osdpns openstack-edpm --for condition=SetupReady
34+
--timeout=60m
35+
values:
36+
- name: edpm-nodeset-values
37+
src_file: values.yaml
38+
build_output: nodeset.yaml
39+
40+
- path: examples/dt/nova/nova03gamma/edpm/deployment
41+
wait_conditions:
42+
- >-
43+
oc -n openstack wait
44+
osdpns openstack-edpm --for condition=Ready
45+
--timeout=60m
46+
values:
47+
- name: edpm-deployment-values
48+
src_file: values.yaml
49+
build_output: deployment.yaml

dt/nova/nova03gamma/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Nova Alpha 01
2+
TBD
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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/dataplane/deployment
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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/dataplane/nodeset
22+
23+
resources:
24+
- nova_pinning.yaml
25+
26+
replacements:
27+
# Nova compute CPU pinning customization
28+
- source:
29+
kind: ConfigMap
30+
name: edpm-nodeset-values
31+
fieldPath: data.nova.compute.conf
32+
targets:
33+
- select:
34+
kind: ConfigMap
35+
name: cpu-pinning-nova
36+
fieldPaths:
37+
- data.25-cpu-pinning-nova\.conf
38+
options:
39+
create: true
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
apiVersion: v1
3+
kind: ConfigMap
4+
metadata:
5+
name: cpu-pinning-nova
6+
data:
7+
25-cpu-pinning-nova.conf: _replaced_
8+
---
9+
apiVersion: dataplane.openstack.org/v1beta1
10+
kind: OpenStackDataPlaneService
11+
metadata:
12+
name: nova-custom-sriov
13+
spec:
14+
label: dataplane-deployment-nova-custom-sriov
15+
edpmServiceType: nova
16+
dataSources:
17+
- configMapRef:
18+
name: cpu-pinning-nova
19+
- secretRef:
20+
name: nova-cell1-compute-config
21+
- secretRef:
22+
name: nova-migration-ssh-key
23+
playbook: osp.edpm.nova
24+
tlsCerts:
25+
default:
26+
contents:
27+
- dnsnames
28+
- ips
29+
networks:
30+
- ctlplane
31+
issuer: osp-rootca-issuer-internal
32+
caCerts: combined-ca-bundle
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
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
24+
- ../../../lib/control-plane
25+
26+
replacements:
27+
# Control plane customization
28+
- source:
29+
kind: ConfigMap
30+
name: service-values
31+
fieldPath: data.cinderVolumes.lvm-iscsi.replicas
32+
targets:
33+
- select:
34+
kind: OpenStackControlPlane
35+
fieldPaths:
36+
- spec.cinder.template.cinderVolumes.lvm-iscsi.replicas
37+
options:
38+
create: true
39+
40+
- source:
41+
kind: ConfigMap
42+
name: service-values
43+
fieldPath: data.cinderVolumes.lvm-iscsi.nodeSelector.openstack\.org/cinder-lvm
44+
targets:
45+
- select:
46+
kind: OpenStackControlPlane
47+
fieldPaths:
48+
- spec.cinder.template.cinderVolumes.lvm-iscsi.nodeSelector.openstack\.org/cinder-lvm
49+
options:
50+
create: true
51+
52+
- source:
53+
kind: ConfigMap
54+
name: service-values
55+
fieldPath: data.cinderVolumes.lvm-iscsi.customServiceConfig
56+
targets:
57+
- select:
58+
kind: OpenStackControlPlane
59+
fieldPaths:
60+
- spec.cinder.template.cinderVolumes.lvm-iscsi.customServiceConfig
61+
options:
62+
create: true
63+
64+
- source:
65+
kind: ConfigMap
66+
name: service-values
67+
fieldPath: data.cinderBackup.customServiceConfig
68+
targets:
69+
- select:
70+
kind: OpenStackControlPlane
71+
fieldPaths:
72+
- spec.cinder.template.cinderBackup.customServiceConfig
73+
options:
74+
create: true
75+
76+
- source:
77+
kind: ConfigMap
78+
name: service-values
79+
fieldPath: data.cinderBackup.replicas
80+
targets:
81+
- select:
82+
kind: OpenStackControlPlane
83+
fieldPaths:
84+
- spec.cinder.template.cinderBackup.replicas
85+
options:
86+
create: true
87+
88+
- source:
89+
kind: ConfigMap
90+
name: service-values
91+
fieldPath: data.glance.customServiceConfig
92+
targets:
93+
- select:
94+
kind: OpenStackControlPlane
95+
fieldPaths:
96+
- spec.glance.template.customServiceConfig
97+
options:
98+
create: true
99+
- source:
100+
kind: ConfigMap
101+
name: service-values
102+
fieldPath: data.glance.default.replicas
103+
targets:
104+
- select:
105+
kind: OpenStackControlPlane
106+
fieldPaths:
107+
- spec.glance.template.glanceAPIs.default.replicas
108+
options:
109+
create: true
110+
- source:
111+
kind: ConfigMap
112+
name: service-values
113+
fieldPath: data.nova.apiServiceTemplate.customServiceConfig
114+
targets:
115+
- select:
116+
kind: OpenStackControlPlane
117+
fieldPaths:
118+
- spec.nova.template.apiServiceTemplate.customServiceConfig
119+
options:
120+
create: true
121+
- source:
122+
kind: ConfigMap
123+
name: service-values
124+
fieldPath: data.nova.schedulerServiceTemplate.customServiceConfig
125+
targets:
126+
- select:
127+
kind: OpenStackControlPlane
128+
fieldPaths:
129+
- spec.nova.template.schedulerServiceTemplate.customServiceConfig
130+
options:
131+
create: true
132+
- source:
133+
kind: ConfigMap
134+
name: service-values
135+
fieldPath: data.swift.enabled
136+
targets:
137+
- select:
138+
kind: OpenStackControlPlane
139+
fieldPaths:
140+
- spec.swift.enabled
141+
options:
142+
create: true

dt/nova/nova03gamma/namespace.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
apiVersion: builtin
3+
kind: NamespaceTransformer
4+
metadata:
5+
name: _ignored_
6+
namespace: openstack
7+
setRoleBindingSubjects: none
8+
unsetOnly: true
9+
fieldSpecs:
10+
- path: metadata/name
11+
kind: Namespace
12+
create: true
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
control-plane.yaml
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# OpenStack Nova Alpha 01
2+
TBD
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Configuring networking and deploy the OpenStack control plane
2+
TBD

0 commit comments

Comments
 (0)