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

OSASINFRA-IPV6 DT #421

Merged
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
80 changes: 80 additions & 0 deletions automation/vars/osasinfra-ipv6.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
vas:
osasinfra-ipv6:
stages:
- path: examples/dt/osasinfra-ipv6/control-plane/nncp
wait_conditions:
- >-
oc -n openstack wait nncp
-l osp/nncm-config-type=standard
--for jsonpath='{.status.conditions[0].reason}'=SuccessfullyConfigured
--timeout=5m
values:
- name: network-values
src_file: values.yaml
build_output: nncp.yaml

- path: examples/dt/osasinfra-ipv6/control-plane
wait_conditions:
- >-
oc -n openstack wait openstackcontrolplane
controlplane
--for condition=Ready
--timeout=60m
values:
- name: network-values
src_file: nncp/values.yaml
- name: service-values.yaml
src_file: service-values.yaml
build_output: ../control-plane.yaml

- path: examples/dt/osasinfra-ipv6/edpm-pre-ceph/nodeset
wait_conditions:
- >-
oc -n openstack wait
osdpns openstack-edpm --for condition=SetupReady
--timeout=10m
values:
- name: edpm-nodeset-values
src_file: values.yaml
build_output: nodeset-pre-ceph.yaml

- path: examples/dt/osasinfra-ipv6/edpm-pre-ceph/deployment
wait_conditions:
- >-
oc -n openstack wait
osdpns openstack-edpm --for condition=Ready
--timeout=30m
values:
- name: edpm-deployment-values
src_file: values.yaml
build_output: deployment-pre-ceph.yaml
post_stage_run:
- name: Deploy Ceph
type: playbook
source: "../../playbooks/ceph.yml"
inventory: "${HOME}/ci-framework-data/artifacts/zuul_inventory.yml"

- path: examples/dt/osasinfra-ipv6
wait_conditions:
- >-
oc -n openstack wait
osdpns openstack-edpm --for condition=SetupReady
--timeout=10m
values:
- name: service-values
src_file: service-values.yaml
- name: edpm-nodeset-values-post-ceph
src_file: values.yaml
build_output: nodeset-post-ceph.yaml

- path: examples/dt/osasinfra-ipv6/deployment
wait_conditions:
- >-
oc -n openstack wait
osdpns openstack-edpm --for condition=Ready
--timeout=40m
values:
- name: edpm-deployment-values-post-ceph
src_file: values.yaml
build_output: deployment-post-ceph.yaml
11 changes: 11 additions & 0 deletions dt/osasinfra-ipv6/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Deployed Topology - osasinfra-ipv6

If you are looking for information on how to deploy the osasinfra-ipv6 DT, then
please the [README](../../examples/dt/osasinfra-ipv6/README.md) in the examples
directory.

This directory `dt/osasinfra-ipv6/`, exists so that the
[kustomization.yaml](../../examples/dt/osasinfra-ipv6/kustomization.yaml) in
the examples directory of osasinfra-ipv6 topology, reference it by path as a
component. It's contents are likely uninteresting unless you want to understand
how kustomize was implemented in this repository.
34 changes: 34 additions & 0 deletions dt/osasinfra-ipv6/edpm-post-ceph/deployment/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
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/dataplane/deployment

replacements:
- source:
kind: ConfigMap
name: edpm-deployment-values-post-ceph
fieldPath: data.deployment.name
targets:
- select:
kind: OpenStackDataPlaneDeployment
fieldPaths:
- metadata.name
options:
create: true
10 changes: 10 additions & 0 deletions dt/osasinfra-ipv6/edpm-post-ceph/nodeset/ceph_secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
apiVersion: v1
data:
ceph.client.openstack.keyring: _replaced_
ceph.conf: _replaced_
kind: Secret
metadata:
name: ceph-conf-files
namespace: openstack
type: Opaque
17 changes: 17 additions & 0 deletions dt/osasinfra-ipv6/edpm-post-ceph/nodeset/extra_mounts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneNodeSet
metadata:
name: openstack-edpm
spec:
nodeTemplate:
extraMounts:
- extraVolType: Ceph
mounts:
- mountPath: /etc/ceph
name: ceph
readOnly: true
volumes:
- name: ceph
secret:
secretName: ceph-conf-files
Loading