MAAS server gave an unexpected response: 503
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maas-deployer |
Confirmed
|
High
|
Unassigned |
Bug Description
It seems maas-deployer is too early to access API.
2016-03-15 09:52:52,996 INFO Waiting for cloud-init to complete - this usually takes several minutes
2016-03-15 09:58:11,957 INFO done.
2016-03-15 09:58:14,855 ERROR The MAAS server gave an unexpected response: 503
The MAAS server gave an unexpected response: 503
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
engine.
File "/usr/lib/
ssh_
File "/usr/lib/
self.driver = self._get_
File "/usr/lib/
return SSHDriver(api_url, api_key, ssh_user=
File "/usr/lib/
self.
File "/usr/lib/
execc(cmd, stdin=self.
File "/usr/lib/
output=stderr)
subprocess.
login maas http://
[regiond.log]
2016-03-15 00:58:02 [-] Site starting on 5240
2016-03-15 00:58:02 [-] Factory starting on 5253
2016-03-15 00:58:14 [HTTPChannel,
/MAAS/api/
2016-03-15 01:02:18 [HTTPChannel,
/MAAS/rpc/ HTTP/1.1" 503 164 "-" "provisioningse
2016-03-15 01:02:18 [maas.websocket
2016-03-15 01:02:18 [HTTPChannel,
/MAAS/rpc/ HTTP/1.1" 503 164 "-" "provisioningse
2016-03-15 01:02:18 [maas.websocket
2016-03-15 01:02:18 [maas.websocket
2016-03-15 01:02:18 [maas.websocket
2016-03-15 01:02:19 [-] Cluster (master) did not import boot resources; it is not connected to
the region at this time.
2016-03-15 01:02:20 [-] 127.0.0.1 - - [15/Mar/
00 472 "-" "provisioningse
[clusterd.log]
2016-03-15 00:58:10+0000 [-] Starting protocol <tftp.protocol.TFTP instance at 0x7f458b572ef0>
2016-03-15 00:58:10+0000 [-] TFTP Listener started at 127.0.0.1:69
2016-03-15 01:02:18+0000 [HTTPPageGetter
2016-03-15 01:02:18+0000 [HTTPPageGetter
2016-03-15 01:02:20+0000 [Uninitialized] ClusterClient connection established (HOST:IPv4Addre
2016-03-15 01:02:20+0000 [Uninitialized] ClusterClient connection established (HOST:IPv4Addre
2016-03-15 01:02:20+0000 [ClusterClient,
2016-03-15 01:02:20+0000 [Uninitialized] ClusterClient connection established (HOST:IPv4Addre
summary: |
- MAAS server gave an unexpected response: 504 + MAAS server gave an unexpected response: 503 |
tags: | added: cpec |
tags: | removed: cpec |
Workaround for now at least for me would be adding the following lines to /usr/lib/ python2. 7/dist- packages/ maas_deployer/ vmaas/templates /cloud- init.cfg
====
runcmd:
- sleep 300
====