-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deployment for UniDelta integration pipeline
- Loading branch information
Showing
32 changed files
with
1,589 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
--- | ||
vas: | ||
uni04delta: | ||
stages: | ||
- path: examples/dt/uni04delta/control-plane/nncp | ||
wait_conditions: | ||
- >- | ||
oc -n openstack wait nncp | ||
-l osp/nncm-config-type=standard | ||
--for jsonpath='{.status.conditions[0].reason}'=SuccessfullyConfigured | ||
values: | ||
- name: network-values | ||
src_file: values.yaml | ||
build_output: nncp.yaml | ||
|
||
- path: examples/dt/uni04delta/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.yaml | ||
src_file: service-values.yaml | ||
build_output: control-plane.yaml | ||
|
||
- path: examples/dt/uni04delta/edpm-pre-ceph/nodeset | ||
wait_conditions: | ||
- >- | ||
oc -n openstack wait | ||
osdpns ceph-nodes --for condition=SetupReady | ||
--timeout=600s | ||
values: | ||
- name: edpm-nodeset-values | ||
src_file: values.yaml | ||
build_output: nodeset-pre-ceph.yaml | ||
|
||
- path: examples/dt/uni04delta/edpm-pre-ceph | ||
wait_conditions: | ||
- >- | ||
oc -n openstack wait | ||
osdpd edpm-deployment-pre-ceph --for condition=Ready | ||
--timeout=1500s | ||
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/uni04delta | ||
wait_conditions: | ||
- >- | ||
oc -n openstack wait osdpns | ||
openstack-edpm | ||
--for condition=SetupReady | ||
--timeout=2400s | ||
values: | ||
- name: service-values | ||
src_file: control-plane/service-values.yaml | ||
- name: edpm-nodeset-values | ||
src_file: values.yaml | ||
build_output: edpm-nodeset.yaml | ||
|
||
- path: examples/dt/uni04delta/deployment | ||
wait_conditions: | ||
- >- | ||
oc -n openstack wait osdpd | ||
edpm-deployment | ||
--for condition=Ready | ||
--timeout=2400s | ||
values: | ||
- name: edpm-deployment-values-post-ceph | ||
src_file: values.yaml | ||
build_output: edpm.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Deployed Topology - Delta | ||
|
||
If you are looking for information on how to deploy the Unified Delta deployed | ||
topology of OpenStack Services on OpenShift, then please see the | ||
[README](../../examples/dt/uni04delta/README.md) in the examples directory. | ||
|
||
This directory, 'dt/uni04delta/', exists so that the | ||
[kustomization.yaml](../../examples/dt/uni04delta/kustomization.yaml) in the | ||
examples directory of unified-delta 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
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 | ||
fieldPath: data.deployment.name | ||
targets: | ||
- select: | ||
kind: OpenStackDataPlaneDeployment | ||
fieldPaths: | ||
- metadata.name | ||
options: | ||
create: true | ||
|
||
patches: | ||
- target: | ||
kind: OpenStackDataPlaneDeployment | ||
name: .* | ||
patch: |- | ||
- op: replace | ||
path: /metadata/name | ||
value: edpm-deployment-pre-ceph | ||
- target: | ||
kind: OpenStackDataPlaneDeployment | ||
name: .* | ||
patch: |- | ||
- op: replace | ||
path: /spec/nodeSets | ||
value: | ||
- ceph-nodes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1alpha1 | ||
kind: Component | ||
|
||
transformers: | ||
- |- | ||
apiVersion: builtin | ||
kind: NamespaceTransformer | ||
metadata: | ||
name: _ignored_ | ||
namespace: openstack | ||
setRoleBindingSubjects: none | ||
unsetOnly: true | ||
fieldSpecs: | ||
- path: metadata/name | ||
kind: Namespace | ||
create: true | ||
components: | ||
- ../../../../lib/dataplane/nodeset | ||
|
||
patches: | ||
- target: | ||
kind: OpenStackDataPlaneNodeSet | ||
name: .* | ||
patch: |- | ||
- op: replace | ||
path: /metadata/name | ||
value: ceph-nodes | ||
- target: | ||
kind: Secret | ||
name: nova-migration-ssh-key | ||
patch: |- | ||
- op: add | ||
path: /metadata/annotations | ||
value: | ||
config.kubernetes.io/local-config: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
type: Opaque | ||
metadata: | ||
name: ceph-conf-files | ||
namespace: openstack | ||
data: | ||
ceph.client.openstack.keyring: _replaced_ | ||
ceph.conf: _replaced_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.