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

adjust hypershift-mce-power-conformance workflow #51887

Merged
merged 2 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions ci-operator/step-registry/hypershift/mce/power/OWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ approvers:
- mkumatag
- dharaneeshvrd
- Shilpa-Gokul
- LiangquanLi930
options: {}
reviewers:
- mkumatag
- dharaneeshvrd
- Shilpa-Gokul
- LiangquanLi930
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ approvers:
- mkumatag
- dharaneeshvrd
- Shilpa-Gokul
- LiangquanLi930
options: {}
reviewers:
- mkumatag
- dharaneeshvrd
- Shilpa-Gokul
- LiangquanLi930
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
"approvers": [
"mkumatag",
"dharaneeshvrd",
"Shilpa-Gokul"
"Shilpa-Gokul",
"LiangquanLi930"
],
"reviewers": [
"mkumatag",
"dharaneeshvrd",
"Shilpa-Gokul"
"Shilpa-Gokul",
"LiangquanLi930"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ workflow:
- ref: ingress-aws-nlb-manifest
- chain: ipi-aws-pre
- ref: hypershift-mce-install
- ref: hypershift-mce-conf-os-images
- ref: hypershift-mce-power-create
test:
- ref: hypershift-mce-agent-info
- chain: hypershift-mce-power-test
LiangquanLi930 marked this conversation as resolved.
Show resolved Hide resolved
- chain: hypershift-conformance
post:
Expand Down
2 changes: 2 additions & 0 deletions ci-operator/step-registry/hypershift/mce/power/create/OWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ approvers:
- mkumatag
- dharaneeshvrd
- Shilpa-Gokul
- LiangquanLi930
options: {}
reviewers:
- mkumatag
- dharaneeshvrd
- Shilpa-Gokul
- LiangquanLi930
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ POWERVS_VSI_PROC_TYPE="shared"
POWERVS_VSI_SYS_TYPE="e980"

# MCE agentserviceconfig configs
export DB_VOLUME_SIZE="10Gi"
export FS_VOLUME_SIZE="10Gi"
export ARCH="ppc64le"
DB_VOLUME_SIZE="10Gi"
FS_VOLUME_SIZE="10Gi"

# InfraEnv configs
SSH_PUB_KEY_FILE="${AGENT_POWER_CREDENTIALS}/ssh-publickey"
Expand Down Expand Up @@ -142,29 +141,11 @@ data:
EOF


oc adm release info ${OCP_IMAGE_MULTI} --filter-by-os=linux/ppc64le -o json > ocpversion.json
OPENSHIFT_VERSION="$(cat ocpversion.json | jq -r . | grep "BUILD_VERSION=v" | tr -d 'v",' | awk -F '=' '{print $2}')"
export OPENSHIFT_VERSION

if [[ "${OPENSHIFT_VERSION}" == *"4.14."* ]]
then
RHCOS_VERSION="4.14-9.2"
elif [[ "${OPENSHIFT_VERSION}" == *"4.15."* ]]
then
RHCOS_VERSION="4.15-9.2"
else
echo "unrecognized version for RHCOS"
exit 1
fi

RHCOS_BUILD_VERSION=$(cat ocpversion.json | jq -r '.displayVersions."machine-os".Version')
export RHCOS_BUILD_VERSION
export ISO_URL="https://rhcos.mirror.openshift.com/art/storage/prod/streams/${RHCOS_VERSION}/builds/${RHCOS_BUILD_VERSION}/ppc64le/rhcos-${RHCOS_BUILD_VERSION}-live.ppc64le.iso"
export ROOT_FS_URL="https://rhcos.mirror.openshift.com/art/storage/prod/streams/${RHCOS_VERSION}/builds/${RHCOS_BUILD_VERSION}/ppc64le/rhcos-${RHCOS_BUILD_VERSION}-live-rootfs.ppc64le.img"

# Creating AgentServiceConfig
CLUSTER_VERSION=$(oc get clusterversion -o jsonpath={..desired.version} | cut -d '.' -f 1,2)
OS_IMAGES=$(jq --arg CLUSTER_VERSION "${CLUSTER_VERSION}" '[.[] | select(.openshift_version == $CLUSTER_VERSION)]' "${SHARED_DIR}/default_os_images.json")
echo "$(date) Creating AgentServiceConfig"
envsubst <<"EOF" | oc apply -f -
cat <<EOF | oc create -f -
apiVersion: agent-install.openshift.io/v1beta1
kind: AgentServiceConfig
metadata:
Expand All @@ -185,11 +166,10 @@ spec:
mirrorRegistryRef:
name: mirror-config
osImages:
- openshiftVersion: "${OPENSHIFT_VERSION}"
version: "${RHCOS_BUILD_VERSION}"
url: "${ISO_URL}"
rootFSUrl: "${ROOT_FS_URL}"
cpuArchitecture: "${ARCH}"
- openshiftVersion: "${CLUSTER_VERSION}"
version: $(echo "$OS_IMAGES" | jq -r '.[] | select(.cpu_architecture == "ppc64le").version')
url: $(echo "$OS_IMAGES" | jq -r '.[] | select(.cpu_architecture == "ppc64le").url')
cpuArchitecture: ppc64le
EOF

oc wait --timeout=5m --for=condition=DeploymentsHealthy agentserviceconfig agent
Expand Down Expand Up @@ -274,7 +254,7 @@ metadata:
name: ${HOSTED_CLUSTER_NAME}
namespace: ${HOSTED_CONTROL_PLANE_NAMESPACE}
spec:
cpuArchitecture: $ARCH
cpuArchitecture: ppc64le
pullSecretRef:
name: pull-secret
sshAuthorizedKey: ${SSH_PUB_KEY}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
"approvers": [
"mkumatag",
"dharaneeshvrd",
"Shilpa-Gokul"
"Shilpa-Gokul",
"LiangquanLi930"
],
"reviewers": [
"mkumatag",
"dharaneeshvrd",
"Shilpa-Gokul"
"Shilpa-Gokul",
"LiangquanLi930"
]
}
}
2 changes: 2 additions & 0 deletions ci-operator/step-registry/hypershift/mce/power/destroy/OWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ approvers:
- mkumatag
- dharaneeshvrd
- Shilpa-Gokul
- LiangquanLi930
options: {}
reviewers:
- mkumatag
- dharaneeshvrd
- Shilpa-Gokul
- LiangquanLi930
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
"approvers": [
"mkumatag",
"dharaneeshvrd",
"Shilpa-Gokul"
"Shilpa-Gokul",
"LiangquanLi930"
],
"reviewers": [
"mkumatag",
"dharaneeshvrd",
"Shilpa-Gokul"
"Shilpa-Gokul",
"LiangquanLi930"
]
}
}
2 changes: 2 additions & 0 deletions ci-operator/step-registry/hypershift/mce/power/test/OWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ approvers:
- mkumatag
- dharaneeshvrd
- Shilpa-Gokul
- LiangquanLi930
options: {}
reviewers:
- mkumatag
- dharaneeshvrd
- Shilpa-Gokul
- LiangquanLi930
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
"approvers": [
"mkumatag",
"dharaneeshvrd",
"Shilpa-Gokul"
"Shilpa-Gokul",
"LiangquanLi930"
],
"reviewers": [
"mkumatag",
"dharaneeshvrd",
"Shilpa-Gokul"
"Shilpa-Gokul",
"LiangquanLi930"
]
}
}