[ovirt-users] How to delay start ovirt service?
Spickiy Nikita
n.spickiy at outlook.com
Thu Aug 17 09:11:23 UTC 2017
Hi, i try install oVirt hosted-engine. For storage i use iscsi target (Infotrend DS1012RE). I make install, but have error to service ovirt-ha-broker.service and vdsmd.service:
systemctl -l status ovirt-ha-broker.service
● ovirt-ha-broker.service - oVirt Hosted Engine High Availability Communications Broker
▽
Loaded: loaded (/usr/lib/systemd/system/ovirt-ha-broker.service; enabled; vendor preset: disabled)
▽
Active: active (running) since Thu 2017-08-17 15:28:57 +07; 48s ago
▽
Main PID: 1926 (ovirt-ha-broker)
CGroup: /system.slice/ovirt-ha-broker.service
└─1926 /usr/bin/python /usr/share/ovirt-hosted-engine-ha/ovirt-ha-broker --no-daemon
Aug 17 15:28:57 vnode10.pi.local systemd[1]: Started oVirt Hosted Engine High Availability Communications Broker.
Aug 17 15:28:57 vnode10.pi.local systemd[1]: Starting oVirt Hosted Engine High Availability Communications Broker...
Aug 17 15:29:08 vnode10.pi.local ovirt-ha-broker[1926]: ovirt-ha-broker ovirt_hosted_engine_ha.broker.listener.ConnectionHandler ERROR Error handling request, data: 'set-storage-domain FilesystemBackend dom_type=iscsi sd_uuid=817a5b54-26c1-4d7d-a711-dafdb1ea477d'
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/broker/listener.py", line 166, in handle
data)
File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/broker/listener.py", line 299, in _dispatch
.set_storage_domain(client, sd_type, **options)
File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/broker/storage_broker.py", line 66, in set_storage_domain
self._backends[client].connect()
File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py", line 470, in connect
for lv in os.listdir(os.path.join("/dev", uuid)):
OSError: [Errno 2] No such file or directory: '/dev/817a5b54-26c1-4d7d-a711-dafdb1ea477d’
systemctl -l status vdsmd.service
● vdsmd.service - Virtual Desktop Server Manager
Loaded: loaded (/usr/lib/systemd/system/vdsmd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2017-08-17 15:29:07 +07; 1min 30s ago
Process: 3686 ExecStartPre=/usr/libexec/vdsm/vdsmd_init_common.sh --pre-start (code=exited, status=0/SUCCESS)
Main PID: 3759 (vdsm)
CGroup: /system.slice/vdsmd.service
└─3759 /usr/bin/python2 /usr/share/vdsm/vdsm
Aug 17 15:29:06 vnode10.pi.local vdsmd_init_common.sh[3686]: vdsm: Running syslog_available
Aug 17 15:29:06 vnode10.pi.local vdsmd_init_common.sh[3686]: vdsm: Running nwfilter
Aug 17 15:29:07 vnode10.pi.local vdsmd_init_common.sh[3686]: vdsm: Running dummybr
Aug 17 15:29:07 vnode10.pi.local vdsmd_init_common.sh[3686]: vdsm: Running tune_system
Aug 17 15:29:07 vnode10.pi.local vdsmd_init_common.sh[3686]: vdsm: Running test_space
Aug 17 15:29:07 vnode10.pi.local vdsmd_init_common.sh[3686]: vdsm: Running test_lo
Aug 17 15:29:07 vnode10.pi.local systemd[1]: Started Virtual Desktop Server Manager.
Aug 17 15:29:08 vnode10.pi.local vdsm[3759]: vdsm throttled WARN MOM not available.
Aug 17 15:29:08 vnode10.pi.local vdsm[3759]: vdsm throttled WARN MOM not available, KSM stats will be missing.
Aug 17 15:29:08 vnode10.pi.local vdsm[3759]: vdsm root ERROR failed to retrieve Hosted Engine HA info
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/vdsm/host/api.py", line 231, in _getHaInfo
stats = instance.get_all_stats()
File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/client/client.py", line 103, in get_all_stats
self._configure_broker_conn(broker)
File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/client/client.py", line 180, in _configure_broker_conn
dom_type=dom_type)
File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py", line 177, in set_storage_domain
.format(sd_type, options, e))
RequestError: Failed to set storage domain FilesystemBackend, options {'dom_type': 'iscsi', 'sd_uuid': '817a5b54-26c1-4d7d-a711-dafdb1ea477d'}: Request failed: <type 'exceptions.OSError’>
But device exist:
ls -l /dev/817a5b54-26c1-4d7d-a711-dafdb1ea477d
total 0
lrwxrwxrwx. 1 root root 8 Aug 17 16:01 17bb9c12-c496-4fd3-b53e-ee4c8d319b43 -> ../dm-10
lrwxrwxrwx. 1 root root 8 Aug 17 16:01 1e9a3147-34ac-4020-8f95-71aa5d1a5258 -> ../dm-13
lrwxrwxrwx. 1 root root 8 Aug 17 16:01 436d8816-990e-4acd-b040-7cd948f7c0af -> ../dm-11
lrwxrwxrwx. 1 root root 8 Aug 17 16:01 eeb4b310-cc23-472c-9bce-36ce27881727 -> ../dm-12
lrwxrwxrwx. 1 root root 7 Aug 17 16:01 ids -> ../dm-5
lrwxrwxrwx. 1 root root 7 Aug 17 16:01 inbox -> ../dm-8
lrwxrwxrwx. 1 root root 7 Aug 17 16:01 leases -> ../dm-6
lrwxrwxrwx. 1 root root 7 Aug 17 16:01 master -> ../dm-9
lrwxrwxrwx. 1 root root 7 Aug 17 16:01 metadata -> ../dm-4
lrwxrwxrwx. 1 root root 7 Aug 17 16:01 outbox -> ../dm-7
I suspect the service starting before mount. I think modify After in:
/usr/lib/systemd/system/vdsmd.service
/usr/lib/systemd/system/ovirt-ha-broker.service
I add iscsid.service, but it not help. Maybe say how to fix it?
More information about the Users
mailing list