clean up root.tar.gz and fast path installer files (mipf rewrite in Python)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
High
|
Unassigned | ||
maas (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
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/
/var/lib/
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-
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-
* I'm pretty sure maas-import-
* 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).
Changed in maas (Ubuntu): | |
importance: | Undecided → Medium |
summary: |
- clean up root.tar.gz and fast path installer files + clean up root.tar.gz and fast path installer files (mipf rewrite in + Python) |
Changed in maas (Ubuntu): | |
status: | New → Invalid |
We not only end up with to copies of root.tar.gz but we also end up with two copies of 'initrd' and 'linux' files.
ubuntu@cluster:~$ ls /var/lib/ maas/ephemeral/ precise/ ephemeral/ amd64/20121008/
disk.img info initrd.gz linux root.tar.gz tgt.conf
ubuntu@cluster:~$ ls /var/lib/ maas/tftp/ amd64/generic/ precise/ xinstall
initrd.gz linux root.tar.gz