Re: MS fails to start due - Incorrect code version

2013-08-23 Thread SuichII, Christopher
Actually, this ended up being my fault. It was another problem related to my 
endeavors to hot deploy an API plugin. Ultimately it was a problem because 
parts of CS were being bundled in my jar due to a bad maven package command, so 
the version in the jar was my java version.

This is one of the many gotchas that I should be writing up at some point about 
hot deploying API plugins in CloudStack.

Sorry for bothering everyone over something that was my fault. =)

-- 
Chris Suich
chris.su...@netapp.com
NetApp Software Engineer
Data Center Platforms – Cloud Solutions
Citrix, Cisco  Red Hat

On Aug 20, 2013, at 6:53 PM, Toshiaki Hatano toshiaki.hat...@verio.net wrote:

 It looks chicken and egg situation.
 
 Bean injection requires 4.3 upgraded database.
 DB upgrade process executed by DatabaseUpgradeChecker runs after bean 
 injection.
 
 
 At least I found a workaround, upgrade DB by hand like below.
 
 $ cloudstack-setup-databases cloud:cloud@localhost --deploy-as root
 $ cloudstack-setup-management
 $ service cloudstack-management stop
 $ mysql -u root cloud  setup/db/db/schema-40to410.sql
 $ mysql -u root cloud  setup/db/db/schema-40to410-cleanup.sql
 $ mysql -u root cloud  setup/db/db/schema-410to420.sql
 $ mysql -u root cloud  setup/db/db/schema-410to420-cleanup.sql
 $ mysql -u root cloud  setup/db/db/schema-420to430.sql
 $ mysql -u root cloud  setup/db/db/schema-420to430-cleanup.sql   
 $ mysql -u root cloud -e 'UPDATE version SET version=4.3.0;'
 $ service cloudstack-management start
 
 I hope it helps.
 
 Thanks,
 --
 Toshiaki
 
 -Original Message-
 From: Toshiaki Hatano [mailto:toshiaki.hat...@verio.net] 
 Sent: Tuesday, August 20, 2013 15:59
 To: dev@cloudstack.apache.org
 Subject: RE: MS fails to start due - Incorrect code version
 
 I'm on 61c5b4bf7520080d88ae5a9aad38dee7e0348fa2 and got same error.
 
 I've wiped and redeployed DB by using 'cloud-setup-database' command, then I 
 confirmed there're no 'default_value' column in table 'configuration'.
 
 The column should be created by schema-420to430.sql.
 So, for some reason, the SQL isn't executed by 'cloud-setup-database'.
 
 --
 Toshiaki
 
 -Original Message-
 From: SuichII, Christopher [mailto:chris.su...@netapp.com]
 Sent: Tuesday, August 20, 2013 09:00
 To: dev@cloudstack.apache.org
 Subject: Re: MS fails to start due - Incorrect code version
 
 I was on cc18ca79fc6d58fb639ffbb455791caeb021589a and tried rolling back to a 
 commit I have been able to deploy with before 
 (b727001f483012012c061e8c352c1ebfe7d3fecd) and got the same result.
 On Aug 20, 2013, at 10:43 AM, Prasanna Santhanam t...@apache.org wrote:
 
 What's your HEAD? I'm on 3a29c734475184cf28135acaca271fea1c90554a and 
 don't see a problm starting up the server. I haven't configured my 
 zones/pods etc. Also I started with a fresh DB.
 
 On Tue, Aug 20, 2013 at 01:47:50PM +, SuichII, Christopher wrote:
 Master.
 
 Then, after commenting out the offending code, rebuilding, redeploying the 
 db and rerunning, this exception is thrown when attempting to start the MS:
 
 ERROR [o.s.w.c.ContextLoader] (main:null) Context initialization 
 failed
 org.springframework.beans.factory.BeanCreationException: Error creating 
 bean with name 'dataMotionServiceImpl': Injection of autowired dependencies 
 failed; nested exception is 
 org.springframework.beans.factory.BeanCreationException: Could not autowire 
 field: java.util.List 
 org.apache.cloudstack.storage.motion.DataMotionServiceImpl.strategies; 
 nested exception is 
 org.springframework.beans.factory.BeanCreationException: Error creating 
 bean with name 'ancientDataMotionStrategy': Injection of autowired 
 dependencies failed; nested exception is 
 org.springframework.beans.factory.BeanCreationException: Could not autowire 
 field: 
 org.apache.cloudstack.engine.subsystem.api.storage.StorageCacheManager 
 org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.cacheMgr; 
 nested exception is 
 org.springframework.beans.factory.BeanCreationException: Error creating 
 bean with name 'storageCacheManagerImpl': Injection of autowired 
 dependencies failed; nested exception is 
 org.springframework.beans.factory.BeanCreationException: Could not autowire 
 field: 
 org.apache.cloudstack.storage.cache.manager.StorageCacheReplacementAlgorithm
  
 org.apache.cloudstack.storage.cache.manager.StorageCacheManagerImpl.cacheReplacementAlgorithm;
  nested exception is 
 org.springframework.beans.factory.BeanCreationException: Error creating 
 bean with name 'StorageCacheReplacementAlgorithm': Invocation of init 
 method failed; nested exception is 
 com.cloud.utils.exception.CloudRuntimeException: DB Exception on: 
 com.mysql.jdbc.JDBC4PreparedStatement@29f9aaf0: SELECT 
 configuration.instance, configuration.component, configuration.name, 
 configuration.value, configuration.default_value, 
 configuration.description, configuration.category, 
 configuration.is_dynamic, configuration.scope, configuration.updated

Re: MS fails to start due - Incorrect code version

2013-08-23 Thread Animesh Chaturvedi
Yes no checkins to 4.2 branch. You can send an email to mailing list with 
subject prefix [ACS42][Patch] for requesting a patch to be included. I will 
review and pull in. I already built RC and would be sending out Vote email 
shortly after test completion

Thanks
Animesh

On Aug 20, 2013, at 7:11 AM, Sudha Ponnaganti sudha.ponnaga...@citrix.com 
wrote:

 Unless you are fixing a defect for 4.2 please refrain from checking new code 
 in to 4.2 at this time. RC is supposed to be cut yesterday and will be done 
 in any minute. Any new code would introduce stability issues. 
 Appreciate all of your understanding at this time.  
 
 Thanks
 /Sudha
 
 -Original Message-
 From: SuichII, Christopher [mailto:chris.su...@netapp.com] 
 Sent: Tuesday, August 20, 2013 6:58 AM
 To: dev@cloudstack.apache.org
 Subject: Re: MS fails to start due - Incorrect code version
 
 I've made some contributions to the UI which are only on master. I could 
 cherry pick them into 4.2 locally, but I'd like to avoid doing that.
 
 On Aug 20, 2013, at 9:50 AM, Nitin Mehta nitin.me...@citrix.com wrote:
 
 I would suggest playing around with 4.2 branch, should be much more 
 stable
 
 On 20/08/13 7:18 PM, SuichII, Christopher chris.su...@netapp.com wrote:
 
 Master.
 
 Then, after commenting out the offending code, rebuilding, 
 redeploying the db and rerunning, this exception is thrown when 
 attempting to start the MS:
 
 ERROR [o.s.w.c.ContextLoader] (main:null) Context initialization 
 failed
 org.springframework.beans.factory.BeanCreationException: Error 
 creating bean with name 'dataMotionServiceImpl': Injection of 
 autowired dependencies failed; nested exception is
 org.springframework.beans.factory.BeanCreationException: Could not 
 autowire field: java.util.List 
 org.apache.cloudstack.storage.motion.DataMotionServiceImpl.strategies
 ;
 nested exception is
 org.springframework.beans.factory.BeanCreationException: Error 
 creating bean with name 'ancientDataMotionStrategy': Injection of 
 autowired dependencies failed; nested exception is
 org.springframework.beans.factory.BeanCreationException: Could not 
 autowire field:
 org.apache.cloudstack.engine.subsystem.api.storage.StorageCacheManage
 r 
 org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.cacheM
 gr;
 nested exception is
 org.springframework.beans.factory.BeanCreationException: Error 
 creating bean with name 'storageCacheManagerImpl': Injection of 
 autowired dependencies failed; nested exception is
 org.springframework.beans.factory.BeanCreationException: Could not 
 autowire field:
 org.apache.cloudstack.storage.cache.manager.StorageCacheReplacementAl
 gorit
 hm
 org.apache.cloudstack.storage.cache.manager.StorageCacheManagerImpl.c
 acheR eplacementAlgorithm; nested exception is
 org.springframework.beans.factory.BeanCreationException: Error 
 creating bean with name 'StorageCacheReplacementAlgorithm': 
 Invocation of init method failed; nested exception is
 com.cloud.utils.exception.CloudRuntimeException: DB Exception on:
 com.mysql.jdbc.JDBC4PreparedStatement@29f9aaf0: SELECT 
 configuration.instance, configuration.component, configuration.name, 
 configuration.value, configuration.default_value, 
 configuration.description, configuration.category, 
 configuration.is_dynamic, configuration.scope, configuration.updated 
 FROM configuration WHERE configuration.name = 
 _binary'storage.cache.replacement.lru.interval'  ORDER BY RAND() LIMIT 1
at
 org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP
 ostPr 
 ocessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcesso
 r.jav
 a:287)
at
 org.springframework.beans.factory.support.AbstractAutowireCapableBean
 Facto
 ry.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
at
 org.springframework.beans.factory.support.AbstractAutowireCapableBean
 Facto
 ry.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at
 org.springframework.beans.factory.support.AbstractAutowireCapableBean
 Facto
 ry.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
 org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
 ject(
 AbstractBeanFactory.java:294)
at
 org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
 y.get
 Singleton(DefaultSingletonBeanRegistry.java:225)
at
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
 an(Ab
 stractBeanFactory.java:291)
at
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean
 (Abst
 ractBeanFactory.java:193)
at
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
 an(Ab
 stractBeanFactory.java:284)
at
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean
 (Abst
 ractBeanFactory.java:193)
at
 org.springframework.beans.factory.support.DefaultListableBeanFactory.
 preIn
 stantiateSingletons(DefaultListableBeanFactory.java:609)
at
 org.springframework.context.support.AbstractApplicationContext.finish

Re: MS fails to start due - Incorrect code version

2013-08-20 Thread Chip Childers
What branch?


On Tue, Aug 20, 2013 at 8:48 AM, SuichII, Christopher 
chris.su...@netapp.com wrote:

 I started a fresh clean install this morning and am unable to start the
 management server:

 Error [c.c.u.c.ComponentContext] (Timer-3:null) System integrity check
 failed. Refuse to startup
 com.cloud.utils.exception.CloudRuntimeException: Database version 4.3.0 is
 higher than management software version 1.7.0_19
 at
 com.cloud.upgrade.DatabaseUpgradeChecker.check(DatabaseUpgradeChecker.java:384)
 …


 So, it appears that the DatabaseUpgradeChecker is actually looking at my
 Java JDK version, not the code version. Is this something wrong with my
 environment setup?



Re: MS fails to start due - Incorrect code version

2013-08-20 Thread SuichII, Christopher
Master.

Then, after commenting out the offending code, rebuilding, redeploying the db 
and rerunning, this exception is thrown when attempting to start the MS:

ERROR [o.s.w.c.ContextLoader] (main:null) Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'dataMotionServiceImpl': Injection of autowired dependencies failed; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Could not autowire field: java.util.List 
org.apache.cloudstack.storage.motion.DataMotionServiceImpl.strategies; nested 
exception is org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'ancientDataMotionStrategy': Injection of autowired 
dependencies failed; nested exception is 
org.springframework.beans.factory.BeanCreationException: Could not autowire 
field: org.apache.cloudstack.engine.subsystem.api.storage.StorageCacheManager 
org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.cacheMgr; nested 
exception is org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'storageCacheManagerImpl': Injection of autowired 
dependencies failed; nested exception is 
org.springframework.beans.factory.BeanCreationException: Could not autowire 
field: 
org.apache.cloudstack.storage.cache.manager.StorageCacheReplacementAlgorithm 
org.apache.cloudstack.storage.cache.manager.StorageCacheManagerImpl.cacheReplacementAlgorithm;
 nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'StorageCacheReplacementAlgorithm': Invocation of 
init method failed; nested exception is 
com.cloud.utils.exception.CloudRuntimeException: DB Exception on: 
com.mysql.jdbc.JDBC4PreparedStatement@29f9aaf0: SELECT configuration.instance, 
configuration.component, configuration.name, configuration.value, 
configuration.default_value, configuration.description, configuration.category, 
configuration.is_dynamic, configuration.scope, configuration.updated FROM 
configuration WHERE configuration.name = 
_binary'storage.cache.replacement.lru.interval'  ORDER BY RAND() LIMIT 1
at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
at 
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at 
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
at 
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
at 
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
at 
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at 

Re: MS fails to start due - Incorrect code version

2013-08-20 Thread Nitin Mehta
I would suggest playing around with 4.2 branch, should be much more stable

On 20/08/13 7:18 PM, SuichII, Christopher chris.su...@netapp.com wrote:

Master.

Then, after commenting out the offending code, rebuilding, redeploying
the db and rerunning, this exception is thrown when attempting to start
the MS:

ERROR [o.s.w.c.ContextLoader] (main:null) Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'dataMotionServiceImpl': Injection of autowired
dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Could not
autowire field: java.util.List
org.apache.cloudstack.storage.motion.DataMotionServiceImpl.strategies;
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'ancientDataMotionStrategy': Injection of autowired
dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Could not
autowire field: 
org.apache.cloudstack.engine.subsystem.api.storage.StorageCacheManager
org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.cacheMgr;
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'storageCacheManagerImpl': Injection of autowired
dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Could not
autowire field: 
org.apache.cloudstack.storage.cache.manager.StorageCacheReplacementAlgorit
hm 
org.apache.cloudstack.storage.cache.manager.StorageCacheManagerImpl.cacheR
eplacementAlgorithm; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'StorageCacheReplacementAlgorithm': Invocation of init
method failed; nested exception is
com.cloud.utils.exception.CloudRuntimeException: DB Exception on:
com.mysql.jdbc.JDBC4PreparedStatement@29f9aaf0: SELECT
configuration.instance, configuration.component, configuration.name,
configuration.value, configuration.default_value,
configuration.description, configuration.category,
configuration.is_dynamic, configuration.scope, configuration.updated FROM
configuration WHERE configuration.name =
_binary'storage.cache.replacement.lru.interval'  ORDER BY RAND() LIMIT 1
   at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostPr
ocessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.jav
a:287)
   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
ry.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
ry.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
ry.createBean(AbstractAutowireCapableBeanFactory.java:456)
   at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
AbstractBeanFactory.java:294)
   at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.get
Singleton(DefaultSingletonBeanRegistry.java:225)
   at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Ab
stractBeanFactory.java:291)
   at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abst
ractBeanFactory.java:193)
   at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Ab
stractBeanFactory.java:284)
   at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abst
ractBeanFactory.java:193)
   at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preIn
stantiateSingletons(DefaultListableBeanFactory.java:609)
   at 
org.springframework.context.support.AbstractApplicationContext.finishBeanF
actoryInitialization(AbstractApplicationContext.java:918)
   at 
org.springframework.context.support.AbstractApplicationContext.refresh(Abs
tractApplicationContext.java:469)
   at 
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplic
ationContext(ContextLoader.java:383)
   at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(Co
ntextLoader.java:283)
   at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(C
ontextLoaderListener.java:111)
   at 
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:
549)
   at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
   at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:128
2)
   at 
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
   at 
 org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
   at 
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWeb
AppContext.java:115)
   at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
   at 

Re: MS fails to start due - Incorrect code version

2013-08-20 Thread SuichII, Christopher
I've made some contributions to the UI which are only on master. I could cherry 
pick them into 4.2 locally, but I'd like to avoid doing that.

On Aug 20, 2013, at 9:50 AM, Nitin Mehta nitin.me...@citrix.com wrote:

 I would suggest playing around with 4.2 branch, should be much more stable
 
 On 20/08/13 7:18 PM, SuichII, Christopher chris.su...@netapp.com wrote:
 
 Master.
 
 Then, after commenting out the offending code, rebuilding, redeploying
 the db and rerunning, this exception is thrown when attempting to start
 the MS:
 
 ERROR [o.s.w.c.ContextLoader] (main:null) Context initialization failed
 org.springframework.beans.factory.BeanCreationException: Error creating
 bean with name 'dataMotionServiceImpl': Injection of autowired
 dependencies failed; nested exception is
 org.springframework.beans.factory.BeanCreationException: Could not
 autowire field: java.util.List
 org.apache.cloudstack.storage.motion.DataMotionServiceImpl.strategies;
 nested exception is
 org.springframework.beans.factory.BeanCreationException: Error creating
 bean with name 'ancientDataMotionStrategy': Injection of autowired
 dependencies failed; nested exception is
 org.springframework.beans.factory.BeanCreationException: Could not
 autowire field: 
 org.apache.cloudstack.engine.subsystem.api.storage.StorageCacheManager
 org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.cacheMgr;
 nested exception is
 org.springframework.beans.factory.BeanCreationException: Error creating
 bean with name 'storageCacheManagerImpl': Injection of autowired
 dependencies failed; nested exception is
 org.springframework.beans.factory.BeanCreationException: Could not
 autowire field: 
 org.apache.cloudstack.storage.cache.manager.StorageCacheReplacementAlgorit
 hm 
 org.apache.cloudstack.storage.cache.manager.StorageCacheManagerImpl.cacheR
 eplacementAlgorithm; nested exception is
 org.springframework.beans.factory.BeanCreationException: Error creating
 bean with name 'StorageCacheReplacementAlgorithm': Invocation of init
 method failed; nested exception is
 com.cloud.utils.exception.CloudRuntimeException: DB Exception on:
 com.mysql.jdbc.JDBC4PreparedStatement@29f9aaf0: SELECT
 configuration.instance, configuration.component, configuration.name,
 configuration.value, configuration.default_value,
 configuration.description, configuration.category,
 configuration.is_dynamic, configuration.scope, configuration.updated FROM
 configuration WHERE configuration.name =
 _binary'storage.cache.replacement.lru.interval'  ORDER BY RAND() LIMIT 1
  at 
 org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostPr
 ocessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.jav
 a:287)
  at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
 ry.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
  at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
 ry.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
  at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
 ry.createBean(AbstractAutowireCapableBeanFactory.java:456)
  at 
 org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
 AbstractBeanFactory.java:294)
  at 
 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.get
 Singleton(DefaultSingletonBeanRegistry.java:225)
  at 
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Ab
 stractBeanFactory.java:291)
  at 
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abst
 ractBeanFactory.java:193)
  at 
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Ab
 stractBeanFactory.java:284)
  at 
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abst
 ractBeanFactory.java:193)
  at 
 org.springframework.beans.factory.support.DefaultListableBeanFactory.preIn
 stantiateSingletons(DefaultListableBeanFactory.java:609)
  at 
 org.springframework.context.support.AbstractApplicationContext.finishBeanF
 actoryInitialization(AbstractApplicationContext.java:918)
  at 
 org.springframework.context.support.AbstractApplicationContext.refresh(Abs
 tractApplicationContext.java:469)
  at 
 org.springframework.web.context.ContextLoader.configureAndRefreshWebApplic
 ationContext(ContextLoader.java:383)
  at 
 org.springframework.web.context.ContextLoader.initWebApplicationContext(Co
 ntextLoader.java:283)
  at 
 org.springframework.web.context.ContextLoaderListener.contextInitialized(C
 ontextLoaderListener.java:111)
  at 
 org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:
 549)
  at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
  at 
 org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:128
 2)
  at 
 org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
  at 
 

RE: MS fails to start due - Incorrect code version

2013-08-20 Thread Sudha Ponnaganti
Unless you are fixing a defect for 4.2 please refrain from checking new code in 
to 4.2 at this time. RC is supposed to be cut yesterday and will be done in any 
minute. Any new code would introduce stability issues. 
Appreciate all of your understanding at this time.  

Thanks
/Sudha

-Original Message-
From: SuichII, Christopher [mailto:chris.su...@netapp.com] 
Sent: Tuesday, August 20, 2013 6:58 AM
To: dev@cloudstack.apache.org
Subject: Re: MS fails to start due - Incorrect code version

I've made some contributions to the UI which are only on master. I could cherry 
pick them into 4.2 locally, but I'd like to avoid doing that.

On Aug 20, 2013, at 9:50 AM, Nitin Mehta nitin.me...@citrix.com wrote:

 I would suggest playing around with 4.2 branch, should be much more 
 stable
 
 On 20/08/13 7:18 PM, SuichII, Christopher chris.su...@netapp.com wrote:
 
 Master.
 
 Then, after commenting out the offending code, rebuilding, 
 redeploying the db and rerunning, this exception is thrown when 
 attempting to start the MS:
 
 ERROR [o.s.w.c.ContextLoader] (main:null) Context initialization 
 failed
 org.springframework.beans.factory.BeanCreationException: Error 
 creating bean with name 'dataMotionServiceImpl': Injection of 
 autowired dependencies failed; nested exception is
 org.springframework.beans.factory.BeanCreationException: Could not 
 autowire field: java.util.List 
 org.apache.cloudstack.storage.motion.DataMotionServiceImpl.strategies
 ;
 nested exception is
 org.springframework.beans.factory.BeanCreationException: Error 
 creating bean with name 'ancientDataMotionStrategy': Injection of 
 autowired dependencies failed; nested exception is
 org.springframework.beans.factory.BeanCreationException: Could not 
 autowire field:
 org.apache.cloudstack.engine.subsystem.api.storage.StorageCacheManage
 r 
 org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.cacheM
 gr;
 nested exception is
 org.springframework.beans.factory.BeanCreationException: Error 
 creating bean with name 'storageCacheManagerImpl': Injection of 
 autowired dependencies failed; nested exception is
 org.springframework.beans.factory.BeanCreationException: Could not 
 autowire field:
 org.apache.cloudstack.storage.cache.manager.StorageCacheReplacementAl
 gorit
 hm
 org.apache.cloudstack.storage.cache.manager.StorageCacheManagerImpl.c
 acheR eplacementAlgorithm; nested exception is
 org.springframework.beans.factory.BeanCreationException: Error 
 creating bean with name 'StorageCacheReplacementAlgorithm': 
 Invocation of init method failed; nested exception is
 com.cloud.utils.exception.CloudRuntimeException: DB Exception on:
 com.mysql.jdbc.JDBC4PreparedStatement@29f9aaf0: SELECT 
 configuration.instance, configuration.component, configuration.name, 
 configuration.value, configuration.default_value, 
 configuration.description, configuration.category, 
 configuration.is_dynamic, configuration.scope, configuration.updated 
 FROM configuration WHERE configuration.name = 
 _binary'storage.cache.replacement.lru.interval'  ORDER BY RAND() LIMIT 1
  at
 org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP
 ostPr 
 ocessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcesso
 r.jav
 a:287)
  at
 org.springframework.beans.factory.support.AbstractAutowireCapableBean
 Facto
 ry.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
  at
 org.springframework.beans.factory.support.AbstractAutowireCapableBean
 Facto
 ry.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
  at
 org.springframework.beans.factory.support.AbstractAutowireCapableBean
 Facto
 ry.createBean(AbstractAutowireCapableBeanFactory.java:456)
  at
 org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
 ject(
 AbstractBeanFactory.java:294)
  at
 org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
 y.get
 Singleton(DefaultSingletonBeanRegistry.java:225)
  at
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
 an(Ab
 stractBeanFactory.java:291)
  at
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean
 (Abst
 ractBeanFactory.java:193)
  at
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
 an(Ab
 stractBeanFactory.java:284)
  at
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean
 (Abst
 ractBeanFactory.java:193)
  at
 org.springframework.beans.factory.support.DefaultListableBeanFactory.
 preIn
 stantiateSingletons(DefaultListableBeanFactory.java:609)
  at
 org.springframework.context.support.AbstractApplicationContext.finish
 BeanF
 actoryInitialization(AbstractApplicationContext.java:918)
  at
 org.springframework.context.support.AbstractApplicationContext.refres
 h(Abs
 tractApplicationContext.java:469)
  at
 org.springframework.web.context.ContextLoader.configureAndRefreshWebA
 pplic
 ationContext(ContextLoader.java:383

Re: MS fails to start due - Incorrect code version

2013-08-20 Thread SuichII, Christopher
Sorry for not being clear, I have no intentions of checking any code in to 4.2. 
I was simply saying that the only way for me to really work against the 4.2 
branch would be to pull in my UI changes locally. Either way, that would not be 
ideal for me - I would like to be working against master.

On Aug 20, 2013, at 10:10 AM, Sudha Ponnaganti 
sudha.ponnaga...@citrix.commailto:sudha.ponnaga...@citrix.com wrote:

Unless you are fixing a defect for 4.2 please refrain from checking new code in 
to 4.2 at this time. RC is supposed to be cut yesterday and will be done in any 
minute. Any new code would introduce stability issues.
Appreciate all of your understanding at this time.

Thanks
/Sudha

-Original Message-
From: SuichII, Christopher [mailto:chris.su...@netapp.comhttp://netapp.com]
Sent: Tuesday, August 20, 2013 6:58 AM
To: dev@cloudstack.apache.orgmailto:dev@cloudstack.apache.org
Subject: Re: MS fails to start due - Incorrect code version

I've made some contributions to the UI which are only on master. I could cherry 
pick them into 4.2 locally, but I'd like to avoid doing that.

On Aug 20, 2013, at 9:50 AM, Nitin Mehta 
nitin.me...@citrix.commailto:nitin.me...@citrix.com wrote:

I would suggest playing around with 4.2 branch, should be much more
stable

On 20/08/13 7:18 PM, SuichII, Christopher 
chris.su...@netapp.commailto:chris.su...@netapp.com wrote:

Master.

Then, after commenting out the offending code, rebuilding,
redeploying the db and rerunning, this exception is thrown when
attempting to start the MS:

ERROR [o.s.w.c.ContextLoader] (main:null) Context initialization
failed
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'dataMotionServiceImpl': Injection of
autowired dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Could not
autowire field: java.util.List
org.apache.cloudstack.storage.motion.DataMotionServiceImpl.strategies
;
nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'ancientDataMotionStrategy': Injection of
autowired dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Could not
autowire field:
org.apache.cloudstack.engine.subsystem.api.storage.StorageCacheManage
r
org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.cacheM
gr;
nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'storageCacheManagerImpl': Injection of
autowired dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Could not
autowire field:
org.apache.cloudstack.storage.cache.manager.StorageCacheReplacementAl
gorit
hm
org.apache.cloudstack.storage.cache.manager.StorageCacheManagerImpl.c
acheR eplacementAlgorithm; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'StorageCacheReplacementAlgorithm':
Invocation of init method failed; nested exception is
com.cloud.utils.exception.CloudRuntimeException: DB Exception on:
com.mysql.jdbc.JDBC4PreparedStatement@29f9aaf0: SELECT
configuration.instance, configuration.component, configuration.name,
configuration.value, configuration.default_value,
configuration.description, configuration.category,
configuration.ishttp://configuration.is_dynamic, configuration.scope, 
configuration.updated
FROM configuration WHERE configuration.name =
_binary'storage.cache.replacement.lru.interval'  ORDER BY RAND() LIMIT 1
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP
ostPr
ocessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcesso
r.jav
a:287)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Facto
ry.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Facto
ry.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Facto
ry.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(
AbstractBeanFactory.java:294)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.get
Singleton(DefaultSingletonBeanRegistry.java:225)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(Ab
stractBeanFactory.java:291)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(Abst
ractBeanFactory.java:193)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(Ab
stractBeanFactory.java:284)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(Abst
ractBeanFactory.java:193)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.
preIn
stantiateSingletons(DefaultListableBeanFactory.java:609

Re: MS fails to start due - Incorrect code version

2013-08-20 Thread Prasanna Santhanam
What's your HEAD? I'm on 3a29c734475184cf28135acaca271fea1c90554a and
don't see a problm starting up the server. I haven't configured my
zones/pods etc. Also I started with a fresh DB.

On Tue, Aug 20, 2013 at 01:47:50PM +, SuichII, Christopher wrote:
 Master.
 
 Then, after commenting out the offending code, rebuilding, redeploying the db 
 and rerunning, this exception is thrown when attempting to start the MS:
 
 ERROR [o.s.w.c.ContextLoader] (main:null) Context initialization failed
 org.springframework.beans.factory.BeanCreationException: Error creating bean 
 with name 'dataMotionServiceImpl': Injection of autowired dependencies 
 failed; nested exception is 
 org.springframework.beans.factory.BeanCreationException: Could not autowire 
 field: java.util.List 
 org.apache.cloudstack.storage.motion.DataMotionServiceImpl.strategies; nested 
 exception is org.springframework.beans.factory.BeanCreationException: Error 
 creating bean with name 'ancientDataMotionStrategy': Injection of autowired 
 dependencies failed; nested exception is 
 org.springframework.beans.factory.BeanCreationException: Could not autowire 
 field: org.apache.cloudstack.engine.subsystem.api.storage.StorageCacheManager 
 org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.cacheMgr; 
 nested exception is org.springframework.beans.factory.BeanCreationException: 
 Error creating bean with name 'storageCacheManagerImpl': Injection of 
 autowired dependencies failed; nested exception is 
 org.springframework.beans.factory.BeanCreationException: Could not autowire 
 field: 
 org.apache.cloudstack.storage.cache.manager.StorageCacheReplacementAlgorithm 
 org.apache.cloudstack.storage.cache.manager.StorageCacheManagerImpl.cacheReplacementAlgorithm;
  nested exception is org.springframework.beans.factory.BeanCreationException: 
 Error creating bean with name 'StorageCacheReplacementAlgorithm': Invocation 
 of init method failed; nested exception is 
 com.cloud.utils.exception.CloudRuntimeException: DB Exception on: 
 com.mysql.jdbc.JDBC4PreparedStatement@29f9aaf0: SELECT 
 configuration.instance, configuration.component, configuration.name, 
 configuration.value, configuration.default_value, configuration.description, 
 configuration.category, configuration.is_dynamic, configuration.scope, 
 configuration.updated FROM configuration WHERE configuration.name = 
 _binary'storage.cache.replacement.lru.interval'  ORDER BY RAND() LIMIT 1
   at 
 org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
   at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
   at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
   at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
   at 
 org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
   at 
 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
   at 
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
   at 
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
   at 
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284)
   at 
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
   at 
 org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
   at 
 org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
   at 
 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
   at 
 org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
   at 
 org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
   at 
 org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
   at 
 org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
   at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
   at 
 org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
   at 
 org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
   at 
 org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
   at 
 

Re: MS fails to start due - Incorrect code version

2013-08-20 Thread SuichII, Christopher
I was on cc18ca79fc6d58fb639ffbb455791caeb021589a and tried rolling back to a 
commit I have been able to deploy with before 
(b727001f483012012c061e8c352c1ebfe7d3fecd) and got the same result.
On Aug 20, 2013, at 10:43 AM, Prasanna Santhanam t...@apache.org wrote:

 What's your HEAD? I'm on 3a29c734475184cf28135acaca271fea1c90554a and
 don't see a problm starting up the server. I haven't configured my
 zones/pods etc. Also I started with a fresh DB.
 
 On Tue, Aug 20, 2013 at 01:47:50PM +, SuichII, Christopher wrote:
 Master.
 
 Then, after commenting out the offending code, rebuilding, redeploying the 
 db and rerunning, this exception is thrown when attempting to start the MS:
 
 ERROR [o.s.w.c.ContextLoader] (main:null) Context initialization failed
 org.springframework.beans.factory.BeanCreationException: Error creating bean 
 with name 'dataMotionServiceImpl': Injection of autowired dependencies 
 failed; nested exception is 
 org.springframework.beans.factory.BeanCreationException: Could not autowire 
 field: java.util.List 
 org.apache.cloudstack.storage.motion.DataMotionServiceImpl.strategies; 
 nested exception is org.springframework.beans.factory.BeanCreationException: 
 Error creating bean with name 'ancientDataMotionStrategy': Injection of 
 autowired dependencies failed; nested exception is 
 org.springframework.beans.factory.BeanCreationException: Could not autowire 
 field: 
 org.apache.cloudstack.engine.subsystem.api.storage.StorageCacheManager 
 org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.cacheMgr; 
 nested exception is org.springframework.beans.factory.BeanCreationException: 
 Error creating bean with name 'storageCacheManagerImpl': Injection of 
 autowired dependencies failed; nested exception is 
 org.springframework.beans.factory.BeanCreationException: Could not autowire 
 field: 
 org.apache.cloudstack.storage.cache.manager.StorageCacheReplacementAlgorithm 
 org.apache.cloudstack.storage.cache.manager.StorageCacheManagerImpl.cacheReplacementAlgorithm;
  nested exception is 
 org.springframework.beans.factory.BeanCreationException: Error creating bean 
 with name 'StorageCacheReplacementAlgorithm': Invocation of init method 
 failed; nested exception is com.cloud.utils.exception.CloudRuntimeException: 
 DB Exception on: com.mysql.jdbc.JDBC4PreparedStatement@29f9aaf0: SELECT 
 configuration.instance, configuration.component, configuration.name, 
 configuration.value, configuration.default_value, configuration.description, 
 configuration.category, configuration.is_dynamic, configuration.scope, 
 configuration.updated FROM configuration WHERE configuration.name = 
 _binary'storage.cache.replacement.lru.interval'  ORDER BY RAND() LIMIT 1
  at 
 org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
  at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
  at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
  at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
  at 
 org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
  at 
 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
  at 
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
  at 
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
  at 
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284)
  at 
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
  at 
 org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
  at 
 org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
  at 
 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
  at 
 org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
  at 
 org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
  at 
 org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
  at 
 org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
  at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
  at 
 

RE: MS fails to start due - Incorrect code version

2013-08-20 Thread Toshiaki Hatano
I'm on 61c5b4bf7520080d88ae5a9aad38dee7e0348fa2 and got same error.

I've wiped and redeployed DB by using 'cloud-setup-database' command,
then I confirmed there're no 'default_value' column in table 'configuration'.

The column should be created by schema-420to430.sql.
So, for some reason, the SQL isn't executed by 'cloud-setup-database'.

--
Toshiaki

-Original Message-
From: SuichII, Christopher [mailto:chris.su...@netapp.com] 
Sent: Tuesday, August 20, 2013 09:00
To: dev@cloudstack.apache.org
Subject: Re: MS fails to start due - Incorrect code version

I was on cc18ca79fc6d58fb639ffbb455791caeb021589a and tried rolling back to a 
commit I have been able to deploy with before 
(b727001f483012012c061e8c352c1ebfe7d3fecd) and got the same result.
On Aug 20, 2013, at 10:43 AM, Prasanna Santhanam t...@apache.org wrote:

 What's your HEAD? I'm on 3a29c734475184cf28135acaca271fea1c90554a and 
 don't see a problm starting up the server. I haven't configured my 
 zones/pods etc. Also I started with a fresh DB.
 
 On Tue, Aug 20, 2013 at 01:47:50PM +, SuichII, Christopher wrote:
 Master.
 
 Then, after commenting out the offending code, rebuilding, redeploying the 
 db and rerunning, this exception is thrown when attempting to start the MS:
 
 ERROR [o.s.w.c.ContextLoader] (main:null) Context initialization 
 failed
 org.springframework.beans.factory.BeanCreationException: Error creating bean 
 with name 'dataMotionServiceImpl': Injection of autowired dependencies 
 failed; nested exception is 
 org.springframework.beans.factory.BeanCreationException: Could not autowire 
 field: java.util.List 
 org.apache.cloudstack.storage.motion.DataMotionServiceImpl.strategies; 
 nested exception is org.springframework.beans.factory.BeanCreationException: 
 Error creating bean with name 'ancientDataMotionStrategy': Injection of 
 autowired dependencies failed; nested exception is 
 org.springframework.beans.factory.BeanCreationException: Could not autowire 
 field: 
 org.apache.cloudstack.engine.subsystem.api.storage.StorageCacheManager 
 org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.cacheMgr; 
 nested exception is org.springframework.beans.factory.BeanCreationException: 
 Error creating bean with name 'storageCacheManagerImpl': Injection of 
 autowired dependencies failed; nested exception is 
 org.springframework.beans.factory.BeanCreationException: Could not autowire 
 field: 
 org.apache.cloudstack.storage.cache.manager.StorageCacheReplacementAlgorithm 
 org.apache.cloudstack.storage.cache.manager.StorageCacheManagerImpl.cacheReplacementAlgorithm;
  nested exception is 
 org.springframework.beans.factory.BeanCreationException: Error creating bean 
 with name 'StorageCacheReplacementAlgorithm': Invocation of init method 
 failed; nested exception is com.cloud.utils.exception.CloudRuntimeException: 
 DB Exception on: com.mysql.jdbc.JDBC4PreparedStatement@29f9aaf0: SELECT 
 configuration.instance, configuration.component, configuration.name, 
 configuration.value, configuration.default_value, configuration.description, 
 configuration.category, configuration.is_dynamic, configuration.scope, 
 configuration.updated FROM configuration WHERE configuration.name = 
 _binary'storage.cache.replacement.lru.interval'  ORDER BY RAND() LIMIT 1
  at 
 org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
  at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
  at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
  at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
  at 
 org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
  at 
 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
  at 
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
  at 
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
  at 
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284)
  at 
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
  at 
 org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
  at 
 org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
  at 
 org.springframework.context.support.AbstractApplicationContext.refresh

RE: MS fails to start due - Incorrect code version

2013-08-20 Thread Toshiaki Hatano
It looks chicken and egg situation.

Bean injection requires 4.3 upgraded database.
DB upgrade process executed by DatabaseUpgradeChecker runs after bean injection.


At least I found a workaround, upgrade DB by hand like below.

$ cloudstack-setup-databases cloud:cloud@localhost --deploy-as root
$ cloudstack-setup-management
$ service cloudstack-management stop
$ mysql -u root cloud  setup/db/db/schema-40to410.sql
$ mysql -u root cloud  setup/db/db/schema-40to410-cleanup.sql
$ mysql -u root cloud  setup/db/db/schema-410to420.sql
$ mysql -u root cloud  setup/db/db/schema-410to420-cleanup.sql
$ mysql -u root cloud  setup/db/db/schema-420to430.sql
$ mysql -u root cloud  setup/db/db/schema-420to430-cleanup.sql   
$ mysql -u root cloud -e 'UPDATE version SET version=4.3.0;'
$ service cloudstack-management start

I hope it helps.

Thanks,
--
Toshiaki

-Original Message-
From: Toshiaki Hatano [mailto:toshiaki.hat...@verio.net] 
Sent: Tuesday, August 20, 2013 15:59
To: dev@cloudstack.apache.org
Subject: RE: MS fails to start due - Incorrect code version

I'm on 61c5b4bf7520080d88ae5a9aad38dee7e0348fa2 and got same error.

I've wiped and redeployed DB by using 'cloud-setup-database' command, then I 
confirmed there're no 'default_value' column in table 'configuration'.

The column should be created by schema-420to430.sql.
So, for some reason, the SQL isn't executed by 'cloud-setup-database'.

--
Toshiaki

-Original Message-
From: SuichII, Christopher [mailto:chris.su...@netapp.com]
Sent: Tuesday, August 20, 2013 09:00
To: dev@cloudstack.apache.org
Subject: Re: MS fails to start due - Incorrect code version

I was on cc18ca79fc6d58fb639ffbb455791caeb021589a and tried rolling back to a 
commit I have been able to deploy with before 
(b727001f483012012c061e8c352c1ebfe7d3fecd) and got the same result.
On Aug 20, 2013, at 10:43 AM, Prasanna Santhanam t...@apache.org wrote:

 What's your HEAD? I'm on 3a29c734475184cf28135acaca271fea1c90554a and 
 don't see a problm starting up the server. I haven't configured my 
 zones/pods etc. Also I started with a fresh DB.
 
 On Tue, Aug 20, 2013 at 01:47:50PM +, SuichII, Christopher wrote:
 Master.
 
 Then, after commenting out the offending code, rebuilding, redeploying the 
 db and rerunning, this exception is thrown when attempting to start the MS:
 
 ERROR [o.s.w.c.ContextLoader] (main:null) Context initialization 
 failed
 org.springframework.beans.factory.BeanCreationException: Error creating bean 
 with name 'dataMotionServiceImpl': Injection of autowired dependencies 
 failed; nested exception is 
 org.springframework.beans.factory.BeanCreationException: Could not autowire 
 field: java.util.List 
 org.apache.cloudstack.storage.motion.DataMotionServiceImpl.strategies; 
 nested exception is org.springframework.beans.factory.BeanCreationException: 
 Error creating bean with name 'ancientDataMotionStrategy': Injection of 
 autowired dependencies failed; nested exception is 
 org.springframework.beans.factory.BeanCreationException: Could not autowire 
 field: 
 org.apache.cloudstack.engine.subsystem.api.storage.StorageCacheManager 
 org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.cacheMgr; 
 nested exception is org.springframework.beans.factory.BeanCreationException: 
 Error creating bean with name 'storageCacheManagerImpl': Injection of 
 autowired dependencies failed; nested exception is 
 org.springframework.beans.factory.BeanCreationException: Could not autowire 
 field: 
 org.apache.cloudstack.storage.cache.manager.StorageCacheReplacementAlgorithm 
 org.apache.cloudstack.storage.cache.manager.StorageCacheManagerImpl.cacheReplacementAlgorithm;
  nested exception is 
 org.springframework.beans.factory.BeanCreationException: Error creating bean 
 with name 'StorageCacheReplacementAlgorithm': Invocation of init method 
 failed; nested exception is com.cloud.utils.exception.CloudRuntimeException: 
 DB Exception on: com.mysql.jdbc.JDBC4PreparedStatement@29f9aaf0: SELECT 
 configuration.instance, configuration.component, configuration.name, 
 configuration.value, configuration.default_value, configuration.description, 
 configuration.category, configuration.is_dynamic, configuration.scope, 
 configuration.updated FROM configuration WHERE configuration.name = 
 _binary'storage.cache.replacement.lru.interval'  ORDER BY RAND() LIMIT 1
  at 
 org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
  at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
  at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
  at 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456