[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: smaller cloud images, raw cloud images



On 8/7/20 1:55 PM, Thomas Lange wrote:
> Can't we just run a script on petterson after each release (not on the
> dailys) to untar the disk image, rename it (because it's always
> disk.raw) and generate a sha512sums file? Yes, the raw will be of 2G
> size, but this is much less than the 310 subdirectories in our daily
> builds. We also can have the sha512sum of the raw in the json file and
> check this.

Well, can't we just STOP the non-sense of building images on Salsa all
together? This was an unilateral move of Waldi without any discussion,
even yet an approval, from the team. What we were suppose to do was
building the images on Casulana.

At this point, we see that it is bad in many regards, the most blocking
point being that it is impossible to save an artifact bigger than 256GB.
This prevents me from building an Octavia image, for example...

> --- Day changed Wed Jul 22 2020
> 13:44:49< Mrfai> zigo: I'm looking at how to make cloud images smaller using fai-diskimage. resize2fs does not seem to help much, because it does not shrink the FS as much as (theoretical)
> possible.

I don't think we need image as small as possible, to the last bits.
Quite the opposite, to make the resize-at-boot possible, we need to
leave a bit of free space. But even like that, we're talking about
saving half the space... That's half the storage space for providers,
for us, and many more (and also half the download time).

> --- Day changed Mon Jul 27 2020
> 21:30:30< kuLa[m]> <waldi "and there are much more problems"> waldi do you have anything written down what you suggest we should do about it? I'd suggest opening a bug against cloud.d.o to keep track of it
> 
> 
> Here's my list of things that are needed:
> 
> create directory tree using fai dirinstall (using unshare)
> du -s
> create raw image (dd) of size XXX
> Handle MBR/EFI partition
> create partition and fs with minimal size (shell hooks?)
> copy directory tree
> adjust fstab?
> create grub.cfg
> write MBR/EFI info??
> 
> Anything missing?

Why can't you keep the idea of just shrinking the filesystem instead?

> I like to discuss some technical details, for e.g. when to run our tests.
> What are pros and cons of implementing this in fai-diskimage or in our
> build script.
> 
> Can we start this discuss during our next IRC meeting?

You can, but I'll be on holidays, and not available.

I also would like to discuss (here) if we could move the regular meeting
time to business hours, because really, I hate the evening meetings
because either I'm busy, or I just forget. If I remember well, the
reason it was on the evening was because of Serpent, who's not part of
the team anymore. Is there anyone else for who a late afternoon (to be
US timezone inclusive...) meeting wouldn't be convenient?

Cheers,

Thomas Goirand (zigo)


Reply to: