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:
parent
611b4c91ab
commit
dda8521aa1
|
@ -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 = []
|
||||
|
|
Loading…
Reference in New Issue