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
(cherry picked from commit 6f38d7036c)
This commit is contained in:
Michał Nasiadka 2021-03-30 15:27:06 +02:00 committed by Mark Goddard
parent 466e4cc7c7
commit d5c131bc53
2 changed files with 5 additions and 1 deletions

View File

@ -324,6 +324,10 @@
environment:
BASE_DISTRO: "{{ base_distro }}"
- name: Show free space
command:
cmd: df -h
- name: Ensure required kolla config directories exist
file:
state: directory

View File

@ -24,7 +24,7 @@ elif [ $1 = 'swift' ]; then
mkfs.xfs -L d0 $free_partition
elif [ $1 = 'ceph-lvm' ]; then
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
pvcreate $free_device
vgcreate cephvg $free_device