incubator-cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Royal Yang <rayang2...@gmail.com>
Subject Re: Re: 从CS3.02到4.01升级遇到的问题
Date Mon, 25 Feb 2013 01:59:19 GMT
放狗搜了下 这个issue已经存在了,不过貌似新版本忘记解决了

https://issues.apache.org/jira/browse/CLOUDSTACK-90

2013/2/24 Rayang2004 <rayang2004@gmail.com>

> 这个问题在2.x 升级到3.x的时候就有,说是编译时候版本号记为4.0.{buildvertion}
> 造成的,我好像也是在英文的邮件列表里找到的。回头我找找提交上去。
>
>
> 已从三星手机发送
>
>
> -------- 原始消息 --------
> 主题:Re: 从CS3.02到4.01升级遇到的问题
> 发件人:Gavin Lee <gavin.lxh@gmail.com>
> 收件人:cloudstack-users-cn@incubator.apache.org
> 抄送:
>
>
>
> Hi, Royal
> 可否帮忙在社区提交一下Bug?
> https://issues.apache.org/jira/browse/CLOUDSTACK
>
>
> On Wed, Feb 20, 2013 at 11:34 AM, Royal Yang <rayang2004@gmail.com> wrote:
> > 貌似已经解决了。解决办法:
> > 编辑/etc/cloud/management/components.xml
> > 注释掉<checker name="DatabaseUpgradeChecker"
> > class="com.cloud.upgrade.PremiumDatabaseUpgradeChecker"/>
> > 然后mysql -uroot -p cloud
> > source /usr/share/cloud/setup/db/schema-302to40.sql
> > 重启cloud-management 就行了
> >
> > 2013/2/20 Royal Yang <rayang2004@gmail.com>
> >
> >> 按照官方文档
> >>
> http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.1-incubating/html/Release_Notes/upgrade-instructions.html#upgrade-from-3.0.2-to-4.0.1
> >> 升级,更新完成后启动management server出错,日志如下
> >> 2013-02-20 09:39:21,915 INFO  [utils.component.ComponentLocator]
> >> (main:null) Config file found at /etc/cloud/management/components.xml.
> >>  Configuring system-integrity-checker
> >> 2013-02-20 09:39:21,918 DEBUG [utils.component.ComponentLocator]
> >> (main:null) Looking for class com.cloud.cluster.ManagementServerNode
> >> 2013-02-20 09:39:21,932 INFO  [utils.component.ComponentLocator]
> >> (main:null) Found component:
> >> com.cloud.utils.component.SystemIntegrityChecker in
> >> com.cloud.cluster.ManagementServerNode - ManagementServerNode
> >> 2013-02-20 09:39:21,932 INFO  [utils.component.ComponentLocator]
> >> (main:null) Adding system integrity checker: ManagementServerNode
> >> 2013-02-20 09:39:21,932 DEBUG [utils.component.ComponentLocator]
> >> (main:null) Looking for class
> >> com.cloud.utils.crypt.EncryptionSecretKeyChecker
> >> 2013-02-20 09:39:21,939 INFO  [utils.component.ComponentLocator]
> >> (main:null) Found component:
> >> com.cloud.utils.component.SystemIntegrityChecker in
> >> com.cloud.utils.crypt.EncryptionSecretKeyChecker -
> >> EncryptionSecretKeyChecker
> >> 2013-02-20 09:39:21,939 INFO  [utils.component.ComponentLocator]
> >> (main:null) Adding system integrity checker: EncryptionSecretKeyChecker
> >> 2013-02-20 09:39:21,939 DEBUG [utils.component.ComponentLocator]
> >> (main:null) Looking for class com.cloud.upgrade.DatabaseIntegrityChecker
> >> 2013-02-20 09:39:21,940 INFO  [utils.component.ComponentLocator]
> >> (main:null) Found component:
> >> com.cloud.utils.component.SystemIntegrityChecker in
> >> com.cloud.upgrade.DatabaseIntegrityChecker - DatabaseIntegrityChecker
> >> 2013-02-20 09:39:21,940 INFO  [utils.component.ComponentLocator]
> >> (main:null) Adding system integrity checker: DatabaseIntegrityChecker
> >> 2013-02-20 09:39:21,940 DEBUG [utils.component.ComponentLocator]
> >> (main:null) Looking for class
> >> com.cloud.upgrade.PremiumDatabaseUpgradeChecker
> >> 2013-02-20 09:39:21,940 INFO  [utils.component.ComponentLocator]
> >> (main:null) Found component:
> >> com.cloud.utils.component.SystemIntegrityChecker in
> >> com.cloud.upgrade.PremiumDatabaseUpgradeChecker - DatabaseUpgradeChecker
> >> 2013-02-20 09:39:21,941 INFO  [utils.component.ComponentLocator]
> >> (main:null) Adding system integrity checker: DatabaseUpgradeChecker
> >> 2013-02-20 09:39:21,988 DEBUG [utils.crypt.EncryptionSecretKeyChecker]
> >> (main:null) Encryption Type: file
> >> 2013-02-20 09:39:22,058 INFO  [cloud.upgrade.DatabaseIntegrityChecker]
> >> (main:null) Grabbing lock to check for database integrity.
> >> 2013-02-20 09:39:22,114 DEBUG [db.Transaction.Transaction] (main:null)
> >> Simulator DB properties are not available. Not initializing simulator DS
> >> 2013-02-20 09:39:22,262 INFO  [cloud.upgrade.DatabaseIntegrityChecker]
> >> (main:null) Performing database integrity check
> >> 2013-02-20 09:39:22,273 DEBUG [cloud.upgrade.DatabaseIntegrityChecker]
> >> (main:null) No duplicate hosts with the same local storage found in
> database
> >> 2013-02-20 09:39:22,275 DEBUG [upgrade.dao.VersionDaoImpl] (main:null)
> >> Checking to see if the database is at a version before it was the
> version
> >> table is created
> >> 2013-02-20 09:39:22,341 INFO  [cloud.upgrade.DatabaseUpgradeChecker]
> >> (main:null) Grabbing lock to check for database upgrade.
> >> 2013-02-20 09:39:22,342 DEBUG [upgrade.dao.VersionDaoImpl] (main:null)
> >> Checking to see if the database is at a version before it was the
> version
> >> table is created
> >> 2013-02-20 09:39:22,344 INFO  [cloud.upgrade.DatabaseUpgradeChecker]
> >> (main:null) DB version = 3.0.2.20120506223416 Code Version =
> >> 4.0.1.20130109153237
> >> 2013-02-20 09:39:22,345 INFO  [cloud.upgrade.DatabaseUpgradeChecker]
> >> (main:null) Database upgrade must be performed from
> 3.0.2.20120506223416 to
> >> 4.0.1.20130109153237
> >> 2013-02-20 09:39:22,345 ERROR [cloud.upgrade.DatabaseUpgradeChecker]
> >> (main:null) The end upgrade version is actually at 4.0.0 but our
> management
> >> server code version is at 4.0.1.20130109153237
> >> 2013-02-20 09:39:22,347 ERROR [utils.component.ComponentLocator]
> >> (main:null) Problems with running checker:DatabaseUpgradeChecker
> >> com.cloud.utils.exception.CloudRuntimeException: The end upgrade version
> >> is actually at 4.0.0 but our management server code version is at
> >> 4.0.1.20130109153237
> >>         at
> >>
> com.cloud.upgrade.DatabaseUpgradeChecker.upgrade(DatabaseUpgradeChecker.java:200)
> >>         at
> >>
> com.cloud.upgrade.DatabaseUpgradeChecker.check(DatabaseUpgradeChecker.java:358)
> >>         at
> >>
> com.cloud.utils.component.ComponentLocator.runCheckers(ComponentLocator.java:273)
> >>         at
> >>
> com.cloud.utils.component.ComponentLocator.parse(ComponentLocator.java:245)
> >>         at
> >>
> com.cloud.utils.component.ComponentLocator.getLocatorInternal(ComponentLocator.java:836)
> >>         at
> >>
> com.cloud.utils.component.ComponentLocator.getLocator(ComponentLocator.java:874)
> >>         at
> >>
> com.cloud.utils.component.ComponentLocator.getComponent(ComponentLocator.java:416)
> >>         at
> >>
> com.cloud.utils.component.ComponentLocator.getComponent(ComponentLocator.java:409)
> >>         at
> >> com.cloud.servlet.CloudStartupServlet.init(CloudStartupServlet.java:44)
> >>         at javax.servlet.GenericServlet.init(GenericServlet.java:212)
> >>         at
> >>
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
> >>         at
> >> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
> >>         at
> >>
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
> >>         at
> >>
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
> >>         at
> >>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> >>         at
> >> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> >>         at
> >> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
> >>         at
> >>
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
> >>         at
> >>
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
> >>         at
> >> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
> >>         at
> >> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
> >>         at
> >>
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
> >>         at
> >>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >>         at
> >> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> >>         at
> >> org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
> >>         at
> >> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> >>         at
> >> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> >>         at
> >> org.apache.catalina.core.StandardService.start(StandardService.java:516)
> >;         at
> >> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> >>         at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
> >>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>         at
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> >>         at
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>         at java.lang.reflect.Method.invoke(Method.java:616)
> >>         at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
> >>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
> >>
> >> 看起来像是DatabaseUpgradeChecker中定义的end upgrade version的问题。
> >> 这算是4.01的bug吗?4.0.1是从
> >>
> http://jenkins.cloudstack.org/view/4.0.1/job/build-4.0.1-nonoss-rhel63/lastSuccessfulBuild/artifact/CloudStack-non-OSS-13.tar.bz2
> 下载来
> >>
>
>
>
> --
> Gavin
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message