An LXC container (under 2.1) that was initially running fine has ended up with some namespace problems.
‘lxc-ls -f’ shows:
# lxc-ls -f
The configuration file contains legacy configuration keys.
Please update your configuration file!
lxc-ls: utils.c: switch_to_ns: 1119 No such file or directory - failed to open /proc/128562/ns/net
lxc-ls: lxccontainer.c: do_lxcapi_get_interfaces: 2039 No such file or directory - failed to enter namespace
lxc-ls: utils.c: switch_to_ns: 1119 No such file or directory - failed to open /proc/128562/ns/net
lxc-ls: lxccontainer.c: do_lxcapi_get_ips: 2131 No such file or directory - failed to enter namespace
lxc-ls: utils.c: switch_to_ns: 1119 No such file or directory - failed to open /proc/128562/ns/net
lxc-ls: lxccontainer.c: do_lxcapi_get_ips: 2131 No such file or directory - failed to enter namespace
NAME STATE AUTOSTART GROUPS IPV4 IPV6
2619278-12 RUNNING 0 - - -
A list of the related ns dir shows:
# ls -l /proc/128562/ns
ls: cannot read symbolic link '/proc/128562/ns/net': No such file or directory
ls: cannot read symbolic link '/proc/128562/ns/uts': No such file or directory
ls: cannot read symbolic link '/proc/128562/ns/ipc': No such file or directory
ls: cannot read symbolic link '/proc/128562/ns/mnt': No such file or directory
ls: cannot read symbolic link '/proc/128562/ns/cgroup': No such file or directory
total 0
lrwxrwxrwx 1 root root 0 Apr 24 13:32 cgroup
lrwxrwxrwx 1 root root 0 Apr 24 13:32 ipc
lrwxrwxrwx 1 root root 0 Apr 24 13:32 mnt
lrwxrwxrwx 1 root root 0 Apr 24 13:32 net
lrwxrwxrwx 1 root root 0 Apr 24 13:32 pid -> pid:[4026535758]
lrwxrwxrwx 1 root root 0 Apr 26 15:35 user -> user:[4026531837]
lrwxrwxrwx 1 root root 0 Apr 24 13:32 uts
lxc-stop has no effect and I am suspicious that this situation occurred because of an attempted lxc-stop call.
It would be helpful to know why this is happening, but more importantly, what options do I have to clean this up? Am I forced to reboot?
Thanks