See <
https://jenkins.antrea-ci.rocks/job/cloud-antrea-gke-cleanup/680/display/redirect?page=changes>
Changes:
[noreply] Bump the artifact-actions group with 1 update (#6097)
[noreply] Bump actions/setup-go from 4 to 5 (#6098)
[noreply] Update GKE job to support the new cloud credentials (#5946)
[noreply] Move KinD tests for UBI images to a dedicated workflow (#6091)
------------------------------------------
Started by upstream project "cloud-antrea-gke-conformance-net-policy" build number 726
originally caused by:
Started by timer
Running as SYSTEM
Building remotely on antrea-cloud-ci-vm (antrea-cloud) in workspace <
https://jenkins.antrea-ci.rocks/job/cloud-antrea-gke-cleanup/ws/>
No credentials specified
Wiping out workspace first.
Cloning the remote Git repository
Cloning repository
https://github.com/antrea-io/antrea/
> git init <
https://jenkins.antrea-ci.rocks/job/cloud-antrea-gke-cleanup/ws/> # timeout=10
Fetching upstream changes from
https://github.com/antrea-io/antrea/
> git --version # timeout=10
> git fetch --tags --progress --
https://github.com/antrea-io/antrea/ +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url
https://github.com/antrea-io/antrea/ # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url
https://github.com/antrea-io/antrea/ # timeout=10
Fetching upstream changes from
https://github.com/antrea-io/antrea/
> git fetch --tags --progress --
https://github.com/antrea-io/antrea/ +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse origin/main^{commit} # timeout=10
Checking out Revision 7e3aa12330373b15704af71135c3fd055f01e006 (origin/main)
> git config core.sparsecheckout # timeout=10
> git checkout -f 7e3aa12330373b15704af71135c3fd055f01e006 # timeout=10
Commit message: "Move KinD tests for UBI images to a dedicated workflow (#6091)"
> git rev-list --no-walk daed98b8138737710c92124fbda426fe92982ee6 # timeout=10
[cloud-antrea-gke-cleanup] $ /bin/bash /tmp/jenkins2262044427123400201.sh
+ source /home/ubuntu/.bashrc
++ case $- in
++ return
+ ./ci/test-conformance-gke.sh --gcloud-sdk-path /home/ubuntu/google-cloud-sdk --cluster-name antrea-gke-726 --cleanup-only
+ GKE_ZONE=us-west1-a
+ GKE_HOST=UBUNTU_CONTAINERD
+ MACHINE_TYPE=e2-standard-4
+ GKE_PROJECT=antrea
+ KUBECONFIG_PATH=/home/ubuntu/jenkins/out/gke
+ MODE=report
+ RUN_ALL=true
+ RUN_SETUP_ONLY=false
+ RUN_CLEANUP_ONLY=false
+ SKIP_IAM_POLICY_BINDING=false
+ TEST_SCRIPT_RC=0
+ KUBE_CONFORMANCE_IMAGE_VERSION=auto
+ _usage='Usage: ./ci/test-conformance-gke.sh [--cluster-name <GKEClusterNameToUse>] [--kubeconfig <KubeconfigSavePath>] [--k8s-version <ClusterVersion>] [--svc-account <Name>] [--user <Name>] [--gke-project <Project>] [--gke-zone <Zone>] [--log-mode <SonobuoyResultLogLevel>] [--svc-cidr <ServiceCIDR>] [--host-type <HostType] [--machine-type <MachineType] [--gloud-path] [--setup-only] [--cleanup-only]
Setup a GKE cluster to run K8s e2e community tests (Conformance & Network Policy).
Before running the script, login to gcloud with `gcloud auth login` or `gcloud auth activate-service-account`
and create the project to be used for cluster with `gcloud projects create`.
--cluster-name The cluster name to be used for the generated GKE cluster. Must be specified if not run in Jenkins environment.
--kubeconfig Path to save kubeconfig of generated GKE cluster.
--k8s-version GKE K8s cluster version. Defaults to the latest supported stable version documented at
https://cloud.google.com/kubernetes-engine/docs/release-notes.
--svc-account Service acount name if logged in with service account. Use --user instead if logged in with gcloud auth login.
--user Email address if logged in with user account. Use --svc-account instead if logged in with service account.
--gke-project The GKE project to be used. Needs to be pre-created before running the script.
--gke-zone The GKE zone where the cluster will be initiated. Defaults to us-west1-a.
--svc-cidr The service CIDR to be used for cluster. Defaults to
10.94.0.0/16.
--host-type The host type of worker node. Defaults to UBUNTU.
--machine-type The machine type of worker node. Defaults to e2-standard-4.
--gcloud-sdk-path The path of gcloud installation. Only need to be explicitly set for Jenkins environments.
--log-mode Use the flag to set either '\''report'\'', '\''detail'\'', or '\''dump'\'' level data for sonobuoy results.
--setup-only Only perform setting up the cluster and run test.
--cleanup-only Only perform cleaning up the cluster.'
+ [[ 5 -gt 0 ]]
+ key=--gcloud-sdk-path
+ case $key in
+ GCLOUD_SDK_PATH=/home/ubuntu/google-cloud-sdk
+ shift 2
+ [[ 3 -gt 0 ]]
+ key=--cluster-name
+ case $key in
+ CLUSTER=antrea-gke-726
+ shift 2
+ [[ 1 -gt 0 ]]
+ key=--cleanup-only
+ case $key in
+ RUN_CLEANUP_ONLY=true
+ RUN_ALL=false
+ shift
+ [[ 0 -gt 0 ]]
+ [[ ! -z x ]]
+ export PATH=/home/ubuntu/google-cloud-sdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
+ PATH=/home/ubuntu/google-cloud-sdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
++ command -v gcloud
+ '[' -x /home/ubuntu/google-cloud-sdk/bin/gcloud ']'
+++ dirname ./ci/test-conformance-gke.sh
++ cd ./ci
++ pwd
+ THIS_DIR=<
https://jenkins.antrea-ci.rocks/job/cloud-antrea-gke-cleanup/ws/ci>
+ GIT_CHECKOUT_DIR=<
https://jenkins.antrea-ci.rocks/job/cloud-antrea-gke-cleanup/ws/ci/..>
+ pushd <
https://jenkins.antrea-ci.rocks/job/cloud-antrea-gke-cleanup/ws/ci>
+ source <
https://jenkins.antrea-ci.rocks/job/cloud-antrea-gke-cleanup/ws/ci/jenkins/utils.sh>
+ export CLOUDSDK_CORE_DISABLE_PROMPTS=1
+ CLOUDSDK_CORE_DISABLE_PROMPTS=1
+ export CLOUDSDK_CORE_PROJECT=antrea
+ CLOUDSDK_CORE_PROJECT=antrea
+ [[ false == true ]]
+ [[ false == true ]]
+ [[ false == true ]]
+ [[ true == true ]]
+ cleanup_cluster
+ echo '=== Cleaning up GKE cluster ${cluster} ==='
=== Cleaning up GKE cluster ${cluster} ===
+ set +e
+ retry=5
+ [[ 5 -gt 0 ]]
+ gcloud container clusters delete antrea-gke-726 --zone us-west1-a
ERROR: (gcloud.container.clusters.delete) Some requests did not succeed:
- args: ["ResponseError: code=404, message=Not found: projects/antrea/zones/us-west1-a/clusters/antrea-gke-726.\nNo cluster named 'antrea-gke-726' in antrea."]
exit_code: 1
+ [[ 1 -eq 0 ]]
+ sleep 10
+ retry=4
+ [[ 4 -gt 0 ]]
+ gcloud container clusters delete antrea-gke-726 --zone us-west1-a
ERROR: (gcloud.container.clusters.delete) Some requests did not succeed:
- args: ["ResponseError: code=404, message=Not found: projects/antrea/zones/us-west1-a/clusters/antrea-gke-726.\nNo cluster named 'antrea-gke-726' in antrea."]
exit_code: 1
+ [[ 1 -eq 0 ]]
+ sleep 10
+ retry=3
+ [[ 3 -gt 0 ]]
+ gcloud container clusters delete antrea-gke-726 --zone us-west1-a
ERROR: (gcloud.container.clusters.delete) Some requests did not succeed:
- args: ["ResponseError: code=404, message=Not found: projects/antrea/zones/us-west1-a/clusters/antrea-gke-726.\nNo cluster named 'antrea-gke-726' in antrea."]
exit_code: 1
+ [[ 1 -eq 0 ]]
+ sleep 10
+ retry=2
+ [[ 2 -gt 0 ]]
+ gcloud container clusters delete antrea-gke-726 --zone us-west1-a
ERROR: (gcloud.container.clusters.delete) Some requests did not succeed:
- args: ["ResponseError: code=404, message=Not found: projects/antrea/zones/us-west1-a/clusters/antrea-gke-726.\nNo cluster named 'antrea-gke-726' in antrea."]
exit_code: 1
+ [[ 1 -eq 0 ]]
+ sleep 10
+ retry=1
+ [[ 1 -gt 0 ]]
+ gcloud container clusters delete antrea-gke-726 --zone us-west1-a
ERROR: (gcloud.container.clusters.delete) Some requests did not succeed:
- args: ["ResponseError: code=404, message=Not found: projects/antrea/zones/us-west1-a/clusters/antrea-gke-726.\nNo cluster named 'antrea-gke-726' in antrea."]
exit_code: 1
+ [[ 1 -eq 0 ]]
+ sleep 10
+ retry=0
+ [[ 0 -gt 0 ]]
+ [[ 0 -eq 0 ]]
+ echo '=== Failed to delete GKE cluster antrea-gke-726! ==='
=== Failed to delete GKE cluster antrea-gke-726! ===
+ exit 1
Build step 'Execute shell' marked build as failure