cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Min Chen <>
Subject Failed to addCluster with latest master code
Date Sat, 02 Mar 2013 02:03:58 GMT
Hi there,

In preparing merging my feature branch vim51_win8 to master, I rebased with latest master
code, then my testing immediately failed at addCluster with the following stack trace:

2013-03-01 17:34:18,953 DEBUG [] (552681680@qtp-144013098-6:null)
Failed to retrieve the default label for public 1 hypervisor: VMware due to:
Unable to find the default physical network with traffic=Public in zone id=1.
2013-03-01 17:34:19,305 ERROR [cloud.api.ApiServer] (552681680@qtp-144013098-6:null) unhandled
exception executing api command: addCluster
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(
        at java.util.ArrayList.get(
        at net.sf.cglib.proxy.MethodProxy.invoke(
        at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
        at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(
        at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(

This exception is thrown from this piece of code recently checked in related to Vmware Distributed
Vswitch feature:

        List<? extends PhysicalNetwork> pNetworkListGuestTraffic = _netmgr.getPhysicalNtwksSupportingTrafficType(dcId,

        List<? extends PhysicalNetwork> pNetworkListPublicTraffic = _netmgr.getPhysicalNtwksSupportingTrafficType(dcId,

        // Public network would be on single physical network hence getting first object of
the list would suffice.

        PhysicalNetwork pNetworkPublic = pNetworkListPublicTraffic.get(0);

In this case, pNetworkListPublicTraffic list is empty, thus index out of range error is thrown
next. Does anybody see this issue?

Sateesh, do we need to setup Vmware host differently than before with your new code? In previous
code, it can always successfully find vSwitch0 to use.

Due to this issue, I am holding off my merge until this is resolved.



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message