You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Jayashree Ramamoorthy (JIRA)" <ji...@apache.org> on 2014/11/10 10:36:34 UTC

[jira] [Commented] (CLOUDSTACK-6414) [UI] UI is not allowing to create DomainAdmin User (ReferenceError: rootDomainId is not defined)

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

Jayashree Ramamoorthy commented on CLOUDSTACK-6414:
---------------------------------------------------

Observing that Domain Admin user is allowed to create. But following exception is seen in the management-server logs when i create an account from the UI.

2014-11-10 08:22:05,375 DEBUG [c.c.u.AccountManagerImpl] (catalina-exec-9:ctx-a9119f69 ctx-1cb0caf0) Creating user: jayashree, accountId: 4 timezone:null
2014-11-10 08:22:05,378 ERROR [o.a.c.f.m.MessageBusBase] (catalina-exec-9:ctx-a9119f69 ctx-1cb0caf0) 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 com.cloud.user.AccountManagerImpl$2.doInTransaction(AccountManagerImpl.java:1052)
        at com.cloud.user.AccountManagerImpl$2.doInTransaction(AccountManagerImpl.java:1027)
        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 com.cloud.user.AccountManagerImpl.createUserAccount(AccountManagerImpl.java:1027)
        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 $Proxy103.createUserAccount(Unknown Source)
        at org.apache.cloudstack.api.command.admin.account.CreateAccountCmd.execute(CreateAccountCmd.java:178)
        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.doPost(ApiServlet.java:81)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        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-10 08:22:05,521 DEBUG [c.c.a.ApiServlet] (catalina-exec-9:ctx-a9119f69 ctx-1cb0caf0) ===END===  127.0.0.1 -- POST  command=createAccount&username=jayashree&email=newcdc1@cdc.com&firstname=newdc1&lastname=newdc1&domainid=619ecf42-ca23-4f71-8d31-5e259beeb5ac&account=newdc1&accounttype=2&response=json&sessionkey=ZdLEbf5HNozucdn8ABtPMIyp0pI%3D
2014-11-10 08:22:06,011 DEBUG [c.c.a.ApiServlet] (catalina-exec-10:ctx-a424a9d8) ===START===  127.0.0.1 -- GET  command=listAccounts&response=json&sessionkey=ZdLEbf5HNozucdn8ABtPMIyp0pI%3D&listAll=true&page=1&pagesize=20&domainid=619ecf42-ca23-4f71-8d31-5e259beeb5ac&_=1415607725891
2014-11-10 08:22:06,023 DEBUG [c.c.u.AccountManagerImpl] (catalina-exec-10:ctx-a424a9d8 ctx-b5d5a85e) Access granted to Acct[2df12e82-6657-11e4-9b31-12dca52c304d-admin] to Domain:2/CDC/ by AffinityGroupAccessChecker


> [UI] UI is not allowing to create DomainAdmin User (ReferenceError: rootDomainId is not defined)
> ------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-6414
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6414
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: UI
>    Affects Versions: 4.4.0
>            Reporter: Sailaja Mada
>            Assignee: Jessica Wang
>             Fix For: 4.4.0
>
>         Attachments: FailedtoaddDomainAdminUI.png
>
>
> Steps:
> 1. Install and configure Adv Zone using XenServer 6.2.5 
> 2. Create domain "CDC" under "root" domain
> 3. Tried to create Domain Admin user under "CDC" domain from ACS Management Console as root admin user.
> Observation:
> UI is not allowing to create DomainAdmin User (ReferenceError: rootDomainId is not defined)  
> createAccount API call works to create Domain Admin User.  It is the failure only in the UI.
> Attached Firebug snap.



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