Return an error if tripleo-ansible deployed containers

For now, we assume that tripleo-ansible & paunch aren't playing well
together. So let's make sure that when containers were deployed with
tripleo-ansible, paunch CLI can't be used anymore.

Change-Id: I3f79a42da8798e24fad1a3ccc18efcc26e118c4d
(cherry picked from commit 3e19521fd4)
This commit is contained in:
Emilien Macchi 2019-11-26 12:24:55 -05:00
parent 611b4c91ab
commit dda8521aa1
1 changed files with 5 additions and 0 deletions

View File

@ -36,6 +36,11 @@ class BaseBuilder(object):
self.cont_log_path = cont_log_path
self.healthcheck_disabled = healthcheck_disabled
if os.path.isfile('/var/lib/tripleo-config/.ansible-managed'):
msg = ('Containers were previously deployed with '
'tripleo-ansible, paunch CLI can not be used.')
raise RuntimeError(msg)
def apply(self):
stdout = []