Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1146873

Summary: [import vm] [NPE] ERROR [org.ovirt.engine.core.bll.ImportVmCommand] - ...(VdsHandler.java:117) [bll.jar:]
Product: Red Hat Enterprise Virtualization Manager Reporter: Jiri Belka <jbelka>
Component: ovirt-engineAssignee: Gilad Chaplik <gchaplik>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: amureini, dfediuck, ecohen, gklein, iheim, jbelka, lpeer, lsurette, ofrenkel, rbalakri, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-07 15:36:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine.log none

Description Jiri Belka 2014-09-26 09:49:17 UTC
Created attachment 941505 [details]
engine.log

Description of problem:
can't import VM. there's empty 'CPU Profile' in the dialog box, I also have unchecked 'Collapse Snapshots' as I was to use VM's snapshots.

Error popup:

~~~
Operation Canceled
Error while executing action:

jb-w7-x64:

    General command validation failure.
~~~

~~~
2014-09-26 11:40:46,637 ERROR [org.ovirt.engine.core.bll.ImportVmCommand] (ajp-/127.0.0.1:8702-7) [2f243c40] Error during CanDoActionFailure.: org.ovirt.engine.core.common.errors.VdcBLLException: VdcBLLException: java.lang.NumberFormatException: For input string: "d8521e05b77c.bk" (Failed with error ENGINE and code 5001)
        at org.ovirt.engine.core.bll.VdsHandler.handleVdsResult(VdsHandler.java:117) [bll.jar:]
        at org.ovirt.engine.core.bll.VDSBrokerFrontendImpl.RunVdsCommand(VDSBrokerFrontendImpl.java:33) [bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.runVdsCommand(CommandBase.java:2031) [bll.jar:]
        at org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.runVdsCommand(StorageHandlingCommandBase.java:639) [bll.jar:]
        at org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.checkIfDisksExist(MoveOrCopyTemplateCommand.java:286) [bll.jar:]
        at org.ovirt.engine.core.bll.ImportVmCommand.verifyDisksIfNeeded(ImportVmCommand.java:634) [bll.jar:]
        at org.ovirt.engine.core.bll.ImportVmCommand.checkTemplateInStorageDomain(ImportVmCommand.java:613) [bll.jar:]
        at org.ovirt.engine.core.bll.ImportVmCommand.canDoActionAfterCloneVm(ImportVmCommand.java:376) [bll.jar:]
        at org.ovirt.engine.core.bll.ImportVmCommand.canDoAction(ImportVmCommand.java:210) [bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.internalCanDoAction(CommandBase.java:744) [bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.canDoActionOnly(CommandBase.java:318) [bll.jar:]
        at org.ovirt.engine.core.bll.MultipleActionsRunner.execute(MultipleActionsRunner.java:78) [bll.jar:]
        at org.ovirt.engine.core.bll.Backend.runMultipleActionsImpl(Backend.java:547) [bll.jar:]
        at org.ovirt.engine.core.bll.Backend.runMultipleActions(Backend.java:517) [bll.jar:]
        at sun.reflect.GeneratedMethodAccessor287.invoke(Unknown Source) [:1.7.0_65]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_65]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_65]
        at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52) [jboss-as-ee.jar:7.4.0.Final-redhat-19]
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar:1.1.2.Final-redhat-1]
        at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation.jar:1.1.2.Final-redhat-1]
        at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63) [jboss-as-ee.jar:7.4.0.Final-redhat-19]
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar:1.1.2.Final-redhat-1]
        at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374) [jboss-invocation.jar:1.1.2.Final-redhat-1]
        at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:74) [jboss-as-weld.jar:7.4.0.Final-redhat-19]
        at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:84) [jboss-as-weld.jar:7.4.0.Final-redhat-19]
        at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:97) [jboss-as-weld.jar:7.4.0.Final-redhat-19]
        at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63) [jboss-as-ee.jar:7.4.0.Final-redhat-19]
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar:1.1.2.Final-redhat-1]
        at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374) [jboss-invocation.jar:1.1.2.Final-redhat-1]
        at org.ovirt.engine.core.bll.interceptors.ThreadLocalSessionCleanerInterceptor.injectWebContextToThreadLocal(ThreadLocalSessionCleanerInterceptor.java:13) [bll.jar:]
        at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) [:1.7.0_65]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_65]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_65]
        at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:89) [jboss-as-ee.jar:7.4.0.Final-redhat-19]
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar:1.1.2.Final-redhat-1]
        at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation.jar:1.1.2.Final-redhat-1]
        at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63) [jboss-as-ee.jar:7.4.0.Final-redhat-19]
...
~~~
Version-Release number of selected component (if applicable):
rhevm-backend-3.5.0-0.13.beta.el6ev.noarch

How reproducible:
100% (at least on my setup)

Steps to Reproduce:
1. just import vm from export domain
2. unselect 'Collapse Snapshots' and press OK
3.

Actual results:
error, exception in engine.log

Expected results:
should work

Additional info:

Comment 1 Jiri Belka 2014-09-26 10:07:31 UTC
FYI there's Default and foobar CPU Profile created on the cluster but none of them can be selected in Import VM dialog, it's always empty in the dialog.

New BZ1146888 for CPU Profile list when 3.4 clstr is present in Import VM dialog.

Comment 3 Omer Frenkel 2014-09-30 07:04:39 UTC
i could not reproduce on master,
please attach vdsm log from the spm, 
and please attach the output of this command also run on the spm host:
# vdsClient -s 0 getImagesList 00000002-0002-0002-0002-000000000293 8a338a0d-0cc9-4f06-80fa-24bd21ccd00f

Comment 4 Allon Mureinik 2014-09-30 11:10:11 UTC
from the stacktrace it seems that one of the OVFs has a malformed reference to an image ("d8521e05b77c.bk" is not a legal Guid).

Comment 5 Jiri Belka 2014-09-30 12:52:37 UTC
#4 is probably right that it is related to *.bk file. I tried to have clean 3.5 (vt4) env on RHEL6.6 and I could not reproduce the issue.

BZBZ1146888 is still relevant in UI but it doesn't cause any issue while importing a vm from an export domain.

so it's up to you if you want to close this BZ as notabug or you would handle an issue if there is odd image as stated in #4.

Comment 6 Jiri Belka 2014-09-30 12:53:22 UTC
little note - i had to switch my host not to use jsonrpc as the setup was totally unstable but iiuc this is irrelevant to the issue.

Comment 7 Allon Mureinik 2014-10-07 15:36:08 UTC
Closing, based on comment 4.