Bhavin created CLOUDSTACK-9576:
----------------------------------
Summary: Nuage VSP Plugin : NPE while creating vpctier with wrong
domain template name
Key: CLOUDSTACK-9576
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9576
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Environment: esx 5.5
Reporter: Bhavin
NPE while creating vpctier with wrong domain template name in VPC Domain
Template testcases
Global setting
nuagevsp.vpc.domaintemplate.name -> Defines if NuageVsp plugin needs to use pre
created Domain Template configured in VSP for VPCs
steps to reproduce:
1. provide invalid domain name in "nuagevsp.vpc.domaintemplate.name" global
setting
2. create vpc tier
actual results:
null pointer exception and no UI error thrown
expected results:
there should be no null pointer exception and a proper UI error should be thrown
{noformat}
2016-10-25 16:57:29,463 ERROR [c.c.n.g.NuageVspGuestNetworkGuru]
(catalina-exec-2:ctx-f105f25a ctx-56e75cb8) (logid:91261740)
ImplementNetworkVspCommand for network 9a4aad29-5c0e-4e82-845f-dd9f29dad721
failed on Nuage VSD 10.110.9.6
2016-10-25 16:57:29,463 ERROR [c.c.n.g.NuageVspGuestNetworkGuru]
(catalina-exec-2:ctx-f105f25a ctx-56e75cb8) (logid:91261740) Exception:
net.nuage.vsp.acs.client.exception.NuageVspException
Message: Preconfigured DomainTemplate 'c5f1741d-8584-4cb3-a3b5-ce0785f06d65'
could not be found. Please remove the VPC Tier before trying again.
Stack: net.nuage.vsp.acs.client.exception.NuageVspException: Preconfigured
DomainTemplate 'c5f1741d-8584-4cb3-a3b5-ce0785f06d65' could not be found.
Please remove the VPC Tier before trying again.
at
net.nuage.vsp.acs.client.api.impl.NuageVspApiClientImpl.createNetworkConfigurationWithDefaultACLs(NuageVspApiClientImpl.java:435)
at
net.nuage.vsp.acs.client.api.impl.NuageVspGuruClientImpl.implement(NuageVspGuruClientImpl.java:37)
at
com.cloud.network.resource.NuageVspResource.executeRequest(NuageVspResource.java:347)
at
com.cloud.network.resource.NuageVspResource.executeRequest(NuageVspResource.java:287)
at
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:315)
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.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
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:745)
2016-10-25 16:57:29,463 DEBUG [o.a.c.e.o.NetworkOrchestrator]
(catalina-exec-2:ctx-f105f25a ctx-56e75cb8) (logid:91261740) Cleaning up
because we're unable to implement the network Ntwk[494|Guest|56]
2016-10-25 16:57:29,646 ERROR [c.c.a.ApiServer] (catalina-exec-2:ctx-f105f25a
ctx-56e75cb8) (logid:91261740) unhandled exception executing api command:
[Ljava.lang.String;@2feea6ba
java.lang.NullPointerException
at
org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.implementNetwork(NetworkOrchestrator.java:1033)
at
com.cloud.network.NetworkServiceImpl.createGuestNetwork(NetworkServiceImpl.java:1334)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
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.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:107)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at
com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
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.$Proxy167.createGuestNetwork(Unknown Source)
at
org.apache.cloudstack.api.command.admin.network.CreateNetworkCmdByAdmin.execute(CreateNetworkCmdByAdmin.java:58)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:132)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:707)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:538)
at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:297)
at com.cloud.api.ApiServlet$1.run(ApiServlet.java:129)
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 com.cloud.api.ApiServlet.processRequest(ApiServlet.java:126)
at com.cloud.api.ApiServlet.doGet(ApiServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)