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

Keyrotation test automation scenarios #9703

Merged

Conversation

paraggit
Copy link
Contributor

Following scenario is automated

   Test to verify the key rotation of the OSD

    Steps:
        1. Disable Keyrotation and verify its disable status at rook and storagecluster end.
        2. Record existing OSD keys before rotation is happen.
        3. Enable Keyrotation and verify its enable status at rook and storagecluster end.
        4. Set keyrotation status to every 3 minutes.
        5. wait for 3 minute.
        6. Verify the keyrotation is happen for each osd by comparing the old keys with new keys.
        7. Change the keyrotation value to default.
        

 Test to verify the keyrotation for noobaa.

    Steps:
        1. Disable Keyrotation and verify its Disable status at noobaa and storagecluster end.
        3. Record existing NooBaa Volume and backend keys before rotation is happen.
        4. Set keyrotation status to every 3 minutes.
        5. wait for 3 minute.
        6. Verify the keyrotation is happen NooBaa volume and backend keys
            by comparing the old keys with new keys.
        7. Change the keyrotation value to default.

@paraggit paraggit requested review from a team as code owners April 19, 2024 13:25
@paraggit paraggit force-pushed the keyrotation_tests_scenarios branch 2 times, most recently from 8e2a5f1 to d388cf4 Compare April 20, 2024 05:36
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: pakamble-az
Cluster Configuration:
PR Test Suite: tier1
PR Test Path: tests/functional/encryption/test_encryption_keyrotation.py
Additional Test Params:
OCP VERSION: 4.16
OCS VERSION: 4.16
tested against branch: master

Job PASSED.

Copy link
Contributor

@ebenahar ebenahar left a comment

Choose a reason for hiding this comment

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

Amazing work Parag!!

ocs_ci/helpers/keyrotation_helper.py Show resolved Hide resolved
ocs_ci/helpers/keyrotation_helper.py Show resolved Hide resolved
ocs_ci/helpers/keyrotation_helper.py Outdated Show resolved Hide resolved
@paraggit paraggit requested a review from ebenahar May 23, 2024 09:18
ebenahar
ebenahar previously approved these changes May 23, 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

Cluster Name:
Cluster Configuration:
PR Test Suite: tier1
PR Test Path: tests/functional/encryption/test_encryption_keyrotation.py
Additional Test Params:
OCP VERSION: 4.16
OCS VERSION: 4.16
tested against branch: master

Job PASSED.

@paraggit paraggit added the Verified Mark when PR was verified and log provided label May 23, 2024
@paraggit paraggit force-pushed the keyrotation_tests_scenarios branch from cf30097 to 4fe54bc Compare May 28, 2024 06:19
@openshift-ci openshift-ci bot removed the lgtm label May 28, 2024
Signed-off-by: Parag Kamble <pakamble@redhat.com>
@paraggit paraggit force-pushed the keyrotation_tests_scenarios branch from 81a10d7 to e0545a5 Compare May 29, 2024 06:13
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: pakamble-nooba
Cluster Configuration:
PR Test Suite: tier1
PR Test Path: tests/functional/encryption/test_encryption_keyrotation.py
Additional Test Params:
OCP VERSION: 4.16
OCS VERSION: 4.16
tested against branch: master

Job PASSED.

Copy link

openshift-ci bot commented May 29, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ebenahar, paraggit, sidhant-agrawal

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

@ebenahar ebenahar merged commit 2bdb949 into red-hat-storage:master May 29, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm size/XL Verified Mark when PR was verified and log provided
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants