[2.0 beta 2] MAAS Rack Controller doesn't log when it is importing images.

Bug #1571007 reported by Andres Rodriguez on 2016-04-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
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@node02-rack01:~$ tail -f /var/log/maas/*.log
==> /var/log/maas/maas.log <==

==> /var/log/maas/rackd.log <==
2016-04-16 01:55:12+0000 [Uninitialized] ClusterClient connection established (HOST:IPv4Address(TCP, '10.90.90.4', 34262) PEER:IPv4Address(TCP, '10.90.90.1', 5250))
2016-04-16 01:55:12+0000 [Uninitialized] ClusterClient connection established (HOST:IPv4Address(TCP, '10.90.90.4', 36414) PEER:IPv4Address(TCP, '192.168.100.5', 5253))
2016-04-16 01:55:12+0000 [ClusterClient,client] Event-loop 'maas00:pid=3995' authenticated.
2016-04-16 01:55:12+0000 [ClusterClient,client] Event-loop 'maas00:pid=3982' authenticated.
2016-04-16 01:55:12+0000 [ClusterClient,client] Event-loop 'maas00:pid=3977' authenticated.
2016-04-16 01:55:12+0000 [ClusterClient,client] Event-loop 'maas00:pid=3988' authenticated.
2016-04-16 01:55:12+0000 [ClusterClient,client] Rack controller '4y3h7q' registered (via maas00:pid=3995).
2016-04-16 01:55:12+0000 [ClusterClient,client] Rack controller '4y3h7q' registered (via maas00:pid=3988).
2016-04-16 01:55:12+0000 [ClusterClient,client] Rack controller '4y3h7q' registered (via maas00:pid=3982).
2016-04-16 01:55:12+0000 [ClusterClient,client] Rack controller '4y3h7q' registered (via maas00:pid=3977).

ubuntu@node02-rack01:/var/log/maas$ ls -l /var/lib/maas/boot-resources/
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-20160416-015517

Related branches

Changed in maas:
milestone: none → 2.0.0
importance: Undecided → Critical
description: updated
Andres Rodriguez (andreserl) wrote :
Download full text (5.1 KiB)

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).
2016-04-16 02:06:42+0000 [-] Downloading images failed.
        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/pserv_services/image_download_service.py", line 121, in maybe_start_download
            yield self._start_download()
          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/pserv_services/image_download_service.py", line 112, in _start_download
            get_proxy_url("https"))
          File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 246, in inContext
            result = inContext.theWork()
          File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 262, in <lambda>
            inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
          File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 118, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 81, in callWithContext
            return func(*args,**kw)
          File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 201, in wrapper
            return func(*args, **kwargs)
          File "/usr/lib/python3/dist-packages/provisioningserver/rpc/boot_images.py", line 106, in _run_import
            boot_resources.import_images(sources)
          File "/usr/lib/python3/dist-package...

Read more...

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
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers