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

[Test] Validate the status of hosts in cluster post upgrade #4257

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

Conversation

sayaleeraut
Copy link
Contributor

Description

Please include Automation development guidelines. Source of Test case - New Feature/Regression Test/Close loop of customer BZs

click to expand checklist
  • Create a test case in Polarion reviewed and approved.
  • Create a design/automation approach doc. Optional for tests with similar tests already automated.
  • Review the automation design
  • Implement the test script and perform test runs
  • Submit PR for code review and approve
  • Update Polarion Test with Automation script details and update automation fields
  • If automation is part of Close loop, update BZ flag qe-test_coverage “+” and link Polarion test

cli/ops/host.py Outdated
@@ -17,11 +17,16 @@ def check_host_status(node, hostname, status=None):
status: custom status check for the host
"""
conf = {"host_pattern": hostname, "format": "json-pretty"}
out = loads(CephAdm(node).ceph.orch.host.ls(**conf))
out = loads((CephAdm(node).ceph.orch.host.ls(**conf))[node[0].hostname][0])
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @sayaleeraut

Can you please not change lib for specific hosts since same lib used in other suites as well (Impact other suites as well)

If required to use method with changes , Please create in test file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, done, please review @MohitBis

from utility.log import Log

log = Log(__name__)

Copy link
Contributor

Choose a reason for hiding this comment

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

HI @sayaleeraut

You can create method here for "check_host_status" as per your requirment

Thanks,
Mohit Bisht

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, added a local method to the test file itself.

Copy link
Contributor

@MohitBis MohitBis left a comment

Choose a reason for hiding this comment

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

LGTM

@openshift-ci openshift-ci bot added the lgtm Add this label when the PR is good to be merged label Nov 26, 2024
Copy link
Contributor

@vinpapnoi vinpapnoi left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

openshift-ci bot commented Nov 26, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: MohitBis, sayaleeraut, vinpapnoi

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Add this label when the PR is good to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants