test: improve purge expunged resources b/g task testcase#9426
Conversation
Failures were seen for during purging of expunged resources via bacground task during different test runs. This PR tries to make sure b/g task execution is not skipped after MS restrat in a multi-MS environment. It also updates expunged.resources.purge.interval to allow running task again in 60s. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9426 +/- ##
===========================================
Coverage 15.54% 15.54%
Complexity 11977 11977
===========================================
Files 5494 5494
Lines 481055 481055
Branches 60787 59679 -1108
===========================================
Hits 74771 74771
Misses 398022 398022
Partials 8262 8262
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
@blueorangutan package |
|
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
DaanHoogland
left a comment
There was a problem hiding this comment.
we should be able to use modern string formatting. other than that LGTM
| logging.info("Waiting for 2x%d = %d seconds for background task to execute" % (purge_task_delay, wait)) | ||
| wait_multiple = 2 | ||
| wait = wait_multiple * purge_task_delay | ||
| logging.info("Waiting for %dx%d = %d seconds for background task to execute" % (wait_multiple, purge_task_delay, wait)) |
There was a problem hiding this comment.
| logging.info("Waiting for %dx%d = %d seconds for background task to execute" % (wait_multiple, purge_task_delay, wait)) | |
| logging.info(f"Waiting for {wait_multiple}x{purge_task_delay} = {wait} seconds for background task to execute") |
| return False | ||
| self.debug("Restarting all management server") | ||
| for idx, server_ip in enumerate(server_ips): | ||
| self.debug("Restarting management server #%d with IP %s" % (idx, server_ip)) |
There was a problem hiding this comment.
| self.debug("Restarting management server #%d with IP %s" % (idx, server_ip)) | |
| self.debug(f"Restarting management server #{idx} with IP {server_ip}") |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10435 |
|
@blueorangutan test matrix |
|
@DaanHoogland a [SL] Trillian-Jenkins matrix job (centos7 mgmt + xenserver71, rocky8 mgmt + vmware67u3, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-10937)
|
|
[SF] Trillian test result (tid-10939)
|
|
[SF] Trillian test result (tid-10938)
|
|
@blueorangutan package |
|
@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10446 |
|
@blueorangutan test matrix |
|
@DaanHoogland a [SL] Trillian-Jenkins matrix job (centos7 mgmt + xenserver71, rocky8 mgmt + vmware67u3, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
|
[SF] Trillian Build Failed (tid-10951) |
|
[SF] Trillian test result (tid-10952)
|
|
[SF] Trillian test result (tid-10953)
|
|
@blueorangutan test alma8 kvm-alma8 |
|
@shwstppr a [SL] Trillian-Jenkins test job (alma8 mgmt + kvm-alma8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-10956)
|
* test: improve purge expunged resources b/g task testcase Failures were seen for during purging of expunged resources via bacground task during different test runs. This PR tries to make sure b/g task execution is not skipped after MS restrat in a multi-MS environment. It also updates expunged.resources.purge.interval to allow running task again in 60s. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * new string formatting --------- Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Description
Failures were seen for during purging of expunged resources via bacground task during different test runs. This PR tries to make sure b/g task execution is not skipped after MS restrat in a multi-MS environment. It also updates expunged.resources.purge.interval to allow running task again in 60s.
#9316 (comment)
#9316 (comment)
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?