Repository navigation
test/base-host-check.sh: fix disabled firewall services check - #1471
Merged
Merged
Conversation
achilleas-k
previously approved these changes
Apr 28, 2025
achilleas-k
left a comment
Member
There was a problem hiding this comment.
Thanks for the quick fix.
Member
|
Maybe we should check if the exit code is actually exactly 1 instead of just non-zero. but there are a bunch of other exit codes (2 - 254) that report other types of failures that we would probably want to catch (and fail). |
Member
Author
good point |
croissanne
force-pushed
the
images-test-fix
branch
from
April 28, 2025 11:01
16a33a1 to
8daa18e
Compare
`firewall-cmd` returns 1 if the service is disabled, use the same pattern as in `check_services_disabled` to ignore the status code.
croissanne
force-pushed
the
images-test-fix
branch
from
April 28, 2025 11:02
8daa18e to
252a94d
Compare
thozza
approved these changes
Apr 28, 2025
achilleas-k
approved these changes
Apr 28, 2025
achilleas-k
added a commit
to achilleas-k/osbuild-composer
that referenced
this pull request
Apr 29, 2025
tag v0.140.0 Tagger: imagebuilder-bot <[email protected]> Changes with 0.140.0 ---------------- * Loader part override followups (osbuild/image-builder#1466) * Author: Michael Vogt, Reviewers: Tomáš Hozza * RHEL-10/gce: install cloud-utils-growpart by default (osbuild/image-builder#1463) * Author: Tomáš Hozza, Reviewers: Michael Vogt, Simon de Vlieger * base-host-check: expand to cover more (COMPOSER-2498) (osbuild/image-builder#1432) * Author: Simon de Vlieger, Reviewers: Tomáš Hozza * rhel8,9: move partitioning into YAML (osbuild/image-builder#1390) * Author: Michael Vogt, Reviewers: Tomáš Hozza — Somewhere on the Internet, 2025-04-28 --- tag v0.141.0 Tagger: imagebuilder-bot <[email protected]> Changes with 0.141.0 ---------------- * Shrink the current installer images a bit (osbuild/image-builder#1423) * Author: Brian C. Lane, Reviewers: Achilleas Koutsou, Simon de Vlieger, Tomáš Hozza * Update EL10 Azure images with changes made in RHEL 9.6 (osbuild/image-builder#1472) * Author: Achilleas Koutsou, Reviewers: Michael Vogt, Tomáš Hozza * distro: add DNFSetReleaseVerVar to ImageConfig (osbuild/image-builder#1465) * Author: Michael Vogt, Reviewers: Achilleas Koutsou, Tomáš Hozza * test/base-host-check.sh: fix disabled firewall services check (osbuild/image-builder#1471) * Author: Sanne Raymaekers, Reviewers: Achilleas Koutsou, Tomáš Hozza — Somewhere on the Internet, 2025-04-29 ---
4 tasks
thozza
pushed a commit
to osbuild/osbuild-composer
that referenced
this pull request
Apr 29, 2025
tag v0.140.0 Tagger: imagebuilder-bot <[email protected]> Changes with 0.140.0 ---------------- * Loader part override followups (osbuild/image-builder#1466) * Author: Michael Vogt, Reviewers: Tomáš Hozza * RHEL-10/gce: install cloud-utils-growpart by default (osbuild/image-builder#1463) * Author: Tomáš Hozza, Reviewers: Michael Vogt, Simon de Vlieger * base-host-check: expand to cover more (COMPOSER-2498) (osbuild/image-builder#1432) * Author: Simon de Vlieger, Reviewers: Tomáš Hozza * rhel8,9: move partitioning into YAML (osbuild/image-builder#1390) * Author: Michael Vogt, Reviewers: Tomáš Hozza — Somewhere on the Internet, 2025-04-28 --- tag v0.141.0 Tagger: imagebuilder-bot <[email protected]> Changes with 0.141.0 ---------------- * Shrink the current installer images a bit (osbuild/image-builder#1423) * Author: Brian C. Lane, Reviewers: Achilleas Koutsou, Simon de Vlieger, Tomáš Hozza * Update EL10 Azure images with changes made in RHEL 9.6 (osbuild/image-builder#1472) * Author: Achilleas Koutsou, Reviewers: Michael Vogt, Tomáš Hozza * distro: add DNFSetReleaseVerVar to ImageConfig (osbuild/image-builder#1465) * Author: Michael Vogt, Reviewers: Achilleas Koutsou, Tomáš Hozza * test/base-host-check.sh: fix disabled firewall services check (osbuild/image-builder#1471) * Author: Sanne Raymaekers, Reviewers: Achilleas Koutsou, Tomáš Hozza — Somewhere on the Internet, 2025-04-29 ---
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
firewall-cmdreturns 1 if the service is disabled, use the samepattern as in
check_services_disabledto ignore the status code.