Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to bootstrap juju onto a private openstack environment but when I try and bootstrap it I get an error saying index file has no data for cloud. Here is the debug log:

2014-06-01 17:04:43 DEBUG juju.environs.simplestreams simplestreams.go:388 fetchData failed for "http://10.0.0.100:8080/v1/AUTH_2469f191c2b445b9a57642e386b971b0/juju/images/streams/v1/index.sjson": cannot find URL "http://10.0.0.100:8080/v1/AUTH_2469f191c2b445b9a57642e386b971b0/juju/images/streams/v1/index.sjson" not found
2014-06-01 17:04:43 DEBUG juju.environs.simplestreams simplestreams.go:362 cannot load index "http://10.0.0.100:8080/v1/AUTH_2469f191c2b445b9a57642e386b971b0/juju/images/streams/v1/index.sjson": invalid URL "http://10.0.0.100:8080/v1/AUTH_2469f191c2b445b9a57642e386b971b0/juju/images/streams/v1/index.sjson" not found
2014-06-01 17:04:43 INFO juju.utils http.go:59 hostname SSL verification enabled
2014-06-01 17:04:43 INFO juju.utils http.go:59 hostname SSL verification enabled
2014-06-01 17:04:43 DEBUG juju.environs.simplestreams simplestreams.go:388 fetchData failed for "http://10.0.0.100:8080/v1/AUTH_2469f191c2b445b9a57642e386b971b0/juju/images/streams/v1/mirrors.json": cannot find URL "http://10.0.0.100:8080/v1/AUTH_2469f191c2b445b9a57642e386b971b0/juju/images/streams/v1/mirrors.json" not found
2014-06-01 17:04:43 DEBUG juju.environs.simplestreams simplestreams.go:465 no mirror index file found
2014-06-01 17:04:43 DEBUG juju.environs.simplestreams simplestreams.go:366 read metadata index at "http://10.0.0.100:8080/v1/AUTH_2469f191c2b445b9a57642e386b971b0/juju/images/streams/v1/index.json"
2014-06-01 17:04:43 DEBUG juju.environs.simplestreams simplestreams.go:374 index file has no data for product name(s) ["com.ubuntu.cloud:server:12.04:amd64" "com.ubuntu.cloud:server:12.04:armhf" "com.ubuntu.cloud:server:12.04:i386"]
2014-06-01 17:04:43 DEBUG juju.environs.simplestreams simplestreams.go:388 fetchData failed for "http://10.0.0.100:8080/v1/AUTH_2469f191c2b445b9a57642e386b971b0/juju/images/streams/v1/index.sjson": failed to GET object images/streams/v1/index.sjson from container juju
caused by: Resource at http://10.0.0.100:8080/v1/AUTH_2469f191c2b445b9a57642e386b971b0/juju/images/streams/v1/index.sjson not found
caused by: request (http://10.0.0.100:8080/v1/AUTH_2469f191c2b445b9a57642e386b971b0/juju/images/streams/v1/index.sjson) returned unexpected status: 404; error info: 

Not Found

The resource could not be found.

2014-06-01 17:04:43 DEBUG juju.environs.simplestreams simplestreams.go:362 cannot load index "http://10.0.0.100:8080/v1/AUTH_2469f191c2b445b9a57642e386b971b0/juju/images/streams/v1/index.sjson": invalid URL "http://10.0.0.100:8080/v1/AUTH_2469f191c2b445b9a57642e386b971b0/juju/images/streams/v1/index.sjson" not found 2014-06-01 17:04:43 DEBUG juju.environs.simplestreams simplestreams.go:388 fetchData failed for "http://10.0.0.100:8080/v1/AUTH_2469f191c2b445b9a57642e386b971b0/juju/images/streams/v1/mirrors.json": failed to GET object images/streams/v1/mirrors.json from container juju caused by: Resource at http://10.0.0.100:8080/v1/AUTH_2469f191c2b445b9a57642e386b971b0/juju/images/streams/v1/mirrors.json not found caused by: request (http://10.0.0.100:8080/v1/AUTH_2469f191c2b445b9a57642e386b971b0/juju/images/streams/v1/mirrors.json) returned unexpected status: 404; error info:

Not Found

The resource could not be found.

2014-06-01 17:04:43 DEBUG juju.environs.simplestreams simplestreams.go:465 no mirror index file found 2014-06-01 17:04:43 DEBUG juju.environs.simplestreams simplestreams.go:366 read metadata index at "http://10.0.0.100:8080/v1/AUTH_2469f191c2b445b9a57642e386b971b0/juju/images/streams/v1/index.json" 2014-06-01 17:04:43 DEBUG juju.environs.simplestreams simplestreams.go:374 index file has no data for product name(s) ["com.ubuntu.cloud:server:12.04:amd64" "com.ubuntu.cloud:server:12.04:armhf" "com.ubuntu.cloud:server:12.04:i386"] 2014-06-01 17:04:43 INFO juju.utils http.go:59 hostname SSL verification enabled 2014-06-01 17:04:43 INFO juju.utils http.go:59 hostname SSL verification enabled 2014-06-01 17:04:43 DEBUG juju.environs.simplestreams simplestreams.go:388 fetchData failed for "http://cloud-images.ubuntu.com/releases/streams/v1/mirrors.sjson": cannot find URL "http://cloud-images.ubuntu.com/releases/streams/v1/mirrors.sjson" not found 2014-06-01 17:04:43 DEBUG juju.environs.simplestreams simplestreams.go:465 no mirror index file found 2014-06-01 17:04:43 DEBUG juju.environs.simplestreams simplestreams.go:366 read metadata index at "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson" 2014-06-01 17:04:43 DEBUG juju.environs.simplestreams simplestreams.go:370 skipping index because of error getting latest metadata "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson": index file has no data for cloud {regionOne http://controller:5000/v2.0} not found 2014-06-01 17:04:43 INFO juju.utils http.go:59 hostname SSL verification enabled 2014-06-01 17:04:43 INFO juju.utils http.go:59 hostname SSL verification enabled 2014-06-01 17:04:44 DEBUG juju.environs.simplestreams simplestreams.go:388 fetchData failed for "http://cloud-images.ubuntu.com/releases/streams/v1/mirrors.json": cannot find URL "http://cloud-images.ubuntu.com/releases/streams/v1/mirrors.json" not found 2014-06-01 17:04:44 DEBUG juju.environs.simplestreams simplestreams.go:465 no mirror index file found 2014-06-01 17:04:44 DEBUG juju.environs.simplestreams simplestreams.go:366 read metadata index at "http://cloud-images.ubuntu.com/releases/streams/v1/index.json" 2014-06-01 17:04:44 DEBUG juju.environs.simplestreams simplestreams.go:370 skipping index because of error getting latest metadata "http://cloud-images.ubuntu.com/releases/streams/v1/index.json": index file has no data for cloud {regionOne http://controller:5000/v2.0} not found 2014-06-01 17:04:44 ERROR juju.provider.common bootstrap.go:118 bootstrap failed: cannot start bootstrap instance: index file has no data for cloud {regionOne http://controller:5000/v2.0} not found 2014-06-01 17:04:44 ERROR juju.cmd supercommand.go:308 cannot start bootstrap instance: index file has no data for cloud {regionOne http://controller:5000/v2.0} not found

Here is my config for the openstack environment:

openstack:
    type: openstack
    control-bucket: juju
    # use-floating-ip specifies whether a floating IP address is
    # required to give the nodes a public IP address. Some
    # installations assign public IP addresses by default without
    # requiring a floating IP address.
    #
    use-floating-ip: true

    # use-default-secgroup specifies whether new machine instances
    # should have the "default" Openstack security group assigned.
    #
    use-default-secgroup: true

    # network specifies the network label or uuid to bring machines up
    # on, in the case where multiple networks exist. It may be omitted
    # otherwise.
    #
    network: int-net

    # tools-metadata-url specifies the location of the Juju tools and
    # metadata. It defaults to the global public tools metadata
    # location https://streams.canonical.com/tools.
    #
    #tools-metadata-url:  http://10.0.0.100:8080/v1/AUTH_2469f191c2b445b9a57642e386b971b0/juju/tools

    # image-metadata-url specifies the location of Ubuntu cloud image
    # metadata. It defaults to the global public image metadata
    # location https://cloud-images.ubuntu.com/releases.
    #
    image-metadata-url:  http://10.0.0.100:8080/v1/AUTH_2469f191c2b445b9a57642e386b971b0/juju/images

    # image-stream chooses a simplestreams stream to select OS images
    # from, for example daily or released images (or any other stream
    # available on simplestreams).
    #
    # image-stream: "released"

    # auth-url defaults to the value of the environment variable
    # OS_AUTH_URL, but can be specified here.
    #
    auth-url: http://controller:5000/v2.0

    # tenant-name holds the openstack tenant name. It defaults to the
    # environment variable OS_TENANT_NAME.
    #
    tenant-name: admin

    # region holds the openstack region. It defaults to the
    # environment variable OS_REGION_NAME.
    #
    region: regionOne

    # The auth-mode, username and password attributes are used for
    # userpass authentication (the default).
    #
    # auth-mode holds the authentication mode. For user-password
    # authentication, auth-mode should be "userpass" and username and
    # password should be set appropriately; they default to the
    # environment variables OS_USERNAME and OS_PASSWORD respectively.
    #
    auth-mode: userpass
    #username: admin
    #password: asd

    # For key-pair authentication, auth-mode should be "keypair" and
    # access-key and secret-key should be set appropriately; they
    # default to the environment variables OS_ACCESS_KEY and
    # OS_SECRET_KEY respectively.
    #
    # auth-mode: keypair
    # access-key: <secret>
    # secret-key: <secret>

I created image metadata by using

juju metadata generate-image -i f5e006db-99e4-4ba3-96bf-a74c4d2b4161 -s trusty

and created tools meta data using

juju metadata generate-tools -d ./

Then uploaded the folders to a container in swift called juju.

share|improve this question
    
Fixed it. Apperently juju is looking for 12.04 not 14.04(no idea why if anyone knows please reply) so I just added the 12.04 image to the metadata. –  rmb938 Jun 1 at 19:04
1  
check the "default series" if present in your environments.yaml file. Older versions of Juju shipped with this set to "precise" –  Nick Veitch Jun 4 at 15:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.