[2.1] Images have been imported, but can't add a chassis

Bug #1629026 reported by Andres Rodriguez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Critical
Unassigned

Bug Description

I cannot add a chassis because it tells me I dont have images, but my images are imported:

This is how it happened:
1. My image import failed and the rack controller failed to verify images.
2. I restarted the image import, and this time it succeeded.
3. However, when I go to add a chassis, it tells me that I cant (see broken-link-1.png)

Sep 29 13:28:22 unleashed maas.bootresources: [WARNING] Hash mismatch for prev_file=<LargeFile size=37191763 sha256=66114aa579747297e33e43ae92ffdbef
777cc2ba6c5d341529c775330bfec9c7> resourceset=<BootResourceSet 20160929/daily> resource=<BootResource name=ubuntu/xenial, arch=amd64/ga-16.04, kflav
or=lowlatency>
Sep 29 13:28:23 unleashed maas.bootresources: [WARNING] Hash mismatch for prev_file=<LargeFile size=7051680 sha256=e2f97ca90931c29f244c2d85d940a7b82
773733c0ff3e6205788d6777039e36e> resourceset=<BootResourceSet 20160929/daily> resource=<BootResource name=ubuntu/xenial, arch=amd64/ga-16.04, kflavo
r=lowlatency>

Sep 29 13:28:31 unleashed maas.bootresources: [ERROR] Failed to finalize boot image ubuntu/amd64/ga-16.04/xenial/20160929/boot-kernel. Unexpected ch
ecksum 'sha256' (found: e2f97ca90931c29f244c2d85d940a7b82773733c0ff3e6205788d6777039e36e expected: 94d693b06dc69d64115a3f7e15d74610b6e14499fd5fd40c5
97e3018f0c75e77)

2016-09-29 13:01:30 [requests.packages.urllib3.connectionpool] INFO: Starting new HTTP connection (1): localhost
2016-09-29 13:01:31 [-] Unhandled error in Deferred:
2016-09-29 13:01:31 [-] Unhandled Error
        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/rpc/boot_images.py", line 142, in _import_boot_images
            imported = yield deferToThread(_run_import, sources, **proxies)
          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 211, in wrapper
            return func(*args, **kwargs)
          File "/usr/lib/python3/dist-packages/provisioningserver/rpc/boot_images.py", line 116, in _run_import
            imported = boot_resources.import_images(sources)
          File "/usr/lib/python3/dist-packages/provisioningserver/import_images/boot_resources.py", line 279, in import_images
            sources, storage, product_mapping)
          File "/usr/lib/python3/dist-packages/provisioningserver/import_images/download_resources.py", line 367, in download_all_boot_resources
            keyring_file=source.get('keyring')),
          File "/usr/lib/python3/dist-packages/provisioningserver/import_images/download_resources.py", line 313, in download_boot_resources
            writer.sync(reader, rpath)
          File "/usr/lib/python3/dist-packages/simplestreams/mirrors/__init__.py", line 89, in sync
            return self.sync_index(reader, path, data, content)
          File "/usr/lib/python3/dist-packages/simplestreams/mirrors/__init__.py", line 236, in sync_index
            self.sync(reader, path=epath)
          File "/usr/lib/python3/dist-packages/simplestreams/mirrors/__init__.py", line 87, in sync
            return self.sync_products(reader, path, data, content)
          File "/usr/lib/python3/dist-packages/simplestreams/mirrors/__init__.py", line 323, in sync_products
            self.insert_item(item, src, target, pgree, ipath_cs)
          File "/usr/lib/python3/dist-packages/provisioningserver/import_images/download_resources.py", line 283, in insert_item
            self.store, filename, tag, checksums, size, contentsource)
          File "/usr/lib/python3/dist-packages/provisioningserver/import_images/download_resources.py", line 60, in insert_file
            store.insert(tag, content_source, checksums, mutable=False, size=size)
          File "/usr/lib/python3/dist-packages/simplestreams/objectstores/__init__.py", line 179, in insert
            raise checksum_util.invalid_checksum_for_reader(reader)
        simplestreams.checksum_util.InvalidChecksum: Invalid sha256 Checksum at http://localhost:5240/MAAS/images-stream/ubuntu/amd64/hwe-16.04-lowlatency/xenial/20160929/boot-kernel. Found 445505c9536479d2ef103bfa256d758fbf1fc6454cdba6556a51ee2540c87c0a. Expected 94d693b06dc69d64115a3f7e15d74610b6e14499fd5fd40c597e3018f0c75e77. read 7086080 bytes expected 7083008 bytes. (size 7086080 expected 7083008)

2016-09-29 13:06:37 [requests.packages.urllib3.connectionpool] INFO: Starting new HTTP connection (1): localhost
2016-09-29 13:06:37 [requests.packages.urllib3.connectionpool] INFO: Starting new HTTP connection (1): localhost
2016-09-29 13:06:38 [sstreams] INFO: maas:v2:download/maas:boot:ubuntu:amd64:ga-16.04:xenial: to_add=['20160929'] to_remove=[]
2016-09-29 13:06:38 [sstreams] INFO: maas:v2:download/maas:boot:grub-efi-signed:amd64:generic:uefi: to_add=['20160929.0'] to_remove=[]
2016-09-29 13:06:38 [sstreams] INFO: maas:v2:download/maas:boot:pxelinux:i386:generic:pxe: to_add=['20160929.0'] to_remove=[]
2016-09-29 13:06:38 [sstreams] INFO: maas:v2:download/maas:boot:grub-ieee1275:ppc64el:generic:open-firmware: to_add=['20160929.0'] to_remove=[]
2016-09-29 13:06:38 [sstreams] INFO: maas:v2:download/maas:boot:grub-efi:arm64:generic:uefi: to_add=['20160929.0'] to_remove=[]
2016-09-29 13:06:38 [requests.packages.urllib3.connectionpool] INFO: Starting new HTTP connection (1): localhost
2016-09-29 13:06:38 [requests.packages.urllib3.connectionpool] INFO: Starting new HTTP connection (1): localhost
2016-09-29 13:06:38 [sstreams] INFO: maas:v2:download/maas:boot:ubuntu:amd64:ga-16.04:xenial: to_add=['20160929'] to_remove=[]
2016-09-29 13:06:38 [sstreams] INFO: maas:v2:download/maas:boot:grub-efi-signed:amd64:generic:uefi: to_add=['20160929.0'] to_remove=[]
2016-09-29 13:06:38 [requests.packages.urllib3.connectionpool] INFO: Starting new HTTP connection (1): localhost
2016-09-29 13:06:38 [requests.packages.urllib3.connectionpool] INFO: Starting new HTTP connection (1): localhost
2016-09-29 13:06:38 [sstreams] INFO: maas:v2:download/maas:boot:pxelinux:i386:generic:pxe: to_add=['20160929.0'] to_remove=[]
2016-09-29 13:06:38 [requests.packages.urllib3.connectionpool] INFO: Starting new HTTP connection (1): localhost
2016-09-29 13:06:38 [sstreams] INFO: maas:v2:download/maas:boot:grub-ieee1275:ppc64el:generic:open-firmware: to_add=['20160929.0'] to_remove=[]
2016-09-29 13:06:38 [requests.packages.urllib3.connectionpool] INFO: Starting new HTTP connection (1): localhost
2016-09-29 13:06:38 [sstreams] INFO: maas:v2:download/maas:boot:grub-efi:arm64:generic:uefi: to_add=['20160929.0'] to_remove=[]
2016-09-29 13:06:38 [requests.packages.urllib3.connectionpool] INFO: Starting new HTTP connection (1): localhost

Revision history for this message
Andres Rodriguez (andreserl) wrote :
Changed in maas:
milestone: none → 2.1.0
importance: Undecided → Critical
status: New → Triaged
description: updated
description: updated
description: updated
Revision history for this message
Blake Rouse (blake-rouse) wrote :

I am unable to reproduce this. Here is what I did to try and re-produce:

1. Open window on the nodes listing with "Add chassis" open, showing the import images.
2. Open another windows on the images page, with no images imported.
3. Started the import on the images page window.
4. Other window automatically updated and now showed the "Add chassis" view without requiring any user intervention.

Changed in maas:
status: Triaged → Incomplete
Changed in maas:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.