You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current behavior when including a broken yip config in a system is to ignore any errors and only show errors in journal for the elemental-setup-<stage>.
We should consider enabling the --strict flag to actually show the elemental-setup-<stage> as failed when a configuration is broken (or a command fails).
An initial list of tests to verify the intended behavior, feedback welcome:
This means that an unparseable yip-config will make all elemental-setup-* services show up as failed in systemd, but the system will still boot correctly.
This example yip config will only show elemental-setup-boot as failed:
stages:
boot:
commands:
- exit 2
The text was updated successfully, but these errors were encountered:
The question here I what is broken yip. I can imagine three different categories (probably there are more):
invalid yaml
valid yaml but invalid scheme
wrong command (e.g. exit 1 or a command line with a typo)
Invalid yaml IMHO should only cause the file to be ignored and report the unmarshal error to journal.
Wrong command should simply execute everything, including all pending steps and report the error to journal and systemd, causing the offending stage to fail but continue with the boot.
With an invalid scheme I am not sure what it meant to happen what actually happens today in terms of yip.
For now I am trying to code the integration test I had in mind for degraded services.
The current behavior when including a broken yip config in a system is to ignore any errors and only show errors in journal for the
elemental-setup-<stage>
.We should consider enabling the
--strict
flag to actually show theelemental-setup-<stage>
as failed when a configuration is broken (or a command fails).An initial list of tests to verify the intended behavior, feedback welcome:
/oem
/oem
This means that an unparseable yip-config will make all
elemental-setup-*
services show up as failed in systemd, but the system will still boot correctly.This example yip config will only show
elemental-setup-boot
as failed:The text was updated successfully, but these errors were encountered: