)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":15313,"name":"Toby Oxborrow","email":"tobyox@cisco.com","username":"toby.oxborrow"},"change_message_id":"d300d59b30d896593a7648ab7e2f7b9eabbd34da","unresolved":false,"context_lines":[{"line_number":10,"context_line":"(\u003cMIN_LXC_VG_SIZE_B) if it does not find either a VG or"},{"line_number":11,"context_line":"existing mount point."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"The VG creation code checks for minimum size, but the final fall back that creates a partition does not."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I4942321f1253e7ae4773d04d28122c90c91f39a0"},{"line_number":16,"context_line":"Closes-Bug: 1488670"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7a2fa921_b236bbb2","line":13,"updated":"2015-10-15 15:58:16.000000000","message":"Subsequent lines should be wrapped at 72 characters","commit_id":"da353d5a76d25df712c1e85d72a4e043002892ee"},{"author":{"_account_id":10881,"name":"Neill Cox","email":"neill@ingenious.com.au","username":"neillc"},"change_message_id":"925f6c0e10a493ba5754e2fd0cbf653486e13efd","unresolved":false,"context_lines":[{"line_number":10,"context_line":"(\u003cMIN_LXC_VG_SIZE_B) if it does not find either a VG or"},{"line_number":11,"context_line":"existing mount point."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"The VG creation code checks for minimum size, but the final fall back that creates a partition does not."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I4942321f1253e7ae4773d04d28122c90c91f39a0"},{"line_number":16,"context_line":"Closes-Bug: 1488670"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"ba8a016a_6c6102a8","line":13,"in_reply_to":"7a2fa921_b236bbb2","updated":"2015-11-24 06:24:52.000000000","message":"Done","commit_id":"da353d5a76d25df712c1e85d72a4e043002892ee"}],"scripts/scripts-library.sh":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"c510ab5c1749c7a9970ca8fcd65dffb8bc2b1fa1","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        fi"},{"line_number":98,"context_line":"      else"},{"line_number":99,"context_line":"        if ! grep \u0027/var/lib/lxc\u0027 /proc/mounts 2\u003e\u00261; then"},{"line_number":100,"context_line":"          if [ \"${blk_dev_size_b}\" -gt \"${MIN_LXC_VG_SIZE_B}\" ]; then"},{"line_number":101,"context_line":"            parted --script /dev/${blk_dev} mklabel gpt"},{"line_number":102,"context_line":"            parted --script /dev/${blk_dev} mkpart lxc ext4 0% 100%"},{"line_number":103,"context_line":"            part_num\u003d$(parted /dev/${blk_dev} print --machine | awk -F\u0027:\u0027 \u0027/lxc/ {print $1}\u0027)"}],"source_content_type":"text/x-sh","patch_set":1,"id":"fa1b9901_f846f8be","line":100,"updated":"2015-08-25 23:05:23.000000000","message":"So the trouble here is that this min size doesn\u0027t apply here - if this section is used, then lxc ends up using a lot less space as it only uses the amount of space consumed by the files put into each container. This is different to when there\u0027s an lxc vg because in that case the lv\u0027s have a set amount of space reserved. Perhaps we should rethink this whole thing and change this to use thin lv\u0027s instead which will allow us to drop this min size considerably?","commit_id":"da353d5a76d25df712c1e85d72a4e043002892ee"},{"author":{"_account_id":10881,"name":"Neill Cox","email":"neill@ingenious.com.au","username":"neillc"},"change_message_id":"925f6c0e10a493ba5754e2fd0cbf653486e13efd","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        fi"},{"line_number":98,"context_line":"      else"},{"line_number":99,"context_line":"        if ! grep \u0027/var/lib/lxc\u0027 /proc/mounts 2\u003e\u00261; then"},{"line_number":100,"context_line":"          if [ \"${blk_dev_size_b}\" -gt \"${MIN_LXC_VG_SIZE_B}\" ]; then"},{"line_number":101,"context_line":"            parted --script /dev/${blk_dev} mklabel gpt"},{"line_number":102,"context_line":"            parted --script /dev/${blk_dev} mkpart lxc ext4 0% 100%"},{"line_number":103,"context_line":"            part_num\u003d$(parted /dev/${blk_dev} print --machine | awk -F\u0027:\u0027 \u0027/lxc/ {print $1}\u0027)"}],"source_content_type":"text/x-sh","patch_set":1,"id":"ba8a016a_2c121a0a","line":100,"in_reply_to":"da20952f_40cc2989","updated":"2015-11-24 06:24:52.000000000","message":"fs backed limit lowered to 80GB. Have left if test alone for now as I\u0027m leery of changing the flow of this script.","commit_id":"da353d5a76d25df712c1e85d72a4e043002892ee"},{"author":{"_account_id":7217,"name":"Hugh Saunders","email":"hugh@wherenow.org","username":"hughsaunders"},"change_message_id":"968dfbb7d05a27c6ce34b2913652c2860c1d1cce","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        fi"},{"line_number":98,"context_line":"      else"},{"line_number":99,"context_line":"        if ! grep \u0027/var/lib/lxc\u0027 /proc/mounts 2\u003e\u00261; then"},{"line_number":100,"context_line":"          if [ \"${blk_dev_size_b}\" -gt \"${MIN_LXC_VG_SIZE_B}\" ]; then"},{"line_number":101,"context_line":"            parted --script /dev/${blk_dev} mklabel gpt"},{"line_number":102,"context_line":"            parted --script /dev/${blk_dev} mkpart lxc ext4 0% 100%"},{"line_number":103,"context_line":"            part_num\u003d$(parted /dev/${blk_dev} print --machine | awk -F\u0027:\u0027 \u0027/lxc/ {print $1}\u0027)"}],"source_content_type":"text/x-sh","patch_set":1,"id":"da20952f_00563129","line":100,"in_reply_to":"da20952f_40cc2989","updated":"2015-08-27 14:58:16.000000000","message":"fs backed limit should probably be checked in an elif rather than a separate test.","commit_id":"da353d5a76d25df712c1e85d72a4e043002892ee"},{"author":{"_account_id":7217,"name":"Hugh Saunders","email":"hugh@wherenow.org","username":"hughsaunders"},"change_message_id":"ee5c9a3bbf91c841061882aca9cac0555de955a1","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        fi"},{"line_number":98,"context_line":"      else"},{"line_number":99,"context_line":"        if ! grep \u0027/var/lib/lxc\u0027 /proc/mounts 2\u003e\u00261; then"},{"line_number":100,"context_line":"          if [ \"${blk_dev_size_b}\" -gt \"${MIN_LXC_VG_SIZE_B}\" ]; then"},{"line_number":101,"context_line":"            parted --script /dev/${blk_dev} mklabel gpt"},{"line_number":102,"context_line":"            parted --script /dev/${blk_dev} mkpart lxc ext4 0% 100%"},{"line_number":103,"context_line":"            part_num\u003d$(parted /dev/${blk_dev} print --machine | awk -F\u0027:\u0027 \u0027/lxc/ {print $1}\u0027)"}],"source_content_type":"text/x-sh","patch_set":1,"id":"da20952f_40cc2989","line":100,"in_reply_to":"fa1b9901_893d2cdf","updated":"2015-08-27 14:50:31.000000000","message":"You could set a lower min for fs backed lxc, doesn\u0027t need to be 250 GB. Should be \u003c\u003d80 for compatibility with gate instances provided by infra.","commit_id":"da353d5a76d25df712c1e85d72a4e043002892ee"},{"author":{"_account_id":10881,"name":"Neill Cox","email":"neill@ingenious.com.au","username":"neillc"},"change_message_id":"c53825d9fc341eb98ffe6662de2cb8f45d4b6267","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        fi"},{"line_number":98,"context_line":"      else"},{"line_number":99,"context_line":"        if ! grep \u0027/var/lib/lxc\u0027 /proc/mounts 2\u003e\u00261; then"},{"line_number":100,"context_line":"          if [ \"${blk_dev_size_b}\" -gt \"${MIN_LXC_VG_SIZE_B}\" ]; then"},{"line_number":101,"context_line":"            parted --script /dev/${blk_dev} mklabel gpt"},{"line_number":102,"context_line":"            parted --script /dev/${blk_dev} mkpart lxc ext4 0% 100%"},{"line_number":103,"context_line":"            part_num\u003d$(parted /dev/${blk_dev} print --machine | awk -F\u0027:\u0027 \u0027/lxc/ {print $1}\u0027)"}],"source_content_type":"text/x-sh","patch_set":1,"id":"fa1b9901_893d2cdf","line":100,"in_reply_to":"fa1b9901_f846f8be","updated":"2015-08-26 01:38:58.000000000","message":"I think there needs to be some limit though. I found that configure_diskspace was happily trying to use the 2G swap partition on my cloud instance. A du -sh says /var/lib/lxc is using 24G. There may be some double counting because of lxc magic, but 2G was certainly not enough.","commit_id":"da353d5a76d25df712c1e85d72a4e043002892ee"}]}
