exceptions.ValueError: No JSON object could be decoded

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

Bug Description

==> /var/log/maas/clusterd.log <==
2015-05-21 12:01:12-0400 [-] Unhandled error in Deferred:
2015-05-21 12:01:12-0400 [-] Unhandled Error
 Traceback (most recent call last):
   File "/usr/lib/python2.7/threading.py", line 783, in __bootstrap
     self.__bootstrap_inner()
   File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
     self.run()
   File "/usr/lib/python2.7/threading.py", line 763, in run
     self.__target(*self.__args, **self.__kwargs)
 --- <exception caught here> ---
   File "/usr/lib/python2.7/dist-packages/twisted/python/threadpool.py", line 191, in _worker
     result = context.call(ctx, function, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
     return self.currentContext().callWithContext(ctx, func, *args, **kw)
   File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
     return func(*args,**kw)
   File "/usr/lib/python2.7/dist-packages/provisioningserver/utils/twisted.py", line 154, in wrapper
     return func(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/provisioningserver/rpc/boot_images.py", line 87, in _run_import
     boot_resources.import_images(sources)
   File "/usr/lib/python2.7/dist-packages/provisioningserver/import_images/boot_resources.py", line 246, in import_images
     image_descriptions = download_all_image_descriptions(sources)
   File "/usr/lib/python2.7/dist-packages/provisioningserver/import_images/download_descriptions.py", line 204, in download_all_image_descriptions
     source['url'], keyring=source.get('keyring', None))
   File "/usr/lib/python2.7/dist-packages/provisioningserver/import_images/download_descriptions.py", line 195, in download_image_descriptions
     dumper.sync(reader, rpath)
   File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 88, in sync
     return self.sync_index(reader, path, data, content)
   File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 240, in sync_index
     self.sync(reader, path=epath)
   File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 83, in sync
     data = util.load_content(payload)
   File "/usr/lib/python2.7/dist-packages/simplestreams/util.py", line 305, in load_content
     return json.loads(content)
   File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
     return _default_decoder.decode(s)
   File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
   File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
     raise ValueError("No JSON object could be decoded")
 exceptions.ValueError: No JSON object could be decoded

MAAS cluster that was working just fine, with trusty previously imported. I did this:

1. Changed streasm URL from releases to daily.
2. Selected 15.10 (willy) and tried to import.
3. Region imported the image
4. Cluster stayed in out-of-sync and did not start the import.
5. I had to manually try to improt images from the webui again. After a while cluster started import.

Changed in maas:
milestone: none → 1.8.0
importance: Undecided → Critical
Changed in maas:
assignee: nobody → Mike Pontillo (mpontillo)
Revision history for this message
Mike Pontillo (mpontillo) wrote :

I haven't been able to reproduce this. Are there any special conditions on the cluster server? Are you still seeing the issue? Can we take a look at the server?

I did see similar problems when I was working on the MAAS+Snappy demo, but the disk image was too small. (We seem to handle things *very* poorly when we run out of disk space.)

At this point, I think it looks like the problem is not necessarily in MAAS code. I recommend adding more testing around the python-simplestreams upstream code to address corner cases like this.

Changed in maas:
status: New → Incomplete
Scott Moser (smoser)
Changed in simplestreams:
status: New → Incomplete
Changed in maas:
status: Incomplete → Invalid
Changed in simplestreams:
status: Incomplete → Invalid
Changed in maas:
assignee: Mike Pontillo (mpontillo) → nobody
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.