Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Va nvidia mdev #455

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions automation/vars/nvidia-mdev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
vas:
nvidia-mdev:
stages:
- path: examples/va/nvidia-mdev/control-plane/nncp
wait_conditions:
- >-
oc -n openstack wait nncp
-l osp/nncm-config-type=standard
--for jsonpath='{.status.conditions[0].reason}'=SuccessfullyConfigured
--timeout=60s
values:
- name: network-values
src_file: values.yaml
build_output: nncp.yaml

- path: examples/va/nvidia-mdev/control-plane
wait_conditions:
- >-
oc -n openstack wait osctlplane controlplane --for condition=Ready
--timeout=600s
values:
- name: network-values
src_file: nncp/values.yaml
- name: service-values
src_file: service-values.yaml
build_output: control-plane.yaml

- path: examples/va/nvidia-mdev/edpm/nodeset
wait_conditions:
- >-
oc -n openstack wait
osdpns openstack-edpm --for condition=SetupReady
--timeout=60m
values:
- name: edpm-nodeset-values
src_file: values.yaml
build_output: nodeset.yaml

- path: examples/va/nvidia-mdev/edpm/deployment
wait_conditions:
- >-
oc -n openstack wait
osdpns openstack-edpm --for condition=Ready
--timeout=60m
values:
- name: edpm-deployment-values
src_file: values.yaml
build_output: deployment.yaml
post_stage_run:
- name: Run phase 1 playbook
type: playbook

Check failure on line 52 in automation/vars/nvidia-mdev.yaml

View workflow job for this annotation

GitHub Actions / yaml-lint

52:12 syntax error: expected <block end>, but found '<block mapping start>' (syntax)
# As a reminder, the job needs to set the nvidia driver URL
source: "../../playbooks/nvidia-mdev-phase1.yml"
inventory: "${HOME}/ci-framework-data/artifacts/zuul_inventory.yml"
- name: Run phase 2 playbook
type: playbook

Check failure on line 57 in automation/vars/nvidia-mdev.yaml

View workflow job for this annotation

GitHub Actions / yaml-lint

57:12 [indentation] wrong indentation: expected 12 but found 11
source: "../../playbooks/nvidia-mdev-phase2.yml"
inventory: "${HOME}/ci-framework-data/artifacts/zuul_inventory.yml"

- path: examples/va/nvidia-mdev/edpm-post-driver/deployment
wait_conditions:

Check failure on line 62 in automation/vars/nvidia-mdev.yaml

View workflow job for this annotation

GitHub Actions / yaml-lint

62:8 [indentation] wrong indentation: expected 8 but found 7
- >-
oc -n openstack wait
osdpd edpm-deployment-post-driver --for condition=Ready
--timeout=60m
values:
- name: edpm-post-driver-deployment-values
src_file: values.yaml
build_output: deployment-post-driver.yaml
1 change: 1 addition & 0 deletions examples/va/nvidia-mdev/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
control-plane.yaml
98 changes: 98 additions & 0 deletions examples/va/nvidia-mdev/control-plane/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
---
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

transformers:
# Set namespace to OpenStack on all namespaced objects without a namespace
- |-
apiVersion: builtin
kind: NamespaceTransformer
metadata:
name: _ignored_
namespace: openstack
setRoleBindingSubjects: none
unsetOnly: true
fieldSpecs:
- path: metadata/name
kind: Namespace
create: true
components:
- ../../../../lib/networking/metallb
- ../../../../lib/networking/netconfig
- ../../../../lib/networking/nad
- ../../../../lib/control-plane

resources:
- nncp/values.yaml
- service-values.yaml

replacements:
# Control plane customization
- source:
kind: ConfigMap
name: service-values
fieldPath: data.neutron.customServiceConfig
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.neutron.template.customServiceConfig
options:
create: true
# OVN control plane SRIOV customization
- source:
kind: ConfigMap
name: service-values
fieldPath: data.ovn.ovnController.nicMappings
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.ovn.template.ovnController.nicMappings
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.glance.customServiceConfig
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.glance.template.customServiceConfig
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.glance.default.replicas
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.glance.template.glanceAPIs.default.replicas
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.swift.enabled
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.swift.enabled
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.nova.schedulerServiceTemplate.customServiceConfig
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.nova.template.schedulerServiceTemplate.customServiceConfig
options:
create: true
1 change: 1 addition & 0 deletions examples/va/nvidia-mdev/control-plane/nncp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nncp.yaml
24 changes: 24 additions & 0 deletions examples/va/nvidia-mdev/control-plane/nncp/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

transformers:
# Set namespace to OpenStack on all namespaced objects without a namespace
- |-
apiVersion: builtin
kind: NamespaceTransformer
metadata:
name: _ignored_
namespace: openstack
setRoleBindingSubjects: none
unsetOnly: true
fieldSpecs:
- path: metadata/name
kind: Namespace
create: true

components:
- ../../../../../lib/nncp

resources:
- values.yaml
Loading
Loading