Skip to content

[marvin, VMware] Fix repeated test failures observed on 'main' branch - #5992

Merged
nvazquez merged 4 commits into
apache:mainfrom
shapeblue:fix-change-svc-offering-test
Feb 16, 2022
Merged

[marvin, VMware] Fix repeated test failures observed on 'main' branch#5992
nvazquez merged 4 commits into
apache:mainfrom
shapeblue:fix-change-svc-offering-test

Conversation

@Pearl1594

Copy link
Copy Markdown
Contributor

Description

This PR fixes the test failure observed on main branch for test_06_disk_offering_strictness_false
The main reason for the failure, is that the volume fails to resize on change of service offering reporting that the volume has a parent.

022-02-14 07:22:01,410 ERROR [c.c.h.v.r.VmwareResource] (DirectAgent-80:ctx-df1ac830 10.0.34.173, job-59/job-60, cmd: ResizeVolumeCommand) (logid:02e59892) Resize of volume in VM [name: i-6-7-VM] is not supported because Disk device [path: i-6-7-VM] has Parents: [6000C296-e4fb-b280-4d56-8e62cda83de9].
2022-02-14 07:22:01,410 ERROR [c.c.h.v.r.VmwareResource] (DirectAgent-80:ctx-df1ac830 10.0.34.173, job-59/job-60, cmd: ResizeVolumeCommand) (logid:02e59892) Failed to resize volume of VM [name: i-6-7-VM] due to: [Resize of volume in VM [name: i-6-7-VM] is not supported because Disk device [path: i-6-7-VM] has Parents: [6000C296-e4fb-b280-4d56-8e62cda83de9].].
java.lang.Exception: Resize of volume in VM [name: i-6-7-VM] is not supported because Disk device [path: i-6-7-VM] has Parents: [6000C296-e4fb-b280-4d56-8e62cda83de9].
at com.cloud.hypervisor.vmware.resource.VmwareResource.getDiskAfterResizeDiskValidations(VmwareResource.java:951)
at com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:878)
at com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:569)
at com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:315)
at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:48)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52)
at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:45)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)

For resizing volumes in VMware it is required that vmware.create.full.clone be true. Hence, the test has been modified to set it to true at the start of the test and reset it back on completion.

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

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2598

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test matrix

@blueorangutan

Copy link
Copy Markdown

@Pearl1594 a Trillian-Jenkins matrix job (centos7 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3324)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 35504 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5992-t3324-kvm-centos7.zip
Smoke tests completed. 88 look OK, 4 have errors
Only failed tests results shown below:

TestResultTime (s)Test File
test_01_add_primary_storage_disabled_hostError0.69test_primary_storage.py
test_01_primary_storage_nfsError0.11test_primary_storage.py
ContextSuite context=TestStorageTags>:setupError0.18test_primary_storage.py
test_01_secure_vm_migrationError159.95test_vm_life_cycle.py
test_02_unsecure_vm_migrationError270.58test_vm_life_cycle.py
test_03_secured_to_nonsecured_vm_migrationError143.19test_vm_life_cycle.py
test_08_migrate_vmError43.89test_vm_life_cycle.py
test_02_list_snapshots_with_removed_data_storeError8.62test_snapshots.py
test_02_list_snapshots_with_removed_data_storeError8.62test_snapshots.py
test_hostha_kvm_host_degradedError701.92test_hostha_kvm.py
test_hostha_kvm_host_fencingError681.44test_hostha_kvm.py

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3325)
Environment: vmware-65u2 (x2), Advanced Networking with Mgmt server 7
Total time taken: 36377 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5992-t3325-vmware-65u2.zip
Smoke tests completed. 91 look OK, 1 have errors
Only failed tests results shown below:

TestResultTime (s)Test File
test_01_offline_migrate_VM_and_root_volumeError91.84test_vm_life_cycle.py
test_03_live_migrate_VM_with_two_data_disksError65.47test_vm_life_cycle.py

@nvazquez

Copy link
Copy Markdown
Contributor

Thanks @Pearl1594 do you think you can include further fixes for the 2 failing tests on this PR or prefer to create a separate PR?

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2604

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test matrix

@blueorangutan

Copy link
Copy Markdown

@Pearl1594 a Trillian-Jenkins matrix job (centos7 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

@Pearl1594Pearl1594 changed the title [marvin, VMware] Fix test_06_disk_offering_strictness_false observed on 'main' branch[marvin, VMware] Fix repeated test failures observed on 'main' branchFeb 15, 2022
Comment threadtest/integration/smoke/test_service_offerings.py Outdated
Comment threadtest/integration/smoke/test_service_offerings.py Outdated
Comment threadtest/integration/smoke/test_service_offerings.py Outdated
Comment threadtest/integration/smoke/test_service_offerings.py
@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3331)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 34568 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5992-t3331-kvm-centos7.zip
Smoke tests completed. 91 look OK, 1 have errors
Only failed tests results shown below:

TestResultTime (s)Test File
test_disable_oobm_ha_state_ineligibleError1512.42test_hostha_kvm.py

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3332)
Environment: vmware-65u2 (x2), Advanced Networking with Mgmt server 7
Total time taken: 46182 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5992-t3332-vmware-65u2.zip
Smoke tests completed. 91 look OK, 1 have errors
Only failed tests results shown below:

TestResultTime (s)Test File
test_01_invalid_upgrade_kubernetes_clusterFailure3605.56test_kubernetes_clusters.py
test_02_upgrade_kubernetes_clusterFailure3602.65test_kubernetes_clusters.py
test_03_deploy_and_scale_kubernetes_clusterFailure0.08test_kubernetes_clusters.py
test_04_autoscale_kubernetes_clusterFailure0.06test_kubernetes_clusters.py
test_05_basic_lifecycle_kubernetes_clusterFailure0.05test_kubernetes_clusters.py
test_06_delete_kubernetes_clusterFailure0.05test_kubernetes_clusters.py
test_07_deploy_kubernetes_ha_clusterFailure0.04test_kubernetes_clusters.py
test_08_upgrade_kubernetes_ha_clusterFailure0.04test_kubernetes_clusters.py
test_09_delete_kubernetes_ha_clusterFailure0.04test_kubernetes_clusters.py
ContextSuite context=TestKubernetesCluster>:teardownError52.48test_kubernetes_clusters.py

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2624

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3330)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 56360 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5992-t3330-xenserver-71.zip
Smoke tests completed. 89 look OK, 3 have errors
Only failed tests results shown below:

TestResultTime (s)Test File
test_06_download_detached_volumeError491.72test_volumes.py
ContextSuite context=TestVolumes>:teardownError73.51test_volumes.py
test_deploy_vm_from_isoError1513.29test_deploy_vm_iso.py
test_02_upgrade_kubernetes_clusterFailure3611.83test_kubernetes_clusters.py
test_03_deploy_and_scale_kubernetes_clusterFailure60.48test_kubernetes_clusters.py
test_04_autoscale_kubernetes_clusterFailure0.07test_kubernetes_clusters.py
test_05_basic_lifecycle_kubernetes_clusterFailure0.05test_kubernetes_clusters.py
test_06_delete_kubernetes_clusterFailure0.05test_kubernetes_clusters.py
test_07_deploy_kubernetes_ha_clusterFailure1.11test_kubernetes_clusters.py
test_08_upgrade_kubernetes_ha_clusterFailure0.10test_kubernetes_clusters.py
test_09_delete_kubernetes_ha_clusterFailure0.08test_kubernetes_clusters.py
ContextSuite context=TestKubernetesCluster>:teardownError95.18test_kubernetes_clusters.py

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test matrix

@blueorangutan

Copy link
Copy Markdown

@Pearl1594 a Trillian-Jenkins matrix job (centos7 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3360)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 33565 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5992-t3360-xenserver-71.zip
Smoke tests completed. 92 look OK, 0 have errors
Only failed tests results shown below:

TestResultTime (s)Test File

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3361)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 33701 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5992-t3361-kvm-centos7.zip
Smoke tests completed. 92 look OK, 0 have errors
Only failed tests results shown below:

TestResultTime (s)Test File

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3362)
Environment: vmware-65u2 (x2), Advanced Networking with Mgmt server 7
Total time taken: 35695 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5992-t3362-vmware-65u2.zip
Smoke tests completed. 92 look OK, 0 have errors
Only failed tests results shown below:

TestResultTime (s)Test File

@nvazqueznvazquez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM thanks @Pearl1594

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants

@Pearl1594@blueorangutan@nvazquez@DaanHoogland@sureshanaparti