-
Notifications
You must be signed in to change notification settings - Fork 100
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
base: master
Are you sure you want to change the base?
Conversation
Testing the change is blocked by #10480 |
af93ad3
to
7aa1699
Compare
7aa1699
to
e63c156
Compare
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 |
10d8eb5
to
a4e2499
Compare
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": |
There was a problem hiding this comment.
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": |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
a4e2499
to
9b56a7a
Compare
Since we are now using RHEL UBI9 image for our docker backend, add
additional logic to support using
microdnf
insideBaseNode.install_package
Fixes #10449
Testing
PR pre-checks (self review)
backport
labelsReminders
sdcm/sct_config.py
)unit-test/
folder)