Skip to content

Conversation

DaanHoogland
Copy link
Contributor

@DaanHoogland DaanHoogland commented Jul 4, 2023

Description

This PR...

This doesn't fix #7717 , but removes the abundant requirement from test_vm_deployment_planner, which looks for a specific template using the wrong hypervisor. The described issue in #7717 remains that the testclient doesn't have the right type of hypervisor configured.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

@weizhouapache
Copy link
Member

@blueorangutan package

@blueorangutan
Copy link

@weizhouapache a [SF] 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.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6427

@apache apache deleted a comment from blueorangutan Jul 10, 2023
@apache apache deleted a comment from blueorangutan Jul 10, 2023
@DaanHoogland
Copy link
Contributor Author

@blueorangutan test rocky8 vmware-67u3

@apache apache deleted a comment from blueorangutan Jul 10, 2023
@apache apache deleted a comment from blueorangutan Jul 10, 2023
@DaanHoogland
Copy link
Contributor Author

@blueorangutan test centos7 vmware-67u3

@blueorangutan
Copy link

@DaanHoogland a [SF] Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests

@DaanHoogland
Copy link
Contributor Author

@blueorangutan test centos7 vmware-67u3

@blueorangutan
Copy link

@DaanHoogland a [SF] Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests

@blueorangutan
Copy link

[SF] Trillian test result (tid-7053)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server 7
Total time taken: 43714 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7718-t7053-vmware-67u3.zip
Smoke tests completed. 112 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_05_vmschedule_test_e2e Failure 170.64 test_vm_schedule.py

@DaanHoogland
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@DaanHoogland a [SF] 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.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6468

@vishesh92
Copy link
Member

@blueorangutan test rocky8 vmware-67u3

@apache apache deleted a comment from blueorangutan Jul 17, 2023
@apache apache deleted a comment from blueorangutan Jul 17, 2023
@DaanHoogland
Copy link
Contributor Author

@blueorangutan test centos7 vmware-67u3

@blueorangutan
Copy link

@DaanHoogland a [SF] Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests

@apache apache deleted a comment from blueorangutan Jul 18, 2023
@blueorangutan
Copy link

[SF] Trillian test result (tid-7100)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server 7
Total time taken: 44589 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7718-t7100-vmware-67u3.zip
Smoke tests completed. 113 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@DaanHoogland
Copy link
Contributor Author

@shwstppr @weizhouapache can you review?

@DaanHoogland
Copy link
Contributor Author

Same code hypervisor=self.hypervisor is used across different tests so I'm not completely sure about this change

agree with @shwstppr . code looks ok. but I am also wondering if we need this change and what the benefit is.

The real issue is #7717; the hypervisor is not set correctly in the test client, but for these tests it is irrelevant so no reason to set it. Just getting the template is effectively the same action. a test env with a mixed zone may not be able to execute it but only if the hypervisor type is explicitely set to one for which a template is not of the default hypervisortype. The test assumes intelligence that it doesn't have itself.

@shwstppr @weizhouapache , is this explanation enough?

@DaanHoogland
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@DaanHoogland a [SF] 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 DaanHoogland marked this pull request as ready for review July 31, 2023 06:38
@weizhouapache
Copy link
Member

Same code hypervisor=self.hypervisor is used across different tests so I'm not completely sure about this change

agree with @shwstppr . code looks ok. but I am also wondering if we need this change and what the benefit is.

The real issue is #7717; the hypervisor is not set correctly in the test client, but for these tests it is irrelevant so no reason to set it. Just getting the template is effectively the same action. a test env with a mixed zone may not be able to execute it but only if the hypervisor type is explicitely set to one for which a template is not of the default hypervisortype. The test assumes intelligence that it doesn't have itself.

@shwstppr @weizhouapache , is this explanation enough?

@DaanHoogland
I still do not understand what the PR aims to fix.
In mixed zone, if the hypervisor is incorrect, we can update test_data.py to use correct hypervisor.

with this PR, the test will get the template with random (?) hypervisor, right ?

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6606

@DaanHoogland
Copy link
Contributor Author

with this PR, the test will get the template with random (?) hypervisor, right ?

you can call it random, but in an env with only one hypervisor it will get the template registered instead of trying to force to get the kvm template. this is why the tests would fail on vmware.

@weizhouapache
Copy link
Member

@blueorangutan test rocky8 vmware-67u3

@weizhouapache
Copy link
Member

with this PR, the test will get the template with random (?) hypervisor, right ?

you can call it random, but in an env with only one hypervisor it will get the template registered instead of trying to force to get the kvm template. this is why the tests would fail on vmware.

ok, let's run some tests on vmware

@weizhouapache
Copy link
Member

@blueorangutan test rocky8 vmware-67u3

@blueorangutan
Copy link

@weizhouapache a [SF] Trillian-Jenkins test job (rocky8 mgmt + vmware-67u3) has been kicked to run smoke tests

@weizhouapache
Copy link
Member

@blueorangutan test ubuntu22 vmware-70u3

@weizhouapache weizhouapache changed the title smoke test fixes smoke test: fixes test_vm_deployment_planner Jul 31, 2023
@weizhouapache
Copy link
Member

@blueorangutan test ubuntu22 vmware-70u3

@blueorangutan
Copy link

@weizhouapache a [SF] Trillian-Jenkins test job (ubuntu22 mgmt + vmware-70u3) has been kicked to run smoke tests

@blueorangutan
Copy link

[SF] Trillian test result (tid-7217)
Environment: vmware-70u3 (x2), Advanced Networking with Mgmt server u22
Total time taken: 50312 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7718-t7217-vmware-70u3.zip
Smoke tests completed. 113 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@blueorangutan
Copy link

[SF] Trillian test result (tid-7216)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server r8
Total time taken: 76560 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7718-t7216-vmware-67u3.zip
Smoke tests completed. 109 look OK, 4 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_02_internallb_roundrobin_1RVPC_3VM_HTTP_port80 Error 544.90 test_internal_lb.py
test_list_system_vms_metrics_history Failure 0.24 test_metrics_api.py
test_list_vms_metrics_admin Error 3604.82 test_metrics_api.py
test_list_vms_metrics_history Error 4.70 test_metrics_api.py
test_list_volumes_metrics_history Error 3606.87 test_metrics_api.py
test_01_deploy_vm_on_specific_host Error 17.74 test_vm_deployment_planner.py
test_02_deploy_vm_on_specific_cluster Error 3604.30 test_vm_deployment_planner.py
test_03_deploy_vm_on_specific_pod Error 1.29 test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_cluster Error 4.37 test_vm_deployment_planner.py
test_05_deploy_vm_on_cluster_override_pod Error 1.28 test_vm_deployment_planner.py
test_09_expunge_vm Failure 424.68 test_vm_life_cycle.py

@weizhouapache
Copy link
Member

@blueorangutan test rocky8 vmware-67u3

@blueorangutan
Copy link

@weizhouapache a [SF] Trillian-Jenkins test job (rocky8 mgmt + vmware-67u3) has been kicked to run smoke tests

@blueorangutan
Copy link

[SF] Trillian test result (tid-7234)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server r8
Total time taken: 70921 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7718-t7234-vmware-67u3.zip
Smoke tests completed. 110 look OK, 3 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_list_system_vms_metrics_history Failure 0.23 test_metrics_api.py
test_list_vms_metrics_admin Error 3604.32 test_metrics_api.py
test_list_vms_metrics_history Error 5.72 test_metrics_api.py
test_list_volumes_metrics_history Error 3606.52 test_metrics_api.py
test_01_deploy_vm_on_specific_host Error 16.67 test_vm_deployment_planner.py
test_02_deploy_vm_on_specific_cluster Error 3602.66 test_vm_deployment_planner.py
test_03_deploy_vm_on_specific_pod Error 2.38 test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_cluster Error 1.35 test_vm_deployment_planner.py
test_05_deploy_vm_on_cluster_override_pod Error 4.40 test_vm_deployment_planner.py
test_09_expunge_vm Failure 424.60 test_vm_life_cycle.py

@weizhouapache
Copy link
Member

@blueorangutan test ubuntu22 vmware-70u3

@blueorangutan
Copy link

@weizhouapache a [SF] Trillian-Jenkins test job (ubuntu22 mgmt + vmware-70u3) has been kicked to run smoke tests

Copy link
Member

@rohityadavcloud rohityadavcloud left a comment

Choose a reason for hiding this comment

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

LGTM haven't tested it

@blueorangutan
Copy link

[SF] Trillian test result (tid-7242)
Environment: vmware-70u3 (x2), Advanced Networking with Mgmt server u22
Total time taken: 44864 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7718-t7242-vmware-70u3.zip
Smoke tests completed. 113 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@rohityadavcloud rohityadavcloud merged commit 0318e9f into apache:main Aug 7, 2023
@rohityadavcloud rohityadavcloud deleted the smoke.test.fixes branch August 7, 2023 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:integration-test Python Warning... Python code Ahead! Severity:Critical Critical bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

testClient has hypervisortype kvm when running on vmware
6 participants