forked from openshift/release
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce metal job for testing (openshift#51357)
Job is to test connecitivty between Prow and Metal lab Signed-off-by: Joe Talerico <[email protected]> Co-authored-by: Joe Talerico <[email protected]>
- Loading branch information
Showing
15 changed files
with
486 additions
and
8 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
...qe/ocp-qe-perfscale-ci/openshift-qe-ocp-qe-perfscale-ci-main__metal-4.15-nightly-x86.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,43 @@ | ||
build_root: | ||
image_stream_tag: | ||
name: ci-tools-build-root | ||
namespace: ci | ||
tag: latest | ||
images: | ||
- dockerfile_path: prow/Dockerfile | ||
to: ocp-qe-perfscale-ci-metal-415 | ||
promotion: | ||
to: | ||
- namespace: ci | ||
tag: latest | ||
releases: | ||
latest: | ||
candidate: | ||
product: ocp | ||
stream: nightly | ||
version: "4.15" | ||
resources: | ||
'*': | ||
requests: | ||
cpu: 100m | ||
memory: 200Mi | ||
tests: | ||
- always_run: false | ||
as: node-density-heavy-6nodes | ||
cluster: build05 | ||
steps: | ||
cluster_profile: metal-perscale-cpt | ||
env: | ||
BAREMETAL: "true" | ||
NUM_WORKER_NODES: "6" | ||
RUN_CERBERUS: "false" | ||
test: | ||
- chain: openshift-qe-installer-bm-ping | ||
- chain: openshift-qe-installer-bm-deploy | ||
- chain: openshift-qe-node-density-heavy | ||
timeout: 7h0m0s | ||
zz_generated_metadata: | ||
branch: main | ||
org: openshift-qe | ||
repo: ocp-qe-perfscale-ci | ||
variant: metal-4.15-nightly-x86 |
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
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
1 change: 1 addition & 0 deletions
1
ci-operator/step-registry/openshift-qe/installer/bm/deploy/OWNERS
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 @@ | ||
../../OWNERS |
31 changes: 31 additions & 0 deletions
31
...try/openshift-qe/installer/bm/deploy/openshift-qe-installer-bm-deploy-chain.metadata.json
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,31 @@ | ||
{ | ||
"path": "openshift-qe/installer/bm/deploy/openshift-qe-installer-bm-deploy-chain.yaml", | ||
"owners": { | ||
"approvers": [ | ||
"qiliredhat", | ||
"paigerube14", | ||
"mffiedler", | ||
"jtaleric", | ||
"svetsa-rh" | ||
], | ||
"reviewers": [ | ||
"jogeo", | ||
"memodi", | ||
"mffiedler", | ||
"paigerube14", | ||
"rpattath", | ||
"skordas", | ||
"jtaleric", | ||
"svetsa-rh", | ||
"shahsahil264", | ||
"liqcui", | ||
"krishvoor", | ||
"afcollins", | ||
"rsevilla87", | ||
"vishnuchalla", | ||
"sachinninganure", | ||
"chaitanyaenr", | ||
"josecastillolema" | ||
] | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
...tep-registry/openshift-qe/installer/bm/deploy/openshift-qe-installer-bm-deploy-chain.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,6 @@ | ||
chain: | ||
as: openshift-qe-installer-bm-deploy | ||
steps: | ||
- ref: openshift-qe-installer-bm-deploy | ||
documentation: |- | ||
Test connectivity to the bastion host |
58 changes: 58 additions & 0 deletions
58
...ep-registry/openshift-qe/installer/bm/deploy/openshift-qe-installer-bm-deploy-commands.sh
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,58 @@ | ||
#!/bin/bash | ||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
set -x | ||
|
||
|
||
# Fix UID issue (from Telco QE Team) | ||
~/fix_uid.sh | ||
|
||
bastion=$(cat "/secret/address") | ||
|
||
cat <<EOF >>/tmp/all.yml | ||
--- | ||
lab: scalelab | ||
lab_cloud: | ||
cluster_type: $TYPE | ||
worker_node_count: $NUM_WORKER_NODES | ||
sno_node_count: | ||
public_vlan: false | ||
ocp_release_image: $OCP_RELEASE_IMAGE | ||
openshift_version: "$OCP_VERSION_SHORT" | ||
networktype: OVNKubernetes | ||
enable_fips: $FIPS | ||
ssh_private_key_file: ~/.ssh/id_rsa | ||
ssh_public_key_file: ~/.ssh/id_rsa.pub | ||
pull_secret: "{{ lookup('file', '../pull_secret.txt') }}" | ||
bastion_cluster_config_dir: /root/{{ cluster_type }} | ||
smcipmitool_url: | ||
bastion_lab_interface: eno12399 | ||
bastion_controlplane_interface: ens6f0 | ||
controlplane_network: 192.168.216.1/21 | ||
controlplane_network_prefix: 21 | ||
bastion_vlaned_interface: ens1f1 | ||
setup_bastion_gogs: false | ||
setup_bastion_registry: false | ||
use_bastion_registry: false | ||
controlplane_lab_interface: eno1np0 | ||
controlplane_pub_network_cidr: | ||
controlplane_pub_network_gateway: | ||
jumbo_mtu: false | ||
rwn_lab_interface: eno1np0 | ||
rwn_network_interface: ens1f0 | ||
EOF | ||
|
||
envsubst < /tmp/all.yml > /tmp/all-updated.yml | ||
|
||
sshpass -p "$(cat /secret/login)" scp -q -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null /tmp/all-updated.yml root@${bastion}:~/jetlag/ansible/vars/all.yml | ||
sshpass -p "$(cat /secret/login)" scp -q -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null /secret/inventory root@${bastion}:~/jetlag/ansible/inventory/telco.inv | ||
|
||
# Clean up previous attempts | ||
sshpass -p "$(cat /secret/login)" ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null root@${bastion} "./clean-resources.sh" | ||
|
||
# Setup Bastion | ||
sshpass -p "$(cat /secret/login)" ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null root@${bastion} "cd jetlag; source bootstrap.sh; ansible-playbook -i ansible/inventory/telco.inv ansible/setup-bastion.yml" | ||
|
||
# Attempt Deployment | ||
sshpass -p "$(cat /secret/login)" ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null root@${bastion} "cd jetlag; source bootstrap.sh; ansible-playbook -i ansible/inventory/telco.inv ansible/bm-deploy.yml -v" |
Oops, something went wrong.