From ef49c7440f3f2de7c13bc0ac9f8e961adef5de9a Mon Sep 17 00:00:00 2001
From: Michal Nasiadka <mnasiadka@gmail.com>
Date: Mon, 6 Feb 2023 15:40:00 +0100
Subject: [PATCH] CI: Install lvm on setup_disk scenarios

Change-Id: I99145322f65468e9926b1412844ad4ccaa6829d7
---
 tests/pre.yml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/pre.yml b/tests/pre.yml
index 2deead9f64..808f2863d0 100644
--- a/tests/pre.yml
+++ b/tests/pre.yml
@@ -49,6 +49,12 @@
           - python3-pip
           - python3-setuptools
 
+    - name: Install lvm on storage scenarios
+      become: true
+      package:
+        name: lvm2
+      when: scenario in ['cephadm', 'zun', 'swift']
+
     # TODO(mnasiadka): Remove this once ansible-collection-kolla
     # installs apparmor
     - name: Install apparmor on Debian/Ubuntu