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

GSS BZ-2120944 Test Large Omap Objects FS Meta Data #9157

Closed
wants to merge 7 commits into from

Conversation

OdedViner
Copy link
Contributor

@OdedViner OdedViner commented Jan 15, 2024

@OdedViner OdedViner requested a review from a team as a code owner January 15, 2024 17:09
@pull-request-size pull-request-size bot added the size/M PR that changes 30-99 lines label Jan 15, 2024
pod_dict_path=pod_dict_path,
raw_block_pv=raw_block_pv,
)
self.pod_obj.exec_cmd_on_pod(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

def exec_sh_cmd_on_pod(self, command, sh="bash", timeout=600, **kwargs):

@OdedViner OdedViner changed the title WIP: GSS BZ-2120944 Test Large Omap Objects FS Meta Data GSS BZ-2120944 Test Large Omap Objects FS Meta Data Jan 28, 2024
@PrasadDesala PrasadDesala added team/e2e E2E team related issues/PRs Customer defects Defects automated aspart of GSS closed loop labels Jan 30, 2024
@tier2
@ignore_leftovers
@bugzilla("2120944")
@skipif_external_mode
Copy link
Contributor

Choose a reason for hiding this comment

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

This test is not supported on external mode?

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

@bugzilla("2120944")
@skipif_external_mode
@skipif_ocs_version("<4.12")
@pytest.mark.polarion_id("OCS-XXXX")
Copy link
Contributor

Choose a reason for hiding this comment

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

Polarion id missing

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

raw_block_pv=raw_block_pv,
)
cmd = (
"mkdir -p dir3/.snap; for n in {1..100}; do touch dir3/file{0..11000}; "
Copy link
Contributor

Choose a reason for hiding this comment

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

the mount point of the ngnix pod is /var/lib/www/html, looks like you are not creating these on the mount path. Please check

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

Comment on lines 62 to 65
cmd = (
"mkdir -p /var/lib/www/html/dir3/.snap; for n in {1..100}; do touch /var/lib/www/html/dir3/file{0..11000}; "
"mkdir -p /var/lib/www/html/dir3/.snap/snap_$n; rm -f /var/lib/www/html/dir3/file{0..11000}; done"
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a comment or a log message of what this command does?

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

PrasadDesala
PrasadDesala previously approved these changes Feb 26, 2024
Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

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

PR validation on existing cluster

Cluster Name: oviner2-feb25
Cluster Configuration:
PR Test Suite: tier2
PR Test Path: tests/manage/z_cluster/test_large_omap_objects_fs_meta_data.py
Additional Test Params:
OCP VERSION: 4.15
OCS VERSION: 4.15
tested against branch: master

Job FAILED (installation failed, tests not executed).

yitzhak12
yitzhak12 previously approved these changes Feb 26, 2024
Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

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

PR validation on existing cluster

Cluster Name: oviner2-feb25
Cluster Configuration:
PR Test Suite: tier2
PR Test Path: tests/manage/z_cluster/test_large_omap_objects_fs_meta_data.py
Additional Test Params:
OCP VERSION: 4.15
OCS VERSION: 4.15
tested against branch: master

Job FAILED (installation failed, tests not executed).

Copy link

openshift-ci bot commented Feb 26, 2024

New changes are detected. LGTM label has been removed.

Copy link

openshift-ci bot commented Feb 26, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: OdedViner

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

1 similar comment
Copy link

openshift-ci bot commented Feb 26, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: OdedViner

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

Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

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

PR validation on existing cluster

Cluster Name: oviner2-feb25
Cluster Configuration:
PR Test Suite: tier2
PR Test Path: tests/manage/z_cluster/test_large_omap_objects_fs_meta_data.py
Additional Test Params:
OCP VERSION: 4.15
OCS VERSION: 4.15
tested against branch: master

Job FAILED (installation failed, tests not executed).

Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

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

PR validation on existing cluster

Cluster Name: oviner2-feb25
Cluster Configuration:
PR Test Suite: tier2
PR Test Path: tests/functional/z_cluster/test_large_omap_objects_fs_meta_data.py
Additional Test Params:
OCP VERSION: 4.15
OCS VERSION: 4.15
tested against branch: master

Job PASSED.

@OdedViner
Copy link
Contributor Author

OdedViner commented Feb 28, 2024

2024-02-26 19:01:35  17:01:34 - MainThread - tests.functional.z_cluster.test_large_omap_objects_fs_meta_data - INFO  - Create large number of files under a directory exceeding the mds configuration mds_bal_split_size.
2024-02-26 19:01:35  17:01:34 - MainThread - ocs_ci.utility.utils - INFO  - Executing command: oc -n namespace-test-b085281fcd624c08afd7d76e4 exec pod-test-cephfs-bb7c2bcf51e54d1c825ce299 -- bash -c "mkdir -p /var/lib/www/html/dir3/.snap; for n in {1..100}; do touch /var/lib/www/html/dir3/file{0..11000}; mkdir -p /var/lib/www/html/dir3/.snap/snap_$n; rm -f /var/lib/www/html/dir3/file{0..11000}; done"
2024-02-26 19:01:35  17:01:35 - MainThread - ocs_ci.utility.utils - INFO  - searching for plugin: _n
2024-02-26 19:29:27  17:29:24 - MainThread - ocs_ci.utility.utils - WARNING  - Command stderr: mkdir: can't create directory '/var/lib/www/html/dir3/.snap/snap_1': Permission denied
2024-02-26 19:29:27  mkdir: can't create directory '/var/lib/www/html/dir3/.snap/snap_2': Permission denied
2024-02-26 19:29:27  mkdir: can't create directory '/var/lib/www/html/dir3/.snap/snap_3': Permission denied
2024-02-26 19:29:27  mkdir: can't create directory '/var/lib/www/html/dir3/.snap/snap_4': Permission denied

@PrasadDesala @vkathole
The script ran ~28 min.

  1. Can we change the loop parameters so the test time will be shorter? What do you think?
  2. Do you understand the permission-denied warnings?

Signed-off-by: oviner <[email protected]>
Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

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

PR validation on existing cluster

Cluster Name: oviner10-ibm
Cluster Configuration:
PR Test Suite: tier2
PR Test Path: tests/functional/z_cluster/test_large_omap_objects_fs_meta_data.py
Additional Test Params:
OCP VERSION: 4.15
OCS VERSION: 4.15
tested against branch: master

Job PASSED.

@OdedViner
Copy link
Contributor Author

@OdedViner OdedViner closed this May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer defects Defects automated aspart of GSS closed loop size/M PR that changes 30-99 lines team/e2e E2E team related issues/PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants