You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Alena Prokharchyk (JIRA)" <ji...@apache.org> on 2014/04/24 00:46:17 UTC

[jira] [Commented] (CLOUDSTACK-6486) Failed to create more than one isolated network for the same account

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

Alena Prokharchyk commented on CLOUDSTACK-6486:
-----------------------------------------------

Found the reason for the failure. In GuestNetworkGuru when check if the guru supports isolation method of the physical network, the check is done in case sensitive manner. And if you create physical network with isolationMethod=vlan passed to the API in lower case, the comparison in Guru will fail as it tries to compare it with the uppercase VLAN value.

> Failed to create more than one isolated network for the same account
> --------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-6486
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6486
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Network Controller
>    Affects Versions: 4.4.0
>            Reporter: Alena Prokharchyk
>            Priority: Blocker
>             Fix For: 4.4.0
>
>
> Steps to reproduce:
> ======================
> 1) login as root admin
> 2) create first isolated network while deploying a vm, from deployVm dialog
> 3) Try to create a second isolated network, either from the deploy vm dialog, or from Networks tab. following error occurs:
> ERROR [c.c.a.ApiServer] (2128435204@qtp-415454110-20:ctx-fe01b290 ctx-c27f313c) unhandled exception executing api command: [Ljava.lang.String;@33607ddc
> com.cloud.utils.exception.CloudRuntimeException: Unable to convert network offering with specified id to network profile
> 	at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.setupNetwork(NetworkOrchestrator.java:691)
> 	at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator$8.doInTransaction(NetworkOrchestrator.java:1940)
> 	at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator$8.doInTransaction(NetworkOrchestrator.java:1901)
> 	at com.cloud.utils.db.Transaction$2.doInTransaction(Transaction.java:49)
> 	at com.cloud.utils.db.Transaction.execute(Transaction.java:37)
> 	at com.cloud.utils.db.Transaction.execute(Transaction.java:46)
> 	at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.createGuestNetwork(NetworkOrchestrator.java:1901)
> 	at com.cloud.network.NetworkServiceImpl$4.doInTransaction(NetworkServiceImpl.java:1362)
> 	at com.cloud.network.NetworkServiceImpl$4.doInTransaction(NetworkServiceImpl.java:1310)
> 	at com.cloud.utils.db.Transaction.execute(Transaction.java:37)
> 	at com.cloud.network.NetworkServiceImpl.commitNetwork(NetworkServiceImpl.java:1310)
> 	at com.cloud.network.NetworkServiceImpl.createGuestNetwork(NetworkServiceImpl.java:1273)
> 	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:106)
> 	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.$Proxy157.createGuestNetwork(Unknown Source)
> 	at org.apache.cloudstack.api.command.admin.network.CreateNetworkCmdByAdmin.execute(CreateNetworkCmdByAdmin.java:57)
> 	at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:134)
> 	at com.cloud.api.ApiServer.queueCommand(ApiServer.java:593)
> 	at com.cloud.api.ApiServer.handleRequest(ApiServer.java:416)
> 	at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:330)
> 	at com.cloud.api.ApiServlet.access$000(ApiServlet.java:54)
> 	at com.cloud.api.ApiServlet$1.run(ApiServlet.java:118)
> 	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:115)
> 	at com.cloud.api.ApiServlet.doGet(ApiServlet.java:77)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
> 	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
> 	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
> 	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> 	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> 	at org.mortbay.jetty.Server.handle(Server.java:326)
> 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> 	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)



--
This message was sent by Atlassian JIRA
(v6.2#6252)