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

Verify Node Ready #908

Merged
merged 1 commit into from
Oct 13, 2024
Merged

Conversation

ebattat
Copy link
Collaborator

@ebattat ebattat commented Sep 30, 2024

Type of change

Note: Fill x in []

  • bug
  • enhancement
  • documentation
  • dependencies

Description

Check the node status after the OpenShift installation or upgrade, and raise an error if any node is not in 'Ready' status. Additionally, add relevant unit tests or integration tests.

For security reasons, all pull requests need to be approved first before running any automated CI

@ebattat ebattat added the enhancement New feature or request label Sep 30, 2024
@ebattat ebattat self-assigned this Sep 30, 2024
@ebattat ebattat added the ok-to-test PR ok to test label Sep 30, 2024
benchmark_runner/common/oc/oc.py Show resolved Hide resolved
benchmark_runner/common/oc/oc.py Outdated Show resolved Hide resolved
@ebattat ebattat force-pushed the verify_node_ready branch 2 times, most recently from d939538 to 42fd518 Compare October 1, 2024 12:18
@ebattat
Copy link
Collaborator Author

ebattat commented Oct 10, 2024

@RobertKrawitz, any more comments ?

for node in nodes_list:
node_name, node_status = node.split()
if node_status != 'Ready':
raise NodeNotReady(node_name, node_status)
Copy link
Member

Choose a reason for hiding this comment

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

Cleaner to return False here, and let the caller decide whether to raise an exception.

Copy link
Collaborator Author

@ebattat ebattat Oct 10, 2024

Choose a reason for hiding this comment

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

I think we must raise an error if one of the nodes is not ready, as this should cause a CI failure.

benchmark_runner/common/oc/oc_exceptions.py Outdated Show resolved Hide resolved
@ebattat ebattat merged commit b78bb73 into redhat-performance:main Oct 13, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ok-to-test PR ok to test
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants