Skip to content

Commit d54ddf3

Browse files
jamepark4fultonj
authored andcommitted
Create Nova Multinodset hybrid job
1 parent 331e920 commit d54ddf3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2180
-0
lines changed

automation/vars/nova02beta.yaml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
---
2+
vas:
3+
nova02beta:
4+
stages:
5+
- path: examples/dt/nova/nova02beta/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/nova02beta
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/nova02beta/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/nova02beta/edpm/nodeset2
41+
wait_conditions:
42+
- >-
43+
oc -n openstack wait
44+
osdpns openstack-edpm-2 --for condition=SetupReady
45+
--timeout=60m
46+
values:
47+
- name: edpm-nodeset-values
48+
src_file: values.yaml
49+
build_output: nodeset2.yaml
50+
51+
- path: examples/dt/nova/nova02beta/edpm/deployment
52+
wait_conditions:
53+
- >-
54+
oc -n openstack wait
55+
osdpd edpm-deployment --for condition=Ready
56+
--timeout=90m
57+
values:
58+
- name: edpm-deployment-values
59+
src_file: values.yaml
60+
build_output: deployment.yaml
61+
62+
- path: examples/dt/nova/nova02beta/edpm-post-driver/deployment
63+
wait_conditions:
64+
- >-
65+
oc -n openstack wait
66+
osdpd edpm-deployment-post-driver --for condition=Ready
67+
--timeout=20m
68+
values:
69+
- name: edpm-deployment-post-driver
70+
src_file: values.yaml
71+
build_output: post-driver-deployment.yaml
72+
73+
- path: examples/dt/nova/nova02beta/edpm-deploy-provider/dataplaneservice
74+
wait_conditions:
75+
- >-
76+
oc -n default wait
77+
ns openstack --for jsonpath='{.status.phase}'=Active
78+
--timeout=5m
79+
values:
80+
- name: edpm-provider-values
81+
src_file: values.yaml
82+
build_output: provider-dataplaneservice.yaml
83+
84+
- path: examples/dt/nova/nova02beta/edpm-deploy-provider/deployment
85+
wait_conditions:
86+
- >-
87+
oc -n openstack wait
88+
osdpd edpm-deployment-provider --for condition=Ready
89+
--timeout=20m
90+
values:
91+
- name: edpm-deploy-provider-values
92+
src_file: values.yaml
93+
build_output: provider-deployment.yaml

dt/nova/nova02beta/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Deployed Topology - Nova/nova02beta
2+
3+
If you are looking for information on how to deploy the nova02beta based DT, then
4+
please see the
5+
[README](../../../examples/dt/nova/nova02beta/README.md) in the examples
6+
directory.
7+
8+
This directory ,`dt/nova/nova02beta/`, exists so that the
9+
[kustomization.yaml](../../../examples/dt/nova/nova02beta/edpm/nodeset/kustomization.yaml)
10+
in the examples directory of nova02beta topology, reference it by path as a
11+
component. It's contents are likely uninteresting unless you want to understand
12+
how kustomize was implemented in this repository.
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: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
resources:
21+
- nova_provider.yaml
22+
23+
replacements:
24+
# Nova provider yaml configuration
25+
- source:
26+
kind: ConfigMap
27+
name: edpm-provider-values
28+
fieldPath: data.nova.compute.provider
29+
targets:
30+
- select:
31+
kind: ConfigMap
32+
name: compute-provider
33+
fieldPaths:
34+
- data.provider\.yaml
35+
options:
36+
create: true
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
apiVersion: v1
3+
kind: ConfigMap
4+
metadata:
5+
name: compute-provider
6+
data:
7+
provider.yaml: _replaced_
8+
---
9+
apiVersion: dataplane.openstack.org/v1beta1
10+
kind: OpenStackDataPlaneService
11+
metadata:
12+
name: compute-provider
13+
spec:
14+
label: dataplane-deployment-compute-provider
15+
edpmServiceType: nova
16+
dataSources:
17+
- configMapRef:
18+
name: compute-provider
19+
- configMapRef:
20+
name: cpu-pinning-nova
21+
- configMapRef:
22+
name: sriov-nova
23+
- secretRef:
24+
name: nova-cell1-compute-config
25+
- secretRef:
26+
name: nova-migration-ssh-key
27+
playbook: osp.edpm.nova
28+
tlsCerts:
29+
default:
30+
contents:
31+
- dnsnames
32+
- ips
33+
networks:
34+
- ctlplane
35+
issuer: osp-rootca-issuer-internal
36+
caCerts: combined-ca-bundle
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: 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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
apiVersion: v1
3+
data:
4+
NodeRootPassword: _replaced_
5+
kind: Secret
6+
metadata:
7+
name: baremetalset-password-secret
8+
namespace: openstack
9+
type: Opaque
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
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+
- baremetalset-password-secret.yaml
25+
- nova_sriov.yaml
26+
27+
replacements:
28+
- source:
29+
kind: ConfigMap
30+
name: edpm-nodeset-values
31+
fieldPath: data.root_password
32+
targets:
33+
- select:
34+
kind: Secret
35+
name: baremetalset-password-secret
36+
fieldPaths:
37+
- data.NodeRootPassword
38+
options:
39+
create: true
40+
41+
# Nova compute CPU pinning customization
42+
- source:
43+
kind: ConfigMap
44+
name: edpm-nodeset-values
45+
fieldPath: data.nova.compute.conf
46+
targets:
47+
- select:
48+
kind: ConfigMap
49+
name: cpu-pinning-nova
50+
fieldPaths:
51+
- data.25-cpu-pinning-nova\.conf
52+
options:
53+
create: true
54+
# Nova compute PCI passthrough customization
55+
- source:
56+
kind: ConfigMap
57+
name: edpm-nodeset-values
58+
fieldPath: data.nova.pci.conf
59+
targets:
60+
- select:
61+
kind: ConfigMap
62+
name: sriov-nova
63+
fieldPaths:
64+
- data.03-sriov-nova\.conf
65+
options:
66+
create: true
67+
- source:
68+
kind: ConfigMap
69+
name: edpm-nodeset-values
70+
fieldPath: data.preProvisioned
71+
targets:
72+
- select:
73+
kind: OpenStackDataPlaneNodeSet
74+
name: openstack-edpm
75+
fieldPaths:
76+
- spec.preProvisioned
77+
options:
78+
create: true
79+
- source:
80+
kind: ConfigMap
81+
name: edpm-nodeset-values
82+
fieldPath: data.baremetalSetTemplate
83+
targets:
84+
- select:
85+
kind: OpenStackDataPlaneNodeSet
86+
name: openstack-edpm
87+
fieldPaths:
88+
- spec.baremetalSetTemplate
89+
options:
90+
create: true
91+
- source:
92+
kind: ConfigMap
93+
name: edpm-nodeset-values
94+
fieldPath: data.nova.mdev.nvidia_driver_url
95+
targets:
96+
- select:
97+
kind: ConfigMap
98+
name: nvidia-mdev-config
99+
fieldPaths:
100+
- data.nvidia_driver_url
101+
options:
102+
create: true

0 commit comments

Comments
 (0)