{"action":"opened","issue":{"url":"https://api.github.com/repos/lxc/lxd/issues/2458","repository_url":"https://api.github.com/repos/lxc/lxd","labels_url":"https://api.github.com/repos/lxc/lxd/issues/2458/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxd/issues/2458/comments","events_url":"https://api.github.com/repos/lxc/lxd/issues/2458/events","html_url":"https://github.com/lxc/lxd/issues/2458","id":181122114,"number":2458,"title":"Don't create a new container if host disk doesn't have sufficient space","user":{"login":"dooferlad","id":1949960,"avatar_url":"https://avatars.githubusercontent.com/u/1949960?v=3","gravatar_id":"","url":"https://api.github.com/users/dooferlad","html_url":"https://github.com/dooferlad","followers_url":"https://api.github.com/users/dooferlad/followers","following_url":"https://api.github.com/users/dooferlad/following{/other_user}","gists_url":"https://api.github.com/users/dooferlad/gists{/gist_id}","starred_url":"https://api.github.com/users/dooferlad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dooferlad/subscriptions","organizations_url":"https://api.github.com/users/dooferlad/orgs","repos_url":"https://api.github.com/users/dooferlad/repos","events_url":"https://api.github.com/users/dooferlad/events{/privacy}","received_events_url":"https://api.github.com/users/dooferlad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-05T10:54:24Z","updated_at":"2016-10-05T10:54:24Z","closed_at":null,"body":"The template below is mostly useful for bug reports and support questions.\r\nFeel free to remove anything which doesn't apply to you and add more information where it makes sense.\r\n\r\n# Required information\r\n\r\n * Distribution: Ubuntu 16.04\r\n```\r\napiextensions: []\r\napistatus: stable\r\napiversion: \"1.0\"\r\nauth: trusted\r\nenvironment:\r\n  addresses: []\r\n  architectures:\r\n  - x86_64\r\n  - i686\r\n  driver: lxc\r\n  driverversion: 2.0.4\r\n  kernel: Linux\r\n  kernelarchitecture: x86_64\r\n  kernelversion: 4.4.0-38-generic\r\n  server: lxd\r\n  serverpid: 10184\r\n  serverversion: 2.0.4\r\n  storage: zfs\r\n  storageversion: \"5\"\r\nconfig:\r\n  core.proxy_ignore_hosts: 10.224.1.55,127.0.0.1,37.153.111.101,::1\r\n  storage.zfs_pool_name: lxd\r\npublic: false\r\n```\r\n\r\n# Issue description\r\nThis has come out of tracking some bugs down with Juju on Joyent where the root disk is small. LXD will try to create a new container and, in doing so, seems to over-allocate in the ZFS pool, triggering:\r\n\r\nFrom dmesg:\r\n\r\n`[ 1090.253680] WARNING: Pool 'lxd' has encountered an uncorrectable I/O failure and has been suspended.`\r\n\r\nhttp://paste.ubuntu.com/23274269/ is the full dmesg output from this point.\r\n\r\n```\r\nroot@c0b55d45-188c-45dc-8efd-17c6766a5425:~# zpool status -x\r\n  pool: lxd\r\n state: ONLINE\r\nstatus: One or more devices are faulted in response to IO failures.\r\naction: Make sure the affected devices are connected, then run 'zpool clear'.\r\n   see: http://zfsonlinux.org/msg/ZFS-8000-HC\r\n  scan: none requested\r\nconfig:\r\n\r\n NAME STATE READ WRITE CKSUM\r\n lxd ONLINE 0 640 0\r\n   /var/lib/lxd/zfs.img ONLINE 0 1.30K 0\r\n\r\nerrors: 640 data errors, use '-v' for a list\r\n\r\nThis particular issue is documented here:\r\nhttp://zfsonlinux.org/msg/ZFS-8000-HC/\r\n\r\nData errors took the pool offline.```\r\n\r\nA brief description of what failed or what could be improved.\r\n\r\n# Steps to reproduce\r\n\r\n 1. Keep starting LXCs until you run out of disk space"}}
{"actor":{"display_login":"dooferlad"}}