{"action":"opened","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/3552","repository_url":"https://api.github.com/repos/systemd/systemd","labels_url":"https://api.github.com/repos/systemd/systemd/issues/3552/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/3552/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/3552/events","html_url":"https://github.com/systemd/systemd/issues/3552","id":160638888,"number":3552,"title":"`machinectl image-status some-image` needs additional quota information","user":{"login":"eliasp","id":48491,"avatar_url":"https://avatars.githubusercontent.com/u/48491?v=3","gravatar_id":"","url":"https://api.github.com/users/eliasp","html_url":"https://github.com/eliasp","followers_url":"https://api.github.com/users/eliasp/followers","following_url":"https://api.github.com/users/eliasp/following{/other_user}","gists_url":"https://api.github.com/users/eliasp/gists{/gist_id}","starred_url":"https://api.github.com/users/eliasp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliasp/subscriptions","organizations_url":"https://api.github.com/users/eliasp/orgs","repos_url":"https://api.github.com/users/eliasp/repos","events_url":"https://api.github.com/users/eliasp/events{/privacy}","received_events_url":"https://api.github.com/users/eliasp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-16T11:26:40Z","updated_at":"2016-06-16T11:26:40Z","closed_at":null,"body":"### Submission type\r\n\r\n  - [x] Request for enhancement (RFE)\r\n\r\n### systemd version the issue has been seen with\r\n\r\n> 230\r\n\r\n### Used distribution\r\n\r\n> Gentoo, Kernel 4.5.0\r\n\r\n### In case of bug report: Expected behaviour you didn't see\r\n\r\n> I had a test deployment process hanging in a machine with no feedback. Only after logging in on a 2nd `machinectl login …` it became obvious what's going on: `write lastlog failed: Disk quota exceeded`\r\n> I expected to see some quota information regarding this machine in `machinectl image-status dev-web-00000000`, but it's output only shows:\r\n```\r\ndev-web-00000000\r\n            Type: subvolume\r\n            Path: /var/lib/machines/dev-web-00000000\r\n              RO: writable\r\n         Created: Thu 2016-06-16 09:40:04 CEST; 3h 20min ago\r\n           Usage: 1.8G (exclusive: 910.8M)\r\n```\r\n> Using `machinectl show-image dev-web-00000000` shows some additional information, but those are far from human-readable:\r\n```\r\nName=dev-web-00000000\r\nPath=/var/lib/machines/dev-web-00000000\r\nType=subvolume\r\nReadOnly=no\r\nCreationTimestamp=Thu 2016-06-16 09:40:04 CEST\r\nUsage=2036523008\r\nLimit=18446744073709551615\r\nUsageExclusive=955125760\r\nLimitExclusive=18446744073709551615\r\n```\r\n\r\n> Also the global `machinectl image-status` didn't indicate why this machine would have run out of its quota:\r\n```\r\n            Path: /var/lib/machines\r\n           Usage: 9.3G\r\n           Limit: 25.0G\r\n```\r\n`/var/lib/machines` is provided by a raw-backed btrfs volume setup using `machinectl set-limit 25G`:\r\n\r\n```\r\n● var-lib-machines.mount - Virtual Machine and Container Storage\r\n   Loaded: loaded (/usr/lib64/systemd/system/var-lib-machines.mount; static; vendor preset: disabled)\r\n   Active: active (mounted) since Mon 2016-06-13 07:01:18 CEST; 3 days ago\r\n    Where: /var/lib/machines\r\n     What: /dev/loop0\r\n    Tasks: 0 (limit: 512)\r\n   CGroup: /system.slice/var-lib-machines.mount\r\n\r\nJun 13 07:01:18 moria systemd[1]: Mounting Virtual Machine and Container Storage...\r\nJun 13 07:01:18 moria systemd[1]: Mounted Virtual Machine and Container Storage.\r\n```\r\n\r\n> I wonder whether the per-machine quota should be disabled altogether by default. I have a feeling like this causes more problems as it solves while it would still be possible to enable it for those environments where enforcing a quota makes sense/is desired."}}
{"actor":{"display_login":"eliasp"}}