You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Soheil Eizadi <se...@infoblox.com> on 2013/06/26 20:02:30 UTC

Master build problem

I merged the latest master into my branch and could not run it. I switched to master branch and built it but can not run it either, has anyone else seen this problem with sspCredentialDaoImpl?

ERROR [web.context.ContextLoader] (main:) Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'actionEventUtils': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.cloud.event.dao.EventDao com.cloud.event.ActionEventUtils.eventDao; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.cloud.network.dao.SspCredentialDaoImpl] for bean with name 'sspCredentialDaoImpl' defined in class path resource [componentContext.xml]; nested exception is java.lang.ClassNotFoundException: com.cloud.network.dao.SspCredentialDaoImpl

Re: Master build problem

Posted by Prasanna Santhanam <ts...@apache.org>.
On Tue, Jul 02, 2013 at 08:04:54AM +0000, Paul Angus wrote:
> Is there any documentation around memory requirements for the
> CloudStack management server(s) as the requirement has obviously
> gone up since 4.1...

I'm afraid so, after the introduction of Spring the memory footprint
has increased a bit. Don't think this was documented. Could you file a
doc bug please?
 
-- 
Prasanna.,

------------------------
Powered by BigRock.com


RE: Master build problem

Posted by Paul Angus <pa...@shapeblue.com>.
So....  my vm for CSMan had 2GB RAM, but because it was only a 16GB disk, no swap partition had been created.

I created a 1GB swap file and now the setup completes and I can log in

Thanks Hugo/Prasanna.



Is there any documentation around memory requirements for the CloudStack management server(s) as the requirement has obviously gone up since 4.1...



-----Original Message-----
From: Trippie [mailto:trippie@gmail.com] On Behalf Of Hugo Trippaers
Sent: 01 July 2013 19:30
To: dev@cloudstack.apache.org
Subject: Re: Master build problem

Hey Paul,

That out-of-memory error in the ConfigurationServerImpl might be the root-cause. This would prevent cloudstack from completely initialising and one of the last initialisation steps is to enable the admin user.

If you fix that you are a step closer.

Cheers,

Hugo


On Jul 1, 2013, at 8:24 PM, Paul Angus <pa...@shapeblue.com> wrote:

> I see the admin user getting added:
>
> 2013-07-01 19:14:04,739 TRACE [db.Transaction.Statement]
> (Timer-1:null) Preparing: INSERT INTO `cloud`.`user` (id, uuid,
> username, password, account_id, firstname, lastname, created, state,
> user.default) VALUES (2, UUID(), 'admin', RAND(), 2,
> 'admin','cloud',now(), 'disabled', 1)
>
> No other mention of admin.
>
> The other two classes you were looking for appear in errors:
>
> 2013-07-01 19:13:35,774 ERROR [cloud.api.ApiServlet]
> (catalina-exec-1:null) unknown exception writing api response java.lang.NullPointerException
>        at com.cloud.api.ApiServer.loginUser(ApiServer.java:784)
>        at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:210)
>        at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
>        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:2274)
>        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>        at java.lang.Thread.run(Thread.java:679)
> 2013-07-01 19:13:35,781 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-1:null) ===END===  10.0.0.17 -- POST  null
> 2013-07-01 19:13:38,271 TRACE [db.Transaction.Transaction]
> (Timer-1:null) Took over the transaction: init
>
> ----------------------------------------------------------------------
> -------------------------
>
> 2013-07-01 19:14:14,037 INFO  [cloud.server.ConfigurationServerImpl]
> (Timer-1:null) Processing updateKeyPairs
> 2013-07-01 19:14:14,037 INFO  [cloud.server.ConfigurationServerImpl]
> (Timer-1:null) Systemvm keypairs not found in database. Need to store
> them in the database
> 2013-07-01 19:14:14,037 DEBUG [utils.script.Script] (Timer-1:null)
> Executing: /bin/bash -c if [ -f /var/cloudstack/management/.ssh/id_rsa
> ]; then rm -f /var/cloudstack/management/.ssh/id_rsa; fi; ssh-keygen
> -t rsa -N '' -f /var/cloudstack/management/.ssh/id_rsa -q
> 2013-07-01 19:14:14,055 WARN  [utils.script.Script] (Timer-1:null)
> Exception: /bin/bash -c if [ -f /var/cloudstack/management/.ssh/id_rsa
> ]; then rm -f /var/cloudstack/management/.ssh/id_rsa; fi; ssh-keygen
> -t rsa -N '' -f /var/cloudstack/management/.ssh/id_rsa -q
> java.io.IOException: Cannot run program "/bin/bash": java.io.IOException: error=12, Cannot allocate memory
>        at java.lang.ProcessBuilder.start(ProcessBuilder.java:488)
>        at com.cloud.utils.script.Script.execute(Script.java:183)
>        at com.cloud.utils.script.Script.runSimpleBashScript(Script.java:481)
>        at com.cloud.utils.script.Script.runSimpleBashScript(Script.java:471)
>        at com.cloud.server.ConfigurationServerImpl.updateKeyPairs(ConfigurationServerImpl.java:627)
>        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>        at com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java:292)
>        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>        at com.cloud.server.ConfigurationServerImpl.configure(ConfigurationServerImpl.java:157)
>        at com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:111)
>        at com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:50)
>        at java.util.TimerThread.mainLoop(Timer.java:534)
>        at java.util.TimerThread.run(Timer.java:484)
> Caused by: java.io.IOException: java.io.IOException: error=12, Cannot allocate memory
>        at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
>        at java.lang.ProcessImpl.start(ProcessImpl.java:81)
>        at java.lang.ProcessBuilder.start(ProcessBuilder.java:470)
>        ... 20 more
> 2013-07-01 19:14:14,056 ERROR [cloud.server.ConfigurationServerImpl]
> (Timer-1:null) Cannot read the private key file
> java.io.FileNotFoundException: /var/cloudstack/management/.ssh/id_rsa (No such file or directory)
>        at java.io.FileInputStream.open(Native Method)
>        at java.io.FileInputStream.<init>(FileInputStream.java:137)
>        at com.cloud.server.ConfigurationServerImpl.updateKeyPairs(ConfigurationServerImpl.java:631)
>        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>        at com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java:292)
>        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>        at com.cloud.server.ConfigurationServerImpl.configure(ConfigurationServerImpl.java:157)
>        at com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:111)
>        at com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:50)
>        at java.util.TimerThread.mainLoop(Timer.java:534)
>        at java.util.TimerThread.run(Timer.java:484)
>
> -----Original Message-----
> From: Prasanna Santhanam [mailto:tsp@apache.org]
> Sent: 01 July 2013 16:38
> To: dev@cloudstack.apache.org
> Subject: Re: Master build problem
>
> On Mon, Jul 01, 2013 at 08:44:28AM +0000, Paul Angus wrote:
>> This was a completely fresh build from the 4.2 branch (oss).
>>
>> I don't use dev cloud as it's not representative of a real environment. I ran:
>>
> Should fail on devcloud too ideally.
>
>> yum install -y cloud-client             # run against local 4.2 repo
>> cloudstack-setup-databases cloud:cloud@$MYSQLIP
>> --deploy-as=root:password cloudstack-setup-management
>>
>
> Ok, thought you were running dev environment. If you see something like "Admin user enabled" then everything went fine. Else we'll need to see the management server logs to see if any of the classes has misbehaved or hasn't done what it's supposed to do.
>
> You can also enable trace level log for two classes in particular that we're chasing here: AccountManagerImpl and ConfigurationServerImpl.
>
> See #5 in the wiki https://cwiki.apache.org/confluence/x/5QL8AQ on how to achieve this.
>
> com.cloud.user.AccountManagerImpl
> com.cloud.server.ConfigurationServerImpl
>
>> that's it...
>>
>> as a work around I assume I can open the unauthenticated api port and
>> create a user (which I know the password for)...
>
> Umm, the system user should also have been randomized credentials so you won't be able to login. The security loophole here was fixed sometime ago.
>
> --
> Prasanna.,
>
> ------------------------
> Powered by BigRock.com
>
>
> This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
>


This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.


Re: Master build problem

Posted by Hugo Trippaers <hu...@trippaers.nl>.
Hey Paul,

That out-of-memory error in the ConfigurationServerImpl might be the root-cause. This would prevent cloudstack from completely initialising and one of the last initialisation steps is to enable the admin user.

If you fix that you are a step closer.

Cheers,

Hugo


On Jul 1, 2013, at 8:24 PM, Paul Angus <pa...@shapeblue.com> wrote:

> I see the admin user getting added:
> 
> 2013-07-01 19:14:04,739 TRACE [db.Transaction.Statement] (Timer-1:null) Preparing: INSERT INTO `cloud`.`user` (id, uuid, username, password, account_id, firstname, lastname, created, state, user.default) VALUES (2, UUID(), 'admin', RAND(), 2, 'admin','cloud',now(), 'disabled', 1)
> 
> No other mention of admin.
> 
> The other two classes you were looking for appear in errors:
> 
> 2013-07-01 19:13:35,774 ERROR [cloud.api.ApiServlet] (catalina-exec-1:null) unknown exception writing api response
> java.lang.NullPointerException
>        at com.cloud.api.ApiServer.loginUser(ApiServer.java:784)
>        at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:210)
>        at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
>        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:2274)
>        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>        at java.lang.Thread.run(Thread.java:679)
> 2013-07-01 19:13:35,781 DEBUG [cloud.api.ApiServlet] (catalina-exec-1:null) ===END===  10.0.0.17 -- POST  null
> 2013-07-01 19:13:38,271 TRACE [db.Transaction.Transaction] (Timer-1:null) Took over the transaction: init
> 
> -----------------------------------------------------------------------------------------------
> 
> 2013-07-01 19:14:14,037 INFO  [cloud.server.ConfigurationServerImpl] (Timer-1:null) Processing updateKeyPairs
> 2013-07-01 19:14:14,037 INFO  [cloud.server.ConfigurationServerImpl] (Timer-1:null) Systemvm keypairs not found in database. Need to store them in the database
> 2013-07-01 19:14:14,037 DEBUG [utils.script.Script] (Timer-1:null) Executing: /bin/bash -c if [ -f /var/cloudstack/management/.ssh/id_rsa ]; then rm -f /var/cloudstack/management/.ssh/id_rsa; fi; ssh-keygen -t rsa -N '' -f /var/cloudstack/management/.ssh/id_rsa -q
> 2013-07-01 19:14:14,055 WARN  [utils.script.Script] (Timer-1:null) Exception: /bin/bash -c if [ -f /var/cloudstack/management/.ssh/id_rsa ]; then rm -f /var/cloudstack/management/.ssh/id_rsa; fi; ssh-keygen -t rsa -N '' -f /var/cloudstack/management/.ssh/id_rsa -q
> java.io.IOException: Cannot run program "/bin/bash": java.io.IOException: error=12, Cannot allocate memory
>        at java.lang.ProcessBuilder.start(ProcessBuilder.java:488)
>        at com.cloud.utils.script.Script.execute(Script.java:183)
>        at com.cloud.utils.script.Script.runSimpleBashScript(Script.java:481)
>        at com.cloud.utils.script.Script.runSimpleBashScript(Script.java:471)
>        at com.cloud.server.ConfigurationServerImpl.updateKeyPairs(ConfigurationServerImpl.java:627)
>        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>        at com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java:292)
>        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>        at com.cloud.server.ConfigurationServerImpl.configure(ConfigurationServerImpl.java:157)
>        at com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:111)
>        at com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:50)
>        at java.util.TimerThread.mainLoop(Timer.java:534)
>        at java.util.TimerThread.run(Timer.java:484)
> Caused by: java.io.IOException: java.io.IOException: error=12, Cannot allocate memory
>        at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
>        at java.lang.ProcessImpl.start(ProcessImpl.java:81)
>        at java.lang.ProcessBuilder.start(ProcessBuilder.java:470)
>        ... 20 more
> 2013-07-01 19:14:14,056 ERROR [cloud.server.ConfigurationServerImpl] (Timer-1:null) Cannot read the private key file
> java.io.FileNotFoundException: /var/cloudstack/management/.ssh/id_rsa (No such file or directory)
>        at java.io.FileInputStream.open(Native Method)
>        at java.io.FileInputStream.<init>(FileInputStream.java:137)
>        at com.cloud.server.ConfigurationServerImpl.updateKeyPairs(ConfigurationServerImpl.java:631)
>        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>        at com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java:292)
>        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>        at com.cloud.server.ConfigurationServerImpl.configure(ConfigurationServerImpl.java:157)
>        at com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:111)
>        at com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:50)
>        at java.util.TimerThread.mainLoop(Timer.java:534)
>        at java.util.TimerThread.run(Timer.java:484)
> 
> -----Original Message-----
> From: Prasanna Santhanam [mailto:tsp@apache.org]
> Sent: 01 July 2013 16:38
> To: dev@cloudstack.apache.org
> Subject: Re: Master build problem
> 
> On Mon, Jul 01, 2013 at 08:44:28AM +0000, Paul Angus wrote:
>> This was a completely fresh build from the 4.2 branch (oss).
>> 
>> I don't use dev cloud as it's not representative of a real environment. I ran:
>> 
> Should fail on devcloud too ideally.
> 
>> yum install -y cloud-client             # run against local 4.2 repo
>> cloudstack-setup-databases cloud:cloud@$MYSQLIP
>> --deploy-as=root:password cloudstack-setup-management
>> 
> 
> Ok, thought you were running dev environment. If you see something like "Admin user enabled" then everything went fine. Else we'll need to see the management server logs to see if any of the classes has misbehaved or hasn't done what it's supposed to do.
> 
> You can also enable trace level log for two classes in particular that we're chasing here: AccountManagerImpl and ConfigurationServerImpl.
> 
> See #5 in the wiki https://cwiki.apache.org/confluence/x/5QL8AQ on how to achieve this.
> 
> com.cloud.user.AccountManagerImpl
> com.cloud.server.ConfigurationServerImpl
> 
>> that's it...
>> 
>> as a work around I assume I can open the unauthenticated api port and
>> create a user (which I know the password for)...
> 
> Umm, the system user should also have been randomized credentials so you won't be able to login. The security loophole here was fixed sometime ago.
> 
> --
> Prasanna.,
> 
> ------------------------
> Powered by BigRock.com
> 
> 
> This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
> 


RE: Master build problem

Posted by Paul Angus <pa...@shapeblue.com>.
I see the admin user getting added:

2013-07-01 19:14:04,739 TRACE [db.Transaction.Statement] (Timer-1:null) Preparing: INSERT INTO `cloud`.`user` (id, uuid, username, password, account_id, firstname, lastname, created, state, user.default) VALUES (2, UUID(), 'admin', RAND(), 2, 'admin','cloud',now(), 'disabled', 1)

No other mention of admin.

The other two classes you were looking for appear in errors:

2013-07-01 19:13:35,774 ERROR [cloud.api.ApiServlet] (catalina-exec-1:null) unknown exception writing api response
java.lang.NullPointerException
        at com.cloud.api.ApiServer.loginUser(ApiServer.java:784)
        at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:210)
        at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
        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:2274)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)
2013-07-01 19:13:35,781 DEBUG [cloud.api.ApiServlet] (catalina-exec-1:null) ===END===  10.0.0.17 -- POST  null
2013-07-01 19:13:38,271 TRACE [db.Transaction.Transaction] (Timer-1:null) Took over the transaction: init

-----------------------------------------------------------------------------------------------

2013-07-01 19:14:14,037 INFO  [cloud.server.ConfigurationServerImpl] (Timer-1:null) Processing updateKeyPairs
2013-07-01 19:14:14,037 INFO  [cloud.server.ConfigurationServerImpl] (Timer-1:null) Systemvm keypairs not found in database. Need to store them in the database
2013-07-01 19:14:14,037 DEBUG [utils.script.Script] (Timer-1:null) Executing: /bin/bash -c if [ -f /var/cloudstack/management/.ssh/id_rsa ]; then rm -f /var/cloudstack/management/.ssh/id_rsa; fi; ssh-keygen -t rsa -N '' -f /var/cloudstack/management/.ssh/id_rsa -q
2013-07-01 19:14:14,055 WARN  [utils.script.Script] (Timer-1:null) Exception: /bin/bash -c if [ -f /var/cloudstack/management/.ssh/id_rsa ]; then rm -f /var/cloudstack/management/.ssh/id_rsa; fi; ssh-keygen -t rsa -N '' -f /var/cloudstack/management/.ssh/id_rsa -q
java.io.IOException: Cannot run program "/bin/bash": java.io.IOException: error=12, Cannot allocate memory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:488)
        at com.cloud.utils.script.Script.execute(Script.java:183)
        at com.cloud.utils.script.Script.runSimpleBashScript(Script.java:481)
        at com.cloud.utils.script.Script.runSimpleBashScript(Script.java:471)
        at com.cloud.server.ConfigurationServerImpl.updateKeyPairs(ConfigurationServerImpl.java:627)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java:292)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at com.cloud.server.ConfigurationServerImpl.configure(ConfigurationServerImpl.java:157)
        at com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:111)
        at com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:50)
        at java.util.TimerThread.mainLoop(Timer.java:534)
        at java.util.TimerThread.run(Timer.java:484)
Caused by: java.io.IOException: java.io.IOException: error=12, Cannot allocate memory
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
        at java.lang.ProcessImpl.start(ProcessImpl.java:81)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:470)
        ... 20 more
2013-07-01 19:14:14,056 ERROR [cloud.server.ConfigurationServerImpl] (Timer-1:null) Cannot read the private key file
java.io.FileNotFoundException: /var/cloudstack/management/.ssh/id_rsa (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:137)
        at com.cloud.server.ConfigurationServerImpl.updateKeyPairs(ConfigurationServerImpl.java:631)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java:292)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at com.cloud.server.ConfigurationServerImpl.configure(ConfigurationServerImpl.java:157)
        at com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:111)
        at com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:50)
        at java.util.TimerThread.mainLoop(Timer.java:534)
        at java.util.TimerThread.run(Timer.java:484)

-----Original Message-----
From: Prasanna Santhanam [mailto:tsp@apache.org]
Sent: 01 July 2013 16:38
To: dev@cloudstack.apache.org
Subject: Re: Master build problem

On Mon, Jul 01, 2013 at 08:44:28AM +0000, Paul Angus wrote:
> This was a completely fresh build from the 4.2 branch (oss).
>
> I don't use dev cloud as it's not representative of a real environment. I ran:
>
Should fail on devcloud too ideally.

> yum install -y cloud-client             # run against local 4.2 repo
> cloudstack-setup-databases cloud:cloud@$MYSQLIP
> --deploy-as=root:password cloudstack-setup-management
>

Ok, thought you were running dev environment. If you see something like "Admin user enabled" then everything went fine. Else we'll need to see the management server logs to see if any of the classes has misbehaved or hasn't done what it's supposed to do.

You can also enable trace level log for two classes in particular that we're chasing here: AccountManagerImpl and ConfigurationServerImpl.

See #5 in the wiki https://cwiki.apache.org/confluence/x/5QL8AQ on how to achieve this.

com.cloud.user.AccountManagerImpl
com.cloud.server.ConfigurationServerImpl

> that's it...
>
> as a work around I assume I can open the unauthenticated api port and
> create a user (which I know the password for)...

Umm, the system user should also have been randomized credentials so you won't be able to login. The security loophole here was fixed sometime ago.

--
Prasanna.,

------------------------
Powered by BigRock.com


This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.


Re: Master build problem

Posted by Prasanna Santhanam <ts...@apache.org>.
On Mon, Jul 01, 2013 at 08:44:28AM +0000, Paul Angus wrote:
> This was a completely fresh build from the 4.2 branch (oss).
> 
> I don't use dev cloud as it's not representative of a real environment. I ran:
> 
Should fail on devcloud too ideally.

> yum install -y cloud-client             # run against local 4.2 repo
> cloudstack-setup-databases cloud:cloud@$MYSQLIP --deploy-as=root:password
> cloudstack-setup-management
> 

Ok, thought you were running dev environment. If you see something
like "Admin user enabled" then everything went fine. Else we'll need
to see the management server logs to see if any of the classes has
misbehaved or hasn't done what it's supposed to do. 

You can also enable trace level log for two classes in particular that
we're chasing here: AccountManagerImpl and ConfigurationServerImpl.

See #5 in the wiki https://cwiki.apache.org/confluence/x/5QL8AQ on how
to achieve this.

com.cloud.user.AccountManagerImpl
com.cloud.server.ConfigurationServerImpl

> that's it...
> 
> as a work around I assume I can open the unauthenticated api port
> and create a user (which I know the password for)...

Umm, the system user should also have been randomized credentials so
you won't be able to login. The security loophole here was fixed
sometime ago.

-- 
Prasanna.,

------------------------
Powered by BigRock.com


RE: Master build problem

Posted by Paul Angus <pa...@shapeblue.com>.
This was a completely fresh build from the 4.2 branch (oss).

I don't use dev cloud as it's not representative of a real environment. I ran:

yum install -y cloud-client             # run against local 4.2 repo
cloudstack-setup-databases cloud:cloud@$MYSQLIP --deploy-as=root:password
cloudstack-setup-management

that's it...

as a work around I assume I can open the unauthenticated api port and create a user (which I know the password for)...



-----Original Message-----
From: Prasanna Santhanam [mailto:tsp@apache.org]
Sent: 01 July 2013 07:53
To: dev@cloudstack.apache.org
Subject: Re: Master build problem

On Sun, Jun 30, 2013 at 07:14:38PM +0000, Paul Angus wrote:
> Hi Prasanna,
>
> Here is the section from the componentContext.xml file.  The
> username/password in the user table is admin / 0.724297075275608
>
> The state was is "disabled" by default I changed it to enabled but it didn't make a difference.

There is some kind of bug here. Can you tell us the steps to reproduce this from a fresh build? You will need to begin by wiping out the DB, doing the build, deploydb and a jetty:run.

What happens is that management server saves random values for user/password on startup. In another separate class it sets the password to default of admin/password based on the authenticator enabled. It looks like we randomized the password but failed to set it to defaults.
--
Prasanna.,

------------------------
Powered by BigRock.com


This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.


Re: Master build problem

Posted by Prasanna Santhanam <ts...@apache.org>.
On Sun, Jun 30, 2013 at 07:14:38PM +0000, Paul Angus wrote:
> Hi Prasanna,
> 
> Here is the section from the componentContext.xml file.  The username/password in the user table is admin / 0.724297075275608
> 
> The state was is "disabled" by default I changed it to enabled but it didn't make a difference.

There is some kind of bug here. Can you tell us the steps to reproduce
this from a fresh build? You will need to begin by wiping out the DB,
doing the build, deploydb and a jetty:run.

What happens is that management server saves random values for
user/password on startup. In another separate class it sets the
password to default of admin/password based on the authenticator
enabled. It looks like we randomized the password but failed to set it
to defaults.
-- 
Prasanna.,

------------------------
Powered by BigRock.com


RE: Master build problem

Posted by Paul Angus <pa...@shapeblue.com>.
Hi Prasanna,

Here is the section from the componentContext.xml file.  The username/password in the user table is admin / 0.724297075275608

The state was is "disabled" by default I changed it to enabled but it didn't make a difference.

 <bean id="userAuthenticators" class="com.cloud.utils.component.AdapterList">
    <property name="Adapters">
      <list>
          <ref bean="SHA256SaltedUserAuthenticator"/>
          <ref bean="MD5UserAuthenticator"/>
          <ref bean="LDAPUserAuthenticator"/>
          <ref bean="PlainTextUserAuthenticator"/>
      </list>
    </property>
  </bean>
  <bean id="userPasswordEncoders" class="com.cloud.utils.component.AdapterList">
    <property name="Adapters">
      <list>
          <ref bean="SHA256SaltedUserAuthenticator"/>
          <ref bean="MD5UserAuthenticator"/>
          <ref bean="LDAPUserAuthenticator"/>
          <ref bean="PlainTextUserAuthenticator"/>
      </list>
    </property>
  </bean>

-----Original Message-----
From: Prasanna Santhanam [mailto:tsp@apache.org]
Sent: 30 June 2013 17:50
To: dev@cloudstack.apache.org
Subject: Re: Master build problem

On Sun, Jun 30, 2013 at 06:47:22AM +0000, Paul Angus wrote:
> Is this fix in the new 4.2 branch?  I'm getting the following error
> when trying to log in to the management UI. (UI reports 'Invalid
> Username or Password')
>
> 2013-06-30 07:12:33,779 DEBUG [cloud.user.AccountManagerImpl]
> (catalina-exec-5:null) Attempting to log in user: admin in domain 1
> 2013-06-30 07:12:33,779 DEBUG
> [server.auth.SHA256SaltedUserAuthenticator] (catalina-exec-5:null)
> Retrieving user: admin
> 2013-06-30 07:12:33,782 WARN
> [server.auth.SHA256SaltedUserAuthenticator] (catalina-exec-5:null) The
> stored password for admin isn't in the right format for this
> authenticator
>

This sounds unrelated to the previous error described in this thread.

Did you redeploy the database? If not what are your passwords hashed as (MD5/SHA256/PlainText) in the cloud.account table? And what's in the componentContext.xml?  Specifically, the order of authenticators.

--
Prasanna.,

------------------------
Powered by BigRock.com


This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.


Re: Master build problem

Posted by Prasanna Santhanam <ts...@apache.org>.
On Sun, Jun 30, 2013 at 06:47:22AM +0000, Paul Angus wrote:
> Is this fix in the new 4.2 branch?  I'm getting the following error when trying to log in to the management UI. (UI reports 'Invalid Username or Password')
> 
> 2013-06-30 07:12:33,779 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-5:null) Attempting to log in user: admin in domain 1
> 2013-06-30 07:12:33,779 DEBUG [server.auth.SHA256SaltedUserAuthenticator] (catalina-exec-5:null) Retrieving user: admin
> 2013-06-30 07:12:33,782 WARN  [server.auth.SHA256SaltedUserAuthenticator] (catalina-exec-5:null) The stored password for admin isn't in the right format for this authenticator
> 

This sounds unrelated to the previous error described in this thread.

Did you redeploy the database? If not what are your passwords hashed
as (MD5/SHA256/PlainText) in the cloud.account table? And what's in
the componentContext.xml?  Specifically, the order of authenticators.

-- 
Prasanna.,

------------------------
Powered by BigRock.com


RE: Master build problem

Posted by Paul Angus <pa...@shapeblue.com>.
Is this fix in the new 4.2 branch?  I'm getting the following error when trying to log in to the management UI. (UI reports 'Invalid Username or Password')

2013-06-30 07:12:33,779 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-5:null) Attempting to log in user: admin in domain 1
2013-06-30 07:12:33,779 DEBUG [server.auth.SHA256SaltedUserAuthenticator] (catalina-exec-5:null) Retrieving user: admin
2013-06-30 07:12:33,782 WARN  [server.auth.SHA256SaltedUserAuthenticator] (catalina-exec-5:null) The stored password for admin isn't in the right format for this authenticator



Regards,

Paul Angus
S: +44 20 3603 0540 | M: +447711418784
paul.angus@shapeblue.com



-----Original Message-----
From: Soheil Eizadi [mailto:seizadi@infoblox.com]
Sent: 27 June 2013 20:17
To: dev@cloudstack.apache.org
Subject: RE: Master build problem

Hi Prasanna,
I am glad the problem is fixed on master. I will pull it next time I merge with master.
Thanks,
-Soheil
________________________________________
From: Prasanna Santhanam [tsp@apache.org]
Sent: Wednesday, June 26, 2013 9:47 PM
To: dev@cloudstack.apache.org
Subject: Re: Master build problem

Hiroaki fixed this with 39ef9240e87234afc2d4ddb37beaa63fe3240e4a. Do you have that commit SHA in your branch?

On Wed, Jun 26, 2013 at 06:45:20PM +0000, Soheil Eizadi wrote:
> I don't see a fix checked in for that, my merged branch is ahead of master. It looks like it is due to the SSP Plugin checkin yesterday. If I had to guess the component is not included in the client/pom.xml. I commented out the plugin  in my branch (removed it from componentContext.xml.in) and I can run the image now.
> -Soheil
>
> Administrators-MacBook-Pro-7:client seizadi$ pwd
> /Users/seizadi/cloudstack/infoblox_branch/cloudstack/client
>
> Administrators-MacBook-Pro-7:client seizadi$ fgrep "cloud-plugin-network" pom.xml
>       <artifactId>cloud-plugin-network-nvp</artifactId>
>       <artifactId>cloud-plugin-network-ovs</artifactId>
>       <artifactId>cloud-plugin-network-elb</artifactId>
>       <artifactId>cloud-plugin-network-vns</artifactId>
>       <artifactId>cloud-plugin-network-midonet</artifactId>
>       <artifactId>cloud-plugin-network-internallb</artifactId>
>       <artifactId>cloud-plugin-network-infoblox</artifactId>
>           <artifactId>cloud-plugin-network-f5</artifactId>
>           <artifactId>cloud-plugin-network-netscaler</artifactId>
>           <artifactId>cloud-plugin-network-srx</artifactId>
>           <artifactId>cloud-plugin-network-cisco-vnmc</artifactId>
>
> ________________________________________
> From: Min Chen [min.chen@citrix.com]
> Sent: Wednesday, June 26, 2013 11:07 AM
> To: dev@cloudstack.apache.org
> Subject: Re: Master build problem
>
> I got latest master and able to start MS. I think that Prasanna has
> fixed that with a later checkin.
>
> Thanks
> -min
>
> On 6/26/13 11:02 AM, "Soheil Eizadi" <se...@infoblox.com> wrote:
>
> >I merged the latest master into my branch and could not run it. I
> >switched to master branch and built it but can not run it either, has
> >anyone else seen this problem with sspCredentialDaoImpl?
> >
> >ERROR [web.context.ContextLoader] (main:) Context initialization
> >failed
> >org.springframework.beans.factory.BeanCreationException: Error
> >creating bean with name 'actionEventUtils': Injection of autowired
> >dependencies failed; nested exception is
> >org.springframework.beans.factory.BeanCreationException: Could not
> >autowire field: com.cloud.event.dao.EventDao
> >com.cloud.event.ActionEventUtils.eventDao; nested exception is
> >org.springframework.beans.factory.CannotLoadBeanClassException:
> >Cannot find class [com.cloud.network.dao.SspCredentialDaoImpl] for
> >bean with name 'sspCredentialDaoImpl' defined in class path resource
> >[componentContext.xml]; nested exception is
> >java.lang.ClassNotFoundException:
> >com.cloud.network.dao.SspCredentialDaoImpl
>

--
Prasanna.,

------------------------
Powered by BigRock.com


This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.


RE: Master build problem

Posted by Soheil Eizadi <se...@infoblox.com>.
Hi Prasanna,
I am glad the problem is fixed on master. I will pull it next time I merge with master.
Thanks,
-Soheil
________________________________________
From: Prasanna Santhanam [tsp@apache.org]
Sent: Wednesday, June 26, 2013 9:47 PM
To: dev@cloudstack.apache.org
Subject: Re: Master build problem

Hiroaki fixed this with 39ef9240e87234afc2d4ddb37beaa63fe3240e4a. Do
you have that commit SHA in your branch?

On Wed, Jun 26, 2013 at 06:45:20PM +0000, Soheil Eizadi wrote:
> I don't see a fix checked in for that, my merged branch is ahead of master. It looks like it is due to the SSP Plugin checkin yesterday. If I had to guess the component is not included in the client/pom.xml. I commented out the plugin  in my branch (removed it from componentContext.xml.in) and I can run the image now.
> -Soheil
>
> Administrators-MacBook-Pro-7:client seizadi$ pwd
> /Users/seizadi/cloudstack/infoblox_branch/cloudstack/client
>
> Administrators-MacBook-Pro-7:client seizadi$ fgrep "cloud-plugin-network" pom.xml
>       <artifactId>cloud-plugin-network-nvp</artifactId>
>       <artifactId>cloud-plugin-network-ovs</artifactId>
>       <artifactId>cloud-plugin-network-elb</artifactId>
>       <artifactId>cloud-plugin-network-vns</artifactId>
>       <artifactId>cloud-plugin-network-midonet</artifactId>
>       <artifactId>cloud-plugin-network-internallb</artifactId>
>       <artifactId>cloud-plugin-network-infoblox</artifactId>
>           <artifactId>cloud-plugin-network-f5</artifactId>
>           <artifactId>cloud-plugin-network-netscaler</artifactId>
>           <artifactId>cloud-plugin-network-srx</artifactId>
>           <artifactId>cloud-plugin-network-cisco-vnmc</artifactId>
>
> ________________________________________
> From: Min Chen [min.chen@citrix.com]
> Sent: Wednesday, June 26, 2013 11:07 AM
> To: dev@cloudstack.apache.org
> Subject: Re: Master build problem
>
> I got latest master and able to start MS. I think that Prasanna has fixed
> that with a later checkin.
>
> Thanks
> -min
>
> On 6/26/13 11:02 AM, "Soheil Eizadi" <se...@infoblox.com> wrote:
>
> >I merged the latest master into my branch and could not run it. I
> >switched to master branch and built it but can not run it either, has
> >anyone else seen this problem with sspCredentialDaoImpl?
> >
> >ERROR [web.context.ContextLoader] (main:) Context initialization failed
> >org.springframework.beans.factory.BeanCreationException: Error creating
> >bean with name 'actionEventUtils': Injection of autowired dependencies
> >failed; nested exception is
> >org.springframework.beans.factory.BeanCreationException: Could not
> >autowire field: com.cloud.event.dao.EventDao
> >com.cloud.event.ActionEventUtils.eventDao; nested exception is
> >org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
> >find class [com.cloud.network.dao.SspCredentialDaoImpl] for bean with
> >name 'sspCredentialDaoImpl' defined in class path resource
> >[componentContext.xml]; nested exception is
> >java.lang.ClassNotFoundException:
> >com.cloud.network.dao.SspCredentialDaoImpl
>

--
Prasanna.,

------------------------
Powered by BigRock.com


Re: Master build problem

Posted by Prasanna Santhanam <ts...@apache.org>.
Hiroaki fixed this with 39ef9240e87234afc2d4ddb37beaa63fe3240e4a. Do
you have that commit SHA in your branch?

On Wed, Jun 26, 2013 at 06:45:20PM +0000, Soheil Eizadi wrote:
> I don't see a fix checked in for that, my merged branch is ahead of master. It looks like it is due to the SSP Plugin checkin yesterday. If I had to guess the component is not included in the client/pom.xml. I commented out the plugin  in my branch (removed it from componentContext.xml.in) and I can run the image now.
> -Soheil
> 
> Administrators-MacBook-Pro-7:client seizadi$ pwd
> /Users/seizadi/cloudstack/infoblox_branch/cloudstack/client
> 
> Administrators-MacBook-Pro-7:client seizadi$ fgrep "cloud-plugin-network" pom.xml
>       <artifactId>cloud-plugin-network-nvp</artifactId>
>       <artifactId>cloud-plugin-network-ovs</artifactId>
>       <artifactId>cloud-plugin-network-elb</artifactId>
>       <artifactId>cloud-plugin-network-vns</artifactId>
>       <artifactId>cloud-plugin-network-midonet</artifactId>
>       <artifactId>cloud-plugin-network-internallb</artifactId>
>       <artifactId>cloud-plugin-network-infoblox</artifactId>
>           <artifactId>cloud-plugin-network-f5</artifactId>
>           <artifactId>cloud-plugin-network-netscaler</artifactId>
>           <artifactId>cloud-plugin-network-srx</artifactId>
>           <artifactId>cloud-plugin-network-cisco-vnmc</artifactId>
> 
> ________________________________________
> From: Min Chen [min.chen@citrix.com]
> Sent: Wednesday, June 26, 2013 11:07 AM
> To: dev@cloudstack.apache.org
> Subject: Re: Master build problem
> 
> I got latest master and able to start MS. I think that Prasanna has fixed
> that with a later checkin.
> 
> Thanks
> -min
> 
> On 6/26/13 11:02 AM, "Soheil Eizadi" <se...@infoblox.com> wrote:
> 
> >I merged the latest master into my branch and could not run it. I
> >switched to master branch and built it but can not run it either, has
> >anyone else seen this problem with sspCredentialDaoImpl?
> >
> >ERROR [web.context.ContextLoader] (main:) Context initialization failed
> >org.springframework.beans.factory.BeanCreationException: Error creating
> >bean with name 'actionEventUtils': Injection of autowired dependencies
> >failed; nested exception is
> >org.springframework.beans.factory.BeanCreationException: Could not
> >autowire field: com.cloud.event.dao.EventDao
> >com.cloud.event.ActionEventUtils.eventDao; nested exception is
> >org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
> >find class [com.cloud.network.dao.SspCredentialDaoImpl] for bean with
> >name 'sspCredentialDaoImpl' defined in class path resource
> >[componentContext.xml]; nested exception is
> >java.lang.ClassNotFoundException:
> >com.cloud.network.dao.SspCredentialDaoImpl
> 

-- 
Prasanna.,

------------------------
Powered by BigRock.com


RE: Master build problem

Posted by Soheil Eizadi <se...@infoblox.com>.
I don't see a fix checked in for that, my merged branch is ahead of master. It looks like it is due to the SSP Plugin checkin yesterday. If I had to guess the component is not included in the client/pom.xml. I commented out the plugin  in my branch (removed it from componentContext.xml.in) and I can run the image now.
-Soheil

Administrators-MacBook-Pro-7:client seizadi$ pwd
/Users/seizadi/cloudstack/infoblox_branch/cloudstack/client

Administrators-MacBook-Pro-7:client seizadi$ fgrep "cloud-plugin-network" pom.xml
      <artifactId>cloud-plugin-network-nvp</artifactId>
      <artifactId>cloud-plugin-network-ovs</artifactId>
      <artifactId>cloud-plugin-network-elb</artifactId>
      <artifactId>cloud-plugin-network-vns</artifactId>
      <artifactId>cloud-plugin-network-midonet</artifactId>
      <artifactId>cloud-plugin-network-internallb</artifactId>
      <artifactId>cloud-plugin-network-infoblox</artifactId>
          <artifactId>cloud-plugin-network-f5</artifactId>
          <artifactId>cloud-plugin-network-netscaler</artifactId>
          <artifactId>cloud-plugin-network-srx</artifactId>
          <artifactId>cloud-plugin-network-cisco-vnmc</artifactId>

________________________________________
From: Min Chen [min.chen@citrix.com]
Sent: Wednesday, June 26, 2013 11:07 AM
To: dev@cloudstack.apache.org
Subject: Re: Master build problem

I got latest master and able to start MS. I think that Prasanna has fixed
that with a later checkin.

Thanks
-min

On 6/26/13 11:02 AM, "Soheil Eizadi" <se...@infoblox.com> wrote:

>I merged the latest master into my branch and could not run it. I
>switched to master branch and built it but can not run it either, has
>anyone else seen this problem with sspCredentialDaoImpl?
>
>ERROR [web.context.ContextLoader] (main:) Context initialization failed
>org.springframework.beans.factory.BeanCreationException: Error creating
>bean with name 'actionEventUtils': Injection of autowired dependencies
>failed; nested exception is
>org.springframework.beans.factory.BeanCreationException: Could not
>autowire field: com.cloud.event.dao.EventDao
>com.cloud.event.ActionEventUtils.eventDao; nested exception is
>org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
>find class [com.cloud.network.dao.SspCredentialDaoImpl] for bean with
>name 'sspCredentialDaoImpl' defined in class path resource
>[componentContext.xml]; nested exception is
>java.lang.ClassNotFoundException:
>com.cloud.network.dao.SspCredentialDaoImpl


Re: Master build problem

Posted by Min Chen <mi...@citrix.com>.
I got latest master and able to start MS. I think that Prasanna has fixed
that with a later checkin.

Thanks
-min

On 6/26/13 11:02 AM, "Soheil Eizadi" <se...@infoblox.com> wrote:

>I merged the latest master into my branch and could not run it. I
>switched to master branch and built it but can not run it either, has
>anyone else seen this problem with sspCredentialDaoImpl?
>
>ERROR [web.context.ContextLoader] (main:) Context initialization failed
>org.springframework.beans.factory.BeanCreationException: Error creating
>bean with name 'actionEventUtils': Injection of autowired dependencies
>failed; nested exception is
>org.springframework.beans.factory.BeanCreationException: Could not
>autowire field: com.cloud.event.dao.EventDao
>com.cloud.event.ActionEventUtils.eventDao; nested exception is
>org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
>find class [com.cloud.network.dao.SspCredentialDaoImpl] for bean with
>name 'sspCredentialDaoImpl' defined in class path resource
>[componentContext.xml]; nested exception is
>java.lang.ClassNotFoundException:
>com.cloud.network.dao.SspCredentialDaoImpl