Skip to content

Improve failure mode in Beaker installations during provisioning#70

Merged
jstodola merged 2 commits into
mainfrom
beaker-failure
Jun 11, 2026
Merged

Improve failure mode in Beaker installations during provisioning#70
jstodola merged 2 commits into
mainfrom
beaker-failure

Conversation

@jikortus

Copy link
Copy Markdown
Contributor

This change is basically related to improperly setup Beaker jobs where Anabot is running during the very first installation (system provisioning). Even though Anabot would fail even without this improvement in the end, it's better to get a more directed error message, so that it's easier to review the failed jobs if a job misconfiguration occurs in the future.

It addresses the following situations:

  • the first task in the Beaker recipe is not an Anabot one (which breaks log uploading and makes it impossible to get the required task parameters)
  • missing ANABOT_RECIPE_URL parameter (the Anabot recipe is always taken from the task parameter when running in Beaker)
  • missing INTERACTIVE_KICKSTART parameter (provisioning is always kickstart-driven)

Moreover, the change adds a debug message for http_get() function and makes the Beaker module raise an exception if the system's hostname couldn't be fully determined (as FQDN).

jikortus added 2 commits June 10, 2026 13:27
to make more clear why Beaker fails to start if it's not possible
to get the FQDN (e. g. only a plain hostname is resolved).

Also print the requested URL in http_get() for debug purposes.

Assisted-by: Cursor
so that Anabot doesn't erroneously upload log files to unrelated
task if the first task is not related to Anabot, and also make
Anabot fail right at the beginning of its execution to make the
issue more clear.

Assisted-by: Cursor
@jikortus jikortus requested a review from jstodola June 10, 2026 14:37

@jstodola jstodola left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me, thanks.

@jstodola jstodola merged commit d8b460d into main Jun 11, 2026
4 of 5 checks passed
@jstodola jstodola deleted the beaker-failure branch June 11, 2026 11:30
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.

2 participants