Skip to content

[Vmware] Fix worker VMs hardware version small bug#4851

Merged
yadvr merged 1 commit into
apache:4.15from
shapeblue:fix-snapshots-hwversion
Apr 6, 2021
Merged

[Vmware] Fix worker VMs hardware version small bug#4851
yadvr merged 1 commit into
apache:4.15from
shapeblue:fix-snapshots-hwversion

Conversation

@nvazquez

Copy link
Copy Markdown
Contributor

Description

This PR fixes a small bug when explicitly setting VM hardware versions lower than version 10.

Vmware expects the hardware version in format: vmx-DD where DD is a two-digit representation of the virtual hardware version. For hardware version lower than 10, CloudStack was not using to digits for the hardware version number, which ended up on an error while creating worker VMs. (vmx-8 for example instead of vmx-08)

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.16.0.0 milestone Mar 22, 2021
@nvazquez

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

@nvazquez

Copy link
Copy Markdown
Contributor Author

@blueorangutan test centos7 vmware-67u3

@blueorangutan

Copy link
Copy Markdown

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

@yadvr yadvr modified the milestones: 4.16.0.0, 4.15.1.0 Mar 22, 2021
@yadvr yadvr changed the base branch from master to 4.15 March 22, 2021 05:51
@yadvr yadvr force-pushed the fix-snapshots-hwversion branch from 1a761e7 to 85979fc Compare March 22, 2021 05:52
@yadvr yadvr added the type:bug label Mar 22, 2021
@yadvr

yadvr commented Mar 22, 2021

Copy link
Copy Markdown
Member

@nvazquez all bug fixes should go to 4.15, I've changed base/branch against 4.15.
@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

Comment thread vmware-base/src/main/java/com/cloud/hypervisor/vmware/mo/VirtualMachineMO.java Outdated
@blueorangutan

Copy link
Copy Markdown

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

@yadvr

yadvr commented Mar 22, 2021

Copy link
Copy Markdown
Member

@blueorangutan test centos7 vmware-67u3

@blueorangutan

Copy link
Copy Markdown

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

@nvazquez nvazquez force-pushed the fix-snapshots-hwversion branch from 85979fc to 1b5f223 Compare March 22, 2021 15:12
@nvazquez

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@nvazquez nvazquez marked this pull request as ready for review March 22, 2021 15:13
@nvazquez

Copy link
Copy Markdown
Contributor Author

Rebased 4.15 and added unit tests - @rhtyd @sureshanaparti @DaanHoogland can you please review?

@nvazquez

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@nvazquez 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: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 204

@nvazquez

Copy link
Copy Markdown
Contributor Author

@blueorangutan test centos7 vmware67-u3

@blueorangutan

Copy link
Copy Markdown

@nvazquez unsupported parameters provided. Supported mgmt server os are: centos6, centos7, centos8, ubuntu. Supported hypervisors are: 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

@nvazquez

Copy link
Copy Markdown
Contributor Author

@blueorangutan test centos7 vmware-67u3

@blueorangutan

Copy link
Copy Markdown

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

@sureshanaparti sureshanaparti 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.

code LGTM

@apache apache deleted a comment from blueorangutan Mar 24, 2021
@apache apache deleted a comment from blueorangutan Mar 24, 2021
@apache apache deleted a comment from blueorangutan Mar 24, 2021
@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-256)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 40738 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4851-t256-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_affinity_groups_projects.py
Intermittent failure detected: /marvin/tests/smoke/test_affinity_groups.py
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Intermittent failure detected: /marvin/tests/smoke/test_hostha_kvm.py
Smoke tests completed. 82 look OK, 4 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_DeployVmAntiAffinityGroup_in_project Error 64.04 test_affinity_groups_projects.py
test_DeployVmAntiAffinityGroup Error 36.41 test_affinity_groups.py
test_04_deploy_and_scale_kubernetes_cluster Failure 26.67 test_kubernetes_clusters.py
test_07_deploy_kubernetes_ha_cluster Failure 0.04 test_kubernetes_clusters.py
test_08_deploy_and_upgrade_kubernetes_ha_cluster Failure 0.04 test_kubernetes_clusters.py
test_09_delete_kubernetes_ha_cluster Failure 0.03 test_kubernetes_clusters.py
ContextSuite context=TestKubernetesCluster>:teardown Error 34.20 test_kubernetes_clusters.py
test_disable_oobm_ha_state_ineligible Error 1512.37 test_hostha_kvm.py

@yadvr

yadvr commented Apr 4, 2021

Copy link
Copy Markdown
Member

@DaanHoogland are you lgtm on this?
@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd 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: ✔️ centos7 ✔️ centos8 ✖️ debian. SL-JID 314

@yadvr

yadvr commented Apr 5, 2021

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-349)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 36168 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4851-t349-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Smoke tests completed. 84 look OK, 2 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
ContextSuite context=TestKubernetesCluster>:teardown Error 74.07 test_kubernetes_clusters.py
test_01_migrate_VM_and_root_volume Error 69.26 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 48.04 test_vm_life_cycle.py

@DaanHoogland

Copy link
Copy Markdown
Contributor

@DaanHoogland are you lgtm on this?

I am @rhtyd , awaiting @andrijapanicsb 's thoughts though

@DaanHoogland DaanHoogland 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.

tested on older versions, looks good

@andrijapanicsb

Copy link
Copy Markdown
Contributor

LGTM, merge it.

@yadvr yadvr merged commit 35b20b2 into apache:4.15 Apr 6, 2021
@nvazquez nvazquez deleted the fix-snapshots-hwversion branch May 15, 2021 22:08
@DaanHoogland DaanHoogland removed their assignment Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants