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-7880) Creating shared network results in exception
Date Tue, 11 Nov 2014 11:05:34 GMT

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

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

Commit 6d268db217a0c9dd0701a85f4d0244461c9ebd0b in cloudstack's branch refs/heads/4.5 from
[~koushikd]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=6d268db ]

CLOUDSTACK-7880: Creating shared network results in exception
This is due to event publish being wrapped in a transaction, moved it outside of transaction
scope.


> Creating shared network results in exception
> --------------------------------------------
>
>                 Key: CLOUDSTACK-7880
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7880
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.5.0
>            Reporter: Koushik Das
>            Assignee: Koushik Das
>             Fix For: 4.5.0
>
>
> Creating shared network gives CloudRuntimeException: NO EVENT PUBLISH CAN BE WRAPPED
WITHIN DB TRANSACTION!
> Steps to Reproduce:
> =================
> 1.Bring up CS in advanced zone with xen cluster
> 2.Create one shared network using admin account
> Expected Result:
> =============
> Shared network creation should be successful without any errors/exceptions
> Actual Result:
> ===========
> Shared network got created. However, got the following exception:
> 2014-11-05 17:57:41,191 DEBUG [c.c.a.ApiServlet] (catalina-exec-13:ctx-d4d8d5f9) ===START===
 10.252.193.36 -- GET  command=createNetwork&zoneId=ce166bb8-9664-4e67-9017-407fffc0715a&networkOfferingId=396f84d9-befd-4bb5-8695-51da96b7f919&physicalnetworkid=835943f8-6682-4968-9727-5eafb2e2fce0&name=shared&displayText=shared&vlan=48&acltype=domain&gateway=10.147.48.1&netmask=255.255.255.0&startip=10.147.48.200&endip=10.147.48.205&response=json&sessionkey=ollWEMxBmXyW3zKfzIoUxBuERnc%3D&_=1415171529563
> 2014-11-05 17:57:41,258 DEBUG [o.a.c.n.c.m.ContrailGuru] (catalina-exec-13:ctx-d4d8d5f9
ctx-030f1958) Refusing to design this network
> 2014-11-05 17:57:41,259 DEBUG [c.c.n.g.MidoNetGuestNetworkGuru] (catalina-exec-13:ctx-d4d8d5f9
ctx-030f1958) design called
> 2014-11-05 17:57:41,261 DEBUG [c.c.n.g.MidoNetGuestNetworkGuru] (catalina-exec-13:ctx-d4d8d5f9
ctx-030f1958) Refusing to design this network, the physical isolation type is not MIDO
> 2014-11-05 17:57:41,263 DEBUG [c.c.n.g.NiciraNvpGuestNetworkGuru] (catalina-exec-13:ctx-d4d8d5f9
ctx-030f1958) Refusing to design this network
> 2014-11-05 17:57:41,265 DEBUG [o.a.c.n.o.OpendaylightGuestNetworkGuru] (catalina-exec-13:ctx-d4d8d5f9
ctx-030f1958) Refusing to design this network
> 2014-11-05 17:57:41,267 DEBUG [c.c.n.g.OvsGuestNetworkGuru] (catalina-exec-13:ctx-d4d8d5f9
ctx-030f1958) Refusing to design this network
> 2014-11-05 17:57:41,296 ERROR [o.a.c.f.m.MessageBusBase] (catalina-exec-13:ctx-d4d8d5f9
ctx-030f1958) NO EVENT PUBLISH CAN BE WRAPPED WITHIN DB TRANSACTION!
> com.cloud.utils.exception.CloudRuntimeException: NO EVENT PUBLISH CAN BE WRAPPED WITHIN
DB TRANSACTION!
>         at org.apache.cloudstack.framework.messagebus.MessageBusBase.publish(MessageBusBase.java:167)
>         at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator$2.doInTransactionWithoutResult(NetworkOrchestrator.java:685)
>         at com.cloud.utils.db.TransactionCallbackNoReturn.doInTransaction(TransactionCallbackNoReturn.java:25)
>         at com.cloud.utils.db.Transaction$2.doInTransaction(Transaction.java:57)
>         at com.cloud.utils.db.Transaction.execute(Transaction.java:45)
>         at com.cloud.utils.db.Transaction.execute(Transaction.java:54)
>         at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.setupNetwork(NetworkOrchestrator.java:667)
>         at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator$8.doInTransaction(NetworkOrchestrator.java:1975)
>         at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator$8.doInTransaction(NetworkOrchestrator.java:1936)
>         at com.cloud.utils.db.Transaction$2.doInTransaction(Transaction.java:57)
>         at com.cloud.utils.db.Transaction.execute(Transaction.java:45)
>         at com.cloud.utils.db.Transaction.execute(Transaction.java:54)
>         at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.createGuestNetwork(NetworkOrchestrator.java:1936)
>         at com.cloud.network.NetworkServiceImpl$4.doInTransaction(NetworkServiceImpl.java:1383)
>         at com.cloud.network.NetworkServiceImpl$4.doInTransaction(NetworkServiceImpl.java:1331)
>         at com.cloud.utils.db.Transaction.execute(Transaction.java:45)
>         at com.cloud.network.NetworkServiceImpl.commitNetwork(NetworkServiceImpl.java:1331)
>         at com.cloud.network.NetworkServiceImpl.createGuestNetwork(NetworkServiceImpl.java:1294)
>         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:601)
>         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 $Proxy157.createGuestNetwork(Unknown Source)
>         at org.apache.cloudstack.api.command.admin.network.CreateNetworkCmdByAdmin.execute(CreateNetworkCmdByAdmin.java:58)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141)
>         at com.cloud.api.ApiServer.queueCommand(ApiServer.java:694)
>         at com.cloud.api.ApiServer.handleRequest(ApiServer.java:517)
>         at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:273)
>         at com.cloud.api.ApiServlet$1.run(ApiServlet.java:117)
>         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:114)
>         at com.cloud.api.ApiServlet.doGet(ApiServlet.java:76)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>         at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
>         at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
>         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2268)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:722)
> 2014-11-05 17:57:41,304 DEBUG [o.a.c.n.g.SspGuestNetworkGuru] (catalina-exec-13:ctx-d4d8d5f9
ctx-030f1958) SSP not configured to be active
> 2014-11-05 17:57:41,306 DEBUG [c.c.n.g.BrocadeVcsGuestNetworkGuru] (catalina-exec-13:ctx-d4d8d5f9
ctx-030f1958) Refusing to design this network
> 2014-11-05 17:57:41,309 DEBUG [c.c.n.g.NuageVspGuestNetworkGuru] (catalina-exec-13:ctx-d4d8d5f9
ctx-030f1958) Refusing to design this network
> 2014-11-05 17:57:41,311 DEBUG [o.a.c.e.o.NetworkOrchestrator] (catalina-exec-13:ctx-d4d8d5f9
ctx-030f1958) Releasing lock for Acct[ad36170c-6436-11e4-93ba-06097e000023-system]
> 2014-11-05 17:57:41,316 DEBUG [c.c.c.ConfigurationManagerImpl] (catalina-exec-13:ctx-d4d8d5f9
ctx-030f1958) Access granted to Acct[ad36648c-6436-11e4-93ba-06097e000023-admin] to zone:1
by AffinityGroupAccessChecker
> 2014-11-05 17:57:41,328 DEBUG [c.c.c.ConfigurationManagerImpl] (catalina-exec-13:ctx-d4d8d5f9
ctx-030f1958) Saving vlan range Vlan[48|10.147.48.1|255.255.255.0|null|null|10.147.48.200-10.147.48.205||null207]
> 2014-11-05 17:57:41,377 DEBUG [c.c.a.ApiServlet] (catalina-exec-13:ctx-d4d8d5f9 ctx-030f1958)
===END===  10.252.193.36 -- GET  command=createNetwork&zoneId=ce166bb8-9664-4e67-9017-407fffc0715a&networkOfferingId=396f84d9-befd-4bb5-8695-51da96b7f919&physicalnetworkid=835943f8-6682-4968-9727-5eafb2e2fce0&name=shared&displayText=shared&vlan=48&acltype=domain&gateway=10.147.48.1&netmask=255.255.255.0&startip=10.147.48.200&endip=10.147.48.205&response=json&sessionkey=ollWEMxBmXyW3zKfzIoUxBuERnc%3D&_=1415171529563



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message