1.8b4: 504 GATEWAY TIMEOUT (Unexpected exception: TimeoutError)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Critical
|
Unassigned |
Bug Description
We hit this issue with juju bootstrap:
From console.txt:
Bootstrapping environment "ci-oil-slave10"
Starting new instance for initial state server
Launching instance
WARNING no architecture was specified, acquiring an arbitrary node
WARNING no architecture was specified, acquiring an arbitrary node
WARNING no architecture was specified, acquiring an arbitrary node
Bootstrap failed, destroying environment
ERROR failed to bootstrap environment: cannot start bootstrap instance: gomaasapi: got error back from server: 504 GATEWAY TIMEOUT (Unexpected exception: TimeoutError. See /var/log/
2015-04-27 14:33:50,651 [ERROR] oil_ci.juju.client: Calling "juju bootstrap" failed!
2015-04-27 14:33:50,651 [ERROR] oil_ci.cli: Deployment failed:
+ rc=1
+ echo 'Deployment returned: 1'
Deployment returned: 1
From apache log:
2015-04-27 14:26:49 [-] 127.0.0.1 - - [27/Apr/
2015-04-27 14:27:19 [-] 127.0.0.1 - - [27/Apr/
2015-04-27 14:27:49 [-] 127.0.0.1 - - [27/Apr/
2015-04-27 14:28:19 [-] 127.0.0.1 - - [27/Apr/
2015-04-27 14:28:49 [-] 127.0.0.1 - - [27/Apr/
2015-04-27 14:29:19 [-] 127.0.0.1 - - [27/Apr/
2015-04-27 14:29:49 [-] 127.0.0.1 - - [27/Apr/
2015-04-27 14:30:19 [-] 127.0.0.1 - - [27/Apr/
2015-04-27 14:30:49 [-] 127.0.0.1 - - [27/Apr/
2015-04-27 14:31:19 [-] 127.0.0.1 - - [27/Apr/
2015-04-27 14:31:49 [-] 127.0.0.1 - - [27/Apr/
2015-04-27 14:32:19 [-] 127.0.0.1 - - [27/Apr/
2015-04-27 14:32:49 [-] 127.0.0.1 - - [27/Apr/
2015-04-27 14:33:19 [-] 127.0.0.1 - - [27/Apr/
2015-04-27 14:33:49 [-] 127.0.0.1 - - [27/Apr/
summary: |
- 1.8b4: 504 GATEWAY TIMEOUT (Unexpected exception: TimeoutError + 1.8b4: 504 GATEWAY TIMEOUT (Unexpected exception: TimeoutError) |
Changed in maas: | |
importance: | Undecided → Critical |
Changed in maas: | |
milestone: | none → 1.8.1 |
no longer affects: | maas/1.9 |
Changed in maas: | |
milestone: | 1.8.1 → 1.9.0 |
Changed in maas: | |
status: | New → Triaged |
Changed in maas: | |
milestone: | 1.9.0 → none |
Seeing this in 1.8rc3:
This is from regiond.log
015-06-19 09:43:37 [-] 127.0.0.1 - - [19/Jun/ 2015:09: 43:37 +0000] "GET /MAAS/api/ 1.0/nodegroups/ 037c960b- 5b9f-4701- 8366-eeda2c09d1 4e/boot- images/ HTTP/1.1" 200 1407 "-" "Go 1.1 package http" python2. 7/dist- packages/ django/ core/handlers/ base.py" , line 112, in get_response callback( request, *callback_args, **callback_kwargs) python2. 7/dist- packages/ maasserver/ api/support. py", line 52, in __call__ python2. 7/dist- packages/ django/ views/decorator s/vary. py", line 19, in inner_func python2. 7/dist- packages/ piston/ resource. py", line 167, in __call__ handler( e, request, meth, em_format) python2. 7/dist- packages/ piston/ resource. py", line 165, in __call__ python2. 7/dist- packages/ maasserver/ api/support. py", line 200, in dispatch python2. 7/dist- packages/ maasserver/ api/nodes. py", line 422, in start start(request. user, user_data= user_data) python2. 7/dist- packages/ maasserver/ utils/orm. py", line 399, in call_within_ transaction txn(*args, **kwargs) python2. 7/dist- packages/ django/ db/transaction. py", line 339, in inner python2. 7/dist- packages/ maasserver/ models/ node.py" , line 1957, in start static_ ip_addresses( ) python2. 7/dist- packages/ maasserver/ models/ node.py" , line 1770, in claim_static_ ip_addresses type=alloc_ type, requested_ address= requested_ address) python2. 7/dist- packages/ maasserver/ models/ macaddress. py", line 358, in claim_static_ips python2. 7/dist- packages/ maasserver/ models/ macaddress. py", line 247, in _allocate_ static_ address python2. 7/dist- packages/ maasserver/ models/ staticipaddress .py", line 179, in allocate_new hostname) .wait(30) python2. 7/dist- packages/ crochet/ _eventloop. py", line 217, in wait timeout) python2. 7/dist- packages/ crochet/ _eventloop. py", line 195, in _result 2015:09: 43:37 +0000] "POST /MAAS/api/ 1.0/nodes/ node-9f40d3ca- c4cd-11e3- 8102-00163efc50 68/?op= start HTTP/1.1" 504 108 "-" "Go 1.1 package http"
2015-06-19 09:43:38 [root] ERROR:
Traceback (most recent call last):
File "/usr/lib/
response = wrapped_
File "/usr/lib/
response = upcall(request, *args, **kwargs)
File "/usr/lib/
response = func(*args, **kwargs)
File "/usr/lib/
result = self.error_
File "/usr/lib/
result = meth(request, *args, **kwargs)
File "/usr/lib/
return function(self, request, *args, **kwargs)
File "/usr/lib/
node.
File "/usr/lib/
return func_within_
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
claims = self.claim_
File "/usr/lib/
alloc_
File "/usr/lib/
interface, alloc_type, requested_address, user=user)
File "/usr/lib/
user=user)
File "/usr/lib/
alloc_type, user, hostname=
File "/usr/lib/
result = self._result(
File "/usr/lib/
raise TimeoutError()
TimeoutError
2015-06-19 09:43:38 [-] 127.0.0.1 - - [19/Jun/
But signature looked different in apache.log file:
10.245.0.161 - - [19/Jun/ 2015:09: 43:37 +0000] "GET /MAAS/api/ 1.0/nodegroups/ 037c960b- 5b9f-4701- 8366-eeda2c09d1 4e/boot- images/ HTTP/1.1" 200 1734 "-" "Go 1.1 package http" (0 secs) 2015:09: 43:06 +0000] "POST /MAAS/api/ 1.0/nodes/ node-9f40d3ca- c4cd-11e3- 8102-00163efc50 68/?op= start HTTP/1.1" 504 346 "-" "Go 1.1 package http" (31 secs)
10.245.0.161 - - [19/Jun/
10.33.16.177 - - [19/Jun/...