fix(builders/netboot): make "normal" evaluation pass #111
Loading…
Reference in a new issue
No description provided.
Delete branch "builder"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Without this patch running
colmena build
will run into a few assertionerrors for machines that have
config.bagel.baremetal.builders.netboot == true
set. This is due to an assertion check in the initrd module making sure
there is a mount point for
/
. This can be trivially fixed by justsetting the mount point to the real world value, which is a tmpfs with
64GB assigned.
We also set
deployment.targetHost
to a domain that willnever resolve in the public internet, to make sure nobody applies these
machines by hand. It would have been nice to throw a error whenever
colmena apply
gets executed for one of these hosts, but doing so woulddefeat the purpose of this patch, because the colmena
build
andapply
argument both evaluate the exact same code paths and thus colmena
build
would error again.The motivation behind this was, so we could run
colmena build
in CIin the future, and to not scare of new contributors with random build
failures when they first try to build the machines.
The proper solution would be to exclude all the network booted builders
from the regular colmena hive that is exposed to the cli, but this is
too many yaks to shave for now.
Thanks. This seems to address the error about
fileSystems
I was getting.9bab95bab7
to464a726664
Alternative solutions would be to do
colmena build --on @servers
and have@builders
be a separate tag?Or we can adopt a special colmena fork and fix this upstream.
I have patches to make this sort of stuff work ~better.
(I'm a bit on the fence regarding letting an invalid configuration exist at all, but I understand why it can be nice to fix this in an easier way.)
Can you like those patches, I would be curious to read them. (I assume it's your custom activation stuff)
That's less clear for people unfamiliar with the code base.
Understandable, but the problem already exists without this patch. The pr would merely alleviate some of the associated user pain.
464a726664
tocef88ec598
Right now, colmena building these builders will cause the NixOS module fail and make you unable to produce invalid artifacts.
c959d643db
and there must be some others in another tree, I don't find right now.
But fairly well documented in colmena and we can document it again.
Superseded by #124.
Pull request closed