Bug 1222010

Summary: engine refuses to add hosted-engine VM cause no active store domain is present
Product: [Retired] oVirt Reporter: Simone Tiraboschi <stirabos>
Component: ovirt-engine-coreAssignee: Roy Golan <rgolan>
Status: CLOSED DUPLICATE QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.6CC: bugs, ecohen, gklein, lsurette, michal.skrivanek, oourfali, rbalakri, sbonazzo, wodel.youchi, yeylon
Target Milestone: ---Keywords: DevelBlocker, Regression
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-17 11:24:42 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:
Bug Depends On: 1215158    
Bug Blocks: 1036731, 1215623    
Attachments:
Description Flags
engine's log file none

Description Simone Tiraboschi 2015-05-15 13:09:28 UTC
Description of problem:

As for https://bugzilla.redhat.com/show_bug.cgi?id=1215623#c8
the engine now refuses to add the engine VM cause at that point there is no Acive Datacenter cause there is no no active storage domain (hosted-engine one is directly managed by hosted-engine and not by the engine itself).

In the engine logs we could found:
2015-05-04 18:23:10,994 WARN  [org.ovirt.engine.core.bll.AddVmFromScratchCommand] (DefaultQuartzScheduler_Worker-85) [1c4d795d] CanDoAction of action 'AddVmFromScratch' failed for user null@N/A. Reasons: VAR__ACTION__ADD,VAR__TYPE__VM,ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND
2015-05-04 18:23:10,995 INFO  [org.ovirt.engine.core.bll.AddVmFromScratchCommand] (DefaultQuartzScheduler_Worker-85) [1c4d795d] Lock freed to object 'EngineLock [exclusiveLocks= key: HostedEngine value: VM_NAME
, sharedLocks= ]'

ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND was recently added, change-Id: I2586b0026c85f053b6cd0aebeb555d760afc0937


Version-Release number of selected component (if applicable):
3.6-master

How reproducible:
100%

Steps to Reproduce:
1. deploy hosted-engine
2.
3.

Actual results:
It fails adding the engine-vm to the engine.

Expected results:
Engine-vm got added into the engine either cause the hosted-engine storage domains was added to the engine as for https://bugzilla.redhat.com/show_bug.cgi?id=1215158 or cause ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND got ignored for the engine-vm.

Additional info:
It happens on each kind of storage

Comment 1 Simone Tiraboschi 2015-05-15 13:57:10 UTC
Adding the first storage domain is enough to solve it: when you add the first data domain the datacenter comes up and the engine-VM got shown.

Comment 2 Maor 2015-05-16 07:30:16 UTC
Eldan,

Can u please take a look at this, I'm not sure if we can remove this CDA (change-id I2586b0026c85f053b6cd0aebeb555d760afc0937) right now, though it seems that the behavior currently blocks adding Hosted Engine

Comment 3 Maor 2015-05-17 17:53:54 UTC
Moving to virt per the bug description indicating the problem is mainly with the HE and Storage Pool

Comment 4 Maor 2015-05-18 12:13:47 UTC
After discussing with Roy and Omer, moving this to SLA since the fix will eventually be in the SLA side

Comment 5 wodel 2015-08-04 10:52:26 UTC
Created attachment 1059026 [details]
engine's log file

engine's VM log file

Comment 6 Roy Golan 2015-09-17 11:24:42 UTC

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