Skip to content

Commit 06f0487

Browse files
committed
Add nova01alpha DT
1 parent 44608a4 commit 06f0487

File tree

24 files changed

+707
-0
lines changed

24 files changed

+707
-0
lines changed

automation/vars/nova01alpha.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
vas:
3+
nova01alpha:
4+
stages:
5+
- path: examples/dt/nova/nova01alpha/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/nova01alpha/
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/nova01alpha/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/nova01alpha/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/nova01alpha/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: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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.glance.customServiceConfig
32+
targets:
33+
- select:
34+
kind: OpenStackControlPlane
35+
fieldPaths:
36+
- spec.glance.template.customServiceConfig
37+
options:
38+
create: true
39+
- source:
40+
kind: ConfigMap
41+
name: service-values
42+
fieldPath: data.glance.default.replicas
43+
targets:
44+
- select:
45+
kind: OpenStackControlPlane
46+
fieldPaths:
47+
- spec.glance.template.glanceAPIs.default.replicas
48+
options:
49+
create: true
50+
- source:
51+
kind: ConfigMap
52+
name: service-values
53+
fieldPath: data.nova.apiServiceTemplate.customServiceConfig
54+
targets:
55+
- select:
56+
kind: OpenStackControlPlane
57+
fieldPaths:
58+
- spec.nova.template.apiServiceTemplate.customServiceConfig
59+
options:
60+
create: true
61+
- source:
62+
kind: ConfigMap
63+
name: service-values
64+
fieldPath: data.nova.schedulerServiceTemplate.customServiceConfig
65+
targets:
66+
- select:
67+
kind: OpenStackControlPlane
68+
fieldPaths:
69+
- spec.nova.template.schedulerServiceTemplate.customServiceConfig
70+
options:
71+
create: true
72+
- source:
73+
kind: ConfigMap
74+
name: service-values
75+
fieldPath: data.swift.enabled
76+
targets:
77+
- select:
78+
kind: OpenStackControlPlane
79+
fieldPaths:
80+
- spec.swift.enabled
81+
options:
82+
create: true

dt/nova/nova01alpha/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)