Repository navigation
CLOUDSTACK-9184: [VMware] vmware.ports.per.dvportgroup global setting is not useful from vCenter 5.0 onwards - #1253
sureshanaparti wants to merge 1 commit into
Conversation
|
@sureshanaparti Although it might be a bit tricky, I believe that the ideal solution would be to check for the hypervisor version; if it is 4.1/4.0 then the default value of 8 is changed to 256 (or any recommended amount for the given version). This way does not rely on admin to manually configure it (the idea would be to consider the global configuration if the admin set it, would just change a default value). I checked and maybe a method for check the hypervisor version and set the _portsPerDvPortGroup could be called by com.cloud.hypervisor.vmware.manager.VmwareManagerImpl.addHostToPodCluster(VmwareContext, long, Long, Long, String). This method would search a host using the clusterId (com.cloud.host.dao.HostDaoImpl.findByClusterId(Long)); with the given HostVO it verifies the hypervisor version (com.cloud.host.HostVO.getHypervisorVersion()) to set the default value according this version. Thanks. |
4e0cd09 to
7a224ef
Compare
|
@sureshanaparti please rebase against latest master, move the schema changes to 481-490 upgrade path tag:vmware-pickup |
ACS CI BVT RunSumarry: Link to logs Folder (search by build_no): https://www.dropbox.com/sh/yj3wnzbceo9uef2/AAB6u-Iap-xztdm6jHX9SjPja?dl=0 Failed tests: Skipped tests: Passed test suits: |
a517056 to
0ef5d5d
Compare
|
Addressed all the changes suggested and rebased.
|
0ef5d5d to
21dbbd7
Compare
21dbbd7 to
d65dea5
Compare
|
Moved the schema changes to 4920-41000 upgrade path. |
|
@rhtyd Can you please run trillian tests for this PR? |
|
@sureshanaparti Can you please investigate the two failures listed in results from @cloudmonger? |
|
Please ignore the above BVT test results from @cloudmonger. These tests were executed on xenserver instead of VMware. |
|
@sateesh-chodapuneedi These two test failures are due to the ssh failure to the router VM, are not related to this PR changes. test_01_RVR_Network_FW_PF_SSH_default_routes_egress_true Failed
test_02_RVR_Network_FW_PF_SSH_default_routes_egress_false Failed
|
|
@rhtyd @borisroman can you kick off vmware tests? |
|
@sureshanaparti sure |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✖debian. JID-546 |
|
@sureshanaparti Why don't we just remove Config for this setting and leave default to be 8? |
|
@serg38 Thanks for pointing that. Could see the details here: End of Support Life for vSphere 4.x. @rhtyd @karuturi @sateesh-chodapuneedi |
|
@rhtyd @karuturi Could see vSphere 4.1 in the latest installation guide. Please note that this documentation needs to be updated at some point later.
|
d65dea5 to
800aea0
Compare
|
|
@sateesh-chodapuneedi Thanks for confirming this. I'll update the code to remove the config param "vmware.ports.per.dvportgroup". |
800aea0 to
336a0d3
Compare
|
@serg38 @sateesh-chodapuneedi Removed the config parameter "vmware.ports.per.dvportgroup". Ports per dvportgroup is defaulted to 8 and for vSphere 4.x, it is 256. Please review. |
|
@borisstoyanov Updated the changes. Can you please kick off the tests here. |
|
@blueorangutan package |
|
@borisstoyanov a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-710 |
|
@blueorangutan test centos7 vmware-55u3 |
|
@borisstoyanov a Trillian-Jenkins test job (centos7 mgmt + vmware-55u3) has been kicked to run smoke tests |
|
Trillian test result (tid-1079)
|
7ea7374 to
1aff6aa
Compare
ACS CI BVT RunSumarry: Link to logs Folder (search by build_no): https://www.dropbox.com/sh/r2si930m8xxzavs/AAAzNrnoF1fC3auFrvsKo_8-a?dl=0 Failed tests:
Skipped tests: Passed test suits: |
… is not useful from vCenter 5.0 onwards Fix: Modify the default value of this setting, which is currently 256, by decreasing it to 8 because even a dvportgroup with autoexpand feature enabled there exists an initial number of ports as starting point, which can be again configured through this configuration setting.
1aff6aa to
deb2f53
Compare
|
@sureshanaparti ping, can you fix conflicts? |
|
There is an issue with existing environments, which may be using dvsportgroups. If portgroup has more than (say) 8 ports in use already then a error such as: Code needs to set number of ports to slightly higher than the number of ports in use, on a per portgroup basis. |
|
Closing this, will send a new PR taking over this issue. |
|
@PaulAngus , @rhtyd I'll continue work on the changes required if any, on this. |
|
@sureshanaparti I've moved the changes to this new PR against 4.11: #2634 (comment) |
Modify the default value of this setting, which is currently 256, by decreasing it to 8 because even a dvportgroup with autoexpand feature enabled there exists an initial number of ports as starting point, which can be again configured through this configuration setting. But keeping this value 256 doesn't make sense when auto expand feature is available. Keeping the starting number of dvports per dvportgroup to reasonably minimum would ensure optimal distribution across dvportgroups in dvSwitch.
The vSphere Auto Expand feature (introduced in vSphere 5.0) will take care of dynamically increasing/decreasing the dvPorts when running out of distributed ports . But in case of vSphere 4.1/4.0 (If used), as this feature is not there, the new default value (=> 8) have an impact in the existing deployments. Action item for vSphere 4.1/4.0: Admin should modify the global configuration setting "vmware.ports.per.dvportgroup" from 8 to any number based on their environment because the proposal default value of 8 would be very less without auto expand feature in general. The current default value of 256 may not need immediate modification after deployment, but 8 would be very less which means admin need to update immediately after upgrade.