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
api, vmware: Allow VM setting/detail for disk controller (root/data) to override template details #6276
api, vmware: Allow VM setting/detail for disk controller (root/data) to override template details #6276
Conversation
@blueorangutan package |
@Pearl1594 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. |
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3195 |
@blueorangutan test matrix |
@Pearl1594 a Trillian-Jenkins matrix job (centos7 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
Trillian test result (tid-3926)
|
Trillian test result (tid-3927)
|
Trillian test result (tid-3925)
|
@Pearl1594 is this ready for review? |
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
@blueorangutan package |
@Pearl1594 a Jenkins job has been kicked to build packages. It will be bundled with SystemVM template(s). I'll keep you posted as I make progress. |
Packaging result: ✖️ el7 ✔️ el8 ✔️ debian ✖️ suse15. SL-JID 3269 |
@blueorangutan package |
@Pearl1594 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. |
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3271 |
if (vm.getDetail(VmDetailConstants.ROOT_DISK_CONTROLLER) == null) { | ||
vm.setDetail(VmDetailConstants.ROOT_DISK_CONTROLLER, controllerSetting); | ||
} |
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.
In UserVmVO we could create a method like setDetailIfNull
. This way we can centralize the validation and reduce a bit of code.
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.
I am not sure if it's worth doing this at this point, as it's not merely checking if it's null and setting it to some value.
Is this essential for 4.17 @nvazquez @Pearl1594 ? |
@rohityadavcloud this isn't essential for 4.17.0 as this has always been the behavior and there also exists a workaround, where users can change the template setting for root disk controller. So IMO this can go into 4.17.1 |
@blueorangutan test centos7 vmware-70u3 |
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + vmware-70u3) has been kicked to run smoke tests |
Trillian test result (tid-4621)
|
@Pearl1594 , this remaining error seems to be consistent. Can you look at 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.
@Pearl1594 failing vm from iso test is due to validateRootDiskResize
should we call it only for templates and not iso?
a5d5379
to
59c5d0f
Compare
@blueorangutan package |
@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. |
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 4016 |
@blueorangutan test centos7 vmware-70u3 |
@Pearl1594 a Trillian-Jenkins test job (centos7 mgmt + vmware-70u3) has been kicked to run smoke tests |
SonarCloud Quality Gate failed. |
Codecov Report
@@ Coverage Diff @@
## 4.17 #6276 +/- ##
=========================================
Coverage 5.86% 5.86%
- Complexity 3918 3920 +2
=========================================
Files 2451 2451
Lines 242268 242277 +9
Branches 37910 37912 +2
=========================================
+ Hits 14207 14211 +4
- Misses 226491 226496 +5
Partials 1570 1570
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Trillian test result (tid-4725)
|
@blueorangutan test matrix |
@shwstppr a Trillian-Jenkins matrix job (centos7 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
Trillian test result (tid-4737)
|
Trillian test result (tid-4739)
|
Trillian test result (tid-4738)
|
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, but didn't test 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.
Tested the VM root disk controller settings at different places.
- With only global setting value
- With global setting and template setting
- With global, template and VM deployment
- Stopped the VM, changed VM setting in the above cases and started the VM
I've checked the VM settings on vCenter, in all the above cases I observed the precedence in the order of
VM setting > Template setting > Global setting
…to override template details (apache#6276) This PR allows VM details wrt root & data disk controller passed via details parameter of deployVMCmd to take precedence over template settings, i.e., the order of precedence for determining VM disk controller is : VM details passed during deployment > template settings > global setting vmware.root.disk.controller.
Description
This PR allows VM details wrt root & data disk controller passed via details parameter of deployVMCmd to take precedence over template settings, i.e., the order of precedence for determining VM disk controller is : VM details passed during deployment > template settings > global setting
vmware.root.disk.controller
.Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?