<div dir="ltr">Hey Guys,<div><br></div><div>We're running Arch Linux kernel-3.15 with lxc containers, systemd 215 without any issue.</div><div><br></div><div>But with 3.17 + systemd 217 we have very strange issues:</div><div><br></div><div>We have this target file:</div><div><br></div><div>[root@i-8452c468 system]# cat /home/wooh/container/system/container.target</div><div><div>[Unit]</div><div>Description=container.target</div><div>Requires=basic.target</div><div><br></div><div>[Install]</div><div>Alias=container.target</div><div><br></div><div>Pwd:</div><div>[root@i-8452c468 system]# pwd</div><div>/home/wooh/container/system<br></div><div><br></div><div>We have these links in:</div><div><div>[root@i-8452c468 system]# ls -lart container.target.wants/</div><div>total 8</div><div>lrwxrwxrwx 1 root root 38 Apr 27 2014 dns-resset.service -> /etc/systemd/system/dns-resset.service</div><div>drwxr-xr-x 8 root root 4096 Dec 11 08:51 ..</div><div>lrwxrwxrwx 1 root root 41 Dec 11 09:01 private-mount.service -> /etc/systemd/system/private-mount.service</div><div>lrwxrwxrwx 1 root root 48 Dec 11 09:01 jenkins-master-runit.service -> /etc/systemd/system/jenkins-master-runit.service</div><div>lrwxrwxrwx 1 root root 49 Dec 11 09:01 container-mail-forward.socket -> /etc/systemd/system/container-mail-forward.socket</div><div>lrwxrwxrwx 1 root root 35 Dec 11 09:01 sshd.socket -> /usr/lib/systemd/system/sshd.socket</div><div>lrwxrwxrwx 1 root root 40 Dec 11 09:01 iptables.service -> /usr/lib/systemd/system/iptables.service</div><div>lrwxrwxrwx 1 root root 39 Dec 11 09:01 check-private.timer -> /etc/systemd/system/check-private.timer</div><div>lrwxrwxrwx 1 root root 41 Dec 11 09:01 check-private.service -> /etc/systemd/system/check-private.service</div></div><div><br></div><div>These links are created by chef and/or coming from an EC2 volume-snapshot, so some of them are already there for years.</div><div><br></div><div>But when I start the linux-contaner using the following command below, almost all links in container.target.wants/ gets deleted, except 1 or 2.</div><div><br></div><div>/usr/bin/lxc-start -d -n wooh -l DEBUG -o /tmp/lxc-container-wooh.log -L /tmp/lxc-console-wooh.log -f /var/lib/lxc/master-config-wooh /sbin/init systemd.unit=container.target<br></div><div><br></div><div>This link remains only, all others disappear:</div><div><br></div><div><div>lrwxrwxrwx 1 root root 38 Apr 27 2014 dns-resset.service -> /etc/systemd/system/dns-resset.service</div></div><div><br></div><div><div><br></div></div><div>Any idea why my links get deleted from the .target directory? This happens only on the very first run. After the first lxc-container boot up, systemctl status shows me "degraded" state inside of the container.</div><div><br></div><div>When I re-create the links or chef re-creates them, and I stop/start the container or even reload the config inside of the container and restart container.target service, everything is working fine.</div><div><br></div><div>Why and what is removing my files from the target directories? Those are required to run the lxc-container properly otherwise it'll boot up in a dergaded state, without ssh and iptables forwarding and so on. </div><div><br></div><div>What did I miss? Is it something change between 215 - 217? I debugged it with strace and lxc-start does nothing with those files.</div><div><br></div><div>Any help is appreciated!</div><div><br></div><div>Thanks in advance,</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Adam PAPAI<div><br></div></div></div>
</div></div>