Bug 981421

Summary: ovirt host deploy tries to start firewalld on rhel
Product: [oVirt] otopi Reporter: Ohad Basan <obasan>
Component: Plugins.networkAssignee: Alon Bar-Lev <alonbl>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Stehlik <pstehlik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: masterCC: acathrow, bazulay, dougsland, eedri, iheim, jkt, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: 1.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-10 15:11:45 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:

Description Ohad Basan 2013-07-04 16:09:12 UTC
Description of problem:

host deploy is trying to stop/start firewalld when running on rhel
rhel doesn't have firewalld therefore host deploy fails

host-deploy log snippet

2013-07-04 12:35:43 DEBUG otopi.plugins.otopi.services.rhel plugin.execute:446 execute-output: ('/sbin/service', 'firewalld', 'start') stderr:
firewalld: unrecognized service

2013-07-04 12:35:43 DEBUG otopi.context context._executeMethod:132 method exception
Traceback (most recent call last):
  File "/tmp/ovirt-oVvTxX9x0e/pythonlib/otopi/context.py", line 122, in _executeMethod
    method['method']()
  File "/tmp/ovirt-oVvTxX9x0e/otopi-plugins/otopi/network/firewalld.py", line 142, in _customization
    self._firewalld_version = self._get_firewalld_cmd_version()
  File "/tmp/ovirt-oVvTxX9x0e/otopi-plugins/otopi/network/firewalld.py", line 63, in _get_firewalld_cmd_version
    state=True,
  File "/tmp/ovirt-oVvTxX9x0e/otopi-plugins/otopi/services/rhel.py", line 188, in state
    'start' if state else 'stop'
  File "/tmp/ovirt-oVvTxX9x0e/otopi-plugins/otopi/services/rhel.py", line 96, in _executeServiceCommand
    raiseOnError=raiseOnError
  File "/tmp/ovirt-oVvTxX9x0e/pythonlib/otopi/plugin.py", line 451, in execute
    command=args[0],
RuntimeError: Command '/sbin/service' failed to execute

Comment 2 Alon Bar-Lev 2013-07-04 18:13:28 UTC
Already known.