[2.0 beta 2] MAAS Rack Controller doesn't log when it is importing images.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Unassigned |
Bug Description
I Connected a different rack controller to a region controller. The MAAS UI started showing that clusters were importing images, however, the Rack Controller logs didn't say anything about importing images:
ubuntu@
==> /var/log/
==> /var/log/
2016-04-16 01:55:12+0000 [Uninitialized] ClusterClient connection established (HOST:IPv4Addre
2016-04-16 01:55:12+0000 [Uninitialized] ClusterClient connection established (HOST:IPv4Addre
2016-04-16 01:55:12+0000 [ClusterClient,
2016-04-16 01:55:12+0000 [ClusterClient,
2016-04-16 01:55:12+0000 [ClusterClient,
2016-04-16 01:55:12+0000 [ClusterClient,
2016-04-16 01:55:12+0000 [ClusterClient,
2016-04-16 01:55:12+0000 [ClusterClient,
2016-04-16 01:55:12+0000 [ClusterClient,
2016-04-16 01:55:12+0000 [ClusterClient,
ubuntu@
total 8
drwxr-xr-x 2 maas maas 4096 Apr 16 01:56 cache
drwxr-xr-x 3 maas maas 4096 Apr 16 01:56 snapshot-
Related branches
- Gavin Panella (community): Approve
-
Diff: 76 lines (+18/-4)4 files modifiedsrc/provisioningserver/boot/utils.py (+10/-2)
src/provisioningserver/import_images/boot_resources.py (+5/-1)
src/provisioningserver/import_images/download_descriptions.py (+2/-1)
src/provisioningserver/import_images/download_resources.py (+1/-0)
Changed in maas: | |
milestone: | none → 2.0.0 |
importance: | Undecided → Critical |
description: | updated |
summary: |
[2.0 beta 2] MAAS Rack Controller doesn't log when it is importing - images + images. |
Changed in maas: | |
status: | New → Triaged |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Also, the rack controller is not importing pxelinux0 and other files, because it doesn't have network access, however, it should have logged that it was able to download the image sfrom the maas server.
Also, when not having access to the network, the log should explain more why or what it was nuable to download instead of:
2016-04-16 01:55:12+0000 [ClusterClient, client] Rack controller '4y3h7q' registered (via maas00:pid=3977). python3/ dist-packages/ twisted/ internet/ defer.py" , line 434, in errback
self. _startRunCallba cks(fail) python3/ dist-packages/ twisted/ internet/ defer.py" , line 501, in _startRunCallbacks
self. _runCallbacks( ) python3/ dist-packages/ twisted/ internet/ defer.py" , line 588, in _runCallbacks
current. result = callback( current. result, *args, **kw) python3/ dist-packages/ twisted/ internet/ defer.py" , line 1184, in gotResult
_inlineCal lbacks( r, g, deferred) python3/ dist-packages/ twisted/ internet/ defer.py" , line 1126, in _inlineCallbacks throwExceptionI ntoGenerator( g) python3/ dist-packages/ twisted/ python/ failure. py", line 389, in throwExceptionI ntoGenerator python3/ dist-packages/ provisioningser ver/pserv_ services/ image_download_ service. py", line 121, in maybe_start_ download download( ) python3/ dist-packages/ twisted/ internet/ defer.py" , line 1126, in _inlineCallbacks throwExceptionI ntoGenerator( g) python3/ dist-packages/ twisted/ python/ failure. py", line 389, in throwExceptionI ntoGenerator python3/ dist-packages/ provisioningser ver/pserv_ services/ image_download_ service. py", line 112, in _start_download
get_ proxy_url( "https" )) python3/ dist-packages/ twisted/ python/ threadpool. py", line 246, in inContext python3/ dist-packages/ twisted/ python/ threadpool. py", line 262, in <lambda>
inContext. theWork = lambda: context.call(ctx, func, *args, **kw) python3/ dist-packages/ twisted/ python/ context. py", line 118, in callWithContext text(). callWithContext (ctx, func, *args, **kw) python3/ dist-packages/ twisted/ python/ context. py", line 81, in callWithContext python3/ dist-packages/ provisioningser ver/utils/ twisted. py", line 201, in wrapper python3/ dist-packages/ provisioningser ver/rpc/ boot_images. py", line 106, in _run_import
boot_ resources. import_ images( sources) python3/ dist-package. ..
2016-04-16 02:06:42+0000 [-] Downloading images failed.
Traceback (most recent call last):
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
--- <exception caught here> ---
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
yield self._start_
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
File "/usr/lib/
result = inContext.theWork()
File "/usr/lib/
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
File "/usr/lib/