CI: Use 5G loop device for ceph
Often cephadm jobs fail with: Mar 30 13:01:21 primary bash[75459]: debug 2021-03-30T13:01:21.844+0000 7fa30431f700 -1 error: monitor data filesystem reached concerning levels of available storage space (available: 4% 1.8 GiB) Let's check if 5G OSD helps and also print df -h output for reference Change-Id: I6960fd0f378aea5a14a73d9228edf86fb86cac6c
This commit is contained in:
parent
93c4448365
commit
6f38d7036c
@ -309,6 +309,10 @@
|
|||||||
- import_role:
|
- import_role:
|
||||||
name: cephadm
|
name: cephadm
|
||||||
|
|
||||||
|
- name: Show free space
|
||||||
|
command:
|
||||||
|
cmd: df -h
|
||||||
|
|
||||||
- name: Ensure required kolla config directories exist
|
- name: Ensure required kolla config directories exist
|
||||||
file:
|
file:
|
||||||
state: directory
|
state: directory
|
||||||
|
@ -24,7 +24,7 @@ elif [ $1 = 'swift' ]; then
|
|||||||
mkfs.xfs -L d0 $free_partition
|
mkfs.xfs -L d0 $free_partition
|
||||||
elif [ $1 = 'ceph-lvm' ]; then
|
elif [ $1 = 'ceph-lvm' ]; then
|
||||||
free_device=$(losetup -f)
|
free_device=$(losetup -f)
|
||||||
fallocate -l 10G /var/lib/ceph-osd1.img
|
fallocate -l 5G /var/lib/ceph-osd1.img
|
||||||
losetup $free_device /var/lib/ceph-osd1.img
|
losetup $free_device /var/lib/ceph-osd1.img
|
||||||
pvcreate $free_device
|
pvcreate $free_device
|
||||||
vgcreate cephvg $free_device
|
vgcreate cephvg $free_device
|
||||||
|
Loading…
Reference in New Issue
Block a user