[ovirt-users] HTTP 500 - VM START
Alexander Wels
awels at redhat.com
Tue May 26 08:59:40 EDT 2015
On Monday, May 25, 2015 08:33:37 PM X.Smalbil wrote:
> Hello everybody,
>
> Can anybody tell me why I’m getting a 500 error while doing:
>
>
> POST /api/vms/91c32fdb-5d53-4f67-91eb-4c6f23a0d81d/start HTTP/1.1
> Authorization: Basic YWRt02EW50ZXJuYWw6aGFja2VyMTM=
> Content-Type: application/json
> Accept: application/json
> Host: 192.168.2.21
> Connection: close
> User-Agent: Paw/2.2.1 (Macintosh; OS X/10.10.3) GCDHTTPRequest
> Content-Length: 248
>
> {"vm":{"os":{"boot":[{"dev":"hd"},{"dev":"cdrom"}]},"initialization":{"host_
> name":"local.freak.net","cloud_init":{"network_configuration":{"nics":{"nic"
> :[{"on_boot":"true","name":"eth0","network":{}}]}},"host":{"address":"local.
> devtime.dev.nl"}}}}}
>
>
Looking at the code where the null pointer happened it appears you are missing
a boot protocol in the cloud init. However I don't know anything about how the
cloud init works. I am just looking at the code.
>
> HTTP Status 500 -
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException
>
org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(Sy
> nchronousDispatcher.java:340)
> org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDi
> spatcher.java:214)
> org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(Synchr
> onousDispatcher.java:190)
> org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispat
> cher.java:540)
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.
> java:502)
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.
> java:119)
> org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.servic
> e(ServletContainerDispatcher.java:208)
> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(Htt
> pServletDispatcher.java:55)
> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(Htt
> pServletDispatcher.java:50)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>
org.ovirt.engine.core.aaa.filters.RestApiSessionMgmtFilter.doFilter(RestApi
> SessionMgmtFilter.java:69)
> org.ovirt.engine.core.aaa.filters.EnforceAuthFilter.doFilter(EnforceAuthFil
> ter.java:39)
> org.ovirt.engine.core.aaa.filters.LoginFilter.doFilter(LoginFilter.java:74)
> org.ovirt.engine.core.aaa.filters.NegotiationFilter.doFilter(NegotiationFil
> ter.java:113)
> org.ovirt.engine.core.aaa.filters.BasicAuthenticationFilter.doFilter(BasicA
> uthenticationFilter.java:90)
> org.ovirt.engine.core.aaa.filters.SessionValidationFilter.doFilter(SessionV
> alidationFilter.java:73)
> org.ovirt.engine.core.aaa.filters.EngineSessionTokenAuthenticationFilter.do
> Filter(EngineSessionTokenAuthenticationFilter.java:31)
> org.ovirt.engine.core.aaa.filters.RestApiSessionValidationFilter.doFilter(R
> estApiSessionValidationFilter.java:32)
> org.ovirt.engine.api.common.security.CSRFProtectionFilter.doFilter(CSRFProt
> ectionFilter.java:110)
> org.ovirt.engine.api.common.security.CSRFProtectionFilter.doFilter(CSRFProt
> ectionFilter.java:101) root cause
>
> java.lang.NullPointerException
>
org.ovirt.engine.api.common.util.EnumValidator.validateEnum(EnumValidator.j
> ava:86)
> org.ovirt.engine.api.common.util.EnumValidator.validateEnum(EnumValidator.j
> ava:66)
> org.ovirt.engine.api.restapi.resource.validation.CloudInitValidator.validat
> eEnums(CloudInitValidator.java:21)
> org.ovirt.engine.api.restapi.resource.validation.VmValidator.validateEnums(
> VmValidator.java:54)
> org.ovirt.engine.api.restapi.resource.validation.VmValidator.validateEnums(
> VmValidator.java:10)
> org.ovirt.engine.api.restapi.resource.BackendResource.validateEnums(Backend
> Resource.java:348)
> org.ovirt.engine.api.restapi.resource.BackendVmResource.start(BackendVmReso
> urce.java:342) sun.reflect.GeneratedMethodAccessor1093.invoke(Unknown
> Source)
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
> l.java:43) java.lang.reflect.Method.invoke(Method.java:606)
>
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:1
> 55)
> org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:2
> 57) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222)
> org.jboss.resteasy.core.ResourceLocator.invokeOnTargetObject(ResourceLocato
> r.java:152)
> org.jboss.resteasy.core.ResourceLocator.invoke(ResourceLocator.java:91)
> org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispat
> cher.java:525)
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.
> java:502)
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.
> java:119)
> org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.servic
> e(ServletContainerDispatcher.java:208)
> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(Htt
> pServletDispatcher.java:55)
> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(Htt
> pServletDispatcher.java:50)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>
org.ovirt.engine.core.aaa.filters.RestApiSessionMgmtFilter.doFilter(RestApi
> SessionMgmtFilter.java:69)
> org.ovirt.engine.core.aaa.filters.EnforceAuthFilter.doFilter(EnforceAuthFil
> ter.java:39)
> org.ovirt.engine.core.aaa.filters.LoginFilter.doFilter(LoginFilter.java:74)
> org.ovirt.engine.core.aaa.filters.NegotiationFilter.doFilter(NegotiationFil
> ter.java:113)
> org.ovirt.engine.core.aaa.filters.BasicAuthenticationFilter.doFilter(BasicA
> uthenticationFilter.java:90)
> org.ovirt.engine.core.aaa.filters.SessionValidationFilter.doFilter(SessionV
> alidationFilter.java:73)
> org.ovirt.engine.core.aaa.filters.EngineSessionTokenAuthenticationFilter.do
> Filter(EngineSessionTokenAuthenticationFilter.java:31)
> org.ovirt.engine.core.aaa.filters.RestApiSessionValidationFilter.doFilter(R
> estApiSessionValidationFilter.java:32)
> org.ovirt.engine.api.common.security.CSRFProtectionFilter.doFilter(CSRFProt
> ectionFilter.java:110)
> org.ovirt.engine.api.common.security.CSRFProtectionFilter.doFilter(CSRFProt
> ectionFilter.java:101)
>
>
>
>
> Met vriendelijke groet, With kind regards,
>
> Xander Smalbil
>
> Netbulae Virtualization Experts
>
> ----------------
>
> Tel: 053 20 30 270 info at netbulae.eu Staalsteden 4-3A KvK 08198180
> Fax: 053 20 30 271 www.netbulae.eu 7547 TA Enschede BTW
NL821234584B01
>
> ----------------
More information about the Users
mailing list