[CRIU] strangeness on pts after migration
Tycho Andersen
tycho.andersen at canonical.com
Fri Jul 1 08:07:15 PDT 2016
Hi guys,
If I do a migration where I'm ssh'd into a container, there is some
strangeness afterwards:
ubuntu at foo:~$ ls
Fatal Python error: Failed to open /dev/urandom
Aborted (core dumped)
ubuntu at foo:~$ ls /dev/urandom
Fatal Python error: Failed to open /dev/urandom
Aborted (core dumped)
ubuntu at foo:~$
Password:
ubuntu at foo:~$
ubuntu at foo:~$
ubuntu at foo:~$
ubuntu at foo:~$
ubuntu at foo:~$
ubuntu at foo:~$
ubuntu at foo:~$
ubuntu at foo:~$
ubuntu at foo:~$ ls
Login incorrect
foo login: /dev
Password:
ubuntu at foo:~$
ubuntu at foo:~$
ubuntu at foo:~$
ubuntu at foo:~$
ubuntu at foo:~$
Login incorrect
foo login: ubunt
Password:
Fatal Python error: Failed to open /dev/urandom
Aborted (core dumped)
ubuntu at foo:~$
buntu
Fatal Python error: Failed to open /dev/urandom
Aborted (core dumped)
it looks like for whatever reason, something has spawned a login on my pts
device:
ubuntu at foo:~$ ps auxf
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 45560 3740 ? Ss 15:00 0:00 /sbin/init
root 329 0.0 0.1 5724 3676 ? S<Ls 15:00 0:00 /sbin/iscsid
root 351 0.0 0.1 67464 2816 ? Ss 15:00 0:00 /bin/login --
ubuntu 376 0.0 0.0 45104 1936 ? Ss 15:00 0:00 /lib/systemd/systemd --user
ubuntu 377 0.0 0.0 60816 1536 ? S 15:00 0:00 \_ (sd-pam)
root 82 0.0 0.0 28548 1124 ? Ss 15:00 0:00 /lib/systemd/systemd-logind
root 85 0.0 0.0 27728 288 ? Ss 15:00 0:00 /usr/sbin/cron -f
daemon 86 0.0 0.0 26044 220 ? Ss 15:00 0:00 /usr/sbin/atd -f
syslog 89 0.0 0.0 262692 668 ? Ssl 15:00 0:00 /usr/sbin/rsyslogd -n
root 91 0.0 0.0 274488 744 ? Ssl 15:00 0:00 /usr/lib/accountsservice/accounts-daemon
message+ 92 0.0 0.0 42900 488 ? Ss 15:00 0:00 /usr/bin/dbus-daemon --system --address=s
root 107 0.0 0.0 277180 724 ? Ssl 15:00 0:00 /usr/lib/policykit-1/polkitd --no-debug
root 237 0.0 0.0 16120 872 ? Ss 15:00 0:00 /sbin/dhclient -1 -v -pf /run/dhclient.et
root 321 0.0 0.0 65612 740 ? Ss 15:00 0:00 /usr/sbin/sshd -D
root 374 0.0 0.0 95460 956 ? Ss 15:00 0:00 \_ sshd: ubuntu [priv]
ubuntu 413 0.0 0.0 95460 972 ? S 15:00 0:00 \_ sshd: ubuntu at pts/0
ubuntu 414 0.0 0.1 21312 3508 pts/0 Ss 15:00 0:00 \_ -bash
ubuntu 136 0.0 0.1 36084 2472 pts/0 R+ 15:01 0:00 \_ ps auxf
root 328 0.0 0.0 5224 144 ? Ss 15:00 0:00 /sbin/iscsid
root 49 0.0 0.0 35276 1728 ? Ss 15:00 0:00 /lib/systemd/systemd-journald
after a while, I get:
ubuntu at foo:~$
Login incorrect
Maximum number of tries exceeded (5)
ubuntu at foo:~$ ls -alh /dev
total 9.5K
drwxr-xr-x 8 root root 460 Jul 1 14:57 .
drwxr-xr-x 23 root root 23 Jul 1 15:00 ..
crw--w---- 1 root tty 136, 0 Jul 1 15:00 console
lrwxrwxrwx 1 root root 11 Jul 1 14:57 core -> /proc/kcore
lrwxrwxrwx 1 root root 13 Jul 1 14:57 fd -> /proc/self/fd
crw-rw-rw- 1 root root 1, 7 Jul 1 14:57 full
drwxr-xr-x 2 root root 0 Jul 1 15:00 hugepages
lrwxrwxrwx 1 root root 25 Jul 1 14:57 initctl -> /run/systemd/initctl/fifo
lrwxrwxrwx 1 root root 28 Jul 1 14:57 log -> /run/systemd/journal/dev-log
drwxr-xr-x 2 root root 4.0K Jun 29 17:38 lxd
drwx--x--x 2 root root 4.0K Jul 1 15:00 .lxd-mounts
drwxrwxrwt 2 root root 40 Jul 1 15:00 mqueue
crw-rw-rw- 1 root root 1, 3 Jul 1 14:57 null
lrwxrwxrwx 1 root root 13 Jul 1 14:57 ptmx -> /dev/pts/ptmx
drwxr-xr-x 2 root root 0 Jul 1 15:00 pts
crw-rw-rw- 1 root root 1, 8 Jul 1 14:57 random
drwxrwxrwt 2 root root 40 Jul 1 14:57 shm
lrwxrwxrwx 1 root root 15 Jul 1 14:57 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root 15 Jul 1 14:57 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root 15 Jul 1 14:57 stdout -> /proc/self/fd/1
crw-rw-rw- 1 root root 5, 0 Jul 1 14:57 tty
crw-rw-rw- 1 root root 1, 9 Jul 1 14:57 urandom
crw-rw-rw- 1 root root 1, 5 Jul 1 14:57 zero
Any ideas what might cause this? Or how to debug? It seems like the devices are
all there, but something is clearly screwy.
Tycho
More information about the CRIU
mailing list