Juju providers should be able to get image id's automagically

Bug #1058510 reported by Mark Shuttleworth
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Ian Booth
pyjuju
Triaged
Low
Unassigned

Bug Description

When configuring Juju for the HP public cloud I needed to enter an image-id, like this:

environments:
  hpcloud:
    default-image-id: [8419]
    default-series: precise

We value a "just works" approach, which in part means minimising the amount of information that a user needs to glean, when the system can infer that from things the user will definitely know.

In this case, while it's useful to be able to specify the image-id, it would be better if that were not required, but instead if juju, by policy and online services, could work that out from the "default-series" preference. Providers for different environments will need to map that series preference to the appropriate image automagically, so that users don't need to update that when, for example, a newer base image rolling up fixes is published.

Tags: images
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

This was discussed at length at UDS-Q, as part of this blueprint:

https://blueprints.launchpad.net/ubuntu/+spec/servercloud-r-juju-resource-map

It wasn't worked on because of the decision to focus on the Go port, but it is still needed. I've re-targetted it at R and proposed it for UDS-R.

We can use https://cloud-images.ubuntu.com to lookup image IDs on public clouds, but we will also need to offer users the ability to have a local resource map for private clouds. There is also a need to map instance types to their constraints in EC2, since Amazon does not offer this via an API.

Changed in juju:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 1058510] Re: Juju providers should be able to get image id's automagically

Sounds good - thanks!

Revision history for this message
Kapil Thangavelu (hazmat) wrote :

It would be good to also produce such an index for clouds where we don't publish images, so that juju use is seamless everywhere. I've talked with ben & scott about using query2 for use with non-ec2 images, though its still not ideal, at the moment its focused fairly verbose with extraneous things and embedded build references across multiple files (http://cloud-images.ubuntu.com/query2/server/ec2.json). For openstack servers its possible we can glean some useful information from the glance server (http://docs.openstack.org/developer/glance/glanceapi.html#list-available-images-in-more-detail), but the contents of such are adhoc. At a minimum we need to know its ubuntu and its release series for a given image.

Martin Packman (gz)
Changed in juju-core:
importance: Undecided → High
status: New → Confirmed
William Reade (fwereade)
Changed in juju-core:
status: Confirmed → Triaged
Curtis Hovey (sinzui)
Changed in juju:
status: Confirmed → Triaged
importance: High → Low
Curtis Hovey (sinzui)
tags: added: images
Curtis Hovey (sinzui)
Changed in juju-core:
status: Triaged → Fix Released
assignee: nobody → Ian Booth (wallyworld)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.