~themue/juju-core/053-env-more-script-friendly

Viewing all changes in revision 1530.

  • Committer: Tarmac
  • Author(s): jtv at canonical
  • Date: 2013-07-24 03:56:08 UTC
  • mfrom: (1516.2.6 az-machinetypes)
  • Revision ID: tarmac-20130724035608-llsbbls3tig8x87c
[r=jtv] Select instance type on Azure.

Selecting an instance type on Azure is very simple: regions don't come into
it, and there are few enough types that you can just pick the cheapest type
that matches technical requirements and always know you got the best possible
fit.

Nevertheless Azure has some mismatches with Juju's selection logic. Disk
sizes come into play, which aren't currently modeled in constraints.  We're not
even really sure yet what Azure's documented limitations on OS disk size mean.
The image we use is 30 GB (OS images dictate OS disk size in Azure) and the
ExtraSmall machine type is documented as having 19 or 20 GB of OS disk space,
yet Julian has tried deploying that combination, and succeeded.

Juju's constraints model does allow for coupling between images and instance
types. But since we don't have image selection at all yet, for now I found it
much easier to implement instance-type selection than to fit in with the
existing code for this. We'll have to re-think this after a good look at
simplestreams.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: