Skip to content

fix: atomic RHSM register/install/unregister with trap (ghost hosts) - #33

Merged
fatherlinux merged 1 commit into
mainfrom
fix/rhsm-atomic-unregister
Nov 12, 2026
Merged

fatherlinux merged 1 commit into
mainfrom
fix/rhsm-atomic-unregister

Conversation

@fatherlinux

Copy link
Copy Markdown
Member

Summary

  • Replace && subscription-manager unregister (skipped on install failure) with a RUN heredoc + trap ... EXIT so unregister+clean always run (constitution Section II).
  • Stops leaking an RHSM consumer into console.redhat.com inventory as a ghost host.

Refs crunchtools/constitution#128

Test plan

  • CI container build green (real secret path)

🤖 Generated with Claude Code

Replace the && subscription-manager unregister chain with a RUN heredoc and a
trap on EXIT so unregister+clean run even when the install fails. The chain
skipped unregister on any dnf failure, leaking an RHSM consumer into
console.redhat.com inventory as a ghost host (constitution II).

Refs crunchtools/constitution#128

Co-Authored-By: Claude Opus 4.8 <[email protected]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Gatehouse found no issues.

Full review.

@fatherlinux
fatherlinux merged commit 9d3a0f8 into main Nov 12, 2026
11 checks passed
@fatherlinux
fatherlinux deleted the fix/rhsm-atomic-unregister branch November 12, 2026 03:25
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