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

WIP: donot merge: Example for running custom cnfqe1 #58070

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ cat << EOF > $SHARED_DIR/get-cluster-name.yml
- name: Grab and run kcli to install openshift cluster
hosts: bastion
gather_facts: false
vars:
cluster:
{"cnfqe1": {"port": 6443, "ip", "10.46.100.20", "hvip": 10.46.100.1}}
tasks:
- name: Wait 300 seconds, but only start checking after 10 seconds
wait_for_connection:
Expand All @@ -111,7 +114,7 @@ cat << EOF > $SHARED_DIR/get-cluster-name.yml
retries: 15
delay: 2
- name: Discover cluster to run job
command: python3 ~/telco5g-lab-deployment/scripts/upstream_cluster_all.py --get-cluster $ADDITIONAL_ARG
command: python3 ~/telco5g-lab-deployment/scripts/upstream_cluster_all.py --get-cluster -c '{{ cluster| to_json}}'
register: cluster
environment:
JOB_NAME: ${JOB_NAME:-'unknown'}
Expand Down Expand Up @@ -139,7 +142,7 @@ cat << EOF > $SHARED_DIR/release-cluster.yml
tasks:

- name: Release cluster from job
command: python3 ~/telco5g-lab-deployment/scripts/upstream_cluster_all.py --release-cluster $CLUSTER_NAME
command: python3 ~/telco5g-lab-deployment/scripts/upstream_cluster_all.py --release-cluster $CLUSTER_NAME -s
EOF

if [[ "$CLUSTER_ENV" != "upstreambil" ]]; then
Expand Down