From 27506e82ca84ca83c326c38ec7120a5750bbde61 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Wed, 14 Aug 2024 14:48:33 +0900 Subject: [PATCH 1/3] CI: debug Signed-off-by: Akihiro Suda --- .github/workflows/main.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index d8a5102..9aef44c 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -83,6 +83,20 @@ jobs: - run: ./hack/create-cluster-lxd.sh - run: kubectl taint nodes --all node-role.kubernetes.io/control-plane- || true - run: ./hack/test-smoke.sh + - if: failure() + name: "kubectl get nodes" + run: | + set -x + kubectl get nodes -o wide + kubectl get nodes -o yaml + ssh -F ${HOME}/.u7s-ci-hosts/ssh_config host0 -- df -h + ssh -F ${HOME}/.u7s-ci-hosts/ssh_config host1 -- df -h + - if: failure() + name: "kubectl get pods" + run: | + set -x + kubectl get pods -A -o yaml + ssh -F ${HOME}/.u7s-ci-hosts/ssh_config host0 -- journalctl --user --no-pager --since "10 min ago" - name: "Test data persistency after restarting the node" run: | lxc restart host0 host1 From ec0eeb6b2ff567726b878d02b5854ae05a3b373c Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Wed, 14 Aug 2024 16:00:59 +0900 Subject: [PATCH 2/3] CI: relax disk pressure limit Signed-off-by: Akihiro Suda --- .github/workflows/main.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 9aef44c..eb2eef2 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -80,6 +80,11 @@ jobs: - run: sudo modprobe vxlan - uses: actions/checkout@v3 - uses: canonical/setup-lxd@v0.1.1 + - name: "Relax disk pressure limit" + run: | + set -x + sudo snap install yq + yq -i 'select(.kind=="KubeletConfiguration").evictionHard."imagefs.available"="3Gi"' kubeadm-config.yaml - run: ./hack/create-cluster-lxd.sh - run: kubectl taint nodes --all node-role.kubernetes.io/control-plane- || true - run: ./hack/test-smoke.sh From 4388ea8df7519f3551f12d18e60c3fdb8ad92c30 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Wed, 14 Aug 2024 13:43:55 +0900 Subject: [PATCH 3/3] update components (Kubernetes 1.31.0) Signed-off-by: Akihiro Suda --- Dockerfile | 4 ++-- Dockerfile.d/SHA256SUMS.d/cni-plugins-v1.5.0 | 2 -- Dockerfile.d/SHA256SUMS.d/cni-plugins-v1.5.1 | 2 ++ Makefile | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 Dockerfile.d/SHA256SUMS.d/cni-plugins-v1.5.0 create mode 100644 Dockerfile.d/SHA256SUMS.d/cni-plugins-v1.5.1 diff --git a/Dockerfile b/Dockerfile index df52994..a4f1b03 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -ARG BASE_IMAGE=docker.io/kindest/node:v1.30.0@sha256:047357ac0cfea04663786a612ba1eaba9702bef25227a794b52890dd8bcd692e -ARG CNI_PLUGINS_VERSION=v1.5.0 +ARG BASE_IMAGE=docker.io/kindest/node:v1.31.0@sha256:53df588e04085fd41ae12de0c3fe4c72f7013bba32a20e7325357a1ac94ba865 +ARG CNI_PLUGINS_VERSION=v1.5.1 FROM ${BASE_IMAGE} COPY Dockerfile.d/SHA256SUMS.d/ /tmp/SHA256SUMS.d ARG CNI_PLUGINS_VERSION diff --git a/Dockerfile.d/SHA256SUMS.d/cni-plugins-v1.5.0 b/Dockerfile.d/SHA256SUMS.d/cni-plugins-v1.5.0 deleted file mode 100644 index 729e73a..0000000 --- a/Dockerfile.d/SHA256SUMS.d/cni-plugins-v1.5.0 +++ /dev/null @@ -1,2 +0,0 @@ -57a18478422cb321370e30a5ee6ce026321289cd9c94353ca697dddd7714f1a5 cni-plugins-linux-amd64-v1.5.0.tgz -ab38507efe50c34bc2242a25c5783c19fdfe0376c65a2a91d48174d4f39f1fc2 cni-plugins-linux-arm64-v1.5.0.tgz diff --git a/Dockerfile.d/SHA256SUMS.d/cni-plugins-v1.5.1 b/Dockerfile.d/SHA256SUMS.d/cni-plugins-v1.5.1 new file mode 100644 index 0000000..6a91ab3 --- /dev/null +++ b/Dockerfile.d/SHA256SUMS.d/cni-plugins-v1.5.1 @@ -0,0 +1,2 @@ +77baa2f669980a82255ffa2f2717de823992480271ee778aa51a9c60ae89ff9b cni-plugins-linux-amd64-v1.5.1.tgz +c2a292714d0fad98a3491ae43df8ad58354b3c0bdf5d5a3e281777967c70fcff cni-plugins-linux-arm64-v1.5.1.tgz diff --git a/Makefile b/Makefile index 7075b73..f56cf2b 100644 --- a/Makefile +++ b/Makefile @@ -150,4 +150,4 @@ kubeadm-reset: .PHONY: install-flannel install-flannel: - $(NODE_SHELL) kubectl apply -f https://github.com/flannel-io/flannel/releases/download/v0.25.3/kube-flannel.yml + $(NODE_SHELL) kubectl apply -f https://github.com/flannel-io/flannel/releases/download/v0.25.5/kube-flannel.yml