[ https://issues.apache.org/jira/browse/CLOUDSTACK-6986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rajani Karuturi resolved CLOUDSTACK-6986. ----------------------------------------- Resolution: Fixed resolved by CLOUDSTACK-7032 > unable to list volumes due to a mysql exception > ----------------------------------------------- > > Key: CLOUDSTACK-6986 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6986 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Affects Versions: 4.5.0 > Reporter: Rajani Karuturi > Priority: Blocker > > It is on the current master which is 4.5.0 > stack trace: > ERROR [c.c.a.ApiServer] (1529851223@qtp-2083826009-12:ctx-d13811d7 > ctx-82c75a55) unhandled exception executing api command: > [Ljava.lang.String;@754ce47d > com.cloud.utils.exception.CloudRuntimeException: DB Exception on: > com.mysql.jdbc.JDBC4PreparedStatement@3c0ee2d0: SELECT volume_view.id, > volume_view.uuid, volume_view.name, volume_view.device_id, > volume_view.volume_type, volume_view.provisioning_type, volume_view.size, > volume_view.min_iops, volume_view.max_iops, volume_view.state, > volume_view.created, volume_view.attached, volume_view.removed, > volume_view.account_id, volume_view.account_uuid, volume_view.account_name, > volume_view.account_type, volume_view.domain_id, volume_view.domain_uuid, > volume_view.domain_name, volume_view.domain_path, volume_view.project_id, > volume_view.project_uuid, volume_view.project_name, volume_view.pod_id, > volume_view.data_center_id, volume_view.data_center_uuid, > volume_view.data_center_name, volume_view.vm_id, volume_view.vm_uuid, > volume_view.vm_name, volume_view.vm_display_name, volume_view.vm_state, > volume_view.vm_type, volume_view.volume_store_size, > volume_view.created_on_store, volume_view.format, volume_view.download_pct, > volume_view.download_state, volume_view.error_str, > volume_view.hypervisor_type, volume_view.disk_offering_id, > volume_view.disk_offering_uuid, volume_view.disk_offering_name, > volume_view.disk_offering_display_text, volume_view.system_use, > volume_view.use_local_storage, volume_view.bytes_read_rate, > volume_view.bytes_write_rate, volume_view.iops_read_rate, > volume_view.iops_write_rate, volume_view.pool_id, volume_view.pool_uuid, > volume_view.pool_name, volume_view.template_id, volume_view.template_uuid, > volume_view.template_name, volume_view.template_display_text, > volume_view.extractable, volume_view.template_type, volume_view.iso_id, > volume_view.iso_uuid, volume_view.iso_name, volume_view.iso_display_text, > volume_view.job_id, volume_view.job_uuid, volume_view.job_status, > volume_view.tag_id, volume_view.tag_uuid, volume_view.tag_key, > volume_view.tag_value, volume_view.tag_domain_id, volume_view.tag_account_id, > volume_view.tag_resource_id, volume_view.tag_resource_uuid, > volume_view.tag_resource_type, volume_view.tag_customer, > volume_view.display_volume, volume_view.path, volume_view.chain_info FROM > volume_view WHERE volume_view.id=6 > at > com.cloud.utils.db.GenericDaoBase.searchIncludingRemoved(GenericDaoBase.java:425) > at > com.cloud.utils.db.GenericDaoBase.searchIncludingRemoved(GenericDaoBase.java:361) > at > com.cloud.api.query.dao.VolumeJoinDaoImpl.searchByIds(VolumeJoinDaoImpl.java:301) > 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.$Proxy267.searchByIds(Unknown Source) > at > com.cloud.api.query.QueryManagerImpl.searchForVolumesInternal(QueryManagerImpl.java:1804) > at > com.cloud.api.query.QueryManagerImpl.searchForVolumes(QueryManagerImpl.java:1626) > at > org.apache.cloudstack.api.command.user.volume.ListVolumesCmd.execute(ListVolumesCmd.java:152) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141) > at com.cloud.api.ApiServer.queueCommand(ApiServer.java:689) > at com.cloud.api.ApiServer.handleRequest(ApiServer.java:512) > at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:317) > at com.cloud.api.ApiServlet$1.run(ApiServlet.java:118) > 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 com.cloud.api.ApiServlet.processRequest(ApiServlet.java:115) > at com.cloud.api.ApiServlet.doGet(ApiServlet.java:77) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) > at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) > at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > at > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) > at > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) > at > org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) > at > org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) > at > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > at org.mortbay.jetty.Server.handle(Server.java:326) > at > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) > at > org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) > at > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) > at > org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) > Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown > column 'volume_view.template_name' 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) > at java.lang.reflect.Constructor.newInstance(Constructor.java:526) > at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) > at com.mysql.jdbc.Util.getInstance(Util.java:386) > at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1053) > at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4074) > at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4006) > at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2468) > at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2629) > at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2719) > at > com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2155) > at > com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2318) > at > org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) > at > org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) > at > com.cloud.utils.db.GenericDaoBase.searchIncludingRemoved(GenericDaoBase.java:419) > ... 47 more -- This message was sent by Atlassian JIRA (v6.2#6252)