ValueError: No JSON object could be decoded
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Amulet |
Fix Committed
|
High
|
Tim Van Steenburgh |
Bug Description
00:15:54.554 File "/usr/lib/
00:15:54.554 setup_layer(
00:15:54.554 File "/usr/lib/
00:15:54.554 setup_layer(
00:15:54.554 File "/usr/lib/
00:15:54.554 layer.setUp()
00:15:54.554 File "./tests/
00:15:54.554 cls.server.ensure()
00:15:54.554 File "./tests/
00:15:54.554 self._deploymen
00:15:54.554 File "/usr/lib/
00:15:54.554 status = self.unit[
00:15:54.554 File "/usr/lib/
00:15:54.554 return self._run_
00:15:54.554 File "/usr/lib/
00:15:54.554 return json.loads(output)
00:15:54.554 File "/usr/lib/
00:15:54.554 return _default_
00:15:54.554 File "/usr/lib/
00:15:54.554 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
00:15:54.554 File "/usr/lib/
00:15:54.554 raise ValueError("No JSON object could be decoded")
00:15:54.554 ValueError: No JSON object could be decoded
Might be an upstream amulet bug?
information type: | Proprietary → Public |
affects: | landscape-system-tests → amulet |
Changed in amulet: | |
assignee: | nobody → Tim Van Steenburgh (tvansteenburgh) |
status: | New → In Progress |
Liam saw the same problem and determined it to be because his DNS resolution made sudo complain, and the "unable to resolve host XXX" ended up in the output json ends up trying to decode:
amulet/sentry.py", line 146, in _run_unit_script calls amulet's "juju_agent.py" with sudo, and if sudo complains about resolving its DNS name, it will appear in the output.
I'm unsure where to fix this in the CI environment - maybe somebody with a better knowledge of our CI setup could try it out?