Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1059254

Summary: Add host fails - Modules sanlock are not configured
Product: [Retired] oVirt Reporter: Meni Yakove <myakove>
Component: vdsmAssignee: Dan Kenigsberg <danken>
Status: CLOSED DUPLICATE QA Contact: Pavel Stehlik <pstehlik>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.4CC: abaron, acathrow, bazulay, dougsland, gklein, iheim, mgoldboi, yeylon
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: All   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-29 13:54:37 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:
Attachments:
Description Flags
host-deploy log none

Description Meni Yakove 2014-01-29 13:52:40 UTC
Created attachment 857080 [details]
host-deploy log

Description of problem:
Add host on DataCenter 3.4 fails with error:


2014-01-29 15:46:02 DEBUG otopi.plugins.otopi.services.rhel plugin.execute:441 execute-output: ('/sbin/service', 'vdsmd', 'start') stdout:
Starting multipathd daemon: [  OK  ]
Starting rpcbind: [  OK  ]
Starting wdmd: [  OK  ]
Starting sanlock: [  OK  ]
supervdsm start[  OK  ]
vdsm: Running mkdirs
vdsm: Running configure_coredump
vdsm: Running run_init_hooks
vdsm: Running gencerts
vdsm: Running check_is_configured
libvirt is already configured for vdsm
sanlock service requires restart
Modules sanlock are not configured
 vdsm: stopped during execute check_is_configured task (task returned with error code 1).
vdsm start[FAILED]

2014-01-29 15:46:02 DEBUG otopi.plugins.otopi.services.rhel plugin.execute:446 execute-output: ('/sbin/service', 'vdsmd', 'start') stderr:
initctl: Job is already running: libvirtd
Traceback (most recent call last):
  File "/usr/bin/vdsm-tool", line 145, in <module>
    sys.exit(main())
  File "/usr/bin/vdsm-tool", line 142, in main
    return tool_command[cmd]["command"](*args[1:])
  File "/usr/lib64/python2.6/site-packages/vdsm/tool/configurator.py", line 261, in isconfigured
    raise RuntimeError(msg)
RuntimeError: 

One of the modules is not configured to work with VDSM.
To configure the module use the following:
'vdsm-tool configure [module_name]'.

If all modules are not configured try to use:
'vdsm-tool configure --force'
(The force flag will stop the module's service and start it
afterwards automatically to load the new configuration.)


2014-01-29 15:46:02 DEBUG otopi.context context._executeMethod:152 method exception
Traceback (most recent call last):
  File "/tmp/ovirt-Zj3IreHdPQ/pythonlib/otopi/context.py", line 142, in _executeMethod
method['method']()
  File "/tmp/ovirt-Zj3IreHdPQ/otopi-plugins/ovirt-host-deploy/vdsm/packages.py", line 219, in _start
    self.services.state('vdsmd', True)
  File "/tmp/ovirt-Zj3IreHdPQ/otopi-plugins/otopi/services/rhel.py", line 188, in state
    'start' if state else 'stop'
  File "/tmp/ovirt-Zj3IreHdPQ/otopi-plugins/otopi/services/rhel.py", line 96, in _executeServiceCommand
    raiseOnError=raiseOnError
  File "/tmp/ovirt-Zj3IreHdPQ/pythonlib/otopi/plugin.py", line 451, in execute
    command=args[0],
RuntimeError: Command '/sbin/service' failed to execute
2014-01-29 15:46:02 ERROR otopi.context context._executeMethod:161 Failed to execute stage 'Closing up': Command '/sbin/service' failed to execute

Version-Release number of selected component (if applicable):
ovirt-host-deploy-1.2.0-0.0.master.20131217.git47e8a5d.el6.noarch
ovirt-engine-3.4.0-0.5.beta1.el6.noarch

How reproducible:
100%

Steps to Reproduce:
1. Add host to DataCenter 3.4

Actual results:
Fails

Expected results:
Should succeed.

Additional info:

Comment 1 Alon Bar-Lev 2014-01-29 13:54:37 UTC
please search first... :)

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