stop installer when setup-ds.pl fail

DS instance install should fail immediately after setup-ds.pl fail.

tickets: #2539, #3720, #5607

https://fedorahosted.org/freeipa/ticket/2539

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
Petr Vobornik 2016-01-21 18:23:26 +01:00 committed by Martin Basti
parent cdf08a0a86
commit b0894a8493

View File

@ -543,7 +543,7 @@ class DsInstance(service.Service):
ipautil.run(args)
root_logger.debug("completed creating ds instance")
except ipautil.CalledProcessError as e:
root_logger.critical("failed to create ds instance %s" % e)
raise RuntimeError("failed to create ds instance %s" % e)
# check for open port 389 from now on
self.open_ports.append(389)