Bug 1374317

Summary: Logging: improve error when cannot extract HEVM OVF
Product: [oVirt] ovirt-hosted-engine-ha Reporter: Yaniv Kaul <ykaul>
Component: GeneralAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED CURRENTRELEASE QA Contact: sefi litmanovich <slitmano>
Severity: medium Docs Contact:
Priority: medium    
Version: ---CC: bugs, gveitmic, logank
Target Milestone: ovirt-4.1.0-betaFlags: rule-engine: ovirt-4.1+
Target Release: 2.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-16 14:48:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Yaniv Kaul 2016-09-08 12:37:12 UTC
Description of problem:
Log is not verbose enough when failing to read OVF:
MainThread::INFO::2016-09-08 14:48:53,797::ovf_store::118::ovirt_hosted_engine_ha.lib.ovf.ovf_store.OVFStore::(getEngineVMOVF) OVF_STORE volume path: /rhev/data-center/mnt/blockSD/373542dd-0aab-4d28-b587-4504c354e2d7/images/98a9d227-e5dc-4a19-8970-d55b01bc3e76/37fcec52-c1c9-483e-870e-cbc53142163c
MainThread::ERROR::2016-09-08 14:48:53,833::ovf_store::123::ovirt_hosted_engine_ha.lib.ovf.ovf_store.OVFStore::(getEngineVMOVF) Unable to extract HEVM OVF

<--- is it because it is missing? Can't be extracted? Partial/corrupted?

MainThread::ERROR::2016-09-08 14:48:53,834::config::235::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config::(refresh_local_conf_file) Unable to get vm.conf from OVF_STORE, falling back to initial vm.conf

Comment 1 Logan Kuhn 2016-10-25 17:52:13 UTC
I've actually got the exact same problem.  My installation is functional, but only because I've started it with an alternate vm.conf.  The error message is identical to what Yaniv reported aside from the parts that shouldn't be, UUID/path

Comment 2 sefi litmanovich 2017-03-06 14:00:45 UTC
Verified with ovirt-hosted-engine-ha-2.1.0.4-1.el7ev.noarch.
Created HE env and did not add a new storage domain to it. in agent.log I get:
MainThread::ERROR::2017-03-06 16:00:09,678::config::450::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config::(_get_vm_conf_content_from_ovf_store) Unable to identify the OVF_STORE volume, falling back to initial vm.conf. Pleas
e ensure you already added your first data domain for regular VMs