In my case momd is static and not running:
[root@ovirt1 ~]# systemctl status mom-vdsm.service momd.service
● mom-vdsm.service - MOM instance configured for VDSM purposes
Loaded: loaded (/usr/lib/systemd/system/mom-vdsm.service; enabled; vendor preset:
enabled)
Active: active (running) since нд 2020-09-27 20:58:09 EEST; 28min ago
Main PID: 6153 (python)
Tasks: 6
CGroup: /system.slice/mom-vdsm.service
└─6153 python /usr/sbin/momd -c /etc/vdsm/mom.conf
сеп 27 20:58:09 ovirt1.localdomain systemd[1]: Started MOM instance configured for VDSM
purposes.
● momd.service - Memory Overcommitment Manager Daemon
Loaded: loaded (/usr/lib/systemd/system/momd.service; static; vendor preset: disabled)
Active: inactive (dead)
What is the status of mom-vdsm.service ?
Best Regards,
Strahil Nikolov
В неделя, 27 септември 2020 г., 10:06:39 Гринуич+3, duhongyu <du_hongyu(a)yeah.net>
написа:
hi
I try to start momd by "systemctl restart momd" but it can't run , so I run
momd by " /usr/sbin/momd -c /etc/momd.conf "
[root@node0 mom]# /usr/sbin/momd -c /etc/momd.conf
2020-09-27 14:31:12,291 - mom - INFO - MOM starting
2020-09-27 14:31:12,381 - mom.HostMonitor - INFO - Host Monitor starting
2020-09-27 14:31:12,381 - mom - INFO - hypervisor interface vdsm
2020-09-27 14:31:12,690 - mom - ERROR - Unable to import hypervisor interface: vdsm
2020-09-27 14:31:12,707 - mom.GuestManager - INFO - Guest Manager starting: multi-thread
2020-09-27 14:31:12,708 - mom.GuestManager - INFO - Guest Manager ending
2020-09-27 14:31:12,708 - mom.PolicyEngine - INFO - Policy Engine starting
2020-09-27 14:31:12,709 - mom.RPCServer - INFO - RPC Server is disabled
2020-09-27 14:31:12,710 - mom - INFO - Shutting down RPC server.
2020-09-27 14:31:12,710 - mom.PolicyEngine - INFO - Policy Engine ending
2020-09-27 14:31:12,710 - mom - INFO - Waiting for RPC server thread.
2020-09-27 14:31:12,710 - mom - INFO - Waiting for policy engine thread.
2020-09-27 14:31:12,710 - mom - INFO - Waiting for guest manager thread.
2020-09-27 14:31:12,710 - mom - INFO - Waiting for host monitor thread.
2020-09-27 14:31:12,828 - mom.HostMonitor - INFO - HostMonitor is ready
2020-09-27 14:31:17,710 - mom - INFO - MOM ending
/usr/lib/python2.7/site-packages/mom/HypervisorInterfaces/vdsmInterface.py
import sys
sys.path.append('/usr/share/vdsm')
import API
import supervdsm
import logging
import traceback
from mom.HypervisorInterfaces.HypervisorInterface import HypervisorInterface, \
HypervisorInterfaceError
after I debug momd, I find not import API and supervdsm, can you give me some
suggestion?
--
Regards
Hongyu Du
_______________________________________________
Users mailing list -- users(a)ovirt.org
To unsubscribe send an email to users-leave(a)ovirt.org
Privacy Statement:
https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/64US76ZW5GV...