Skip to content

VmwareStorageLayoutHelper throws StackOverflowError fix#3105

Merged
yadvr merged 1 commit into
apache:4.11from
shapeblue:fix-vmware-stack-overflow-error
Jan 7, 2019
Merged

VmwareStorageLayoutHelper throws StackOverflowError fix#3105
yadvr merged 1 commit into
apache:4.11from
shapeblue:fix-vmware-stack-overflow-error

Conversation

@dhlaluku

Copy link
Copy Markdown
Contributor

The static method syncVolumeToRootFolder() from VmwareStorageLayoutHelper.java:146 has been incorrectly called and leads to an infinite recursive call that ends up in a StackOverflowError. This PR fixes this.
public static void syncVolumeToRootFolder(DatacenterMO dcMo, DatastoreMO ds, String vmdkName, String vmName) throws Exception { syncVolumeToRootFolder(dcMo, ds, vmdkName, null); } -> public static void syncVolumeToRootFolder(DatacenterMO dcMo, DatastoreMO ds, String vmdkName, String vmName) throws Exception { syncVolumeToRootFolder(dcMo, ds, vmdkName, vmName, null); }

Description

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)

Screenshots (if appropriate):

image

How Has This Been Tested?

@dhlaluku

Copy link
Copy Markdown
Contributor Author

@anuragaw @rafaelweingartner @DaanHoogland @GabrielBrascher please have a look at this.

@dhlaluku

Copy link
Copy Markdown
Contributor Author

@SudharmaJain please review

@dhlaluku

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@dhlaluku 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: ✔centos6 ✔centos7 ✔debian. JID-2498

@dhlaluku

Copy link
Copy Markdown
Contributor Author

@blueorangutan test centos7 vmware-65

@blueorangutan

Copy link
Copy Markdown

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

@yadvr

yadvr commented Dec 20, 2018

Copy link
Copy Markdown
Member

@blueorangutan test centos7 vmware-65

@blueorangutan

Copy link
Copy Markdown

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

@GabrielBrascher GabrielBrascher added this to the 4.12.0.0 milestone Dec 20, 2018
@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3268)
Environment: vmware-65 (x2), Advanced Networking with Mgmt server 7
Total time taken: 29378 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3105-t3268-vmware-65.zip
Intermittent failure detected: /marvin/tests/smoke/test_multipleips_per_nic.py
Intermittent failure detected: /marvin/tests/smoke/test_outofbandmanagement.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Smoke tests completed. 68 look OK, 2 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_nic_secondaryip_add_remove Error 73.92 test_multipleips_per_nic.py
test_04_rvpc_network_garbage_collector_nics Failure 531.86 test_vpc_redundant.py

@anuragaw anuragaw 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.
(Talk about silly mistakes)

@yadvr

yadvr commented Dec 24, 2018

Copy link
Copy Markdown
Member

LGTM, @dhlaluku since this is a bugfix do you think 4.11 can benefit from it?

@dhlaluku

dhlaluku commented Jan 6, 2019

Copy link
Copy Markdown
Contributor Author

@rhtyd I checked 4.11 and it should not be affected by this, but I do not see any reason why we should not apply this to 4.11.

@yadvr

yadvr commented Jan 6, 2019

Copy link
Copy Markdown
Member

@dhlaluku in that case please change the base branch to 4.11 and rebase your PR branch against 4.11

@dhlaluku dhlaluku changed the base branch from master to 4.11 January 6, 2019 13:00
@dhlaluku dhlaluku force-pushed the fix-vmware-stack-overflow-error branch from 842c888 to c10e497 Compare January 6, 2019 13:01
@dhlaluku

dhlaluku commented Jan 6, 2019

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@dhlaluku dhlaluku force-pushed the fix-vmware-stack-overflow-error branch from c10e497 to ebc1285 Compare January 6, 2019 13:07
@dhlaluku

dhlaluku commented Jan 6, 2019

Copy link
Copy Markdown
Contributor Author

@rhtyd thanks, done.

@dhlaluku in that case please change the base branch to 4.11 and rebase your PR branch against 4.11

@rhtyd done

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2513

@dhlaluku

dhlaluku commented Jan 6, 2019

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@dhlaluku 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: ✔centos6 ✔centos7 ✔debian. JID-2514

@dhlaluku

dhlaluku commented Jan 6, 2019

Copy link
Copy Markdown
Contributor Author

@blueorangutan test centos7 vmware-65

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3297)
Environment: vmware-65 (x2), Advanced Networking with Mgmt server 7
Total time taken: 30560 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3105-t3297-vmware-65.zip
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Smoke tests completed. 67 look OK, 1 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_05_rvpc_multi_tiers Failure 455.35 test_vpc_redundant.py
test_05_rvpc_multi_tiers Error 486.71 test_vpc_redundant.py

@dhlaluku

dhlaluku commented Jan 7, 2019

Copy link
Copy Markdown
Contributor Author

@rhtyd can we merge this?

@yadvr yadvr merged commit e56c499 into apache:4.11 Jan 7, 2019
@yadvr yadvr modified the milestones: 4.12.0.0, 4.11.3.0 Jan 7, 2019
@dhlaluku dhlaluku deleted the fix-vmware-stack-overflow-error branch January 13, 2019 17:33
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