Closed shall1024 closed 3 years ago
Hey, do you have kickstart template for RHEL7 or you let beaker fallback to default one? https://github.com/beaker-project/beaker/blob/bed610bde4ea72486293b151f8c768c6b6f448e3/Server/bkr/server/kickstarts/default#L107
I suspect that you don't have such line in your ks template. As you don't have system_pre snippet defined, default template would expand it to # no snippet data for system_pre
, but no such line is reported, comparing to:
# no snippet data for RedHatEnterpriseLinux7_pre
# no snippet data for RedHatEnterpriseLinux_pre
Another thing is that you have system_post defined also per_lab (which has higher priority, per https://github.com/beaker-project/beaker/blob/develop/documentation/admin-guide/kickstarts.rst#overriding-kickstart-snippets). I would try to add true #per_lab
after https://github.com/OpenFabrics/fsdp_beaker_snippets/blob/5b6fd8673425daef5514b0b5fdc7d39d7b6bb67e/snippets/per_lab/system_post/beaker.ofa.iol.unh.edu#L4 to verify that this per_lab is in fact in use and global system_post is ignored.
Thank you, it turned out to be a priority issue with the per_lab vs. global system_post.
Describe the bug
We have a
system_post
file defined in/etc/beaker/snippets
, but it does not seem to be used when provisioning systems. It doesn't appear in our anaconda-ks.cfg files, and the tasks insystem_post
are not executed when the installation is completed.All other snippets appear to be used/executed correctly.
Beaker version: 28.2
To Reproduce
Steps to reproduce the behavior:
/etc/beaker/snippets
with the "snippets" directory found hereanaconda-ks.cfg
andoriginal-ks.cfg
files in/root
and find that thesystem_post
snippet did not get added.fsdp_setup
folder is not present in/root
, even though that is the expected result of thesystem_post
tasks being run.Actual behavior
The
anaconda-ks.cfg
andoriginal-ks.cfg
files show that all snippets were used/pulled EXCEPT for thesystem_post
snippet. Along with this, thefsdp_setup
directory/git repository expected to be created by the tasks insystem_post
is not created, further supporting that this snippet is being ignored.Expected behavior
We expect that the two files indicated above will show the contents of the
system_post
snippet, showing that the anaconda kickstarter file did in fact use thesystem_post
snippet and execute it after installation.In addition, we expect a directory called
fsdp_setup
to be present in\root
, as this indicates the snippet is being executed.Screenshots
Contents of
anaconda-ks.cfg
:Contents of
original-ks.cfg
:Additional context
You may need to remove the snippet at
../snippets/per_osmajor/system/RedHatEnterpriseLinux7
, as it causes a gpg check to fail and thus a test harness never gets pulled. You can still log into the machine and check the files regardless, butcheck-install
will never run, thus, telling you that the install never completed. Either way, the results I describe above will be the same.