<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Consolas, sans-serif;">
<div>
<div>
<div>I think the problem here is that I’m using the tar ball… I see there are changed related to this in the git HEAD… I’ll use HEAD from git and let you know...</div>
<div>
<div>
<div>-- </div>
<div>Angelo Failla</div>
</div>
<div>Cluster Ops - Dublin</div>
<div>Pallotron@fb.com</div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div>
<div>On 10/15/14, 4:26 PM, "Angelo Failla" <<a href="mailto:pallotron@fb.com">pallotron@fb.com</a>> wrote:</div>
</div>
<div><br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Consolas, sans-serif;">
<div>Hi,</div>
<div><br>
</div>
<div>We have started looking into migrating from bind10 to kea0.9 here at FB and I have a question about a problem I’ve noticed with lock file feature.</div>
<div>If I start the server it exits with status code 1:</div>
<div><br>
</div>
<div>
<div>$ _build/opt/syseng/kea/server/kea-dhcp4 -c syseng/kea/server/example.config.json</div>
<div>[Exit code 1 @ 08:19:42]</div>
</div>
<div><br>
</div>
<div>The current configuration file is this one (don’t worry about 0.0.0.0/0, we use a hook library to deal with everything, the "hooks-libraries": [ "” ] is needed because we compile all binaries statically at FB so the hook library is already embedded into
 the binary):</div>
<div><br>
</div>
<div>$ cat syseng/kea/server/example.config.json</div>
<div>
<div>{</div>
<div><br>
</div>
<div>"Dhcp4": {</div>
<div>    "hooks-libraries": [ "" ],</div>
<div>    "interfaces": [ ],</div>
<div>    "valid-lifetime": 4000,</div>
<div>    "renew-timer": 1000,</div>
<div>    "rebind-timer": 2000,</div>
<div>    "subnet4": [{</div>
<div>       "pool": "0.0.0.0-255.255.255.255",</div>
<div>       "subnet": "0.0.0.0/0"</div>
<div>    }]</div>
<div>},</div>
<div><br>
</div>
<div>"Logging": {</div>
<div>  "loggers": [</div>
<div>    {</div>
<div>     "name": "kea",</div>
<div>     "output_options": [{"output": "stdout"}],</div>
<div>     "severity": "INFO",</div>
<div>     "debuglevel": 0</div>
<div>    }</div>
<div>  ]</div>
<div>}</div>
<div><br>
</div>
<div>}</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>stracing the process it seems to be looking for a lock file in the build directory...</div>
<div><br>
</div>
<div>
<div>$ strace _build/opt/syseng/kea/server/kea-dhcp4 -c syseng/kea/server/example.config.json 2>&1 | grep engshare</div>
<div>open("/home/engshare/third-party2/kea/0.9/src/build-gcc-4.8.1-glibc-2.17-fb/no-pic/logger_lockfile", O_RDWR|O_CREAT, 0660) = -1 ENOENT (No such file or directory)</div>
<div>open("/home/engshare/third-party2/kea/0.9/src/build-gcc-4.8.1-glibc-2.17-fb/no-pic/logger_lockfile", O_RDWR|O_CREAT, 0660) = -1 ENOENT (No such file or directory)</div>
<div>open("/home/engshare/third-party2/kea/0.9/src/build-gcc-4.8.1-glibc-2.17-fb/no-pic/logger_lockfile", O_RDWR|O_CREAT, 0660) = -1 ENOENT (No such file or directory)</div>
<div>open("/home/engshare/third-party2/kea/0.9/src/build-gcc-4.8.1-glibc-2.17-fb/no-pic/logger_lockfile", O_RDWR|O_CREAT, 0660) = -1 ENOENT (No such file or directory)</div>
</div>
<div><br>
</div>
<div>I read about a KEA_LOCKFILE_DIR env variable in the ChangeLog:</div>
<div><br>
</div>
<div>
<div>838.  [bug]   tomek</div>
<div>  Kea components now use the KEA_LOCKFILE_DIR environment variable</div>
<div>  to specify the directory of the logging lockfile. Locking can be</div>
<div>  disabled completely by setting the variable to 'none'.</div>
<div>  (Trac #3591, git d4556e1d21766b94f2f0cda59df15e47e6f2676e)</div>
</div>
<div><br>
</div>
<div>I tried setting that to ‘none’ but it didn’t help:</div>
<div><br>
</div>
<div>
<div>$ export KEA_LOCKFILE_DIR='/tmp/'</div>
<div>[Exit code 0 @ 08:24:04]</div>
<div>$ sudo _build/opt/syseng/kea/server/kea-dhcp4 -c syseng/kea/server/example.config.json 2>&1 | grep engshare</div>
<div>[Exit code 1 @ 08:24:11]</div>
</div>
<div><br>
</div>
<div>Any idea?</div>
<div>
<div>
<div>-- </div>
<div>Angelo Failla</div>
</div>
<div>Cluster Ops - Dublin</div>
<div><a href="mailto:Pallotron@fb.com">Pallotron@fb.com</a></div>
</div>
</div>
</div>
</blockquote>
</span>
</body>
</html>