cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Reategui <create...@gmail.com>
Subject Re: Failed upgrade from 4.3 to 4.5.1
Date Tue, 28 Jul 2015 17:19:10 GMT
So the problem is that code was changed so that XenServer600Resource could
handle stuff that XenServer602Resource used to handle.  However the upgrade
code was not changed to make this change to existing entries in the
resource column of the host table.

I'll file a JIRA for this although not sure how many more folks will be
upgrading from 6.0.2 like I was.

I will make the change manually in my DB.


On Tue, Jul 28, 2015 at 7:40 AM, Carlos Reategui <creategui@gmail.com>
wrote:

> Ok... I think I found the problem but need advice how to fix.  Looks like
> XenServer 6.0.2 got dropped somewhere along the way.
>
> 4.3 has the XenServer602Resource.java file in:
> https://github.com/apache/cloudstack/tree/4.3/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource
>
> but 4.5 does not:
> https://github.com/apache/cloudstack/tree/4.5/plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource
>
> Would it be ok to edit my host table and set the resource
> to XenServer600Resource for my XenServer machines?  My plan is to upgrade
> them to 6.5 which is why I upgraded ACS.
>
> thanks,
> Carlos
>
>
> On Tue, Jul 28, 2015 at 6:14 AM, Carlos Reategui <creategui@gmail.com>
> wrote:
>
>> Adding dev...
>>
>> Looks like the first error is a common one from what I see in the mail
>> archives, so the second one is the one causing my hosts to be in a
>> disconnected state.  I have tried running with jdk 8 also but same error.
>>
>> any ideas?
>>
>> forgot to mention in previous email that I used shapeblue apt repository
>> as described in the upgrade docs.
>>
>>
>>
>> On Mon, Jul 27, 2015 at 10:15 PM, Carlos Reategui <creategui@gmail.com>
>> wrote:
>>
>>> Hi All,
>>> Management server is on Ubuntu 12.04 and hypervisor is XenServer 6.0.2.
>>> Java is openjdk 1.7.
>>>
>>> I followed the instructions from:
>>> http://docs.cloudstack.apache.org/projects/cloudstack-release-notes/en/4.5.1/upgrade/upgrade-4.3.html
>>> But used the system vm from:
>>> http://packages.shapeblue.com/systemvmtemplate/4.5/new/
>>>
>>> After starting the MS things seem to go ok through the db upgrade
>>> scripts and then this is the fist error I encounter in the logs (not sure
>>> if it is relevant):
>>>
>>> 2015-07-27 21:38:23,091 INFO  [c.c.u.c.ComponentContext] (main:null)
>>> Setup Spring Application context
>>>
>>> 2015-07-27 21:38:25,018 DEBUG [o.a.c.f.s.OnwireClassRegistry]
>>> (main:null) Encountered IOException
>>>
>>> java.io.IOException: Stream closed
>>>
>>>         at
>>> java.util.zip.ZipInputStream.ensureOpen(ZipInputStream.java:66)
>>>
>>>         at
>>> java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:115)
>>>
>>>         at
>>> java.util.jar.JarInputStream.getNextEntry(JarInputStream.java:142)
>>>
>>>         at
>>> java.util.jar.JarInputStream.getNextJarEntry(JarInputStream.java:179)
>>>
>>>         at
>>> org.apache.cloudstack.framework.serializer.OnwireClassRegistry.getFromJARFile(OnwireClassRegistry.java:162)
>>>
>>>         at
>>> org.apache.cloudstack.framework.serializer.OnwireClassRegistry.getClasses(OnwireClassRegistry.java:119)
>>>
>>>         at
>>> org.apache.cloudstack.framework.serializer.OnwireClassRegistry.getClasses(OnwireClassRegistry.java:95)
>>>
>>>         at
>>> org.apache.cloudstack.framework.serializer.OnwireClassRegistry.scan(OnwireClassRegistry.java:76)
>>>
>>>         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:606)
>>>
>>>         at
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1608)
>>>
>>>         at
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1549)
>>>
>>>         at
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479)
>>>
>>>         at
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
>>>
>>>         at
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
>>>
>>>         at
>>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
>>>
>>>         at
>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
>>>
>>>         at
>>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
>>>
>>>         at
>>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
>>>
>>>         at
>>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)
>>>
>>>         at
>>> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
>>>
>>>         at
>>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
>>>
>>>         at
>>> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContext(DefaultModuleDefinitionSet.java:145)
>>>
>>>         at
>>> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet$2.with(DefaultModuleDefinitionSet.java:122)
>>>
>>>         at
>>> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:245)
>>>
>>>         at
>>> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:250)
>>>
>>>         at
>>> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:250)
>>>
>>>         at
>>> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:233)
>>>
>>>         at
>>> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContexts(DefaultModuleDefinitionSet.java:117)
>>>
>>>         at
>>> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.load(DefaultModuleDefinitionSet.java:79)
>>>
>>>         at
>>> org.apache.cloudstack.spring.module.factory.ModuleBasedContextFactory.loadModules(ModuleBasedContextFactory.java:37)
>>>
>>>         at
>>> org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.init(CloudStackSpringContext.java:70)
>>>
>>>         at
>>> org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init>(CloudStackSpringContext.java:57)
>>>
>>>         at
>>> org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init>(CloudStackSpringContext.java:61)
>>>
>>>         at
>>> org.apache.cloudstack.spring.module.web.CloudStackContextLoaderListener.contextInitialized(CloudStackContextLoaderListener.java:52)
>>>
>>>         at
>>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
>>>
>>>         at
>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
>>>
>>>         at
>>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
>>>
>>>         at
>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
>>>
>>>         at
>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
>>>
>>>         at
>>> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
>>>
>>>         at
>>> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
>>>
>>>         at
>>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
>>>
>>>         at
>>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
>>>
>>>         at
>>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
>>>
>>>         at
>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
>>>
>>>         at
>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
>>>
>>>         at
>>> org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
>>>
>>>         at
>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
>>>
>>>         at
>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
>>>
>>>         at
>>> org.apache.catalina.core.StandardService.start(StandardService.java:525)
>>>
>>>         at
>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
>>>
>>>         at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
>>>
>>>         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:606)
>>>
>>>         at
>>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>>>
>>>         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:606)
>>>
>>>         at
>>> org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:243)
>>>
>>> 2015-07-27 21:38:27,307 DEBUG [o.a.c.f.c.i.ConfigDepotImpl] (main:null)
>>> Retrieving keys from VirtualNetworkApplianceManagerImpl
>>>
>>> Then a bit further down I see the next error which I think is the one
>>> causing probs.:
>>>
>>> 2015-07-27 21:38:48,643 DEBUG [c.c.a.m.ClusteredAgentManagerImpl]
>>> (ClusteredAgentManager Timer:ctx-2a662854) Found 2 unmanaged direct hosts,
>>> processing connect for them...
>>>
>>> 2015-07-27 21:38:48,643 DEBUG [c.c.a.m.ClusteredAgentManagerImpl]
>>> (ClusteredAgentManager Timer:ctx-2a662854) Loading directly connected host
>>> 1(srvengxen01)
>>>
>>> 2015-07-27 21:38:48,647 WARN  [c.c.r.DiscovererBase]
>>> (ClusteredAgentManager Timer:ctx-2a662854) Unable to find class
>>> com.cloud.hypervisor.xenserver.resource.XenServer602Resource
>>>
>>> java.lang.ClassNotFoundException:
>>> com.cloud.hypervisor.xenserver.resource.XenServer602Resource
>>>
>>>         at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
>>>
>>>         at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
>>>
>>>         at java.lang.Class.forName0(Native Method)
>>>
>>>         at java.lang.Class.forName(Class.java:191)
>>>
>>>         at
>>> com.cloud.resource.DiscovererBase.getResource(DiscovererBase.java:89)
>>>
>>>         at
>>> com.cloud.resource.DiscovererBase.reloadResource(DiscovererBase.java:150)
>>>
>>>         at
>>> com.cloud.agent.manager.AgentManagerImpl.loadDirectlyConnectedHost(AgentManagerImpl.java:682)
>>>
>>>         at
>>> com.cloud.agent.manager.ClusteredAgentManagerImpl.scanDirectAgentToLoad(ClusteredAgentManagerImpl.java:221)
>>>
>>>         at
>>> com.cloud.agent.manager.ClusteredAgentManagerImpl.runDirectAgentScanTimerTask(ClusteredAgentManagerImpl.java:186)
>>>
>>>         at
>>> com.cloud.agent.manager.ClusteredAgentManagerImpl.access$100(ClusteredAgentManagerImpl.java:100)
>>>
>>>         at
>>> com.cloud.agent.manager.ClusteredAgentManagerImpl$DirectAgentScanTimerTask.runInContext(ClusteredAgentManagerImpl.java:237)
>>>
>>>         at
>>> org.apache.cloudstack.managed.context.ManagedContextTimerTask$1.runInContext(ManagedContextTimerTask.java:30)
>>>
>>>         at
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>>>
>>>         at
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>>>
>>>         at
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>>>
>>>         at
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>>>
>>>         at
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>>>
>>>         at
>>> org.apache.cloudstack.managed.context.ManagedContextTimerTask.run(ManagedContextTimerTask.java:27)
>>>
>>>         at java.util.TimerThread.mainLoop(Timer.java:555)
>>>
>>>         at java.util.TimerThread.run(Timer.java:505)
>>>
>>> 2015-07-27 21:38:48,648 WARN  [c.c.a.m.AgentManagerImpl]
>>> (ClusteredAgentManager Timer:ctx-2a662854) Unable to load the resource: 1
>>>
>>> 2015-07-27 21:38:48,649 DEBUG [c.c.h.Status] (ClusteredAgentManager
>>> Timer:ctx-2a662854) Transition:[Resource state = Enabled, Agent event =
>>> AgentDisconnected, Host id = 1, name = srvengxen01]
>>>
>>> 2015-07-27 21:38:48,661 DEBUG [c.c.a.m.ClusteredAgentManagerImpl]
>>> (ClusteredAgentManager Timer:ctx-2a662854) Loading directly connected host
>>> 2(srvengxen02)
>>>
>>> 2015-07-27 21:38:48,662 WARN  [c.c.r.DiscovererBase]
>>> (ClusteredAgentManager Timer:ctx-2a662854) Unable to find class
>>> com.cloud.hypervisor.xenserver.resource.XenServer602Resource
>>>
>>> java.lang.ClassNotFoundException:
>>> com.cloud.hypervisor.xenserver.resource.XenServer602Resource
>>>
>>>         at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
>>>
>>>         at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
>>>
>>>         at java.lang.Class.forName0(Native Method)
>>>
>>>         at java.lang.Class.forName(Class.java:191)
>>>
>>>         at
>>> com.cloud.resource.DiscovererBase.getResource(DiscovererBase.java:89)
>>>
>>>         at
>>> com.cloud.resource.DiscovererBase.reloadResource(DiscovererBase.java:150)
>>>
>>>         at
>>> com.cloud.agent.manager.AgentManagerImpl.loadDirectlyConnectedHost(AgentManagerImpl.java:682)
>>>
>>>         at
>>> com.cloud.agent.manager.ClusteredAgentManagerImpl.scanDirectAgentToLoad(ClusteredAgentManagerImpl.java:221)
>>>
>>>         at
>>> com.cloud.agent.manager.ClusteredAgentManagerImpl.runDirectAgentScanTimerTask(ClusteredAgentManagerImpl.java:186)
>>>
>>>         at
>>> com.cloud.agent.manager.ClusteredAgentManagerImpl.access$100(ClusteredAgentManagerImpl.java:100)
>>>
>>>         at
>>> com.cloud.agent.manager.ClusteredAgentManagerImpl$DirectAgentScanTimerTask.runInContext(ClusteredAgentManagerImpl.java:237)
>>>
>>>         at
>>> org.apache.cloudstack.managed.context.ManagedContextTimerTask$1.runInContext(ManagedContextTimerTask.java:30)
>>>
>>>         at
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>>>
>>>         at
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>>>
>>>         at
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>>>
>>>         at
>>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>>>
>>>         at
>>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>>>
>>>         at
>>> org.apache.cloudstack.managed.context.ManagedContextTimerTask.run(ManagedContextTimerTask.java:27)
>>>
>>>         at java.util.TimerThread.mainLoop(Timer.java:555)
>>>
>>>         at java.util.TimerThread.run(Timer.java:505)
>>>
>>> 2015-07-27 21:38:48,664 WARN  [c.c.a.m.AgentManagerImpl]
>>> (ClusteredAgentManager Timer:ctx-2a662854) Unable to load the resource: 2
>>>
>>> 2015-07-27 21:38:48,664 DEBUG [c.c.h.Status] (ClusteredAgentManager
>>> Timer:ctx-2a662854) Transition:[Resource state = Enabled, Agent event =
>>> AgentDisconnected, Host id = 2, name = srveng
>>>
>>>
>>> Hope someone has seen this before or has ideas how to fix.
>>>
>>>
>>> thanks,
>>>
>>> Carlos
>>>
>>
>>
>

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