Bug 1376768

Summary: Failed importing hosted engine vm, after creation of master storage domain
Product: [oVirt] ovirt-engine Reporter: SATHEESARAN <sasundar>
Component: BLL.HostedEngineAssignee: Roy Golan <rgolan>
Status: CLOSED DUPLICATE QA Contact: SATHEESARAN <sasundar>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.0.4.2CC: bugs, stirabos
Target Milestone: ---Flags: sasundar: planning_ack?
sasundar: devel_ack?
sasundar: testing_ack?
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-16 12:06:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
snip of engine.log containing exception
none
engine.log none

Description SATHEESARAN 2016-09-16 11:23:17 UTC
Description of problem:
-----------------------
I have created a HC( Hyperconvergence ) setup with RHEL 7.2, RHGS 3.1.3 and RHV 4.0.4-3.

After creation of master storage domain, the hosted engine storage domain got imported but the process of importing the HE VM failed

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
RHEL 7.2
RHGS 3.1.3
RHV 4.0.4-3

How reproducible:
-----------------
2/2

Steps to Reproduce:
-------------------
1. Create a hosted-engine setup
2. Create a master storage domain

Actual results:
---------------
HE VM is not getting imported and as a consequence, I couldn't add any more hosts from UI

Expected results:
-----------------
HE VM should get imported

Comment 1 SATHEESARAN 2016-09-16 11:24:13 UTC
Apologies, I am not sure what value to select for oVirt Team component. I have chosen 'infra', feel free to change to the apt value

Comment 2 SATHEESARAN 2016-09-16 11:27:40 UTC
snippet of errors as seen in engine.log

<snip>
2016-09-16 16:36:48,455 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] (DefaultQuartzScheduler1) [5dc12fd9] null architecture type, replacing with x86_64, %s
2016-09-16 16:36:48,477 INFO  [org.ovirt.engine.core.bll.HostedEngineImporter] (org.ovirt.thread.pool-6-thread-42) [5dc12fd9] Try to import the Hosted Engine VM 'VM [HostedEngine]'
2016-09-16 16:36:48,637 INFO  [org.ovirt.engine.core.bll.exportimport.ImportVmCommand] (org.ovirt.thread.pool-6-thread-42) [5f92bfb7] Lock Acquired to object 'EngineLock:{exclusiveLocks='[fcc27c5d-6ded-4119-9fe9
-4ba706fdc8dc=<VM, ACTION_TYPE_FAILED_VM_IS_BEING_IMPORTED$VmName HostedEngine>, HostedEngine=<VM_NAME, ACTION_TYPE_FAILED_NAME_ALREADY_USED>]', sharedLocks='[fcc27c5d-6ded-4119-9fe9-4ba706fdc8dc=<REMOTE_VM, ACT
ION_TYPE_FAILED_VM_IS_BEING_IMPORTED$VmName HostedEngine>]'}'
2016-09-16 16:36:48,699 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.DoesImageExistVDSCommand] (org.ovirt.thread.pool-6-thread-42) [5f92bfb7] START, DoesImageExistVDSCommand( GetImageInfoVDSCommandParameters
:{runAsync='true', storagePoolId='57dbc10f-0139-0213-0313-0000000001fc', ignoreFailoverLimit='false', storageDomainId='c91aac04-04df-41bc-a7b0-2445019153a7', imageGroupId='921a1585-3253-4a08-a6a8-c471b76224c2', 
imageId='5c1ffd11-a9fe-47b2-9b52-e77c961d79cd'}), log id: 6fe07926
2016-09-16 16:36:50,827 INFO  [org.ovirt.engine.core.vdsbroker.gluster.GlusterTasksListVDSCommand] (DefaultQuartzScheduler1) [5dc12fd9] START, GlusterTasksListVDSCommand(HostName = host1, VdsIdVDSCommandParametersBase:{runAsync='true', hostId='7a7d579b-7417-4605-b345-4091c2c33037'}), log id: 1427220
2016-09-16 16:36:50,828 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.DoesImageExistVDSCommand] (org.ovirt.thread.pool-6-thread-42) [5f92bfb7] FINISH, DoesImageExistVDSCommand, return: true, log id: 6fe07926
2016-09-16 16:36:50,912 ERROR [org.ovirt.engine.core.bll.exportimport.ImportVmCommand] (org.ovirt.thread.pool-6-thread-42) [] Error during ValidateFailure.: java.lang.NullPointerException
        at org.ovirt.engine.core.bll.profiles.DiskProfileHelper.updateDiskImageProfilesList(DiskProfileHelper.java:115) [bll.jar:]
        at org.ovirt.engine.core.bll.profiles.DiskProfileHelper.setAndValidateDiskProfiles(DiskProfileHelper.java:79) [bll.jar:]
        at org.ovirt.engine.core.bll.exportimport.ImportVmCommand.setAndValidateDiskProfiles(ImportVmCommand.java:1105) [bll.jar:]
        at org.ovirt.engine.core.bll.exportimport.ImportVmCommand.validateAfterCloneVm(ImportVmCommand.java:435) [bll.jar:]
        at org.ovirt.engine.core.bll.exportimport.ImportVmCommand.validate(ImportVmCommand.java:168) [bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.internalValidate(CommandBase.java:886) [bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.executeAction(CommandBase.java:391) [bll.jar:]
        at org.ovirt.engine.core.bll.Backend.runAction(Backend.java:493) [bll.jar:]
        at org.ovirt.engine.core.bll.Backend.runActionImpl(Backend.java:475) [bll.jar:]
        at org.ovirt.engine.core.bll.Backend.runInternalAction(Backend.java:419) [bll.jar:]
        at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source) [:1.8.0_102]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_102]
        at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_102]
        at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)



.....

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_102]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_102]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_102]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_102]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_102]

2016-09-16 16:36:50,915 INFO  [org.ovirt.engine.core.bll.exportimport.ImportVmCommand] (org.ovirt.thread.pool-6-thread-42) [] Lock freed to object 'EngineLock:{exclusiveLocks='[fcc27c5d-6ded-4119-9fe9-4ba706fdc8dc=<VM, ACTION_TYPE_FAILED_VM_IS_BEING_IMPORTED$VmName HostedEngine>, HostedEngine=<VM_NAME, ACTION_TYPE_FAILED_NAME_ALREADY_USED>]', sharedLocks='[fcc27c5d-6ded-4119-9fe9-4ba706fdc8dc=<REMOTE_VM, ACTION_TYPE_FAILED_VM_IS_BEING_IMPORTED$VmName HostedEngine>]'}'
2016-09-16 16:36:50,916 ERROR [org.ovirt.engine.core.bll.HostedEngineImporter] (org.ovirt.thread.pool-6-thread-42) [] Failed importing the Hosted Engine VM
2016-09-16 16:36:50,923 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-6-thread-42) [] Correlation ID: null, Call Stack: null, Custom Event ID: -1, Message: Failed importing the Hosted Engine VM
</snip>

Comment 3 SATHEESARAN 2016-09-16 12:04:19 UTC
I have seen this issue with RHV 4.0.4-2 as well as with RHV 4.0.4-3 too

Comment 4 SATHEESARAN 2016-09-16 12:04:57 UTC
Created attachment 1201608 [details]
snip of engine.log containing exception

Comment 5 Simone Tiraboschi 2016-09-16 12:06:21 UTC

*** This bug has been marked as a duplicate of bug 1376751 ***

Comment 6 SATHEESARAN 2016-09-16 12:07:23 UTC
Created attachment 1201609 [details]
engine.log