{"action":"closed","issue":{"url":"https://api.github.com/repos/cloudfoundry-community/bosh-cloudstack-cpi-release/issues/13","labels_url":"https://api.github.com/repos/cloudfoundry-community/bosh-cloudstack-cpi-release/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry-community/bosh-cloudstack-cpi-release/issues/13/comments","events_url":"https://api.github.com/repos/cloudfoundry-community/bosh-cloudstack-cpi-release/issues/13/events","html_url":"https://github.com/cloudfoundry-community/bosh-cloudstack-cpi-release/issues/13","id":123342404,"number":13,"title":"Failure publishing template. Resource content too long (beyond Integer.MAX_VALUE): URL","user":{"login":"poblin-orange","id":5381793,"avatar_url":"https://avatars.githubusercontent.com/u/5381793?v=3","gravatar_id":"","url":"https://api.github.com/users/poblin-orange","html_url":"https://github.com/poblin-orange","followers_url":"https://api.github.com/users/poblin-orange/followers","following_url":"https://api.github.com/users/poblin-orange/following{/other_user}","gists_url":"https://api.github.com/users/poblin-orange/gists{/gist_id}","starred_url":"https://api.github.com/users/poblin-orange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poblin-orange/subscriptions","organizations_url":"https://api.github.com/users/poblin-orange/orgs","repos_url":"https://api.github.com/users/poblin-orange/repos","events_url":"https://api.github.com/users/poblin-orange/events{/privacy}","received_events_url":"https://api.github.com/users/poblin-orange/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cloudfoundry-community/bosh-cloudstack-cpi-release/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-21T19:28:18Z","updated_at":"2015-12-22T11:25:20Z","closed_at":"2015-12-22T11:25:20Z","body":"while testing cloudstack vhd stemcell meeting this error : \r\n\r\n``` \r\n2015-12-21 19:04:47.565  INFO 27340 --- [nio-8080-exec-5] c.o.o.c.cscpi.CPIRestController          : ==> received\r\n {\"method\":\"create_stemcell\",\"arguments\":[\"/var/vcap/data/tmp/director/stemcell20151221-4269-19ggeof/image\",{\"name\":\"bosh-cloudstack-xen-ubuntu-trusty-go_agent\",\"version\":\"3160\",\"infrastructure\":\"cloudstack\",\"hypervisor\":\"xen\",\"disk\":3072,\"disk_format\":\"vhdx\",\"container_format\":\"bare\",\"os_type\":\"linux\",\"os_distro\":\"ubuntu\",\"architecture\":\"x86_64\",\"auto_disk_config\":true}],\"context\":{\"director_uuid\":\"05569cbf-cd6f-4f13-bf68-fb0a43c5ba84\"}}\r\n2015-12-21 19:04:47.586  INFO 27340 --- [nio-8080-exec-5] c.o.o.cloudfoundry.cscpi.CPIAdapterImpl  : method : create_stemcell\r\n2015-12-21 19:04:47.869  INFO 27340 --- [nio-8080-exec-5] c.o.o.cloudfoundry.cscpi.logic.CPIImpl   : create_stemcell\r\n2015-12-21 19:04:47.869  INFO 27340 --- [nio-8080-exec-5] c.o.o.cloudfoundry.cscpi.logic.CPIImpl   : stemcell cloud_properties:\r\n stemcellName bosh-cloudstack-xen-ubuntu-trusty-go_agent\r\n stemcellVersion 3160\r\n stemcellInfrastructure  cloudstack\r\n stemcellHypervisor  xen\r\n\r\n\r\n2015-12-21 19:04:47.869  INFO 27340 --- [nio-8080-exec-5] c.o.o.cloudfoundry.cscpi.logic.CPIImpl   : Starting to upload stemcell to webdav\r\n2015-12-21 19:04:47.870  INFO 27340 --- [nio-8080-exec-5] c.o.o.c.c.w.WebdavServerAdapterImpl      : begin pushing file  cpitemplate-68882.vhd to webdav server\r\n2015-12-21 19:08:57.737  INFO 27340 --- [nio-8080-exec-5] c.o.o.c.c.w.WebdavServerAdapterImpl      : done pushing file  cpitemplate-68882.vhd to webdav server. retrieve URL is http://10.234.228.153:8080/templates/cpitemplate-68882.vhd\r\n\r\n2015-12-21 19:09:00.709 ERROR 27340 --- [nio-8080-exec-8] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception\r\n\r\njava.io.IOException: Resource content too long (beyond Integer.MAX_VALUE): URL [file:/var/vcap/store/cloudstack_cpi/webdav/cpitemplate-68882.vhd]\r\n        at org.springframework.web.servlet.resource.ResourceHttpRequestHandler.setHeaders(ResourceHttpRequestHandler.java:386)\r\n        at org.springframework.web.servlet.resource.ResourceHttpRequestHandler.handleRequest(ResourceHttpRequestHandler.java:234)\r\n        at org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:51)\r\n        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)\r\n        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)\r\n        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)\r\n        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)\r\n        at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)\r\n        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)\r\n        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)\r\n        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)\r\n        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\r\n        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n        at org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration$ApplicationContextHeaderFilter.doFilterInternal(EndpointWebMvcAutoConfiguration.java:295)\r\n        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n        at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:102)\r\n        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n\r\n```\r\n\r\nseems to be related to template size : \r\n\r\n```\r\n(env=bosh-ops,role=bosh_apidata/0,ip=10.234.228.153)root:/var/vcap/store/cloudstack_cpi/webdav\r\n# ls -lrt\r\ntotal 4787348\r\n-rw-r--r-- 1 root root 3227525632 Dec 21 19:08 cpitemplate-68882.vhd\r\n\r\n```\r\n\r\n"}}