From dfedb0bd70b5700234e8ad595fe8e9eb8407df8b Mon Sep 17 00:00:00 2001 From: Alex Creasy Date: Tue, 13 Aug 2024 11:53:40 +0100 Subject: [PATCH 1/4] Bump mysql tag to one with an aarch64 image Signed-off-by: Alex Creasy --- manifests/kustomize/overlays/db/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/kustomize/overlays/db/kustomization.yaml b/manifests/kustomize/overlays/db/kustomization.yaml index 947c7a98..cf53e416 100644 --- a/manifests/kustomize/overlays/db/kustomization.yaml +++ b/manifests/kustomize/overlays/db/kustomization.yaml @@ -26,7 +26,7 @@ generatorOptions: images: - name: mysql newName: mysql - newTag: 8.0.3 + newTag: 8.0.39 vars: - fieldref: From 7a8bded748342fb2be184e99635ecd0c539419b2 Mon Sep 17 00:00:00 2001 From: Matteo Mortari Date: Fri, 22 Nov 2024 18:22:20 +0100 Subject: [PATCH 2/4] debug handle for kind deploy Signed-off-by: Matteo Mortari --- scripts/deploy_on_kind.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/deploy_on_kind.sh b/scripts/deploy_on_kind.sh index ecc3a594..b3911fac 100755 --- a/scripts/deploy_on_kind.sh +++ b/scripts/deploy_on_kind.sh @@ -39,7 +39,10 @@ kubectl apply -k manifests/kustomize/overlays/db kubectl patch deployment -n "$MR_NAMESPACE" model-registry-deployment \ --patch '{"spec": {"template": {"spec": {"containers": [{"name": "rest-container", "image": "'$IMG'", "imagePullPolicy": "IfNotPresent"}]}}}}' -kubectl wait --for=condition=available -n "$MR_NAMESPACE" deployment/model-registry-db --timeout=5m +if ! kubectl wait --for=condition=available -n "$MR_NAMESPACE" deployment/model-registry-db --timeout=5m ; then + kubectl events -A + exit 1 +fi kubectl delete pod -n "$MR_NAMESPACE" --selector='component=model-registry-server' From ad2db00836f962c77f31bb0deba000b04ccb86a3 Mon Sep 17 00:00:00 2001 From: Matteo Mortari Date: Fri, 22 Nov 2024 19:11:11 +0100 Subject: [PATCH 3/4] more debug Signed-off-by: Matteo Mortari --- scripts/deploy_on_kind.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/deploy_on_kind.sh b/scripts/deploy_on_kind.sh index b3911fac..cf25ce99 100755 --- a/scripts/deploy_on_kind.sh +++ b/scripts/deploy_on_kind.sh @@ -41,6 +41,8 @@ kubectl patch deployment -n "$MR_NAMESPACE" model-registry-deployment \ if ! kubectl wait --for=condition=available -n "$MR_NAMESPACE" deployment/model-registry-db --timeout=5m ; then kubectl events -A + kubectl describe deployment/model-registry-db -n kubeflow + kubectl logs deployment/model-registry-db -n kubeflow exit 1 fi From 3f41a8e3c68b0994709367dddff23b7faaeb4f66 Mon Sep 17 00:00:00 2001 From: Matteo Mortari Date: Fri, 22 Nov 2024 19:53:48 +0100 Subject: [PATCH 4/4] remove AppArmor profile for mysql in KinD on GHA Signed-off-by: Matteo Mortari --- .github/workflows/build-image-pr.yml | 5 +++++ .github/workflows/csi-test.yml | 6 ++++++ .github/workflows/python-tests.yml | 5 +++++ 3 files changed, 16 insertions(+) diff --git a/.github/workflows/build-image-pr.yml b/.github/workflows/build-image-pr.yml index 01b79ca4..a556d53c 100644 --- a/.github/workflows/build-image-pr.yml +++ b/.github/workflows/build-image-pr.yml @@ -37,6 +37,11 @@ jobs: uses: helm/kind-action@v1.10.0 with: node_image: "kindest/node:v1.27.11" + - name: Remove AppArmor profile for mysql in KinD on GHA # https://github.com/kubeflow/manifests/issues/2507 + run: | + set -x + sudo apt-get install apparmor-profiles + sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld - name: Load Local Registry Test Image env: IMG: "${{ env.IMG_ORG }}/${{ env.IMG_REPO }}:${{ steps.tags.outputs.tag }}" diff --git a/.github/workflows/csi-test.yml b/.github/workflows/csi-test.yml index 01ff6d16..759b745b 100644 --- a/.github/workflows/csi-test.yml +++ b/.github/workflows/csi-test.yml @@ -63,6 +63,12 @@ jobs: with: node_image: "kindest/node:v1.27.11" + - name: Remove AppArmor profile for mysql in KinD on GHA # https://github.com/kubeflow/manifests/issues/2507 + run: | + set -x + sudo apt-get install apparmor-profiles + sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld + - name: Install kustomize run: ./csi/scripts/install_kustomize.sh diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 556143a9..0edf5d97 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -126,6 +126,11 @@ jobs: with: node_image: "kindest/node:v1.27.11" cluster_name: chart-testing-py-${{ matrix.python }} + - name: Remove AppArmor profile for mysql in KinD on GHA # https://github.com/kubeflow/manifests/issues/2507 + run: | + set -x + sudo apt-get install apparmor-profiles + sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld - name: Load Local Registry Test Image env: IMG: "${{ env.IMG_ORG }}/${{ env.IMG_REPO }}:${{ steps.tags.outputs.tag }}"