-
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
changed multi_cnv_workload fixture to create parallel VMs #11131
changed multi_cnv_workload fixture to create parallel VMs #11131
Conversation
f4b8148
to
9b6d831
Compare
9b6d831
to
d08ab7a
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 on existing cluster
Cluster Name: asagarte-cnv15
Cluster Configuration:
PR Test Suite:
PR Test Path: tests/functional/workloads/cnv/test_multi_vm_configurations.py
Additional Test Params:
OCP VERSION: 4.18
OCS VERSION: 4.18
tested against branch: master
Job FAILED (installation failed, tests not executed).
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 on existing cluster
Cluster Name: asagare-cnv15
Cluster Configuration:
PR Test Suite:
PR Test Path: tests/functional/workloads/cnv/test_multi_vm_configurations.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 on existing cluster
Cluster Name: asagare-sc
Cluster Configuration:
PR Test Suite:
PR Test Path: tests/functional/workloads/cnv/test_multi_vm_configurations.py
Additional Test Params:
OCP VERSION: 4.18
OCS VERSION: 4.18
tested against branch: master
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 on existing cluster
Cluster Name: asagare-cnv15
Cluster Configuration:
PR Test Suite:
PR Test Path: tests/functional/workloads/cnv/test_multi_vm_configurations.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 on existing cluster
Cluster Name: asagare-cnv16
Cluster Configuration:
PR Test Suite:
PR Test Path: tests/functional/workloads/cnv/test_multi_vm_configurations.py
Additional Test Params:
OCP VERSION: 4.18
OCS VERSION: 4.18
tested against branch: master
tests/conftest.py
Outdated
if vm_config["sc_compression"] == "default": | ||
storageclass = sc_obj_def_compr.name | ||
elif vm_config["sc_compression"] == "aggressive": | ||
storageclass = sc_obj_aggressive.name |
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.
if vm_config["sc_compression"] == "default": | |
storageclass = sc_obj_def_compr.name | |
elif vm_config["sc_compression"] == "aggressive": | |
storageclass = sc_obj_aggressive.name | |
storageclass = sc_obj_def_compr.name if vm_config["sc_compression"] == "default" else sc_obj_aggressive.name | |
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.
Done
tests/conftest.py
Outdated
else: | ||
vm_list_default_compr.append(vm_obj) | ||
except Exception as e: | ||
print(f"Error occurred while creating VM: {e}") |
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.
replace print with logging
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.
Done
tests/conftest.py
Outdated
) | ||
|
||
futures.append((future, vm_config["sc_compression"])) | ||
for future, sc_compression in futures: |
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.
you can use as_completed(futures) to process each completed future as soon as it finishes
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.
Done
tests/conftest.py
Outdated
vm_list_default_compr.append(vm_obj) | ||
# Use ThreadPoolExecutor to create VMs parallel | ||
with ThreadPoolExecutor() as executor: | ||
futures = [] |
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.
Looks like you are storing some metadata, should dict be used here?
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.
Done
5d44463
to
1a1cc3d
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 on existing cluster
Cluster Name: asagare-cnv17
Cluster Configuration:
PR Test Suite:
PR Test Path: tests/functional/workloads/cnv/test_multi_vm_configurations.py
Additional Test Params:
OCP VERSION: 4.18
OCS VERSION: 4.18
tested against branch: master
Signed-off-by: Avdhoot <[email protected]>
Signed-off-by: Avdhoot <[email protected]>
Signed-off-by: Avdhoot <[email protected]>
Signed-off-by: Avdhoot <[email protected]>
Signed-off-by: Avdhoot <[email protected]>
7fbbf12
to
52292af
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: avd-sagare, ayush-patni, hnallurv, PrasadDesala 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 |
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 on existing cluster
Cluster Name: asagare-cnv17
Cluster Configuration:
PR Test Suite:
PR Test Path: tests/functional/workloads/cnv/test_multi_vm_configurations.py
Additional Test Params:
OCP VERSION: 4.18
OCS VERSION: 4.18
tested against branch: master
No description provided.