Skip to content

CLOS-4726: target_userspace_creator: allow erasing conflicting packages during cloudlinux-release localinstall#67

Open
prilr wants to merge 1 commit into
cloudlinux:cloudlinuxfrom
prilr:CLOS-4726-cloudlinux-release-conflict
Open

CLOS-4726: target_userspace_creator: allow erasing conflicting packages during cloudlinux-release localinstall#67
prilr wants to merge 1 commit into
cloudlinux:cloudlinuxfrom
prilr:CLOS-4726-cloudlinux-release-conflict

Conversation

@prilr

@prilr prilr commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

The preliminary dnf localinstall cloudlinux-release in prepare_target_userspace runs against the source overlay, so the source rpmdb is in scope. The target release's intentional Conflicts (e.g. cloudlinux-release-8 Conflicts: rhn-client-tools < 2.11.5, added by CLOS-3472 for the rhn hooks support) have no upgrade candidate on the source OS, so without --allowerasing dnf cannot resolve them and target_userspace_creator crashes on CL7->CL8 for any host carrying the default el7 rhn-client-tools 2.0.2 (ZD 287724).

Add --allowerasing so dnf resolves the conflict by erasing the legacy package in the throwaway overlay, matching the real upgrade transaction which already runs with allow_erasing=True. Also covers the sibling cloudlinux-ea4-release < 1-11 conflict.

…loudlinux-release localinstall

The preliminary `dnf localinstall cloudlinux-release` in prepare_target_userspace
runs against the source overlay, so the source rpmdb is in scope. The target
release's intentional Conflicts (e.g. cloudlinux-release-8 `Conflicts:
rhn-client-tools < 2.11.5`, added by CLOS-3472 for the rhn hooks support) have no
upgrade candidate on the source OS, so without --allowerasing dnf cannot resolve
them and target_userspace_creator crashes on CL7->CL8 for any host carrying the
default el7 rhn-client-tools 2.0.2 (ZD 287724).

Add --allowerasing so dnf resolves the conflict by erasing the legacy package in
the throwaway overlay, matching the real upgrade transaction which already runs
with allow_erasing=True. Also covers the sibling cloudlinux-ea4-release < 1-11
conflict.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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