On Mon, Apr 23, 2018 at 10:02 PM, Roy Golan <rgolan@redhat.com> wrote:I suspectwhere guids is empty because there is not memory volume. which fails this
List<Guid> guids = Guid.createGuidListFromString(snap.getMemoryVolume());
StorageDomain sd = getStorageDomainDao().getForStoragePool(guids.get(0), params.getStoragePoolId()); Note that this analysis is based on an incorrect version of the code since it happened with version 4.2.2.6. So it may still happen with the up-to-date code on the master branch as well. (Also note that had 'guids' be empty the exception would have been IndexOutOfBoundsException rather than NPE).On Mon, 23 Apr 2018 at 22:01 Benny Zlotnik <bzlotnik@redhat.com> wrote:Looks like a bug. Can you please file a report: https://bugzilla.redhat.com/enter_bug.cgi?product=ovirt-engi ne On Mon, Apr 23, 2018 at 9:38 PM, ~Stack~ <i.am.stack@gmail.com> wrote:Greetings,
After my rebuild, I have imported my VM's. Everything went smooth and
all of them came back, except one. One VM gives me the error "General
command validation failure." which isn't helping me when I search for
the problem.
The oVirt engine logs aren't much better at pointing to what the failure
is (posted below).
Can someone help me figure out why this VM isn't importing, please?
Thanks!
~Stack~
2018-04-23 13:31:44,313-05 INFO
[org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigur ationCommand]
(default task-72) [6793fe73-7cda-4cb5-a806-7104a05c3c1b] Lock Acquired
to object 'EngineLock:{exclusiveLocks='[infra01=VM_NAME,
0b64ced5-7e4b-48cd-9d0d-24e8b905758c=VM]',
sharedLocks='[0b64ced5-7e4b-48cd-9d0d-24e8b905758c=REMOTE_VM ]'}'
2018-04-23 13:31:44,349-05 ERROR
[org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigur ationCommand]
(default task-72) [6793fe73-7cda-4cb5-a806-7104a05c3c1b] Error during
ValidateFailure.: java.lang.NullPointerException
at
org.ovirt.engine.core.bll.validator.ImportValidator.validate StorageExistsForMemoryDisks( ImportValidator.java:140)
[bll.jar:]
at
org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigura tionCommand.isValidDisks(Impor tVmFromConfigurationCommand. java:151)
[bll.jar:]
at
org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigura tionCommand.validate(ImportVmF romConfigurationCommand.java: 103)
[bll.jar:]
at
org.ovirt.engine.core.bll.CommandBase.internalValidate(Comma ndBase.java:779)
[bll.jar:]
at
org.ovirt.engine.core.bll.CommandBase.validateOnly(CommandBa se.java:368)
[bll.jar:]
at
org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner .canRunActions(PrevalidatingMu ltipleActionsRunner.java:113)
[bll.jar:]
at
org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner .invokeCommands(PrevalidatingM ultipleActionsRunner.java:99)
[bll.jar:]
at
org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner .execute(PrevalidatingMultiple ActionsRunner.java:76)
[bll.jar:]
at
org.ovirt.engine.core.bll.Backend.runMultipleActionsImpl(Bac kend.java:596)
[bll.jar:]
at
org.ovirt.engine.core.bll.Backend.runMultipleActions(Backend .java:566)
[bll.jar:]
at sun.reflect.GeneratedMethodAccessor914.invoke(Unknown Source)
[:1.8.0_161]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
[rt.jar:1.8.0_161]
at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_161]
at
org.jboss.as.ee.component.ManagedReferenceMethodInterceptor. processInvocation(ManagedRefer enceMethodInterceptor.java:52)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorC ontext.java:422)
at
org.jboss.invocation.InterceptorContext$Invocation.proceed( InterceptorContext.java:509)
at
org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.del egateInterception(Jsr299Bindin gsInterceptor.java:78)
at
org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doM ethodInterception(Jsr299Bindin gsInterceptor.java:88)
at
org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.pro cessInvocation(Jsr299BindingsI nterceptor.java:101)
at
org.jboss.as.ee.component.interceptors.UserInterceptorFactor y$1.processInvocation(UserInte rceptorFactory.java:63)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorC ontext.java:422)
at
org.jboss.invocation.InterceptorContext$Invocation.proceed( InterceptorContext.java:509)
at
org.ovirt.engine.core.bll.interceptors.CorrelationIdTrackerI nterceptor.aroundInvoke(Correl ationIdTrackerInterceptor. java:13)
[bll.jar:]
at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
[:1.8.0_161]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
[rt.jar:1.8.0_161]
at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_161]
at
org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInt erceptor.processInvocation(Man agedReferenceLifecycleMethodIn terceptor.java:89)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorC ontext.java:422)
at
org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeI nterceptor.processInvocation(E xecutionTimeInterceptor.java:4 3)
[wildfly-ejb3-11.0.0.Final.jar:11.0.0.Final]
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorC ontext.java:422)
at
org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.proc essInvocation(ConcurrentContex tInterceptor.java:45)
[wildfly-ee-11.0.0.Final.jar:11.0.0.Final]
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorC ontext.java:422)
at
org.jboss.invocation.InitialInterceptor.processInvocation(In itialInterceptor.java:40)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorC ontext.java:422)
at
org.jboss.invocation.ChainedInterceptor.processInvocation(Ch ainedInterceptor.java:53)
at
org.jboss.as.ee.component.interceptors.ComponentDispatcherIn terceptor.processInvocation(Co mponentDispatcherInterceptor. java:52)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorC ontext.java:422)
at
org.jboss.as.ejb3.component.singleton.SingletonComponentInst anceAssociationInterceptor.pro cessInvocation(SingletonCompon entInstanceAssociationIntercep tor.java:53)
[wildfly-ejb3-11.0.0.Final.jar:11.0.0.Final]
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorC ontext.java:422)
at
org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInte rceptor.java:264)
[wildfly-ejb3-11.0.0.Final.jar:11.0.0.Final]
at
org.jboss.as.ejb3.tx.CMTTxInterceptor.supports(CMTTxIntercep tor.java:379)
[wildfly-ejb3-11.0.0.Final.jar:11.0.0.Final]
at
org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTT xInterceptor.java:244)
[wildfly-ejb3-11.0.0.Final.jar:11.0.0.Final]
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorC ontext.java:422)
at
org.jboss.invocation.InterceptorContext$Invocation.proceed( InterceptorContext.java:509)
at
org.jboss.weld.ejb.AbstractEJBRequestScopeActivationIntercep tor.aroundInvoke(AbstractEJBRe questScopeActivationIntercepto r.java:73)
[weld-core-impl-2.4.3.Final.jar:2.4.3.Final]
at
org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor. processInvocation(EjbRequestSc opeActivationInterceptor.java: 89)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorC ontext.java:422)
at
org.jboss.as.ejb3.component.interceptors.CurrentInvocationCo ntextInterceptor. processInvocation(CurrentInvoc ationContextInterceptor.java: 41)
[wildfly-ejb3-11.0.0.Final.jar:11.0.0.Final]
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorC ontext.java:422)
at
org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterc eptor.processInvocation(WaitTi meInterceptor.java:47)
[wildfly-ejb3-11.0.0.Final.jar:11.0.0.Final]
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorC ontext.java:422)
at
org.jboss.as.ejb3.security.SecurityContextInterceptor.proces sInvocation(SecurityContextInt erceptor.java:100)
[wildfly-ejb3-11.0.0.Final.jar:11.0.0.Final]
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorC ontext.java:422)
at
org.jboss.as.ejb3.deployment.processors.StartupAwaitIntercep tor.processInvocation(StartupA waitInterceptor.java:22)
[wildfly-ejb3-11.0.0.Final.jar:11.0.0.Final]
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorC ontext.java:422)
at
org.jboss.as.ejb3.component.interceptors.ShutDownInterceptor Factory$1.processInvocation(Sh utDownInterceptorFactory.java: 64)
[wildfly-ejb3-11.0.0.Final.jar:11.0.0.Final]
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorC ontext.java:422)
at
org.jboss.as.ejb3.component.interceptors.LoggingInterceptor. processInvocation(LoggingInter ceptor.java:67)
[wildfly-ejb3-11.0.0.Final.jar:11.0.0.Final]
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorC ontext.java:422)
at
org.jboss.as.ee.component.NamespaceContextInterceptor.proces sInvocation(NamespaceContextIn terceptor.java:50)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorC ontext.java:422)
at
org.jboss.invocation.ContextClassLoaderInterceptor.processIn vocation(ContextClassLoaderInt erceptor.java:60)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorC ontext.java:422)
at org.jboss.invocation.InterceptorContext.run(InterceptorConte xt.java:438)
at
org.wildfly.security.manager.WildFlySecurityManager.doChecke d(WildFlySecurityManager.java: 609)
at
org.jboss.invocation.AccessCheckingInterceptor.processInvoca tion(AccessCheckingInterceptor .java:57)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorC ontext.java:422)
at
org.jboss.invocation.ChainedInterceptor.processInvocation(Ch ainedInterceptor.java:53)
at org.jboss.as.ee.component.ViewService$View.invoke(ViewServic e.java:198)
at
org.jboss.as.ee.component.ViewDescription$1.processInvocatio n(ViewDescription.java:185)
at
org.jboss.as.ee.component.ProxyInvocationHandler.invoke(Prox yInvocationHandler.java:81)
at
org.ovirt.engine.core.common.interfaces.BackendLocal$$$view2 .runMultipleActions(Unknown
Source) [common.jar:]
at
org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTService Impl.runMultipleActions(Generi cApiGWTServiceImpl.java:161)
at sun.reflect.GeneratedMethodAccessor913.invoke(Unknown Source)
[:1.8.0_161]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
[rt.jar:1.8.0_161]
at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_161]
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse( RPC.java:587)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processC all(RemoteServiceServlet.java: 333)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processC all(RemoteServiceServlet.java: 303)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processP ost(RemoteServiceServlet.java: 373)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet. doPost(AbstractRemoteServiceSe rvlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
[jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
at
org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTService Impl.service(GenericApiGWTServ iceImpl.java:78)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
[jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
at
io.undertow.servlet.handlers.ServletHandler.handleRequest(Se rvletHandler.java:85)
at
io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.d oFilter(FilterHandler.java:129