Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 480534 - app-emulation/ganeti-2.6.2 - /usr/sbin/ganeti-watcher: OSError: [Errno 2] No such file or directory: '/var/lock/ganeti-watcher.lock'
Summary: app-emulation/ganeti-2.6.2 - /usr/sbin/ganeti-watcher: OSError: [Errno 2] No ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: keepdir-var-run_lock
  Show dependency tree
 
Reported: 2013-08-10 21:18 UTC by Dustin J. Mitchell
Modified: 2014-06-14 23:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dustin J. Mitchell 2013-08-10 21:18:24 UTC
The crontask:

*/5 * * * * root [ -x /usr/sbin/ganeti-watcher ] && /usr/sbin/ganeti-watcher

emails me every five minutes:

Traceback (most recent call last):
  File "/usr/sbin/ganeti-watcher", line 21, in <module>
    sys.exit(main.Main())
  File "/usr/lib64/python2.7/site-packages/ganeti/watcher/__init__.py", line 766, in Main
    lock = utils.FileLock.Open(constants.WATCHER_LOCK_FILE)
  File "/usr/lib64/python2.7/site-packages/ganeti/utils/filelock.py", line 76, in Open
    return cls(os.fdopen(os.open(filename, os.O_RDWR | os.O_CREAT), "w+"),
OSError: [Errno 2] No such file or directory: '/var/lock/ganeti-watcher.lock'

Adding a symlink /var/lock -> /lock fixes this, but I get the impression from the other "One or more symlinks to directories have been preserved" messages I get that this should be fixed in the ebuild.
Comment 1 Dustin J. Mitchell 2013-08-10 21:19:43 UTC
Sorry, that should have been /var/lock -> /run/lock
Comment 2 Zentoo 2014-06-14 14:16:06 UTC
I got the same problem with app-emulation/ganeti-2.11.1-r1
Comment 3 Patrick McLean gentoo-dev 2014-06-14 23:26:36 UTC
This should be fixed in ganeti-2.10.5-r2 and ganeti-2.11.2-r1.