Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
4.2.0
-
Security Level: Public (Anyone can view this level - this is the default.)
-
4.2 Master
Description
Please revise this portion of the code in vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java
if (vid != null)
{ vlanSpec = createDVPortVlanIdSpec(vid); } else {
vlanSpec = createDVPortVlanSpec();
}
This code does not take into account PortGroups on DVS that are untagged. This issue was particularly hard to identify as stack trace would only show up on the hypervisor hostd.log and VC error is was vary vague. the hostd.log on hypervisor indicate that vlanSpec is invalid for PortGroups that are untagged (or the ID is left blank).
2013-03-14T20:32:12.351Z [41D16B90 info 'Vmomi' opID=786a44c8-8d] Throw vim.fault.DvsApplyOperationFault
2013-03-14T20:32:12.352Z [41D16B90 info 'Vmomi' opID=786a44c8-8d] Result:
--> (vim.fault.DvsApplyOperationFault) {
--> dynamicType = <unset>,
--> faultCause = (vmodl.MethodFault) null,
--> objectFault = (vim.fault.DvsApplyOperationFault.FaultOnObject) [
--> (vim.fault.DvsApplyOperationFault.FaultOnObject) {
--> dynamicType = <unset>,
--> objectId = "2442",
--> type = "vim.dvs.DistributedVirtualPort",
--> fault = (vmodl.fault.InvalidArgument)
,
--> }
--> ],
--> msg = "",
--> }