Merge "CI: Use 5G loop device for ceph"

This commit is contained in:
Zuul 2021-04-08 17:37:45 +00:00 committed by Gerrit Code Review
commit c15ca43489
2 changed files with 5 additions and 1 deletions

@ -309,6 +309,10 @@
- import_role:
name: cephadm
- name: Show free space
command:
cmd: df -h
- name: Ensure required kolla config directories exist
file:
state: directory

@ -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