cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-6112) Adding VPC router to a guest network fails with StringIndexOutOfBoundsException
Date Fri, 14 Feb 2014 11:49:23 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-6112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13901362#comment-13901362
] 

ASF subversion and git services commented on CLOUDSTACK-6112:
-------------------------------------------------------------

Commit db91e54bf3c079e6b9932258f6327585f11cac08 in branch refs/heads/master from [~likithas]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=db91e54 ]

CLOUDSTACK-6112. Adding VPC router to a guest network fails with StringIndexOutOfBoundsException.


> Adding VPC router to a guest network fails with StringIndexOutOfBoundsException
> -------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-6112
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6112
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: VMware
>    Affects Versions: 4.4.0
>            Reporter: Likitha Shetty
>            Assignee: Likitha Shetty
>             Fix For: 4.4.0
>
>
> Steps to reproduce
> Step 1: Create advanced zone in vmware
> Step 2: Create a VPC
> Step 3: Create a tier in VPC
> Step 3: Deploy an instance in the tier
> Result
> Addition of the VPC router to the tier fails with StringIndexOutOfBoundsException
> 2014-02-13 16:30:27,762 DEBUG [c.c.a.t.Request] (DirectAgent-220:ctx-90db2216) Seq 1-1024328360:
Executing: { Cmd , MgmtId: 9092810
> 6758026, via: 1(10.223.250.131), Ver: v1, Flags: 100111, [{"com.cloud.agent.api.SetupGuestNetworkCommand":{"dhcpRange":"10.1.1.1","n
> etworkDomain":"vpc.networkacl","isRedundant":false,"add":false,"nic":
> {"deviceId":2,"networkRateMbps":200,"defaultNic":false,"uuid":" 1a9263c1-81d0-4029-8078-e5b82f826c46","ip":"10.1.1.1","netmask":"255.255.255.192","gateway":"10.1.1.1","mac":"02:00:6e:67:00:02","br
oadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://3181","isolationUri":"vlan://3181","isSecurityGroupEnabled":false}
> ,"access
> Details":
> {"router.guest.ip":"10.1.1.1","guest.vlan.tag":"3181","guest.network.gateway":"10.1.1.1","guest.bridge":"10.1.1.63","router
.name":"r-42-TestVM","router.ip":"10.223.250.177"}
> ,"wait":0}}] }
> 2014-02-13 16:30:27,762 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-351:ctx-478d4018)
Seq 1-1024328360: Executing request
> 2014-02-13 16:30:27,763 INFO [c.c.h.v.r.VmwareResource] (DirectAgent-351:ctx-478d4018
10.223.250.131) Executing resource SetupGuest
> NetworkCommand {"dhcpRange":"10.1.1.1","networkDomain":"vpc.networkacl","isRedundant":false,"add":false,"nic":
> {"deviceId":2,"network RateMbps":200,"defaultNic":false,"uuid":"1a9263c1-81d0-4029-8078-e5b82f826c46","ip":"10.1.1.1","netmask":"255.255.255.192","gateway"
:"10.1.1.1","mac":"02:00:6e:67:00:02","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://3181","isolationUri":"vlan://3181
","isSecurityGroupEnabled":false}
> ,"accessDetails":
> {"router.guest.ip":"10.1.1.1","guest.vlan.tag":"3181","guest.network.gateway":"10. 1.1.1","guest.bridge":"10.1.1.63","router.name":"r-42-TestVM","router.ip":"10.223.250.177"}
> ,"wait":0}
> 2014-02-13 16:30:27,770 WARN [o.a.c.e.o.NetworkOrchestrator] (Job-Executor-13:ctx-ee224891
ctx-d13e90ae) Unable to complete shutdown of the network elements due to element: VpcVirtualRouter
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> at java.lang.AbstractStringBuilder.deleteCharAt(AbstractStringBuilder.java:762)
> at java.lang.StringBuffer.deleteCharAt(StringBuffer.java:378)
> at com.cloud.hypervisor.guru.VMwareGuru.implement(VMwareGuru.java:279)
> at com.cloud.vm.VirtualMachineManagerImpl.orchestrateRemoveVmFromNetwork(VirtualMachineManagerImpl.java:3546)
> at com.cloud.vm.VirtualMachineManagerImpl.removeVmFromNetwork(VirtualMachineManagerImpl.java:3531)
> at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.removeVpcRouterFromGuestNetwork(VpcVirtualNetworkApplianceManagerImpl.java:319)
> at sun.reflect.GeneratedMethodAccessor537.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ManagerImpl.java:319)
> at sun.reflect.GeneratedMethodAccessor537.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
> at com.sun.proxy.$Proxy196.removeVpcRouterFromGuestNetwork(Unknown Source)
> at com.cloud.network.element.VpcVirtualRouterElement.shutdown(VpcVirtualRouterElement.java:261)
> at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.shutdownNetworkElementsAndResources(NetworkOrchestrator.java:2052)
> at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.shutdownNetwork(NetworkOrchestrator.java:1965)
> at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.implementNetwork(NetworkOrchestrator.java:989)
> at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.prepare(NetworkOrchestrator.java:1221)
> at com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:966)
> at com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:5090)
> at sun.reflect.GeneratedMethodAccessor395.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at com.cloud.vm.VmWorkJobHandlerProxy.handleVmWorkJob(VmWorkJobHandlerProxy.java:107)
> at com.cloud.vm.VirtualMachineManagerImpl.handleVmWorkJob(VirtualMachineManagerImpl.java:5234)
> at com.cloud.vm.VmWorkJobDispatcher.runJob(VmWorkJobDispatcher.java:100)
> at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:509)
> at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> at com.cloud.vm.VmWorkJobDispatcher.runJob(VmWorkJobDispatcher.java:100)
> at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:509)
> at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
> 2014-02-13 16:30:27,777 DEBUG [c.c.h.v.r.VmwareResource] (DirectAgent-351:ctx-478d4018
10.223.250.131) Use router's private IP for SSH control. IP : 10.223.250.177
> 2014-02-13 16:30:27,778 DEBUG [o.a.c.e.o.NetworkOrchestrator] (Job-Executor-13:ctx-ee224891
ctx-d13e90ae) Lock is released for network Ntwk[226|Guest|11] as a part of network shutdown
> 2014-02-13 16:30:27,778 DEBUG [o.a.c.e.o.NetworkOrchestrator] (Job-Executor-13:ctx-ee224891
ctx-d13e90ae) Lock is released for network id 226 as a part of network implement
> 2014-02-13 16:30:27,779 ERROR [c.c.v.VirtualMachineManagerImpl] (Job-Executor-13:ctx-ee224891
ctx-d13e90ae) Failed to start instance VM[User|TestVM-961f0a46-17f8-482c-9cbf-9ced9b63b148]
> java.lang.NullPointerException
> at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.prepare(NetworkOrchestrator.java:1222)
> at com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:966)
> at com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:5090)
> at sun.reflect.GeneratedMethodAccessor395.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at com.cloud.vm.VmWorkJobHandlerProxy.handleVmWorkJob(VmWorkJobHandlerProxy.java:107)
> at com.cloud.vm.VirtualMachineManagerImpl.handleVmWorkJob(VirtualMachineManagerImpl.java:5234)
> at com.cloud.vm.VmWorkJobDispatcher.runJob(VmWorkJobDispatcher.java:100)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message