Bug 1257395

Summary: Ovirt hosted engine agent fails to start after deploy to NFSv3 on 3.6 Beta
Product: [Retired] oVirt Reporter: Darryl Bond <darryl.bond>
Component: ovirt-hosted-engine-haAssignee: Doron Fediuck <dfediuck>
Status: CLOSED DUPLICATE QA Contact: meital avital <mavital>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.6CC: bugs, ecohen, gklein, lsurette, rbalakri, stirabos, yeylon
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-27 12:21:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Darryl Bond 2015-08-27 02:16:55 UTC
Description of problem: ovirt_hosted_engine ha agent will not start after successful deploy on Centos 7 with current updates. Ovirt repository set to 3.6 via the Ovirt 3.6 beta release notes.


Version-Release number of selected component (if applicable): 
ovirt-hosted-engine-ha-1.3.0-0.0.master.20150819082520.20150819082516.git183a4ff.el7.noarch

How reproducible: Fails every attempt.


Steps to Reproduce:
1. Install ovirt_hosted_engine --deploy
2. Successfully create the VM and complete the deploy
3. Check to see if VM is running

Actual results:
The VM is not running and the agent fails with the following errors:
MainThread::INFO::2015-08-27 11:29:36,915::hosted_engine::235::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_get_hostname) Found certificate common name: ovirt36-h2.gps.local
MainThread::INFO::2015-08-27 11:29:36,916::hosted_engine::577::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_vdsm) Initializing VDSM
MainThread::INFO::2015-08-27 11:29:36,973::hosted_engine::620::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_storage_images) Connecting the storage
MainThread::INFO::2015-08-27 11:29:36,973::storage_server::110::ovirt_hosted_engine_ha.lib.storage_server.StorageServer::(connect_storage_server) Connecting storage server
MainThread::ERROR::2015-08-27 11:29:36,973::agent::201::ovirt_hosted_engine_ha.agent.agent.Agent::(_run_agent) Error: ''StorageServer' object has no attribute 'storageType'' - trying to restart agent
MainThread::WARNING::2015-08-27 11:29:41,979::agent::204::ovirt_hosted_engine_ha.agent.agent.Agent::(_run_agent) Restarting agent, attempt '9'
MainThread::ERROR::2015-08-27 11:29:41,979::agent::206::ovirt_hosted_engine_ha.agent.agent.Agent::(_run_agent) Too many errors occurred, giving up. Please review the log and consider filing a bug.
MainThread::INFO::2015-08-27 11:29:41,979::agent::143::ovirt_hosted_engine_ha.agent.agent.Agent::(run) Agent shutting down


Expected results:
Successful start of the agent


Additional info:

Comment 1 Darryl Bond 2015-08-27 04:38:47 UTC
And this is the fix:
diff /usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/storage_server.py.db /usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/storage_server.py
69c69
<         if self.storageType == constants.DOMAIN_TYPE_GLUSTERFS:
---
>         if self._domain_type == constants.DOMAIN_TYPE_GLUSTERFS:

Comment 2 Simone Tiraboschi 2015-08-27 12:21:05 UTC

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