-
Notifications
You must be signed in to change notification settings - Fork 1.3k
vmware: use hotPlugMemoryIncrementSize only for valid value #4348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vmware: use hotPlugMemoryIncrementSize only for valid value #4348
Conversation
Signed-off-by: Abhishek Kumar <[email protected]>
Pearl1594
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
as the property: config.hotPlugMemoryIncrementSize is 0 when hotplug is disabled - which will lead to divide by 0 error. Verified fix by:
- Creating a new System offering
- Shutting off the router
- Scaling the systemvm using the new offering
- Started Router successfully (In a zone with dynamic scaling enabled)
davidjumani
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2153 |
|
Is this ready for testing/review @shwstppr ? |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-2931)
|
Description
Fixes #4343
When
config.hotPlugMemoryIncrementSizeis zero for a VM (particularly system VMs) current code throws exception,In code, we are not checking properties -
cpuHotAddEnabledandmemoryHotAddEnabledtherefore changes can be made for that.Types of changes
Screenshots (if appropriate):
How Has This Been Tested?