Skip to content

osbuild-upload-gcp: print log output & support newer rhel versions - #2794

Merged
supakeen merged 2 commits into
osbuild:mainfrom
lfauster:upload-gcp-improvements
Oct 29, 2026
Merged

supakeen merged 2 commits into
osbuild:mainfrom
lfauster:upload-gcp-improvements

Conversation

@lfauster

Copy link
Copy Markdown
Contributor

Two minor improvements to the osbuild-upload-gcp command:

  1. print the log output to stderr. With migrating away from logrus in commit dbdc5c3, the command was pretty much silent, and f.e. did not print any usable information if wrong parameters were passed, or something failed in the upload.
  2. before, only rhel-8 and rhel-9 were supported as --os-family. Passing rhel-10 failed, with no visible error due to point (1). Instead of determining the guestOsFeatures with a self rolled switch, use the existing gcp.GuestOsFeaturesByDistro function, which already "supports" rhel-10.

@lfauster
lfauster requested a review from a team as a code owner October 27, 2026 12:45

@brlane-rht brlane-rht left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

@achilleas-k achilleas-k left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Wonderful!

Lean and clean. LGTM!

@achilleas-k
achilleas-k added this pull request to the merge queue Oct 27, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 27, 2026
olog discards output unless a logger is installed, so this command has been
silent since the logrus switch in commit dbdc5c3.
Use existing GuestOsFeaturesByDistro instead of a self rolled implementation.
With this, passing '--os-family rhel-10' does not throw an error anymore.
@lfauster
lfauster force-pushed the upload-gcp-improvements branch from a549c9d to e881e1c Compare October 27, 2026 18:24
@supakeen
supakeen enabled auto-merge October 28, 2026 07:51
@supakeen
supakeen added this pull request to the merge queue Oct 28, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 28, 2026
@lfauster
lfauster added this pull request to the merge queue Oct 29, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 29, 2026
@lfauster
lfauster added this pull request to the merge queue Oct 29, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 29, 2026
@supakeen
supakeen added this pull request to the merge queue Oct 29, 2026
Merged via the queue into osbuild:main with commit cb69038 Oct 29, 2026
51 of 55 checks passed
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.

4 participants