Skip to content

vmware: fix vmware vm snapshot operations for datastorecluster#6912

Merged
yadvr merged 4 commits into
apache:4.17from
shapeblue:fix-vmw-vmsnapds
Dec 7, 2022
Merged

vmware: fix vmware vm snapshot operations for datastorecluster#6912
yadvr merged 4 commits into
apache:4.17from
shapeblue:fix-vmw-vmsnapds

Conversation

@shwstppr

@shwstppr shwstppr commented Nov 21, 2022

Copy link
Copy Markdown
Contributor

Description

Fixes #6894

Fixes NPE observed when VM volume is present on the same child datastore.

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?

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@apache apache deleted a comment from blueorangutan Nov 24, 2022
@shwstppr

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@shwstppr a 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.

@shwstppr
shwstppr marked this pull request as ready for review November 24, 2022 08:28
@blueorangutan

Copy link
Copy Markdown

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

@yadvr yadvr added this to the 4.18.0.0 milestone Nov 24, 2022
@yadvr

yadvr commented Nov 24, 2022

Copy link
Copy Markdown
Member

@harikrishna-patnala can you review and help test/check this?

@yadvr yadvr modified the milestones: 4.18.0.0, 4.17.2.0 Nov 24, 2022
@codecov

codecov Bot commented Nov 24, 2022

Copy link
Copy Markdown

Codecov Report

Merging #6912 (2eb49a9) into 4.17 (296035d) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               4.17    #6912      +/-   ##
============================================
+ Coverage     10.34%   10.36%   +0.02%     
- Complexity     6610     6628      +18     
============================================
  Files          2451     2451              
  Lines        242340   242341       +1     
  Branches      37924    37925       +1     
============================================
+ Hits          25070    25122      +52     
+ Misses       214182   214119      -63     
- Partials       3088     3100      +12     
Impacted Files Coverage Δ
...visor/vmware/manager/VmwareStorageManagerImpl.java 6.23% <100.00%> (+5.17%) ⬆️
...rg/apache/cloudstack/quota/QuotaStatementImpl.java 36.28% <0.00%> (-3.99%) ⬇️
...oud/hypervisor/vmware/mo/HypervisorHostHelper.java 15.55% <0.00%> (+0.22%) ⬆️
...com/cloud/hypervisor/vmware/util/VmwareHelper.java 2.34% <0.00%> (+0.52%) ⬆️
...va/com/cloud/hypervisor/vmware/mo/DatastoreMO.java 2.40% <0.00%> (+2.40%) ⬆️
...d/hypervisor/vmware/mo/HostDatastoreBrowserMO.java 17.07% <0.00%> (+14.63%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@shwstppr

Copy link
Copy Markdown
Contributor Author

blueorangutan test centos7 vmware-67u3

@yadvr

yadvr commented Nov 24, 2022

Copy link
Copy Markdown
Member

@blueorangutan test centos7 vmware-67u3

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

Test Result Time (s) Test File
test_08_upgrade_kubernetes_ha_cluster Failure 626.98 test_kubernetes_clusters.py

@yadvr

yadvr commented Nov 25, 2022

Copy link
Copy Markdown
Member

@harikrishna-patnala can you help review/test this?

@harikrishna-patnala harikrishna-patnala left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, discussed this fix with Abhishek before. Thanks for the unit tests @shwstppr

@nvazquez nvazquez 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

@DaanHoogland

Copy link
Copy Markdown
Contributor

@harikrishna-patnala @nvazquez @rohityadavcloud @shwstppr does this need more testing?

@vladimirpetrov

Copy link
Copy Markdown
Contributor

Yes, @DaanHoogland, I'm going to test this.

@vladimirpetrov

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@vladimirpetrov a 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
Copy Markdown

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

@yadvr

yadvr commented Dec 2, 2022

Copy link
Copy Markdown
Member

@blueorangutan test rocky8 vmware-70u3

@blueorangutan

Copy link
Copy Markdown

@rohityadavcloud a Trillian-Jenkins test job (rocky8 mgmt + vmware-70u3) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian Build Failed (tid-5351)

@blueorangutan

Copy link
Copy Markdown

Trillian Build Failed (tid-5386)

@vladimirpetrov vladimirpetrov 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 based on manual testing.

@yadvr

yadvr commented Dec 7, 2022

Copy link
Copy Markdown
Member

@blueorangutan test rocky8 vmware-70u3

@blueorangutan

Copy link
Copy Markdown

@rohityadavcloud a Trillian-Jenkins test job (rocky8 mgmt + vmware-70u3) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian Build Failed (tid-5412)

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.

7 participants