cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prachi Damle (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CLOUDSTACK-1968) affinity_groups: Column 'deployment planner' cannot be null when creating a service offering
Date Mon, 08 Apr 2013 18:35:16 GMT

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

Prachi Damle resolved CLOUDSTACK-1968.
--------------------------------------

    Resolution: Fixed

Author:		Prachi Damle (prachi@cloud.com)
Author date:	26 minutes ago (Mon Apr 8 11:04:01 2013 -0700)
Commit date:	18 minutes ago (Mon Apr 8 11:12:29 2013 -0700)
Commit hash:	2a1163c673df5ce86a2fb3629210e577fb9c5e64


CLOUDSTACK-1968: affinity_groups: Column 'deployment planner' cannot be null when creating
a service offering

Added default value to all constructors..

Contained in branches: affinity_groups
Contained in no tag
                
> affinity_groups: Column 'deployment planner' cannot be null when creating a service offering
> --------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-1968
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1968
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.2.0
>            Reporter: Prasanna Santhanam
>            Assignee: Prachi Damle
>            Priority: Critical
>              Labels: bvt
>             Fix For: 4.2.0
>
>
> When creating a service offering as part of the BVT on the affinity_groups branch noticed
the following exception:
> 2013-04-08 23:21:58,324 DEBUG [cloud.api.ApiServlet] (786433993@qtp-1763419514-3:null)
===START===  0:0:0:0:0:0:0:1%0 -- GET  apiKey=q-kfsInSQT5WopV_by8F4387ABt6Nm0P3Yd2O57LblizngXF0lDX4MAV_erJKiYC3BMIx1OfihWOow_GDF4Rww&command=createServiceOffering&cpunumber=1&cpuspeed=100&displaytext=Tiny+Instance&memory=64&name=Tiny+Instance&response=json&signature=S2EhkHduLx0%2B9BgYL%2FADarTFaiI%3D
> 2013-04-08 23:21:58,330 DEBUG [db.Transaction.Transaction] (786433993@qtp-1763419514-3:null)
Rolling back the transaction: Time = 1 Name =  persist; called by -Transaction.rollback:890-Transaction.removeUpTo:833-Transaction.close:657-TransactionContextBuilder.interceptException:63-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:133-ConfigurationManagerImpl.createServiceOffering:1835-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-ConfigurationManagerImpl.createServiceOffering:1823-CreateServiceOfferingCmd.execute:174-ApiDispatcher.dispatch:164-ApiServer.queueCommand:454-ApiServer.handleRequest:304
> 2013-04-08 23:21:58,334 ERROR [cloud.api.ApiServer] (786433993@qtp-1763419514-3:null)
unhandled exception executing api command: createServiceOffering
> com.cloud.utils.exception.CloudRuntimeException: DB Exception on: com.mysql.jdbc.JDBC4PreparedStatement@1a9533f5:
INSERT INTO service_offering (service_offering.cpu, service_offering.speed, service_offering.ram_size,
service_offering.nw_rate, service_offering.mc_rate, service_offering.ha_enabled, service_offering.limit_cpu_use,
service_offering.is_volatile, service_offering.host_tag, service_offering.default_use, service_offering.vm_type,
service_offering.sort_key, service_offering.deployment_planner, service_offering.id) VALUES
(1, 100, 64, null, null, 0, 0, 0, null, 0, null, 0, null, 19)
> 	at com.cloud.utils.db.GenericDaoBase.persist(GenericDaoBase.java:1342)
> 	at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> 	at com.cloud.configuration.ConfigurationManagerImpl.createServiceOffering(ConfigurationManagerImpl.java:1835)
> 	at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> 	at com.cloud.configuration.ConfigurationManagerImpl.createServiceOffering(ConfigurationManagerImpl.java:1823)
> 	at org.apache.cloudstack.api.command.admin.offering.CreateServiceOfferingCmd.execute(CreateServiceOfferingCmd.java:174)
> 	at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:164)
> 	at com.cloud.api.ApiServer.queueCommand(ApiServer.java:454)
> 	at com.cloud.api.ApiServer.handleRequest(ApiServer.java:304)
> 	at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:302)
> 	at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
> 	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.MySQLIntegrityConstraintViolationException:
Column 'deployment_planner' cannot be null
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 	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:1040)
> 	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.executeUpdate(PreparedStatement.java:2450)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2371)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2355)
> 	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
> 	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
> 	at com.cloud.utils.db.GenericDaoBase.persist(GenericDaoBase.java:1305)
> 	... 37 more
> 2013-04-08 23:21:58,336 DEBUG [cloud.api.ApiServlet] (786433993@qtp-1763419514-3:null)
===END===  0:0:0:0:0:0:0:1%0 -- GET  apiKey=q-kfsInSQT5WopV_by8F4387ABt6Nm0P3Yd2O57LblizngXF0lDX4MAV_erJKiYC3BMIx1OfihWOow_GDF4Rww&command=createServiceOffering&cpunumber=1&cpuspeed=100&displaytext=Tiny+Instance&memory=64&name=Tiny+Instance&response=json&signature=S2EhkHduLx0%2B9BgYL%2FADarTFaiI%3D

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message