Bug 1018706

Summary: ha-agent service can't start because failure to start sanlock
Product: Red Hat Enterprise Virtualization Manager Reporter: Leonid Natapov <lnatapov>
Component: ovirt-hosted-engine-haAssignee: Doron Fediuck <dfediuck>
Status: CLOSED DUPLICATE QA Contact: yeylon <yeylon>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: iheim, mavital, sbonazzo, srevivo
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-14 09:19:50 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:

Description Leonid Natapov 2013-10-14 08:49:04 UTC
ha-agent service can't start because failure to start sanlock because of lack of permissions.
----------------
MainThread::DEBUG::2013-10-13 18:01:44,539::hosted_engine::322::HostedEngine::(_initialize_vdsm) stderr: 
MainThread::INFO::2013-10-13 18:01:44,539::hosted_engine::324::HostedEngine::(_initialize_vdsm) Successfully verified that VDSM is attached to storage
MainThread::DEBUG::2013-10-13 18:01:44,541::hosted_engine::333::HostedEngine::(_initialize_vdsm) Path to storage domain is /rhev/data-center/mnt/orion.qa.lab.tlv.redhat.com:_export_hosted__engine1/ef4a31eb-688f-4f19-af9f-6a3e0bf82ebf
MainThread::DEBUG::2013-10-13 18:01:44,542::hosted_engine::336::HostedEngine::(_cond_start_service) Checking sanlock status
MainThread::ERROR::2013-10-13 18:02:09,594::hosted_engine::344::HostedEngine::(_cond_start_service) Starting sanlock

MainThread::WARNING::2013-10-13 18:02:15,025::hosted_engine::247::HostedEngine::(start_monitoring) Error while monitoring engine: Could not start sanlock: 

Sorry, user vdsm is not allowed to execute '/sbin/service sanlock start' as root on purple-vds3.qa.lab.tlv.redhat.com.

MainThread::WARNING::2013-10-13 18:02:15,026::hosted_engine::250::HostedEngine::(start_monitoring) Unexpected error
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py", line 236, in start_monitoring
    self._initialize_sanlock()
  File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py", line 369, in _initialize_sanlock
    self._cond_start_service('sanlock')
  File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py", line 353, in _cond_start_service
    .format(service_name, res[1]))
Exception: Could not start sanlock: Sorry, user vdsm is not allowed to execute '/sbin/service sanlock start' as root on purple-vds3.qa.lab.tlv.redhat.com.

MainThread::ERROR::2013-10-13 18:02:15,026::hosted_engine::264::HostedEngine::(start_monitoring) Shutting down the agent because of 3 failures in a row!
MainThread::DEBUG::2013-10-13 18:02:15,026::hosted_engine::270::HostedEngine::(start_monitoring) Disconnecting from ha-broker
MainThread::INFO::2013-10-13 18:02:15,027::brokerlink::54::BrokerLink::(disconnect) Closing connection to ha-broker
-------------------
vdsm-4.13.0-13.gitc08fbb6.el6_4.x86_64
ovirt-hosted-engine-setup-1.0.0-0.5.2.beta1.local.el6.noarch
ovirt-hosted-engine-ha-0.1.0-0.2.2.beta1.local.el6.noarch

Comment 1 Sandro Bonazzola 2013-10-14 09:19:50 UTC
different error output, but the same issue of bug #1013563.

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