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

Adding volume info validations #4379

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

Conversation

AmarnatReddy
Copy link
Contributor

Description

Adding volume info validations

Scenarios for Volume Info Validation with Data Write:

1. Verify Volume Info Details Without Any Data
2. Create Subvolumes and Validate Usage Details
3. Mount Subvolumes, Write Data, and Validate Usage
4. Create Subvolume Group and Subvolumes, Validate Usage Details
5. Delete Subvolumes and Validate Usage During Deletion

Logs:
With erasure: http://magna002.ceph.redhat.com/cephci-jenkins/cephci-run-G5H6NB/
without erasure : http://magna002.ceph.redhat.com/cephci-jenkins/cephci-run-TWL5CW/

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

Copy link
Contributor

openshift-ci bot commented Jan 15, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: AmarnatReddy

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

@neha-gangadhar
Copy link
Contributor

@AmarnatReddy Are we updating any existing polarion testcase? or adding a new one for all volume management scenarios?

@AmarnatReddy
Copy link
Contributor Author

@AmarnatReddy Are we updating any existing polarion testcase? or adding a new one for all volume management scenarios?

We need a new test to cover volume info command.

@Manimaran-MM
Copy link
Contributor

@AmarnatReddy Are we updating any existing polarion testcase? or adding a new one for all volume management scenarios?

We need a new test to cover volume info command.

@AmarnatReddy We have an existing TC which covers volume info without data write. If possible can we extend the same TC?
https://polarion.engineering.redhat.com/polarion/#/project/CEPH/workitem?id=CEPH-83604097

fs_util.create_fs(client1, volume_name)
log.info("Step 1: Verify Volume Info Details Without Any Data")
out, rc = client1.exec_command(
sudo=True, cmd=f"ceph fs volume info {volume_name} --human_readable -f json"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we make use of the function def get_fs_info_dump() or def collect_fs_volume_info_for_validation() which collects the data required along with get_fs_info_dump()

Copy link
Contributor

Choose a reason for hiding this comment

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

TC without data write: tests/cephfs/cephfs_vol_management/cephfs_vol_mgmt_test_volume.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants