Comment 0 for bug 1568847

MAAS tries to start maas-proxy when it is not ready to be started??

2016-04-09 18:18:51 [-] 127.0.0.1 - - [09/Apr/2016:22:18:50 +0000] "GET /MAAS/api/2.0/zones/ HTTP/1.1" 200 135 "-" "Python-httplib2/0.9.1 (gzip)"
2016-04-09 18:18:52 [-] Successfully configured DNS.
2016-04-09 18:18:52 [-] Failed configuring proxy.
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 434, in errback
     self._startRunCallbacks(fail)
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 501, in _startRunCallbacks
     self._runCallbacks()
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 588, in _runCallbacks
     current.result = callback(current.result, *args, **kw)
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1184, in gotResult
     _inlineCallbacks(r, g, deferred)
 --- <exception caught here> ---
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1126, in _inlineCallbacks
     result = result.throwExceptionIntoGenerator(g)
   File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
     return g.throw(self.type, self.value, self.tb)
   File "/usr/lib/python3/dist-packages/provisioningserver/utils/service_monitor.py", line 296, in reloadService
     state = yield self.ensureService(name)
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1126, in _inlineCallbacks
     result = result.throwExceptionIntoGenerator(g)
   File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
     return g.throw(self.type, self.value, self.tb)
   File "/usr/lib/python3/dist-packages/provisioningserver/utils/service_monitor.py", line 433, in _ensureService
     yield self._performServiceAction(service, action)
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks
     result = g.send(result)
   File "/usr/lib/python3/dist-packages/provisioningserver/utils/service_monitor.py", line 336, in _performServiceAction
     raise ServiceActionError(error_msg)
 provisioningserver.utils.service_monitor.ServiceActionError: Service 'maas-proxy' failed to start: Job for maas-proxy.service failed because the control process exited with error code. See "systemctl status maas-proxy.service" and "journalctl -xe" for details.

2016-04-09 18:18:52 [-] 127.0.0.1 - - [09/Apr/2016:22:18:52 +0000] "POST /MAAS/api/2.0/spaces/ HTTP/1.1" 200 107 "-" "Python-httplib2/0.9.1 (gzip)"