-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix hardcoded max data volumes when VM has been created but not started before #3494
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
Conversation
| HypervisorType.KVM, HypervisorType.Ovm, HypervisorType.LXC); | ||
| HypervisorType hypervisorType = vm.getHypervisorType(); | ||
| if (hypervisorType != null && supportingDefaultHV.contains(hypervisorType)) { | ||
| maxDataVolumesSupported = _hypervisorCapabilitiesDao.getMaxDataVolumesLimit(hypervisorType, "default"); |
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.
Could version specific values cause regression or bug?
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.
if these are lower the "default", yes @rhtyd. But that should never be the case, should it?
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.
Good point, I've verified any version contains max limit lower than the default for each hypervisor
| HypervisorType.KVM, HypervisorType.Ovm, HypervisorType.LXC); | ||
| HypervisorType hypervisorType = vm.getHypervisorType(); | ||
| if (hypervisorType != null && supportingDefaultHV.contains(hypervisorType)) { | ||
| maxDataVolumesSupported = _hypervisorCapabilitiesDao.getMaxDataVolumesLimit(hypervisorType, "default"); |
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.
if these are lower the "default", yes @rhtyd. But that should never be the case, should it?
|
hudson couldn't reach github :( |
|
try again |
shwstppr
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.
07b38f0 to
435ad5f
Compare
435ad5f to
5fa201c
Compare
|
@blueorangutan package |
|
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖centos6 ✖centos7 ✖debian. JID-137 |
|
@blueorangutan package |
|
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-138 |
anuragaw
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 in general but a minor questions.
| } | ||
|
|
||
| @Override | ||
| public List<HypervisorType> getHypervisorsWithDefaultEntries() { |
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.
Is there a possibility of high frequency calls to this method? If so we can perhaps optimize query calls with some caching? If not LGTM
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.
Thanks @anuragaw, have refactored it to invoke this only once
|
@blueorangutan package |
|
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-139 |
|
@blueorangutan test matrix |
|
@nvazquez a Trillian-Jenkins matrix job (centos6 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
anuragaw
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 based on code and manual testing.
|
Trillian test result (tid-167)
|
borisstoyanov
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
|
Trillian test result (tid-168)
|
|
Tests LGTM, they are failing irrespective of this PR. |

Description
When VM is created but not started on any host, attaching a volume on it causes the maximum number of allowed volumes to be 6 (hardcoded)
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?