Skip to content

Commit

Permalink
create a hybrid cluster and run the e2e tests on it
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobTanenbaum committed Apr 3, 2020
1 parent ff8a0f8 commit d11bca7
Show file tree
Hide file tree
Showing 8 changed files with 98 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,8 @@ tests:
steps:
cluster_profile: aws
workflow: origin-e2e-aws-ovn
- as: e2e-ovn-hybrid-step-registry
commands: ""
steps:
cluster_profile: aws
workflow: origin-e2e-aws-ovn-hybrid
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ cp "${SHARED_DIR}/install-config.yaml" "${dir}/"
mkdir -p ~/.ssh
cp "${SSH_PRIV_KEY_PATH}" ~/.ssh/


TF_LOG=debug openshift-install --dir="${dir}" create manifests

while IFS= read -r -d '' item
do
manifest="$( basename "${item}" )"
cp "${item}" "${dir}/manifests/${manifest##manifest_}"
done < <( find "${SHARED_DIR}" -name "manifest_*.yml" -print0)


TF_LOG=debug openshift-install --dir="${dir}" create cluster 2>&1 | grep --line-buffered -v password &

set +e
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ ref:
cpu: 1000m
memory: 2Gi
documentation: |-
The IPI install step runs the OpenShift Installer in order to bring up an OpenShift cluster, using the provided cluster profile to choose a target IaaS platform.
The IPI install step runs the OpenShift Installer in order to bring up an OpenShift cluster, using the provided cluster profile to choose a target IaaS platform. Anything that needs to be configured using manifests should generate them before this step and put them in the SHARED_DIR with the filename manifest_(manifest_name).yml so that this step can pull in the manifest in.
17 changes: 17 additions & 0 deletions ci-operator/step-registry/origin/e2e-aws-ovn-hybrid/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md

approvers:
- danwinship
- dcbw
- knobunc
- pecameron
- squeed
reviewers:
- alexanderconstantinescu
- danwinship
- dcbw
- jacobtanenbaum
- pecameron
- rcarrillocruz
- squeed
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
workflow:
as: origin-e2e-aws-ovn-hybrid
steps:
pre:
- chain: ipi-conf-aws
- ref: ovn-conf
- ref: ovn-conf-hybrid-manifest
- chain: ipi-install
test:
- ref: origin-e2e-test
post:
- chain: ipi-deprovision
documentation: |-
The Origin E2E OVN workflow executes the common end-to-end test suite with the OVNKubernetes network plugin with a configured hybrid network.
17 changes: 17 additions & 0 deletions ci-operator/step-registry/ovn/conf/hybrid-manifest/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md

approvers:
- danwinship
- dcbw
- knobunc
- pecameron
- squeed
reviewers:
- alexanderconstantinescu
- danwinship
- dcbw
- jacobtanenbaum
- pecameron
- rcarrillocruz
- squeed
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail

cat >> "${SHARED_DIR}/manifest_cluster-network-03-config.yml" << EOF
apiVersion: config.openshift.io/v1
kind: Network
metadata:
name: cluster
spec:
clusterNetwork:
- cidr: 10.128.0.0/14
hostPrefix: 23
defaultNetwork:
ovnKubernetesConfig:
hybridOverlayConfig:
hybridClusterNetwork:
- cidr: 10.132.0.0/14
hostPrefix: 23
networkType: OVNKubernetes
serviceNetwork:
- 172.30.0.0/16
EOF
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
ref:
as: ovn-conf-hybrid-manifest
from: base
commands: ovn-conf-hybrid-manifest-commands.sh
resources:
requests:
cpu: 10m
memory: 100Mi
documentation: |-
The ovn hybrid manifest step adds the configuration for the hybrid networking to set of manifests for installation

0 comments on commit d11bca7

Please sign in to comment.