From 957465af8803c7fa23f6bd1ae37dc9856fdb51f5 Mon Sep 17 00:00:00 2001 From: Satoru Takeuchi Date: Wed, 21 Apr 2021 04:10:09 +0000 Subject: [PATCH] ceph: prevent disk flapping problem in master We resolved disk flapping problem (#7405) with #7467. However, this fix was not applied to integration test in master. Signed-off-by: Satoru Takeuchi --- .../integration-tests-on-release.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/integration-tests-on-release.yaml b/.github/workflows/integration-tests-on-release.yaml index 050adf3c8..72bc80517 100644 --- a/.github/workflows/integration-tests-on-release.yaml +++ b/.github/workflows/integration-tests-on-release.yaml @@ -44,6 +44,10 @@ jobs: # search for the device since it keeps changing between sda and sdb sudo wipefs --all --force /dev/$(lsblk|awk '/14G/ {print $1}'| head -1)1 sudo lsblk + # add a udev rule to force the disk partitions to ceph + # we have observed that some runners keep detaching/re-attaching the additional disk overriding the permissions to the default root:disk + # for more details see: https://github.com/rook/rook/issues/7405 + echo "SUBSYSTEM==\"block\", ATTR{size}==\"29356032\", ACTION==\"add\", RUN+=\"/bin/chown 167:167 $PARTITION\"" | sudo tee -a /etc/udev/rules.d/01-rook.rules - name: build rook run: | @@ -104,6 +108,10 @@ jobs: # search for the device since it keeps changing between sda and sdb sudo wipefs --all --force /dev/$(lsblk|awk '/14G/ {print $1}'| head -1)1 sudo lsblk + # add a udev rule to force the disk partitions to ceph + # we have observed that some runners keep detaching/re-attaching the additional disk overriding the permissions to the default root:disk + # for more details see: https://github.com/rook/rook/issues/7405 + echo "SUBSYSTEM==\"block\", ATTR{size}==\"29356032\", ACTION==\"add\", RUN+=\"/bin/chown 167:167 $PARTITION\"" | sudo tee -a /etc/udev/rules.d/01-rook.rules - name: build rook run: | @@ -166,6 +174,10 @@ jobs: # search for the device since it keeps changing between sda and sdb sudo wipefs --all --force /dev/$(lsblk|awk '/14G/ {print $1}'| head -1)1 sudo lsblk + # add a udev rule to force the disk partitions to ceph + # we have observed that some runners keep detaching/re-attaching the additional disk overriding the permissions to the default root:disk + # for more details see: https://github.com/rook/rook/issues/7405 + echo "SUBSYSTEM==\"block\", ATTR{size}==\"29356032\", ACTION==\"add\", RUN+=\"/bin/chown 167:167 $PARTITION\"" | sudo tee -a /etc/udev/rules.d/01-rook.rules - name: build rook run: | @@ -227,6 +239,10 @@ jobs: # search for the device since it keeps changing between sda and sdb sudo wipefs --all --force /dev/$(lsblk|awk '/14G/ {print $1}'| head -1)1 sudo lsblk + # add a udev rule to force the disk partitions to ceph + # we have observed that some runners keep detaching/re-attaching the additional disk overriding the permissions to the default root:disk + # for more details see: https://github.com/rook/rook/issues/7405 + echo "SUBSYSTEM==\"block\", ATTR{size}==\"29356032\", ACTION==\"add\", RUN+=\"/bin/chown 167:167 $PARTITION\"" | sudo tee -a /etc/udev/rules.d/01-rook.rules - name: build rook run: | @@ -287,6 +303,10 @@ jobs: # search for the device since it keeps changing between sda and sdb sudo wipefs --all --force /dev/$(lsblk|awk '/14G/ {print $1}'| head -1)1 sudo lsblk + # add a udev rule to force the disk partitions to ceph + # we have observed that some runners keep detaching/re-attaching the additional disk overriding the permissions to the default root:disk + # for more details see: https://github.com/rook/rook/issues/7405 + echo "SUBSYSTEM==\"block\", ATTR{size}==\"29356032\", ACTION==\"add\", RUN+=\"/bin/chown 167:167 $PARTITION\"" | sudo tee -a /etc/udev/rules.d/01-rook.rules - name: build rook run: |