Patrick you should try : juju-metadata generate-image -a amd64 -u $OS_AUTH_URL -i $IMAGE_UUID -r $OS_REGION_NAME -s trusty juju-metadata generate-image -a amd64 -u $OS_AUTH_URL -i $IMAGE_UUID -r $OS_REGION_NAME -s precise
Then upload the resulting (s)json file Hope this helps, On Tue, Feb 3, 2015 at 9:26 PM, Patrick Hetu <[email protected]> wrote: > > Bonjour Patrick, >> > Salut Thomas, > > >> >> Can you give us the result of the following command: >> juju metadata validate-tools >> > > Tools are not a problem, images are: > > u-ph:~$ juju metadata validate-images -e run > ERROR index file has no data for cloud {BHS-1 > https://auth.runabove.io/v2.0} not found > Resolve Metadata: > source: default cloud images > signed: false > indexURL: http://cloud-images.ubuntu.com/releases/streams/v1/index.json > ERROR subprocess encountered error code 1 > > u-ph:~$ juju metadata validate-tools -e run > Matching Tools Versions: > - 1.21.1-trusty-amd64 > - 1.21.1-trusty-arm64 > - 1.21.1-trusty-armhf > - 1.21.1-trusty-i386 > - 1.21.1-trusty-ppc64el > Resolve Metadata: > source: default simplestreams > signed: true > indexURL: > https://streams.canonical.com/juju/tools/streams/v1/index2.sjson > > In my environment.yaml in the run section I have: > > image-metadata-url: " > https://storage.bhs-1.runabove.io/v1/AUTH_abcde.../ubuntu_stream/" > > but it looks like juju metadata validate-images ignores it. > > >> Did you check/follow this : >> https://juju.ubuntu.com/docs/howto-privatecloud.html > > > Yep, I've follow this and copy the json structure from > http://cloud-images.ubuntu.com/releases/streams/v1/ > > >> >> Best regards, >> >> On 03/02/2015 04:50, Patrick Hetu wrote: >> > Hi there, >> > >> > I'm trying to get Runabove's openstack cloud to work with Juju but >> > I can't get the simple stream to work. Simplestream.go seems to >> > just skip to index2.json because of an error but it didn't report >> > any: >> > >> > 2015-02-03 02:38:34 INFO juju.cmd supercommand.go:37 running juju >> > [1.21.1-utopic-amd64 gc] 2015-02-03 02:38:34 INFO >> > juju.provider.openstack provider.go:248 opening environment "run" >> > 2015-02-03 02:38:35 DEBUG juju.environs.configstore disk.go:336 >> > writing jenv file to /home/avoine/.juju/environments/run.jenv >> > 2015-02-03 02:38:35 INFO juju.network network.go:106 setting >> > prefer-ipv6 to false 2015-02-03 02:38:35 DEBUG juju.environs >> > imagemetadata.go:105 trying datasource "keystone catalog" >> > 2015-02-03 02:38:35 DEBUG juju.environs.simplestreams >> > simplestreams.go:374 searching for metadata in datasource >> > "image-metadata-url" 2015-02-03 02:38:35 INFO juju.utils http.go:59 >> > hostname SSL verification enabled 2015-02-03 02:38:35 DEBUG >> > juju.environs.simplestreams simplestreams.go:465 fetchData failed >> > for >> > " >> https://storage.bhs-1.runabove.io/v1/AUTH_XXX/ubuntu_stream/streams/v1/index2.sjson >> ": >> > >> > >> cannot find URL >> > " >> https://storage.bhs-1.runabove.io/v1/AUTH_XXX/ubuntu_stream/streams/v1/index2.sjson >> " >> > >> > >> not found >> > [...] >> > >> > This is what I have in my index.json >> > >> > { "index": { "com.ubuntu.cloud:released:runabove": { "updated": >> > "Mon, 02 Feb 2015 14:14:09 +0000", "clouds": [ { "region": >> > "BHS-1", "endpoint": "https://auth.runabove.io/v2.0" }], "format": >> > "products:1.0", "datatype": "image-ids", "cloudname": "runabove", >> > "products": [ "com.ubuntu.cloud:server:12.04:amd64" ], "path": >> > "streams/v1/com.ubuntu.cloud:released:runabove.json" } } } >> > >> > and in com.ubuntu.cloud:released:runabove.json: >> > >> > { "updated": "Thu, 06 Nov 2014 13:28:28 +0000", "datatype": >> > "image-ids", "content_id": "com.ubuntu.cloud:released:runabove", >> > "products": { "com.ubuntu.cloud:server:12.04:amd64": { "release": >> > "precise", "version": "12.04", "arch": "amd64", "versions": { >> > "20141015.1": { "items": { "BHS-1": { "virt": "kvm", "crsn": >> > "BHS-1", "root_size": "8GB", "id": >> > "23b30a81-1b0f-45d3-8dc1-eed72091d020" } }, "pubname": "Ubuntu >> > Server 12.04 (amd64 20141015.1) - Image", "label": "release" } } } >> > }, "format": "products:1.0", "_aliases": { "crsn": { "BHS-1": { >> > "region": "BHS-1", "endpoint": "https://auth.runabove.io/v2.0" } } >> > } } >> > >> > Tell me if you need more info. Also, should I bug the fact that >> > runabove is not in "the offical stream"? >> > >> > Thanks, >> > >> > Patrick >> > >> > >> >> - -- >> Best Regards, >> Nicolas Thomas - Solution Architect - Canonical >> http://insights.ubuntu.com/?p=889 >> GPG FPR: D592 4185 F099 9031 6590 6292 492F C740 F03A 7EB9 >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1 >> >> iQEcBAEBAgAGBQJU0HntAAoJEEkvx0DwOn65JBAH/2hwa14nFsZPj19EU7LLaGXa >> 3lqn/YKFYnLw6+JnS+oDsyOtcK8xz124g/Hg1yIzhothY1raudivcBphicqrE3+t >> dDnrQz/VKzZBtdlkOSUU9Q318sCkzV4jKak3VMNFjGoKj1d97dLhjcxLVR2+Moqs >> BnSkrmb9i/e2mulLzk3L/dnMPsCkV1P/mDMNgsW8qH/1YA0DqPiS0ShB8cvhzTuE >> H8Y++Pj6q9CBCBwky/ktS65pHWU+Pn53UDHKvfudNZz9VAAuHiY5UzAVhViTqXX8 >> HXvgaIfePHXcCF8PItl03N9mOyABanUf6nYZC6jOtJ8A0Gnc/qoKMTQRIVKM18w= >> =zMel >> -----END PGP SIGNATURE----- >> >> -- >> Juju mailing list >> [email protected] >> Modify settings or unsubscribe at: >> https://lists.ubuntu.com/mailman/listinfo/juju >> > > -- Best Regards, Nicolas Thomas http://insights.ubuntu.com/?p=889 EMEA Solution Architect Canonical GPG FPR: D592 4185 F099 9031 6590 6292 492F C740 F03A 7EB9
-- Juju mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
