oned lock file not cleaned on a daemon failure
|Assignee:||Vlastimil Holer||% Done:|
|Target version:||Release 5.4|
|Affected Versions:||OpenNebula 5.2|
There are some cases when oned fails to stop correctly and the lock file /var/lock/one/one is left on the disk. Same situation is if the oned is killed by force (e.g. by oomkiller). Left lock file prevents future starts and lock must be cleaned manually.
# pkill -9 oned # ls /var/lock/one/one /var/lock/one/one # systemctl start opennebula # pgrep oned
With log content:
systemd: Starting OpenNebula Cloud Controller Daemon... systemd: Started OpenNebula Cloud Controller Daemon. oned: Error: Cannot start oned, opening lock file /var/lock/one/one systemd: opennebula.service: main process exited, code=exited, status=255/n/a systemd: opennebula.service: control process exited, code=exited status=1 systemd: Stopped OpenNebula Cloud Controller Daemon. systemd: Unit opennebula.service entered failed state. thunder systemd: opennebula.service failed.