[Bug 1182459] [NEW] clean up root.tar.gz and fast path installer files

Scott Moser smoser at ubuntu.com
Tue May 21 13:02:40 UTC 2013


Public bug reported:

on 13.04, after running maas-import-pxe, we end up with 2 copies of the "root.tar.gz" files (that are available for the fast path installer).
example:
 /var/lib/maas/ephemeral/raring/ephemeral/amd64/20130518/dist-root.tar.gz
 /var/lib/maas/tftp/amd64/generic/raring/commissioning/root.tar.gz

those are ~ 290M, so additional copies of all the "latest" is a bit
heavy (4 supported releases * X arches).

This whole path isn't settled, as during fast path installer development, we'll need to make a default decision between:
 * using 'cp -a /' from the iscsi ephemeral environment 
 * using root.tar.gz (as we're doing now)

And also on how to best distribute those.  Right now the user is
downloading the ephemeral filesystem image and then using 'uec2roottar'
to convert it to .root.tar.gz.  The general issue is that the ephemeral
environment boots iscsi, and needs to be a "root device" (filesystem in
a block device / file served by tgt) while the root.tar.gz file is ideal
from a transfer-to-installer perspective.  However, these files are
identical from a filesystem contents perspective.

Maybe we should open separate bugs, but heres the list of less-than-ideal things right now:
 * 2 copies of .root.tar.gz files
 * maas-import-pxe-files invokes uec2roottar.  We'll need to decide what the best way to distribute this is, and this might involve some server side work too.
 * I'm pretty sure maas-import-pxe-files does more work than it needs to when there is nothing to do.  We should have a "--force" or something option to it, but largely if there is nothign to do it should return very quickly and do *nothing*.  My plan here is to implement this as a simplestreams "mirror" and have a cron job sync and then clean up old images.
 * no cleanup is done of old files (this is especially an issue if we get to a 3 week cadence or the user is using daily streams).

** Affects: maas
     Importance: Undecided
         Status: New

** Affects: maas (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: maas (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to maas in Ubuntu.
https://bugs.launchpad.net/bugs/1182459

Title:
  clean up root.tar.gz and fast path installer files

To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1182459/+subscriptions



More information about the Ubuntu-server-bugs mailing list