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

[4.17] Add happy path validation coverage for the MCG guaranteed bucket logs feature #10228

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

sagihirshfeld
Copy link
Contributor

@sagihirshfeld sagihirshfeld commented Jul 31, 2024

This PR adds two new tests to cover https://url.corp.redhat.com/743e5e0 - the guaranteed bucket logs feature on MCG:

  1. test_guaranteed_bucket_logs_management: test enabling, checking the status, and disabling the feature at both the CR level and on a pair of buckets: source-bucket and logs-bucket.

  2. test_bucket_logs_integrity: test that all the expected S3 operations on a source-bucket are logged as expected on its logs-bucket

This PR also adds the needed utilities and fixtures to support these tests:

  • The BucketLoggingManager class holds all the necessary util functions for configuring and validating the feature
  • The enable_guaranteed_bucket_logging fixture uses the above to enable the feature on the CR level, with the proper cleanup that's needed at teardown.

@sagihirshfeld sagihirshfeld added MCG Multi Cloud Gateway / NooBaa related issues Squad/Red labels Jul 31, 2024
@sagihirshfeld sagihirshfeld self-assigned this Jul 31, 2024
@pull-request-size pull-request-size bot added the size/L PR that changes 100-499 lines label Jul 31, 2024
@pull-request-size pull-request-size bot added size/XL and removed size/L PR that changes 100-499 lines labels Aug 14, 2024
@sagihirshfeld sagihirshfeld force-pushed the test-guaranteed-nb-logs branch 2 times, most recently from 7c437f7 to 8794829 Compare September 16, 2024 15:42
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: shirshfe-417ibm34
Cluster Configuration:
PR Test Suite:
PR Test Path: tests/functional/object/mcg/test_bucket_logs.py
Additional Test Params:
OCP VERSION: 4.17
OCS VERSION: 4.17
tested against branch: master

Job UNSTABLE (some or all tests failed).

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: shirshfe-417ibm34
Cluster Configuration:
PR Test Suite:
PR Test Path: tests/functional/object/mcg/test_bucket_logs.py
Additional Test Params:
OCP VERSION: 4.17
OCS VERSION: 4.17
tested against branch: master

Job PASSED.

@sagihirshfeld sagihirshfeld added the Verified Mark when PR was verified and log provided label Sep 17, 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: shirshfe-417ibm34
Cluster Configuration:
PR Test Suite:
PR Test Path: tests/functional/object/mcg/test_bucket_logs.py
Additional Test Params:
OCP VERSION: 4.17
OCS VERSION: 4.17
tested against branch: master

Job PASSED.

Signed-off-by: Sagi Hirshfeld <[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: shirshfe-417ibm34
Cluster Configuration:
PR Test Suite:
PR Test Path: tests/functional/object/mcg/test_bucket_logs.py
Additional Test Params:
OCP VERSION: 4.17
OCS VERSION: 4.17
tested against branch: master

Job PASSED.

Signed-off-by: Sagi Hirshfeld <[email protected]>
Signed-off-by: Sagi Hirshfeld <[email protected]>
Signed-off-by: Sagi Hirshfeld <[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: shirshfe-417ibm35
Cluster Configuration:
PR Test Suite:
PR Test Path: tests/functional/object/mcg/test_bucket_logs.py
Additional Test Params:
OCP VERSION: 4.17
OCS VERSION: 4.17
tested against branch: master

Job PASSED.

OdedViner
OdedViner previously approved these changes Oct 13, 2024
DanielOsypenko
DanielOsypenko previously approved these changes Oct 13, 2024
@openshift-ci openshift-ci bot added the lgtm label Oct 13, 2024
Copy link

openshift-ci bot commented Oct 13, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: DanielOsypenko, OdedViner, sagihirshfeld

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 MCG Multi Cloud Gateway / NooBaa related issues size/XL Squad/Red Verified Mark when PR was verified and log provided
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants