cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasanna Santhanam (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CLOUDSTACK-3373) Object Store - ClassCastException when adding cache storage
Date Fri, 05 Jul 2013 09:57:48 GMT

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

Prasanna Santhanam resolved CLOUDSTACK-3373.
--------------------------------------------

    Resolution: Duplicate

dupes my own bug CLOUDSTACK-3273
                
> Object Store - ClassCastException when adding cache storage
> -----------------------------------------------------------
>
>                 Key: CLOUDSTACK-3373
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3373
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>    Affects Versions: 4.2.0
>            Reporter: Prasanna Santhanam
>            Priority: Critical
>             Fix For: 4.2.0
>
>
> Steps:
> 1. deploy devcloud
> 2. add advanced zone and s3 using amazon aws
> 3. add cache storage.
> (Following cast exception was encountered)
> 2013-07-05 12:22:53,803 DEBUG [cloud.api.ApiServlet] (758371978@qtp-1549807005-0:null)
===START===  127.0.0.1 -- GET  apiKey=cZu0zPtCBNQxssUO7iQLZ3-Ez2HIv41uQMoisiUC0Oac9qcQ1BURmUAKwmXz3P87yzyBTFiMTsbuktNLM4gkTQ&url=nfs%3A%2F%2F10.147.28.6%3A%2Fexport%2Fautomation%2Facs%2Fobjectstorecache&details%5B0%5D.value=nfs%3A%2F%2F10.147.28.6%3A%2Fexport%2Fautomation%2Facs%2Fobjectstorecache&signature=rgPng4JKfX0kh19%2Fz2Voz4w1c84%3D&details%5B1%5D.key=__name__&zoneid=2ecf4870-dc90-4203-a901-0b1dc9fc1700&details%5B1%5D.value=cachestorage&command=createCacheStore&provider=NFS&response=json&details%5B0%5D.key=url
> 2013-07-05 12:22:53,817 INFO  [datastore.lifecycle.CloudStackImageStoreLifeCycleImpl]
(758371978@qtp-1549807005-0:null) Trying to add a new data store at nfs://10.147.28.6:/export/automation/acs/objectstorecache
to data center 1
> 2013-07-05 12:22:53,823 DEBUG [cloud.storage.StorageManagerImpl] (758371978@qtp-1549807005-0:null)
Failed to add data store
> java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
> 	at org.apache.cloudstack.storage.image.datastore.ImageStoreHelper.createImageStore(ImageStoreHelper.java:98)
> 	at org.apache.cloudstack.storage.datastore.lifecycle.CloudStackImageStoreLifeCycleImpl.initialize(CloudStackImageStoreLifeCycleImpl.java:119)
> 	at com.cloud.storage.StorageManagerImpl.createCacheStore(StorageManagerImpl.java:1848)
> 	at org.apache.cloudstack.api.command.admin.storage.CreateCacheStoreCmd.execute(CreateCacheStoreCmd.java:108)
> 	at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
> 	at com.cloud.api.ApiServer.queueCommand(ApiServer.java:528)
> 	at com.cloud.api.ApiServer.handleRequest(ApiServer.java:371)
> 	at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304)
> 	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)
> Cache details are as follows:
> "cacheStorages": [
>  86                 {
>  87                     "url": "nfs://10.147.28.6:/export/automation/acs/objectstorecache",

>  88                     "details": {
>  89                         "url": "nfs://10.147.28.6:/export/automation/acs/objectstorecache",

>  90                         "__name__": "cachestorage"
>  91                     },
>  92                     "provider": "NFS"
>  93                 }
>  94             ],

--
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