Skip to content

Improve template manager/generation#816

Merged
gabriel-samfira merged 1 commit into
cloudbase:mainfrom
gabriel-samfira:better-template-handling
Jul 7, 2026
Merged

Improve template manager/generation#816
gabriel-samfira merged 1 commit into
cloudbase:mainfrom
gabriel-samfira:better-template-handling

Conversation

@gabriel-samfira

Copy link
Copy Markdown
Member

This change parses the runner install template on creation or update. It does not "execute" the template, as that requires full template context which may vary depending on extra_specs, but the syntax is checked.

Additionally, when a template is rendered (requested by a runner), the wrapper template will now catch the error and phone it home, marking the runner as failed. This will at least surface the error instead of leaving the runner in "installing" forever and only printing the error message to the garm log.

Changes have been made to the CLI as well to notify the user that the template has an error, dropping them back into the editor.

Drive by update: updated garm-provider-common, which replaced the yaml parser with the one maintained by the YAML organization. That is the bulk of the files changed. Should have probably pushed that separately.

This change parses the runner install template on creation or update.
It does not "execute" the template, as that requires full template context
which may vary depending on extra_specs, but the syntax is checked.

Additionally, when a template is rendered (requested by a runner), the wrapper
template will now catch the error and phone it home, marking the runner as
failed. This will at least surface the error instead of leaving the runner
in "installing" forever and only printing the error message to the garm log.

Changes have been made to the CLI as well to notify the user that the template
has an error, dropping them back into the editor.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
@gabriel-samfira gabriel-samfira force-pushed the better-template-handling branch from 2713de6 to 73c4f07 Compare July 7, 2026 15:05
@gabriel-samfira gabriel-samfira merged commit ca1b910 into cloudbase:main Jul 7, 2026
5 checks passed
@gabriel-samfira gabriel-samfira deleted the better-template-handling branch July 7, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant