Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sdcm/cluster.py): Use microdnf on rhel-like docker backend #10487

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

k0machi
Copy link
Contributor

@k0machi k0machi commented Mar 24, 2025

Since we are now using RHEL UBI9 image for our docker backend, add
additional logic to support using microdnf inside
BaseNode.install_package

Fixes #10449

Testing

PR pre-checks (self review)

  • I added the relevant backport labels
  • I didn't leave commented-out/debugging code

Reminders

  • Add New configuration option and document them (in sdcm/sct_config.py)
  • Add unit tests to cover my changes (under unit-test/ folder)
  • Update the Readme/doc folder relevant to this change (if needed)

@k0machi k0machi self-assigned this Mar 24, 2025
@k0machi k0machi requested review from fruch, soyacz and Annamikhlin March 24, 2025 13:29
@k0machi
Copy link
Contributor Author

k0machi commented Mar 24, 2025

Testing the change is blocked by #10480

@k0machi k0machi force-pushed the fix-use-microdnf-for-ubi9-sd branch 2 times, most recently from af93ad3 to 7aa1699 Compare March 24, 2025 14:41
@fruch fruch force-pushed the fix-use-microdnf-for-ubi9-sd branch from 7aa1699 to e63c156 Compare March 24, 2025 22:09
@fruch
Copy link
Contributor

fruch commented Mar 24, 2025

meanwhile I've decided to disable it in #10491, and backport to all releases.

once we'll have the fixes in place, we can enable it back

@k0machi k0machi force-pushed the fix-use-microdnf-for-ubi9-sd branch 4 times, most recently from 10d8eb5 to a4e2499 Compare March 27, 2025 17:35
if self.node.parent_cluster.cluster_backend == "docker":
self.log.info("Scylla Doctor check in SCT isn't yet support for docker backend")
return
# if self.node.parent_cluster.cluster_backend == "docker":
Copy link
Contributor

Choose a reason for hiding this comment

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

remove before merging

@@ -1871,7 +1871,10 @@ def install_package(self,
package_version: str = None,
ignore_status: bool = False) -> None:
if self.distro.is_rhel_like:
pkg_cmd = 'yum'
if not self.parent_cluster.cluster_backend == "docker":
Copy link
Contributor

Choose a reason for hiding this comment

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

@fruch shouldn't we also adjust code for k8s to support rhel? (it's not just this one, so can be done in followup)

Copy link
Contributor

Choose a reason for hiding this comment

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

It can be a followup

Anyhow we should minimize the usage of it as much as possible

Since we are now using RHEL UBI9 image for our docker backend, add
additional logic to support using `microdnf` inside
BaseNode.install_package

Fixes scylladb#10449
@k0machi k0machi force-pushed the fix-use-microdnf-for-ubi9-sd branch from a4e2499 to 9b56a7a Compare March 31, 2025 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

artifacts-docker-test failing on 'sudo yum install -y ethtool' in scylla_doctor
3 participants