Juju says "bad JSON product data" for valid simplestreams
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Invalid
|
Medium
|
Unassigned | ||
1.24 |
Invalid
|
Medium
|
Unassigned |
Bug Description
We used python simplestreams code to generate new streams, but juju claims it's "bad".
Possibly juju thinks "version", "ftype", "arch", or "release" are required to be repeated in each element, but this is not the case.
sstream-query has no complaints about http://
2015-09-29 17:40:12 DEBUG juju.environs.
2015-09-29 17:40:12 ERROR juju.environs.
"format": "products:1.0",
"products": {
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "a662099a174a45
"size": "16664383",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "amd64",
"release": "precise"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "8326af5645dbbf
"size": "15094616",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "amd64",
"release": "win2012hv"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "8ff77306efa0a2
"size": "17776709",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "ppc64",
"release": "wily"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "c3d5bce58419b1
"size": "16188938",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "i386",
"release": "precise"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "12fd5af64b3193
"size": "15208610",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "ppc64",
"release": "trusty"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "87299920450b1f
"size": "20834606",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "arm64",
"release": "vivid"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "ad91ffb3c1ddce
"size": "16416611",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "amd64",
"release": "centos7"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "29a34c36ac1285
"size": "13501544",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "armhf",
"release": "wily"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "14d7e84b34b3ba
"size": "16664316",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "amd64",
"release": "trusty"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "8326af5645dbbf
"size": "15094616",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "amd64",
"release": "win2012"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "c840831a5465a2
"size": "16186001",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "i386",
"release": "trusty"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "c752efa9bb3461
"size": "17776709",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "ppc64el",
"release": "wily"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "4a15b468ae993c
"size": "15515527",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "arm64",
"release": "trusty"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "8326af5645dbbf
"size": "15094616",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "amd64",
"release": "win7"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "acef52ecabe49a
"size": "15120620",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "amd64",
"release": "wily"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "e7fa5893ac465e
"size": "16028624",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "armhf",
"release": "trusty"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "f26373eb6545af
"size": "13612303",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "i386",
"release": "vivid"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "afdaf26a75dcec
"size": "20230074",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "ppc64el",
"release": "vivid"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "b75981ee67850f
"size": "16028742",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "armhf",
"release": "precise"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "34def4d2b132a6
"size": "18425509",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "arm64",
"release": "wily"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "2db83fdde49e53
"size": "14171403",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "i386",
"release": "wily"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "8326af5645dbbf
"size": "15094616",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "amd64",
"release": "win2012hvr2"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "8326af5645dbbf
"size": "15094616",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "amd64",
"release": "win81"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "f7f80a95f33b36
"size": "13017807",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "armhf",
"release": "vivid"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "dbf7a904683ddc
"size": "20230074",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "ppc64",
"release": "vivid"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "708bdd8efae1d8
"size": "14017307",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "amd64",
"release": "vivid"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "8326af5645dbbf
"size": "15094616",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "amd64",
"release": "win2012r2"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "8326af5645dbbf
"size": "15094616",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "amd64",
"release": "win8"
},
"com.
"versions": {
"20150923": {
"items": {
"
"sha256": "33bdbc905a1246
"size": "15208610",
"path": "proposed/
}
}
}
},
"version": "1.24.6",
"ftype": "tar.gz",
"updated": "Wed, 23 Sep 2015 13:49:19 +0000",
"format": "products:1.0",
"arch": "ppc64el",
"release": "trusty"
}
},
"content_id": "com.ubuntu.
"datatype": "content-download",
"updated": "Tue, 29 Sep 2015 15:53:33 +0000"
}
2015-09-29 17:40:13 DEBUG juju.environs.
description: | updated |
summary: |
- Juju says " bad JSON product data" for valid simplestreams + Juju says "bad JSON product data" for valid simplestreams |
Changed in juju-core: | |
status: | Triaged → Invalid |
I thought this might be because ftype, release, version and arch were not part of the individual items, but I got the same result even with the entries present in individual items.