From bcebf3996908eb72114bf27343ba6d74425d67f8 Mon Sep 17 00:00:00 2001 From: Francesco Pantano Date: Wed, 11 Dec 2019 09:03:20 +0100 Subject: [PATCH] Ensure Ceph dependencies are installed in pre-provisioned nodes This change adds an in-flight validation to make sure all the specified Ceph dependencies are installed. If a package is not installed in the overcloud, then fail the deployment using the message from the validations frame work. Depends-on: https://review.opendev.org/#/c/697453 Change-Id: I1043d66586d22b26adf66145879d1a64a25f54a0 --- deployment/ceph-ansible/ceph-base.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/deployment/ceph-ansible/ceph-base.yaml b/deployment/ceph-ansible/ceph-base.yaml index 800e95991f..69e3e63e93 100644 --- a/deployment/ceph-ansible/ceph-base.yaml +++ b/deployment/ceph-ansible/ceph-base.yaml @@ -528,6 +528,17 @@ outputs: tags: - opendev-validation - opendev-validation-ceph + - name: Check if Ceph dependencies are installed + import_role: + role: ceph + tasks_from: ceph-dependencies-installed + tags: + - opendev-validation + - opendev-validation-ceph + vars: + fail_without_deps: true + packages: lvm2 + tripleo_delegate_to: "{{ groups['overcloud'] | default([]) }}" - name: set ceph-ansible facts set_fact: blacklisted_hostnames: {get_param: DeploymentServerBlacklist}