Skip to content

Adding License Testing for Tiered Storage #233

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

Merged
merged 5 commits into from
Dec 3, 2024
Merged

Conversation

gene-redpanda
Copy link
Member

@gene-redpanda gene-redpanda commented Nov 21, 2024

Adds an operation to apply license separately + testing related to it.

@gene-redpanda gene-redpanda added the ci-ready indicates that a PR is ready for builds to run label Nov 21, 2024
@gene-redpanda gene-redpanda marked this pull request as ready for review December 3, 2024 17:59
@ivotron ivotron requested review from a team and gousteris and removed request for a team December 3, 2024 19:25
Copy link

@rpdevmp rpdevmp left a comment

Choose a reason for hiding this comment

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

LGTM,
Just a suggestion to do a squash to combine these

@gene-redpanda gene-redpanda merged commit 385682c into main Dec 3, 2024
21 checks passed
@gene-redpanda gene-redpanda deleted the license-work branch December 3, 2024 20:24
tasks:
- name: Check cluster health
ansible.builtin.shell: |
{{ rpk_bin }} cluster health | grep -i 'healthy:' | tr -d '[:space:]' | awk -F ':' '{print tolower($2)}'
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably better to do something like this and check the return code of grep, rather than trying to parse out the true/false status.

rpk cluster health | grep -q -i 'healthy.*false'

returns 0 if one or more lines matched the regex. returns 1 if zero lines matched.

Copy link
Contributor

Choose a reason for hiding this comment

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

(though, it would be better if rpk cluster health set a return code of 0 or 1 depending on cluster health state, then we could check the return code directly -- don't think that support exists right now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-ready indicates that a PR is ready for builds to run
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants