~clint-fewbar/pyjuju/trunk-hp-cloud

Viewing all changes in revision 527.

  • Committer: William Reade
  • Author(s): William Reade
  • Date: 2012-04-12 18:57:23 UTC
  • mfrom: (524.1.2 orchestra-series-constraint)
  • Revision ID: fwereade@gmail.com-20120412185723-w56hp72ahtix6t29
orchestra provider now respects ubuntu-series constraint

This is done by setting a new system profile before powering on the machine;
and assumes that the Cobbler system profiles created as part of the
ubuntu-orchestra-server install actually exist. Anecdotal evidence suggests
that people really don't mess with the distros and profiles available (they
just set up their systems and go) and so I consider the impact of this
drawback to be extremely limited.

Furthermore, while it is possible to extract real arch and series info from
cobbler (ie we can get a system's arch from its profile's distro, and we can
partially match new profiles by checking the distro's series and arch) this
is not enough to select an actual profile without depending on some
convention: we either have to infer the presence of the juju preseed from
the profile name (as I do currently) or to check the profile itself for
a magic string (ie the path to the juju preseed).

So: we depend on orchestra install conventions, whatever we do; and IMO it's
cleanest and simplest to actually embrace that and save all the mucking
about with distros and profiles.

R=hazmat
CC=
https://codereview.appspot.com/6012045

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: