Skip to content

Fix VMware OVF properties copy from template#4738

Merged
yadvr merged 5 commits intoapache:4.15from
shapeblue:fixovfcopy
Apr 12, 2021
Merged

Fix VMware OVF properties copy from template#4738
yadvr merged 5 commits intoapache:4.15from
shapeblue:fixovfcopy

Conversation

@nvazquez
Copy link
Contributor

@nvazquez nvazquez commented Mar 1, 2021

Description

For backward compatibility, prior to Vmware 6.5 use EDIT operation instead of ADD when copying template vApp information

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?

@nvazquez nvazquez added this to the 4.15.1.0 milestone Mar 1, 2021
@nvazquez nvazquez requested review from borisstoyanov and yadvr March 1, 2021 12:06
@nvazquez
Copy link
Contributor Author

nvazquez commented Mar 1, 2021

@blueorangutan package

@blueorangutan
Copy link

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

@nvazquez
Copy link
Contributor Author

nvazquez commented Mar 1, 2021

@blueorangutan help

@blueorangutan
Copy link

@nvazquez I understand these words: "help", "hello", "thanks", "package", "test"
Test command usage: test [mgmt os] [hypervisor] [keepEnv]
Mgmt OS options: ['centos6', 'centos7', 'centos8', 'ubuntu']
Hypervisor options: ['kvm-centos6', 'kvm-centos7', 'kvm-centos8', 'kvm-ubuntu', 'xenserver-71', 'xenserver-65sp1', 'vmware-67u3', 'vmware-65u2', 'vmware-60u2', 'vmware-55u3', 'xcpng76', 'xcpng80', 'xcpng81', 'xenserver-74', 'xcpng74']
Note: when keepEnv is passed, you need to specify mgmt server os and hypervisor or use the matrix command.

Blessed contributors for kicking Trillian test jobs: ['rhtyd', 'nvazquez', 'PaulAngus', 'borisstoyanov', 'DaanHoogland', 'shwstppr', 'andrijapanicsb', 'Spaceman1984', 'Pearl1594', 'davidjumani', 'harikrishna-patnala', 'vladimirpetrov', 'sureshanaparti']

@blueorangutan
Copy link

Packaging result: ✔centos7 ✔centos8 ✖debian. JID-2847

@nvazquez
Copy link
Contributor Author

nvazquez commented Mar 1, 2021

@blueorangutan test centos7 vmware-60u2

@blueorangutan
Copy link

@nvazquez a Trillian-Jenkins test job (centos7 mgmt + vmware-60u2) has been kicked to run smoke tests

@yadvr yadvr changed the base branch from master to 4.15 March 1, 2021 13:28
@yadvr
Copy link
Member

yadvr commented Mar 1, 2021

@blueorangutan package

@blueorangutan
Copy link

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

@blueorangutan
Copy link

Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2848

@blueorangutan
Copy link

Trillian test result (tid-3627)
Environment: vmware-60u2 (x2), Advanced Networking with Mgmt server 7
Total time taken: 40372 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4738-t3627-vmware-60u2.zip
Intermittent failure detected: /marvin/tests/smoke/test_deploy_vgpu_enabled_vm.py
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Smoke tests completed. 83 look OK, 3 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_3d_gpu_support Error 143.49 test_deploy_vgpu_enabled_vm.py
test_01_deploy_kubernetes_cluster Failure 117.78 test_kubernetes_clusters.py
test_02_invalid_upgrade_kubernetes_cluster Failure 120.64 test_kubernetes_clusters.py
test_03_deploy_and_upgrade_kubernetes_cluster Failure 113.40 test_kubernetes_clusters.py
test_04_deploy_and_scale_kubernetes_cluster Failure 103.11 test_kubernetes_clusters.py
test_05_delete_kubernetes_cluster Failure 110.29 test_kubernetes_clusters.py
test_07_deploy_kubernetes_ha_cluster Failure 101.11 test_kubernetes_clusters.py
test_08_deploy_and_upgrade_kubernetes_ha_cluster Failure 114.24 test_kubernetes_clusters.py
test_09_delete_kubernetes_ha_cluster Failure 108.16 test_kubernetes_clusters.py
ContextSuite context=TestKubernetesCluster>:teardown Error 328.49 test_kubernetes_clusters.py
test_03_migrate_detached_volume Error 84.54 test_vm_life_cycle.py
ContextSuite context=TestVAppsVM>:setup Error 44.18 test_vm_life_cycle.py

@borisstoyanov
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

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

@blueorangutan
Copy link

Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 72

@blueorangutan
Copy link

Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2894

@yadvr
Copy link
Member

yadvr commented Mar 11, 2021

@blueorangutan test centos7 vmware-60u2

@blueorangutan
Copy link

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-60u2) has been kicked to run smoke tests [S]

@blueorangutan
Copy link

[S] Trillian test result (tid-78)
Environment: vmware-60u2 (x2), Advanced Networking with Mgmt server 7
Total time taken: 47517 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4738-t78-vmware-60u2.zip
Intermittent failure detected: /marvin/tests/smoke/test_diagnostics.py
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Smoke tests completed. 83 look OK, 3 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_10_traceroute_in_vr Failure 61.27 test_diagnostics.py
test_03_deploy_and_upgrade_kubernetes_cluster Failure 800.70 test_kubernetes_clusters.py
test_03_migrate_detached_volume Error 78.55 test_vm_life_cycle.py
ContextSuite context=TestVAppsVM>:setup Error 50.50 test_vm_life_cycle.py

@yadvr
Copy link
Member

yadvr commented Mar 18, 2021

@nvazquez can you see the vapp failure? cc @borisstoyanov

VAppProductSpec spec = new VAppProductSpec();
spec.setInfo(info);
spec.setOperation(ArrayUpdateOperation.ADD);
s_logger.info("Procuct info KEY " + info.getKey());
Copy link
Contributor

Choose a reason for hiding this comment

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

Product - typo

vmConfigSpec.getOvfSection().addAll(copyVAppConfigOvfSectionFromOVF(vAppConfig));

// For backward compatibility, prior to Vmware 6.5 use EDIT operation instead of ADD
boolean useEditOperation = hyperHost.getContext().getServiceContent().getAbout().getApiVersion().compareTo("6.5") < 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
boolean useEditOperation = hyperHost.getContext().getServiceContent().getAbout().getApiVersion().compareTo("6.5") < 1;
boolean useEditOperation = ((HostMO) hyperHost).getHostAboutInfo().getApiVersion().compareTo("6.5") < 1;

@yadvr
Copy link
Member

yadvr commented Mar 24, 2021

@blueorangutan package

@blueorangutan
Copy link

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

@blueorangutan
Copy link

Packaging result: ✖️ centos7 ✖️ centos8 ✖️ debian. SL-JID 221

@blueorangutan
Copy link

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

@blueorangutan
Copy link

Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 353

@nvazquez
Copy link
Contributor Author

nvazquez commented Apr 7, 2021

@blueorangutan package

@blueorangutan
Copy link

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

@blueorangutan
Copy link

Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 355

@borisstoyanov
Copy link
Contributor

@blueorangutan test centos7 vmware-60u2

@blueorangutan
Copy link

@borisstoyanov a Trillian-Jenkins test job (centos7 mgmt + vmware-60u2) has been kicked to run smoke tests

@blueorangutan
Copy link

Trillian test result (tid-378)
Environment: vmware-60u2 (x2), Advanced Networking with Mgmt server 7
Total time taken: 38130 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4738-t378-vmware-60u2.zip
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_routers_network_ops.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Smoke tests completed. 85 look OK, 2 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_01_deploy_kubernetes_cluster Failure 89.37 test_kubernetes_clusters.py
test_02_invalid_upgrade_kubernetes_cluster Failure 83.88 test_kubernetes_clusters.py
test_03_deploy_and_upgrade_kubernetes_cluster Failure 70.65 test_kubernetes_clusters.py
test_04_deploy_and_scale_kubernetes_cluster Failure 66.41 test_kubernetes_clusters.py
test_05_delete_kubernetes_cluster Failure 67.43 test_kubernetes_clusters.py
test_07_deploy_kubernetes_ha_cluster Failure 66.48 test_kubernetes_clusters.py
test_08_deploy_and_upgrade_kubernetes_ha_cluster Failure 66.39 test_kubernetes_clusters.py
test_09_delete_kubernetes_ha_cluster Failure 65.31 test_kubernetes_clusters.py
ContextSuite context=TestKubernetesCluster>:teardown Error 103.51 test_kubernetes_clusters.py
ContextSuite context=TestVAppsVM>:setup Error 43.53 test_vm_life_cycle.py

@blueorangutan
Copy link

Trillian test result (tid-384)
Environment: vmware-60u2 (x2), Advanced Networking with Mgmt server 7
Total time taken: 47353 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4738-t384-vmware-60u2.zip
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Smoke tests completed. 85 look OK, 2 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_01_deploy_kubernetes_cluster Failure 85.12 test_kubernetes_clusters.py
test_02_invalid_upgrade_kubernetes_cluster Failure 79.77 test_kubernetes_clusters.py
test_03_deploy_and_upgrade_kubernetes_cluster Failure 74.68 test_kubernetes_clusters.py
test_04_deploy_and_scale_kubernetes_cluster Failure 65.38 test_kubernetes_clusters.py
test_05_delete_kubernetes_cluster Failure 63.43 test_kubernetes_clusters.py
test_07_deploy_kubernetes_ha_cluster Failure 65.36 test_kubernetes_clusters.py
test_08_deploy_and_upgrade_kubernetes_ha_cluster Failure 69.51 test_kubernetes_clusters.py
test_09_delete_kubernetes_ha_cluster Failure 69.40 test_kubernetes_clusters.py
ContextSuite context=TestKubernetesCluster>:teardown Error 107.50 test_kubernetes_clusters.py
ContextSuite context=TestVAppsVM>:setup Error 49.55 test_vm_life_cycle.py

@yadvr
Copy link
Member

yadvr commented Apr 9, 2021

@blueorangutan test centos7 vmware-67u3

@blueorangutan
Copy link

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

@nvazquez
Copy link
Contributor Author

nvazquez commented Apr 9, 2021

@blueorangutan package

@blueorangutan
Copy link

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

@blueorangutan
Copy link

Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 376

@blueorangutan
Copy link

Trillian test result (tid-388)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server 7
Total time taken: 35738 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4738-t388-vmware-67u3.zip
Intermittent failure detected: /marvin/tests/smoke/test_diagnostics.py
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Smoke tests completed. 85 look OK, 2 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_01_deploy_kubernetes_cluster Failure 81.44 test_kubernetes_clusters.py
test_02_invalid_upgrade_kubernetes_cluster Failure 96.27 test_kubernetes_clusters.py
test_03_deploy_and_upgrade_kubernetes_cluster Failure 56.45 test_kubernetes_clusters.py
test_04_deploy_and_scale_kubernetes_cluster Failure 58.36 test_kubernetes_clusters.py
test_05_delete_kubernetes_cluster Failure 57.41 test_kubernetes_clusters.py
test_07_deploy_kubernetes_ha_cluster Failure 59.40 test_kubernetes_clusters.py
test_08_deploy_and_upgrade_kubernetes_ha_cluster Failure 57.41 test_kubernetes_clusters.py
test_09_delete_kubernetes_ha_cluster Failure 62.03 test_kubernetes_clusters.py
ContextSuite context=TestKubernetesCluster>:teardown Error 107.23 test_kubernetes_clusters.py
ContextSuite context=TestVAppsVM>:setup Error 44.64 test_vm_life_cycle.py

@blueorangutan
Copy link

Trillian test result (tid-398)
Environment: vmware-60u2 (x2), Advanced Networking with Mgmt server 7
Total time taken: 39249 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4738-t398-vmware-60u2.zip
Intermittent failure detected: /marvin/tests/smoke/test_diagnostics.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Smoke tests completed. 85 look OK, 2 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_10_traceroute_in_vr Failure 61.13 test_diagnostics.py
test_01_vapps_vm_cycle Error 0.01 test_vm_life_cycle.py

@nvazquez
Copy link
Contributor Author

@blueorangutan package

1 similar comment
@nvazquez
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

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

@blueorangutan
Copy link

Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 378

@blueorangutan
Copy link

Trillian test result (tid-400)
Environment: vmware-60u2 (x2), Advanced Networking with Mgmt server 7
Total time taken: 37884 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4738-t400-vmware-60u2.zip
Intermittent failure detected: /marvin/tests/smoke/test_diagnostics.py
Smoke tests completed. 86 look OK, 1 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_10_traceroute_in_vr Failure 61.15 test_diagnostics.py

Copy link
Contributor

@borisstoyanov borisstoyanov left a comment

Choose a reason for hiding this comment

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

LGTM, tested OVF properties and advanced vsphere capabilities features with setup of ESXi6.0, 6.5 and 6.7 hosts. Other than the known issues there were no issues with this bugfix.

@nvazquez
Copy link
Contributor Author

@rhtyd can you give this PR a final review? Test fixes added after your review

@yadvr
Copy link
Member

yadvr commented Apr 12, 2021

Lgtm!

@yadvr yadvr merged commit 9cf1e0e into apache:4.15 Apr 12, 2021
@nvazquez nvazquez deleted the fixovfcopy branch May 15, 2021 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants