]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
container: move lvm2 package installation
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 2 Jan 2020 20:50:24 +0000 (15:50 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 8 Jan 2020 10:13:46 +0000 (11:13 +0100)
commitde8f2a9f83194e465d10207c7ae0569700345b9c
tree654c8934496bbde31d9d69e26da0b4b14e146991
parentd4fd38c967fa94062c6bf1a345259c9117d7c2c5
container: move lvm2 package installation

Before this patch, the lvm2 package installation was done during the
ceph-osd role.
However we were running ceph-volume command in the ceph-config role
before ceph-osd. If lvm2 wasn't installed then the ceph-volume command
fails:

error checking path "/run/lock/lvm": stat /run/lock/lvm: no such file or
directory

This wasn't visible before because lvm2 was automatically installed as
docker dependency but it's not the same for podman on CentOS 8.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-container-engine/tasks/pre_requisites/prerequisites.yml
roles/ceph-osd/tasks/main.yml