[2.5] Start-up - Failed configuring proxy, right after install

Bug #1794970 reported by Andres Rodriguez on 2018-09-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
High
Blake Rouse

Bug Description

Seems that MAAS is attempting to configure the proxy right after installation without waiting for other internal processes to start. This causes that some installs result on not having a properly created proxy conf.

2018-09-28 01:39:42 maasserver.region_controller: [critical] Failed configuring proxy.
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 500, in errback
     self._startRunCallbacks(fail)
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 567, in _startRunCallbacks
     self._runCallbacks()
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 653, in _runCallbacks
     current.result = callback(current.result, *args, **kw)
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1442, in gotResult
     _inlineCallbacks(r, g, deferred)
 --- <exception caught here> ---
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
     result = result.throwExceptionIntoGenerator(g)
   File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
     return g.throw(self.type, self.value, self.tb)
   File "/usr/lib/python3/dist-packages/provisioningserver/utils/service_monitor.py", line 401, in reloadService
     state = yield self.ensureService(name)
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
     result = result.throwExceptionIntoGenerator(g)
   File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
     return g.throw(self.type, self.value, self.tb)
   File "/usr/lib/python3/dist-packages/provisioningserver/utils/service_monitor.py", line 634, in _ensureService
     state = yield self.getServiceState(service.name, now=True)
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
     result = result.throwExceptionIntoGenerator(g)
   File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
     return g.throw(self.type, self.value, self.tb)
   File "/usr/lib/python3/dist-packages/provisioningserver/utils/service_monitor.py", line 295, in getServiceState
     active_state, process_state = yield self._loadServiceState(service)
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
     result = result.throwExceptionIntoGenerator(g)
   File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
     return g.throw(self.type, self.value, self.tb)
   File "/usr/lib/python3/dist-packages/provisioningserver/utils/service_monitor.py", line 500, in _loadSystemDServiceState
     service.service_name, "status"))
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 653, in _runCallbacks
     current.result = callback(current.result, *args, **kw)
   File "/usr/lib/python3/dist-packages/provisioningserver/utils/service_monitor.py", line 431, in handle_timeout
     "seconds running cmd: %s" % (timeout, ' '.join(cmd)))
 provisioningserver.utils.service_monitor.ServiceActionError: Service monitor timed out after '10' seconds running cmd: sudo --non-interactive systemctl status maas-proxy

Full log in:
http://10.245.136.4:8080/job/maas-bionic-master-git/95/artifact/results/artifacts/maas-logs/var/log/maas/regiond.log

Related branches

Changed in maas:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.5.0beta2
description: updated
summary: - [2.5] Failed configuring proxy, right after install
+ [2.5] Start-up - Failed configuring proxy, right after install
Changed in maas:
status: Triaged → In Progress
assignee: nobody → Blake Rouse (blake-rouse)
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers