-
Notifications
You must be signed in to change notification settings - Fork 96
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(is_enterprise): check command output applying logic #6957
Conversation
since in cases we might have failure like the following: ``` Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64 &repo=os&infra=stock error was 14: curl#7 - "Failed connect to mirrorlist.centos.org:80; Operation now in progress" ``` we wrong assumed this should be enterpise and tried to install enterpise artifacts (which didn't existed)
return "scylla-enterprise.x86_64" in result or "No matches found" not in result | ||
result = self.remoter.sudo("yum search scylla-enterprise 2>&1", ignore_status=True) | ||
if result.ok: | ||
_is_enterprise = "scylla-enterprise.x86_64" in result.stdout or "No matches found" not in result.stdout |
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.
What about enterprise
on Arm
?
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.
I guess the other logic would cover it (i.e. No matches)
I just moved it around, the already available logic.
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.
LGTM
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.
LGTM
since in cases we might have failure like the following:
we wrong assumed this should be enterpise and tried to install enterpise artifacts (which didn't existed)
PR pre-checks (self review)
backport
labelssdcm/sct_config.py
)unit-test/
folder)