cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohit Yadav (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CLOUDSTACK-9671) Unknown column 'image_store_details.display' in 'field list' when upgrade from 4.9.1.0 to 4.10.0.0 SNAPSHOT
Date Thu, 15 Dec 2016 06:42:58 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-9671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rohit Yadav resolved CLOUDSTACK-9671.
-------------------------------------
    Resolution: Fixed

> Unknown column 'image_store_details.display' in 'field list' when upgrade from 4.9.1.0
to 4.10.0.0 SNAPSHOT
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-9671
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9671
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>    Affects Versions: 4.9.1.0
>            Reporter: Milamber
>            Assignee: Rohit Yadav
>              Labels: easyfix
>
> When I try to upgrade CloudStack from 4.9.1.0 to 4.10.0.0-SNAPSHOT, I've this error:
> 2016-12-13 11:43:28,367 ERROR [c.c.a.m.AgentManagerImpl] (AgentConnectTaskPool-5:ctx-bce6aee5)
(logid:7c5e9164) Monitor SecondaryStorageListener says there is an error in the connect process
for 4 due to DB Exception on: com.mysql.jdbc.JDBC4PreparedStatement@3f5ef58a: SELECT image_store_details.id,
image_store_details.store_id, image_store_details.name, image_store_details.value, image_store_details.display
FROM image_store_details WHERE image_store_details.store_id = 1 
> com.cloud.utils.exception.CloudRuntimeException: DB Exception on: com.mysql.jdbc.JDBC4PreparedStatement@3f5ef58a:
SELECT image_store_details.id, image_store_details.store_id, image_store_details.name, image_store_details.value,
image_store_details.display FROM image_store_details WHERE image_store_details.store_id =
1 
> 	at com.cloud.utils.db.GenericDaoBase.searchIncludingRemoved(GenericDaoBase.java:427)
> 	at com.cloud.utils.db.GenericDaoBase.searchIncludingRemoved(GenericDaoBase.java:363)
> 	at com.cloud.utils.db.GenericDaoBase.listIncludingRemovedBy(GenericDaoBase.java:933)
> 	at com.cloud.utils.db.GenericDaoBase.listBy(GenericDaoBase.java:910)
> 	at com.cloud.utils.db.GenericDaoBase.listBy(GenericDaoBase.java:923)
> 	at org.apache.cloudstack.storage.datastore.db.ImageStoreDetailsDaoImpl.getDetails(ImageStoreDetailsDaoImpl.java:70)
> 	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.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
> 	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
> 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> 	at com.cloud.utils.db.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:34)
> 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
> 	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
> 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> 	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
> 	at com.sun.proxy.$Proxy182.getDetails(Unknown Source)
> 	at org.apache.cloudstack.storage.image.NfsImageStoreDriverImpl.getNfsVersion(NfsImageStoreDriverImpl.java:40)
> 	at org.apache.cloudstack.storage.datastore.driver.CloudStackImageStoreDriverImpl.getStoreTO(CloudStackImageStoreDriverImpl.java:63)
> 	at org.apache.cloudstack.storage.image.store.ImageStoreImpl.getTO(ImageStoreImpl.java:185)
> 	at org.apache.cloudstack.secondarystorage.SecondaryStorageManagerImpl.generateSetupCommand(SecondaryStorageManagerImpl.java:305)
> 	at com.cloud.storage.secondary.SecondaryStorageListener.processConnect(SecondaryStorageListener.java:85)
> 	at com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:564)
> 	at com.cloud.agent.manager.AgentManagerImpl.handleConnectedAgent(AgentManagerImpl.java:1087)
> 	at com.cloud.agent.manager.AgentManagerImpl.access$000(AgentManagerImpl.java:120)
> 	at com.cloud.agent.manager.AgentManagerImpl$HandleAgentConnectTask.runInContext(AgentManagerImpl.java:1171)
> 	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 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:745)
> Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column
'image_store_details.display' in 'field list'
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> 	... 49 more
> I thinks it's related with CLOUDSTACK-9438 /  PR1615.
> The fix is to execute this SQL request:
> ALTER TABLE `cloud`.`image_store_details` CHANGE COLUMN `value` `value` VARCHAR(255)
NULL DEFAULT NULL COMMENT 'value of the detail', ADD COLUMN `display` tinyint(1) NOT
> NULL DEFAULT '1' COMMENT 'True if the detail can be displayed to the end user' AFTER
`value`;
> I thinks the schema-4910to41000.sql (and perhaps the schema-490to4910.sql) need to have
this request inside.



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

Mime
View raw message