-
Notifications
You must be signed in to change notification settings - Fork 170
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 test automation for reclaimspace disable operation #10862
Adding test automation for reclaimspace disable operation #10862
Conversation
5b5adff
to
50e7f13
Compare
self.pod_objs.append(pod_obj) | ||
|
||
# Disable Reclaimspace operation for the PVC | ||
log.info("Changing reclaimspace cronjob status to disable for all PVC object.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I'm missing something but if we want to disable the reclaim space, don't we need to enable it first?
If it is enabled by default then it is valid.
If not you are disabling but then enabling. I think it should go the other way around.
Enable->disable and then you can enable it back if we want to see that it can be reversed again to enable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reclaimspace is enabled by default on the cluster, so the flow starts with disabling and then enabling it to test reversibility.
tests/functional/pv/space_reclaim/test_disable_reclaimspace_operation.py
Outdated
Show resolved
Hide resolved
b49c6f5
to
a480f54
Compare
tests/functional/pv/space_reclaim/test_disable_reclaimspace_operation.py
Show resolved
Hide resolved
2e9517c
to
b03e542
Compare
b03e542
to
a17829a
Compare
There was a problem hiding this 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/pv/space_reclaim/test_disable_reclaimspace_operation.py
Additional Test Params:
OCP VERSION: 4.18
OCS VERSION: 4.18
tested against branch: master
Job UNSTABLE (some or all tests failed).
There was a problem hiding this 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/pv/space_reclaim/test_disable_reclaimspace_operation.py
Additional Test Params:
OCP VERSION: 4.18
OCS VERSION: 4.18
tested against branch: master
Job UNSTABLE (some or all tests failed).
97f3d71
to
ecc8aea
Compare
There was a problem hiding this 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/pv/space_reclaim/test_disable_reclaimspace_operation.py
Additional Test Params:
OCP VERSION: 4.18
OCS VERSION: 4.18
tested against branch: master
Job UNSTABLE (some or all tests failed).
Signed-off-by: Parag Kamble <[email protected]>
08c17c5
to
78aaf4d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unknown PR validation
Cluster Name:
Cluster Configuration:
PR Test Suite: tier1
PR Test Path: tests/functional/pv/space_reclaim/test_disable_reclaimspace_operation.py
Additional Test Params:
OCP VERSION: 4.18
OCS VERSION: 4.18
tested against branch: master
Job state: ABORTED.
There was a problem hiding this 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/pv/space_reclaim/test_disable_reclaimspace_operation.py
Additional Test Params:
OCP VERSION: 4.18
OCS VERSION: 4.18
tested against branch: master
storage_path = pod_obj.get_storage_path("block") | ||
log.info(f"Writing {actual_data_written}GiB of data to the block device") | ||
pod_obj.exec_cmd_on_pod( | ||
f"dd if=/dev/zero of={storage_path} bs=1M count=1024 oflag=direct > /dev/null 2>&1 &", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the command should be saved as a constant
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ebenahar, paraggit, shyRozen 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 |
Adding test automation for reclaimspace disable operation