Merge pull request #7708 from cybozu-go/ci-ceph-fix-disk-flapping-problem-in-master
ceph: prevent disk flapping problem in master
This commit is contained in:
1 file changed
+20
@@ -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: |
|
||||
|
||||
Reference in new issue
Block a user