{"action":"closed","issue":{"url":"https://api.github.com/repos/lxc/lxc/issues/1552","repository_url":"https://api.github.com/repos/lxc/lxc","labels_url":"https://api.github.com/repos/lxc/lxc/issues/1552/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxc/issues/1552/comments","events_url":"https://api.github.com/repos/lxc/lxc/issues/1552/events","html_url":"https://github.com/lxc/lxc/issues/1552","id":228293353,"number":1552,"title":"failed to allocate peer tty device","user":{"login":"overlayfs","id":8238443,"avatar_url":"https://avatars2.githubusercontent.com/u/8238443?v=4","gravatar_id":"","url":"https://api.github.com/users/overlayfs","html_url":"https://github.com/overlayfs","followers_url":"https://api.github.com/users/overlayfs/followers","following_url":"https://api.github.com/users/overlayfs/following{/other_user}","gists_url":"https://api.github.com/users/overlayfs/gists{/gist_id}","starred_url":"https://api.github.com/users/overlayfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/overlayfs/subscriptions","organizations_url":"https://api.github.com/users/overlayfs/orgs","repos_url":"https://api.github.com/users/overlayfs/repos","events_url":"https://api.github.com/users/overlayfs/events{/privacy}","received_events_url":"https://api.github.com/users/overlayfs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2017-05-12T13:33:25Z","updated_at":"2017-10-09T12:47:34Z","closed_at":"2017-10-09T12:47:34Z","author_association":"NONE","body":"**Issue**\r\nlxc-attach fails with error message _failed to allocate peer tty device_ in certain situations.  This issue only arose within the last few days and may be caused by the recent commit _console: fail when we cannot allocate peer tty_.\r\n\r\n**Steps to reproduce**\r\n- `lxc-create -n test -t download -- -d ubuntu -r trusty -a amd64`  # unprivileged\r\n- `lxc-start -n test`\r\n- Use the _run command_ dialogue (**Alt+F2**) to execute the following:\r\n   `lxc-attach -n test -o /tmp/lxc-attach.log -l DEBUG touch /tmp/lxc-test`\r\n\r\n**Error message**\r\nlxc-attach test xxx5.342 INFO     lxc_attach_ui - tools/lxc_attach.c:get_pty_on_host:288 - Trying to allocate a pty on the host\r\nlxc-attach test xxx5.343 ERROR    console - console.c:lxc_console_peer_default:444 - failed to open \"/dev/tty\"\r\nlxc-attach test xxx5.343 ERROR    console - console.c:lxc_console_create:549 - failed to allocate peer tty device\r\n\r\n**OS details**\r\n-  lxc-daily ppa\r\n- host & container: ubuntu-14.04 64bit\r\n- kernel: linux-generic-lts-xenial"}}
{"actor":{"display_login":"brauner"}}