<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><blockquote type="cite" class="">On Jun 29, 2015, at 10:32, Johannes Ernst <<a href="mailto:johannes.ernst@gmail.com" class="">johannes.ernst@gmail.com</a>> wrote:<br class=""></blockquote><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class="">I was hoping that<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>getent hosts <containername><br class="">would work, just like<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>getent hosts <hostname><br class="">where <hostname> can be anything else in the hosts: field in nsswitch.conf. But no such luck.<br class=""><br class="">The <containername> does get resolved correctly in other cases, e.g. when pinging it.<br class=""><br class="">Not knowing how getent actually works, I don’t know why that is, but I figured I mention it.<br class=""></div></blockquote><br class=""></div><div>I take it back. A reboot fixed it.</div><div><br class=""></div><div>It appears I had a different problem: machinectl (suddenly) stopped showing any containers, but ps still showed several systemd-nspawn processes. These containers were originally shown with machinectl. The corresponding nics were also still there. Wildly speculating, I’d say it might be possible that getent stopped working at that time, and “ping” used a cached value.</div><div><br class=""></div><div>This may be the same situation as I reported here: <a href="http://lists.freedesktop.org/archives/systemd-devel/2015-June/033150.html" class="">http://lists.freedesktop.org/archives/systemd-devel/2015-June/033150.html</a> — perhaps the container was still there, it just didn’t show up with machinectl any more, which made me believe it was a leftover interface.</div><div><br class=""></div><div>(No, I did not touch —register, and note the containers did show up with machinectl after they had been started)</div><div><br class=""></div><div>I’ll see whether I can reproduce this, after reboot.</div><div><br class=""></div><div>Cheers,</div><div><br class=""></div><div><br class=""></div><div><br class=""></div><div>Johannes.</div><div><br class=""></div></body></html>