Remove check_haproxy if hacluster is present in the bundle (#819)

Co-authored-by: fdesi <francesco.desimone@canonical.com>
This commit is contained in:
FrancescoDeSimone
2022-07-08 11:19:51 +00:00
committed by GitHub
parent 4a6418e939
commit 5aa0f13eaa

View File

@@ -91,6 +91,14 @@ class ManilaTests(test_utils.OpenStackBaseTest):
units = zaza.model.get_units('manila')
services = ['apache2', 'haproxy', 'manila-scheduler', 'manila-data']
# Remove check_haproxy if hacluster is present in the bundle
# See LP Bug#1880601 for details
try:
if zaza.model.get_units('hacluster'):
services.remove("haproxy")
except KeyError:
pass
cmds = []
for check_name in services:
cmds.append(