)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":23163,"name":"Markos Chandras (hwoarang)","email":"markos@chandras.me","username":"mchandras"},"change_message_id":"e1c84552f6dec7dd2bc466a2576de51bc4a33d6d","unresolved":false,"context_lines":[{"line_number":11,"context_line":"small by default. This change sets the cache to \"64G\" by default allowing"},{"line_number":12,"context_line":"the cache more room to grow by."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"This change also disables the quota system once the limit has been set"},{"line_number":15,"context_line":"when running on modern systemd environments. The option"},{"line_number":16,"context_line":"`lxc_host_machine_quota_disabled` has been added to disable or enable"},{"line_number":17,"context_line":"the quota system as needed. This is done after the default limit has"},{"line_number":18,"context_line":"been set so an adequately sized sparce file can be created should it not"},{"line_number":19,"context_line":"already exist."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"\u003e More documentation can be seen here [0] with regard to the set-limit"},{"line_number":22,"context_line":"  option."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"7f96bb07_a21e965c","line":19,"range":{"start_line":14,"start_character":0,"end_line":19,"end_character":14},"updated":"2018-01-24 10:43:48.000000000","message":"I am curious. Why are you disabling the quota system? I personally feel that this patch does to different things to maybe it should have been split in two parts.","commit_id":"ae772553d4cfb03f69f1237785904c8fd600ee78"},{"author":{"_account_id":23163,"name":"Markos Chandras (hwoarang)","email":"markos@chandras.me","username":"mchandras"},"change_message_id":"0ad722145b70bc522b0d639925c18dbcd465fd3e","unresolved":false,"context_lines":[{"line_number":11,"context_line":"small by default. This change sets the cache to \"64G\" by default allowing"},{"line_number":12,"context_line":"the cache more room to grow by."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"This change also disables the quota system once the limit has been set"},{"line_number":15,"context_line":"when running on modern systemd environments. The option"},{"line_number":16,"context_line":"`lxc_host_machine_quota_disabled` has been added to disable or enable"},{"line_number":17,"context_line":"the quota system as needed. This is done after the default limit has"},{"line_number":18,"context_line":"been set so an adequately sized sparce file can be created should it not"},{"line_number":19,"context_line":"already exist."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"\u003e More documentation can be seen here [0] with regard to the set-limit"},{"line_number":22,"context_line":"  option."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"5f93b717_8de696e8","line":19,"range":{"start_line":14,"start_character":0,"end_line":19,"end_character":14},"in_reply_to":"5f93b717_11562e2b","updated":"2018-01-25 09:21:51.000000000","message":"Keeping the quotas enabled by default is not a bad option so we don\u0027t alter the default behavior during upgrades etc.\n\nThank you for the explanation. I just feel that a clarification is necessary somewhere (release note?) to explain that deployers are advised to use a sensible set-limit value even if they select to disable quotas. I know this only affects the sparse file case though but it\u0027s good to be clear about that I think. But up to you","commit_id":"ae772553d4cfb03f69f1237785904c8fd600ee78"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"d097d196364fb377348657d5adb68db7d12db869","unresolved":false,"context_lines":[{"line_number":11,"context_line":"small by default. This change sets the cache to \"64G\" by default allowing"},{"line_number":12,"context_line":"the cache more room to grow by."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"This change also disables the quota system once the limit has been set"},{"line_number":15,"context_line":"when running on modern systemd environments. The option"},{"line_number":16,"context_line":"`lxc_host_machine_quota_disabled` has been added to disable or enable"},{"line_number":17,"context_line":"the quota system as needed. This is done after the default limit has"},{"line_number":18,"context_line":"been set so an adequately sized sparce file can be created should it not"},{"line_number":19,"context_line":"already exist."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"\u003e More documentation can be seen here [0] with regard to the set-limit"},{"line_number":22,"context_line":"  option."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"5f93b717_11562e2b","line":19,"range":{"start_line":14,"start_character":0,"end_line":19,"end_character":14},"in_reply_to":"7f96bb07_a21e965c","updated":"2018-01-25 03:21:39.000000000","message":"Would it be better if I kept the quota system toggle but left it enabled by default?\n\nAs for why, I disable the quota system because it limits the area the containers can grow within a volume when set. for example:\n* If a deployer were to create a BTRFS partition and mount it at /var/lib/machines instead of using a sparce file they would eventually run into a restriction implemented by the quota system even though the disk space is adequately large. In this situation the playbooks would not be able to account for the change in quota given that there\u0027s no sparce file to manage.\n* If an operator were to grow the sparce file outside of the playbooks thinking they were doing pro-active maintenance but never reset the quota value it could create a fairly confusing situation. While the underlying volume could grow to meet the needs of the deployment the original quota value would still restrict further growth, like it would on a physical disk. \n\nSo this change is basically making it easier to understand in the sense that the container store can grow to the size of the underlying volume without having to deal with a potential quota restriction by default.","commit_id":"ae772553d4cfb03f69f1237785904c8fd600ee78"}],"releasenotes/notes/set-limit-disabled-25998f1f12987c12.yaml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"8295090045e2c9b31964a9c63941b4ee616bca1e","unresolved":false,"context_lines":[{"line_number":12,"context_line":"    ``machinectl`` quota system."},{"line_number":13,"context_line":"other:"},{"line_number":14,"context_line":"  - The variable ``lxc_host_machine_volume_size`` is used to set the size of"},{"line_number":15,"context_line":"    the default sparce file as well as define a limit within the ``machinectl``"},{"line_number":16,"context_line":"    quota system. When the ``machinectl`` quota system is enabled deployers"},{"line_number":17,"context_line":"    should appropriately set this value to the size of the container volume,"},{"line_number":18,"context_line":"    even when not using a sparce file."}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_7db47ad1","line":15,"range":{"start_line":15,"start_character":16,"end_line":15,"end_character":22},"updated":"2018-02-12 11:13:31.000000000","message":"sparse","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"fb1dc75b16fc8b6f9a374a048785a863ae2c9888","unresolved":false,"context_lines":[{"line_number":12,"context_line":"    ``machinectl`` quota system."},{"line_number":13,"context_line":"other:"},{"line_number":14,"context_line":"  - The variable ``lxc_host_machine_volume_size`` is used to set the size of"},{"line_number":15,"context_line":"    the default sparce file as well as define a limit within the ``machinectl``"},{"line_number":16,"context_line":"    quota system. When the ``machinectl`` quota system is enabled deployers"},{"line_number":17,"context_line":"    should appropriately set this value to the size of the container volume,"},{"line_number":18,"context_line":"    even when not using a sparce file."}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_84800ef7","line":15,"range":{"start_line":15,"start_character":16,"end_line":15,"end_character":22},"in_reply_to":"3fa0c359_7db47ad1","updated":"2018-02-12 14:42:03.000000000","message":"Done","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"8295090045e2c9b31964a9c63941b4ee616bca1e","unresolved":false,"context_lines":[{"line_number":15,"context_line":"    the default sparce file as well as define a limit within the ``machinectl``"},{"line_number":16,"context_line":"    quota system. When the ``machinectl`` quota system is enabled deployers"},{"line_number":17,"context_line":"    should appropriately set this value to the size of the container volume,"},{"line_number":18,"context_line":"    even when not using a sparce file."},{"line_number":19,"context_line":"  - The container image cache within machinectl has been set to \"64G\" by"},{"line_number":20,"context_line":"    default."}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_5daf3e7c","line":18,"range":{"start_line":18,"start_character":26,"end_line":18,"end_character":32},"updated":"2018-02-12 11:13:31.000000000","message":"sparse","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"fb1dc75b16fc8b6f9a374a048785a863ae2c9888","unresolved":false,"context_lines":[{"line_number":15,"context_line":"    the default sparce file as well as define a limit within the ``machinectl``"},{"line_number":16,"context_line":"    quota system. When the ``machinectl`` quota system is enabled deployers"},{"line_number":17,"context_line":"    should appropriately set this value to the size of the container volume,"},{"line_number":18,"context_line":"    even when not using a sparce file."},{"line_number":19,"context_line":"  - The container image cache within machinectl has been set to \"64G\" by"},{"line_number":20,"context_line":"    default."}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_a47bca25","line":18,"range":{"start_line":18,"start_character":26,"end_line":18,"end_character":32},"in_reply_to":"3fa0c359_5daf3e7c","updated":"2018-02-12 14:42:03.000000000","message":"Done","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"}],"tasks/lxc_cache_preparation_systemd_new.yml":[{"author":{"_account_id":13095,"name":"Marc Gariépy","email":"gariepy.marc@gmail.com","username":"mgariepy"},"change_message_id":"12b8318d412965fc2b4db1b580924ba377e22015","unresolved":false,"context_lines":[{"line_number":26,"context_line":"# NOTE(cloudnull): When modern SystemD is running everywhere this can be"},{"line_number":27,"context_line":"#  collapsed back into the base preparation task file."},{"line_number":28,"context_line":"- name: Set volume size"},{"line_number":29,"context_line":"  shell: machinectl set-limit {{ lxc_host_machine_volume_size }}G"},{"line_number":30,"context_line":"  changed_when: false"},{"line_number":31,"context_line":"  args:"},{"line_number":32,"context_line":"    executable: /bin/bash"}],"source_content_type":"text/x-yaml","patch_set":6,"id":"df87a7cf_7e2ab690","side":"PARENT","line":29,"range":{"start_line":29,"start_character":64,"end_line":29,"end_character":65},"updated":"2017-12-14 18:54:51.000000000","message":"maybe a reno for that, if a deployer set it to something already and want doesn\u0027t know he needs to set the unit in the variable?","commit_id":"84ac3442e542aeedf1396c88e0387b4ea1548eb1"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"4b22fd9dc6517eb5643d6c31b6b7c0dab49bda28","unresolved":false,"context_lines":[{"line_number":26,"context_line":"# NOTE(cloudnull): When modern SystemD is running everywhere this can be"},{"line_number":27,"context_line":"#  collapsed back into the base preparation task file."},{"line_number":28,"context_line":"- name: Set volume size"},{"line_number":29,"context_line":"  shell: machinectl set-limit {{ lxc_host_machine_volume_size }}G"},{"line_number":30,"context_line":"  changed_when: false"},{"line_number":31,"context_line":"  args:"},{"line_number":32,"context_line":"    executable: /bin/bash"}],"source_content_type":"text/x-yaml","patch_set":6,"id":"df87a7cf_62d76f51","side":"PARENT","line":29,"range":{"start_line":29,"start_character":64,"end_line":29,"end_character":65},"in_reply_to":"df87a7cf_7e2ab690","updated":"2017-12-15 02:42:37.000000000","message":"Done","commit_id":"84ac3442e542aeedf1396c88e0387b4ea1548eb1"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"027541ea2982482a7c75e84542e04d2d59208c8e","unresolved":false,"context_lines":[{"line_number":20,"context_line":"  register: cache_refresh"},{"line_number":21,"context_line":"  changed_when: cache_refresh.rc \u003d\u003d 0"},{"line_number":22,"context_line":"  failed_when: cache_refresh.rc not in [0, 1]"},{"line_number":23,"context_line":"  when:"},{"line_number":24,"context_line":"    - lxc_image_cache_refresh | bool"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"# NOTE(cloudnull): When modern SystemD is running everywhere this can be"},{"line_number":27,"context_line":"#  collapsed back into the base preparation task file."}],"source_content_type":"text/x-yaml","patch_set":9,"id":"7f96bb07_c808b929","side":"PARENT","line":24,"range":{"start_line":23,"start_character":0,"end_line":24,"end_character":36},"updated":"2018-01-23 22:07:40.000000000","message":"Why is this condition being removed? Won\u0027t this now always remove and add it back every time it runs?","commit_id":"5216fabb701de5077482d5790938bedc87012bdb"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"59db4ef030b8d28789d98214b7371df1679751fc","unresolved":false,"context_lines":[{"line_number":20,"context_line":"  register: cache_refresh"},{"line_number":21,"context_line":"  changed_when: cache_refresh.rc \u003d\u003d 0"},{"line_number":22,"context_line":"  failed_when: cache_refresh.rc not in [0, 1]"},{"line_number":23,"context_line":"  when:"},{"line_number":24,"context_line":"    - lxc_image_cache_refresh | bool"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"# NOTE(cloudnull): When modern SystemD is running everywhere this can be"},{"line_number":27,"context_line":"#  collapsed back into the base preparation task file."}],"source_content_type":"text/x-yaml","patch_set":9,"id":"7f96bb07_9df42d89","side":"PARENT","line":24,"range":{"start_line":23,"start_character":0,"end_line":24,"end_character":36},"in_reply_to":"7f96bb07_c808b929","updated":"2018-01-24 02:53:36.000000000","message":"right you are, adding this check back.","commit_id":"5216fabb701de5077482d5790938bedc87012bdb"},{"author":{"_account_id":23163,"name":"Markos Chandras (hwoarang)","email":"markos@chandras.me","username":"mchandras"},"change_message_id":"e1c84552f6dec7dd2bc466a2576de51bc4a33d6d","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"# NOTE(cloudnull): When modern SystemD is running everywhere this can be"},{"line_number":17,"context_line":"#  collapsed back into the base preparation task file."},{"line_number":18,"context_line":"- name: Set volume size"},{"line_number":19,"context_line":"  shell: machinectl set-limit {{ lxc_host_machine_volume_size }}"},{"line_number":20,"context_line":"  changed_when: false"},{"line_number":21,"context_line":"  register: machines_create"},{"line_number":22,"context_line":"  args:"},{"line_number":23,"context_line":"    executable: /bin/bash"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"- name: Disable the machinectl quota system"},{"line_number":26,"context_line":"  block:"}],"source_content_type":"text/x-yaml","patch_set":10,"id":"7f96bb07_c2588232","line":23,"range":{"start_line":18,"start_character":0,"end_line":23,"end_character":25},"updated":"2018-01-24 10:43:48.000000000","message":"This is confusing for deployers I think. I know you explain the situation in the commit message but a deployer may not pay attention to the lxc_host_machine_volume_size thinking it\u0027s not needed when they use lxc_host_machine_quota_disabled\u003dtrue\n\nMaybe you can explain that a bit more in the release note?\n\nOr maybe you can do some sanity checking for the lxc_host_machine_volume_size value?","commit_id":"ae772553d4cfb03f69f1237785904c8fd600ee78"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"8295090045e2c9b31964a9c63941b4ee616bca1e","unresolved":false,"context_lines":[{"line_number":18,"context_line":"- name: Set volume size"},{"line_number":19,"context_line":"  shell: machinectl set-limit {{ lxc_host_machine_volume_size }}"},{"line_number":20,"context_line":"  changed_when: false"},{"line_number":21,"context_line":"  register: machines_create"},{"line_number":22,"context_line":"  args:"},{"line_number":23,"context_line":"    executable: /bin/bash"},{"line_number":24,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_ddd7ceed","line":21,"range":{"start_line":21,"start_character":0,"end_line":21,"end_character":27},"updated":"2018-02-12 11:13:31.000000000","message":"Is this being used somewhere?","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"fb1dc75b16fc8b6f9a374a048785a863ae2c9888","unresolved":false,"context_lines":[{"line_number":18,"context_line":"- name: Set volume size"},{"line_number":19,"context_line":"  shell: machinectl set-limit {{ lxc_host_machine_volume_size }}"},{"line_number":20,"context_line":"  changed_when: false"},{"line_number":21,"context_line":"  register: machines_create"},{"line_number":22,"context_line":"  args:"},{"line_number":23,"context_line":"    executable: /bin/bash"},{"line_number":24,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_44abe673","line":21,"range":{"start_line":21,"start_character":0,"end_line":21,"end_character":27},"in_reply_to":"3fa0c359_ddd7ceed","updated":"2018-02-12 14:42:03.000000000","message":"Done","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"8295090045e2c9b31964a9c63941b4ee616bca1e","unresolved":false,"context_lines":[{"line_number":23,"context_line":"    executable: /bin/bash"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"- name: Disable the machinectl quota system"},{"line_number":26,"context_line":"  command: \"btrfs quota {{ lxc_host_machine_quota_disabled | bool | ternary(\u0027disable\u0027, \u0027enabled\u0027) }} /var/lib/machines\""},{"line_number":27,"context_line":"  changed_when: false"},{"line_number":28,"context_line":"  when:"},{"line_number":29,"context_line":"    - lxc_host_machine_quota_disabled | bool"}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_9db946cd","line":26,"range":{"start_line":26,"start_character":88,"end_line":26,"end_character":95},"updated":"2018-02-12 11:13:31.000000000","message":"Should this be \u0027enable\u0027?","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"fb1dc75b16fc8b6f9a374a048785a863ae2c9888","unresolved":false,"context_lines":[{"line_number":23,"context_line":"    executable: /bin/bash"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"- name: Disable the machinectl quota system"},{"line_number":26,"context_line":"  command: \"btrfs quota {{ lxc_host_machine_quota_disabled | bool | ternary(\u0027disable\u0027, \u0027enabled\u0027) }} /var/lib/machines\""},{"line_number":27,"context_line":"  changed_when: false"},{"line_number":28,"context_line":"  when:"},{"line_number":29,"context_line":"    - lxc_host_machine_quota_disabled | bool"}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_8497ae48","line":26,"range":{"start_line":26,"start_character":88,"end_line":26,"end_character":95},"in_reply_to":"3fa0c359_9db946cd","updated":"2018-02-12 14:42:03.000000000","message":"Done","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"8295090045e2c9b31964a9c63941b4ee616bca1e","unresolved":false,"context_lines":[{"line_number":25,"context_line":"- name: Disable the machinectl quota system"},{"line_number":26,"context_line":"  command: \"btrfs quota {{ lxc_host_machine_quota_disabled | bool | ternary(\u0027disable\u0027, \u0027enabled\u0027) }} /var/lib/machines\""},{"line_number":27,"context_line":"  changed_when: false"},{"line_number":28,"context_line":"  when:"},{"line_number":29,"context_line":"    - lxc_host_machine_quota_disabled | bool"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"# NOTE(cloudnull): When modern SystemD is running everywhere this can be"},{"line_number":32,"context_line":"#  collapsed back into the base preparation task file."}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_9dde260f","line":29,"range":{"start_line":28,"start_character":0,"end_line":29,"end_character":44},"updated":"2018-02-12 11:13:31.000000000","message":"Is this condition necessary, given the ternary filter usage?","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"fb1dc75b16fc8b6f9a374a048785a863ae2c9888","unresolved":false,"context_lines":[{"line_number":25,"context_line":"- name: Disable the machinectl quota system"},{"line_number":26,"context_line":"  command: \"btrfs quota {{ lxc_host_machine_quota_disabled | bool | ternary(\u0027disable\u0027, \u0027enabled\u0027) }} /var/lib/machines\""},{"line_number":27,"context_line":"  changed_when: false"},{"line_number":28,"context_line":"  when:"},{"line_number":29,"context_line":"    - lxc_host_machine_quota_disabled | bool"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"# NOTE(cloudnull): When modern SystemD is running everywhere this can be"},{"line_number":32,"context_line":"#  collapsed back into the base preparation task file."}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_a492ea55","line":29,"range":{"start_line":28,"start_character":0,"end_line":29,"end_character":44},"in_reply_to":"3fa0c359_9dde260f","updated":"2018-02-12 14:42:03.000000000","message":"Done","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"c9e2003c0f091899181ae7275a349f04a24af646","unresolved":false,"context_lines":[{"line_number":25,"context_line":"  command: \"btrfs quota {{ lxc_host_machine_quota_disabled | bool | ternary(\u0027disable\u0027, \u0027enable\u0027) }} /var/lib/machines\""},{"line_number":26,"context_line":"  changed_when: false"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"# NOTE(cloudnull): When modern SystemD is running everywhere this can be"},{"line_number":29,"context_line":"#  collapsed back into the base preparation task file."},{"line_number":30,"context_line":"- name: Remove old image cache"},{"line_number":31,"context_line":"  command: \"machinectl remove {{ lxc_container_base_name }}\""},{"line_number":32,"context_line":"  register: cache_refresh"}],"source_content_type":"text/x-yaml","patch_set":16,"id":"3fa0c359_878010f7","line":29,"range":{"start_line":28,"start_character":0,"end_line":29,"end_character":54},"updated":"2018-02-12 14:51:11.000000000","message":"Is this comment intentionally duplicated? It would seem that this is a comment related to this entire task file, not any particular task. Perhaps we can just clean this out and adjust the top level comment to make it clearer that the comment applies to all tasks in the file.","commit_id":"c006cacb8235a719d9550086d36fc150bc9c46cb"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"1c4f1c807c0c272790a5e41dce52831b723456c6","unresolved":false,"context_lines":[{"line_number":25,"context_line":"  command: \"btrfs quota {{ lxc_host_machine_quota_disabled | bool | ternary(\u0027disable\u0027, \u0027enable\u0027) }} /var/lib/machines\""},{"line_number":26,"context_line":"  changed_when: false"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"# NOTE(cloudnull): When modern SystemD is running everywhere this can be"},{"line_number":29,"context_line":"#  collapsed back into the base preparation task file."},{"line_number":30,"context_line":"- name: Remove old image cache"},{"line_number":31,"context_line":"  command: \"machinectl remove {{ lxc_container_base_name }}\""},{"line_number":32,"context_line":"  register: cache_refresh"}],"source_content_type":"text/x-yaml","patch_set":16,"id":"3fa0c359_0d02e10a","line":29,"range":{"start_line":28,"start_character":0,"end_line":29,"end_character":54},"in_reply_to":"3fa0c359_878010f7","updated":"2018-02-12 15:30:03.000000000","message":"Done","commit_id":"c006cacb8235a719d9550086d36fc150bc9c46cb"}],"tasks/lxc_cache_preparation_systemd_old.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"9fe29fc517939a3167c4658a044c03f3fe678db3","unresolved":false,"context_lines":[{"line_number":114,"context_line":"  register: cache_refresh_del"},{"line_number":115,"context_line":"  changed_when: cache_refresh_del.rc \u003d\u003d 0"},{"line_number":116,"context_line":"  failed_when: cache_refresh_del.rc not in [0, 1]"},{"line_number":117,"context_line":"  when:"},{"line_number":118,"context_line":"    - lxc_image_cache_refresh | bool"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"- name: Add image cache"},{"line_number":121,"context_line":"  command: \"btrfs subvolume create /var/lib/machines/{{ lxc_container_base_name }}\""}],"source_content_type":"text/x-yaml","patch_set":7,"id":"df87a7cf_476915bc","side":"PARENT","line":118,"range":{"start_line":117,"start_character":0,"end_line":118,"end_character":36},"updated":"2017-12-15 10:20:55.000000000","message":"Why is this conditional being removed?","commit_id":"84ac3442e542aeedf1396c88e0387b4ea1548eb1"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"1b8b651c66a083f2ceaa1ed03deb7decb295b6b8","unresolved":false,"context_lines":[{"line_number":114,"context_line":"  register: cache_refresh_del"},{"line_number":115,"context_line":"  changed_when: cache_refresh_del.rc \u003d\u003d 0"},{"line_number":116,"context_line":"  failed_when: cache_refresh_del.rc not in [0, 1]"},{"line_number":117,"context_line":"  when:"},{"line_number":118,"context_line":"    - lxc_image_cache_refresh | bool"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"- name: Add image cache"},{"line_number":121,"context_line":"  command: \"btrfs subvolume create /var/lib/machines/{{ lxc_container_base_name }}\""}],"source_content_type":"text/x-yaml","patch_set":7,"id":"df87a7cf_b0913349","side":"PARENT","line":118,"range":{"start_line":117,"start_character":0,"end_line":118,"end_character":36},"in_reply_to":"df87a7cf_476915bc","updated":"2017-12-15 16:53:31.000000000","message":"this is actually already checked at a higher level: https://github.com/openstack/openstack-ansible-lxc_hosts/blob/master/tasks/lxc_cache.yml#L34-L53","commit_id":"84ac3442e542aeedf1396c88e0387b4ea1548eb1"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"9fe29fc517939a3167c4658a044c03f3fe678db3","unresolved":false,"context_lines":[{"line_number":122,"context_line":"  register: cache_refresh_add"},{"line_number":123,"context_line":"  changed_when: cache_refresh_add.rc \u003d\u003d 0"},{"line_number":124,"context_line":"  failed_when: cache_refresh_add.rc not in [0, 1]"},{"line_number":125,"context_line":"  when:"},{"line_number":126,"context_line":"    - lxc_image_cache_refresh | bool"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"- name: Ensure image has been pre-staged"},{"line_number":129,"context_line":"  async_status:"}],"source_content_type":"text/x-yaml","patch_set":7,"id":"df87a7cf_676459e6","side":"PARENT","line":126,"range":{"start_line":125,"start_character":0,"end_line":126,"end_character":36},"updated":"2017-12-15 10:20:55.000000000","message":"Why is this conditional being removed?","commit_id":"84ac3442e542aeedf1396c88e0387b4ea1548eb1"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"1b8b651c66a083f2ceaa1ed03deb7decb295b6b8","unresolved":false,"context_lines":[{"line_number":122,"context_line":"  register: cache_refresh_add"},{"line_number":123,"context_line":"  changed_when: cache_refresh_add.rc \u003d\u003d 0"},{"line_number":124,"context_line":"  failed_when: cache_refresh_add.rc not in [0, 1]"},{"line_number":125,"context_line":"  when:"},{"line_number":126,"context_line":"    - lxc_image_cache_refresh | bool"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"- name: Ensure image has been pre-staged"},{"line_number":129,"context_line":"  async_status:"}],"source_content_type":"text/x-yaml","patch_set":7,"id":"df87a7cf_709bab65","side":"PARENT","line":126,"range":{"start_line":125,"start_character":0,"end_line":126,"end_character":36},"in_reply_to":"df87a7cf_676459e6","updated":"2017-12-15 16:53:31.000000000","message":"same as above.","commit_id":"84ac3442e542aeedf1396c88e0387b4ea1548eb1"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"9fe29fc517939a3167c4658a044c03f3fe678db3","unresolved":false,"context_lines":[{"line_number":23,"context_line":"  changed_when: false"},{"line_number":24,"context_line":"  register: machinectl_mount"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"- name: Create systemd sparce file"},{"line_number":27,"context_line":"  block:"},{"line_number":28,"context_line":"    - name: Set volume size"},{"line_number":29,"context_line":"      shell: machinectl set-limit {{ lxc_host_machine_volume_size }}"}],"source_content_type":"text/x-yaml","patch_set":7,"id":"df87a7cf_07354dda","line":26,"range":{"start_line":26,"start_character":23,"end_line":26,"end_character":29},"updated":"2017-12-15 10:20:55.000000000","message":"nit: sparse","commit_id":"bad3a1cc79e3dbea1a25b2723d89babf3ada42ec"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"1b8b651c66a083f2ceaa1ed03deb7decb295b6b8","unresolved":false,"context_lines":[{"line_number":23,"context_line":"  changed_when: false"},{"line_number":24,"context_line":"  register: machinectl_mount"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"- name: Create systemd sparce file"},{"line_number":27,"context_line":"  block:"},{"line_number":28,"context_line":"    - name: Set volume size"},{"line_number":29,"context_line":"      shell: machinectl set-limit {{ lxc_host_machine_volume_size }}"}],"source_content_type":"text/x-yaml","patch_set":7,"id":"df87a7cf_b0dff30a","line":26,"range":{"start_line":26,"start_character":23,"end_line":26,"end_character":29},"in_reply_to":"df87a7cf_07354dda","updated":"2017-12-15 16:53:31.000000000","message":"Done","commit_id":"bad3a1cc79e3dbea1a25b2723d89babf3ada42ec"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"9fe29fc517939a3167c4658a044c03f3fe678db3","unresolved":false,"context_lines":[{"line_number":43,"context_line":"  block:"},{"line_number":44,"context_line":"    # In later versions of SystemD this is automatically done for us"},{"line_number":45,"context_line":"    #  by the machinectl cli on first run."},{"line_number":46,"context_line":"    - name: Format the machines sparce file"},{"line_number":47,"context_line":"      filesystem:"},{"line_number":48,"context_line":"        fstype: btrfs"},{"line_number":49,"context_line":"        dev: /var/lib/machines.raw"}],"source_content_type":"text/x-yaml","patch_set":7,"id":"df87a7cf_e74f0968","line":46,"range":{"start_line":46,"start_character":32,"end_line":46,"end_character":38},"updated":"2017-12-15 10:20:55.000000000","message":"nit: sparse","commit_id":"bad3a1cc79e3dbea1a25b2723d89babf3ada42ec"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"1b8b651c66a083f2ceaa1ed03deb7decb295b6b8","unresolved":false,"context_lines":[{"line_number":43,"context_line":"  block:"},{"line_number":44,"context_line":"    # In later versions of SystemD this is automatically done for us"},{"line_number":45,"context_line":"    #  by the machinectl cli on first run."},{"line_number":46,"context_line":"    - name: Format the machines sparce file"},{"line_number":47,"context_line":"      filesystem:"},{"line_number":48,"context_line":"        fstype: btrfs"},{"line_number":49,"context_line":"        dev: /var/lib/machines.raw"}],"source_content_type":"text/x-yaml","patch_set":7,"id":"df87a7cf_50e6a7ea","line":46,"range":{"start_line":46,"start_character":32,"end_line":46,"end_character":38},"in_reply_to":"df87a7cf_e74f0968","updated":"2017-12-15 16:53:31.000000000","message":"Done","commit_id":"bad3a1cc79e3dbea1a25b2723d89babf3ada42ec"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"9fe29fc517939a3167c4658a044c03f3fe678db3","unresolved":false,"context_lines":[{"line_number":96,"context_line":"# Ensure lxc networks are running as they\u0027re supposed to"},{"line_number":97,"context_line":"- meta: flush_handlers"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"# NOTE(cloudnull): Because the machines mount may be a manually created sparce"},{"line_number":100,"context_line":"#                  file we run an online resize to ensure the machines mount is"},{"line_number":101,"context_line":"#                  the size we expect."},{"line_number":102,"context_line":"- name: Ensure the machines fs is sized correctly"}],"source_content_type":"text/x-yaml","patch_set":7,"id":"df87a7cf_47403536","line":99,"range":{"start_line":99,"start_character":72,"end_line":99,"end_character":78},"updated":"2017-12-15 10:20:55.000000000","message":"nit: sparse","commit_id":"bad3a1cc79e3dbea1a25b2723d89babf3ada42ec"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"1b8b651c66a083f2ceaa1ed03deb7decb295b6b8","unresolved":false,"context_lines":[{"line_number":96,"context_line":"# Ensure lxc networks are running as they\u0027re supposed to"},{"line_number":97,"context_line":"- meta: flush_handlers"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"# NOTE(cloudnull): Because the machines mount may be a manually created sparce"},{"line_number":100,"context_line":"#                  file we run an online resize to ensure the machines mount is"},{"line_number":101,"context_line":"#                  the size we expect."},{"line_number":102,"context_line":"- name: Ensure the machines fs is sized correctly"}],"source_content_type":"text/x-yaml","patch_set":7,"id":"df87a7cf_70e96bb5","line":99,"range":{"start_line":99,"start_character":72,"end_line":99,"end_character":78},"in_reply_to":"df87a7cf_47403536","updated":"2017-12-15 16:53:31.000000000","message":"Done","commit_id":"bad3a1cc79e3dbea1a25b2723d89babf3ada42ec"},{"author":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"change_message_id":"9907b30a0492059c04fbf3ca2cd069a0c0c934d5","unresolved":false,"context_lines":[{"line_number":115,"context_line":"  changed_when: cache_refresh_del.rc \u003d\u003d 0"},{"line_number":116,"context_line":"  failed_when: cache_refresh_del.rc not in [0, 1]"},{"line_number":117,"context_line":"  when:"},{"line_number":118,"context_line":"    - lxc_image_cache_refresh | bool"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"- name: Add image cache"},{"line_number":121,"context_line":"  command: \"btrfs subvolume create /var/lib/machines/{{ lxc_container_base_name }}\""}],"source_content_type":"text/x-yaml","patch_set":9,"id":"7f96bb07_a8452d17","side":"PARENT","line":118,"range":{"start_line":118,"start_character":6,"end_line":118,"end_character":29},"updated":"2018-01-23 22:16:53.000000000","message":"Shouldn\u0027t this conditional remain here? It seems like we would end up refreshing the cache each time the playbook runs.","commit_id":"5216fabb701de5077482d5790938bedc87012bdb"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"59db4ef030b8d28789d98214b7371df1679751fc","unresolved":false,"context_lines":[{"line_number":115,"context_line":"  changed_when: cache_refresh_del.rc \u003d\u003d 0"},{"line_number":116,"context_line":"  failed_when: cache_refresh_del.rc not in [0, 1]"},{"line_number":117,"context_line":"  when:"},{"line_number":118,"context_line":"    - lxc_image_cache_refresh | bool"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"- name: Add image cache"},{"line_number":121,"context_line":"  command: \"btrfs subvolume create /var/lib/machines/{{ lxc_container_base_name }}\""}],"source_content_type":"text/x-yaml","patch_set":9,"id":"7f96bb07_dd02b56f","side":"PARENT","line":118,"range":{"start_line":118,"start_character":6,"end_line":118,"end_character":29},"in_reply_to":"7f96bb07_a8452d17","updated":"2018-01-24 02:53:36.000000000","message":"right you are, adding this check back.","commit_id":"5216fabb701de5077482d5790938bedc87012bdb"},{"author":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"change_message_id":"9907b30a0492059c04fbf3ca2cd069a0c0c934d5","unresolved":false,"context_lines":[{"line_number":123,"context_line":"  changed_when: cache_refresh_add.rc \u003d\u003d 0"},{"line_number":124,"context_line":"  failed_when: cache_refresh_add.rc not in [0, 1]"},{"line_number":125,"context_line":"  when:"},{"line_number":126,"context_line":"    - lxc_image_cache_refresh | bool"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"- name: Ensure image has been pre-staged"},{"line_number":129,"context_line":"  async_status:"}],"source_content_type":"text/x-yaml","patch_set":9,"id":"7f96bb07_684f2534","side":"PARENT","line":126,"range":{"start_line":126,"start_character":30,"end_line":126,"end_character":31},"updated":"2018-01-23 22:16:53.000000000","message":"Same here.","commit_id":"5216fabb701de5077482d5790938bedc87012bdb"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"8295090045e2c9b31964a9c63941b4ee616bca1e","unresolved":false,"context_lines":[{"line_number":17,"context_line":"# \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":18,"context_line":"#  In later versions of SystemD this is automatically done for us"},{"line_number":19,"context_line":"#  by the machinectl cli on first run. To ensure we\u0027re handling the"},{"line_number":20,"context_line":"#  case of a mount poing being just offline, we first try and start"},{"line_number":21,"context_line":"#  the systemd mount unit and then check for the mount points existance."},{"line_number":22,"context_line":"- name: Check machinectl mount point"},{"line_number":23,"context_line":"  shell: |"}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_bd0c42a5","line":20,"range":{"start_line":20,"start_character":19,"end_line":20,"end_character":24},"updated":"2018-02-12 11:13:31.000000000","message":"point","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"8295090045e2c9b31964a9c63941b4ee616bca1e","unresolved":false,"context_lines":[{"line_number":21,"context_line":"#  the systemd mount unit and then check for the mount points existance."},{"line_number":22,"context_line":"- name: Check machinectl mount point"},{"line_number":23,"context_line":"  shell: |"},{"line_number":24,"context_line":"    systemctl start var-lib-machiness.mount || true"},{"line_number":25,"context_line":"    sleep 1"},{"line_number":26,"context_line":"    mountpoint /var/lib/machines"},{"line_number":27,"context_line":"  failed_when: false"}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_5dfdfe6b","line":24,"range":{"start_line":24,"start_character":20,"end_line":24,"end_character":37},"updated":"2018-02-12 11:13:31.000000000","message":"Is that \u0027ss\u0027 correct?","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"fb1dc75b16fc8b6f9a374a048785a863ae2c9888","unresolved":false,"context_lines":[{"line_number":21,"context_line":"#  the systemd mount unit and then check for the mount points existance."},{"line_number":22,"context_line":"- name: Check machinectl mount point"},{"line_number":23,"context_line":"  shell: |"},{"line_number":24,"context_line":"    systemctl start var-lib-machiness.mount || true"},{"line_number":25,"context_line":"    sleep 1"},{"line_number":26,"context_line":"    mountpoint /var/lib/machines"},{"line_number":27,"context_line":"  failed_when: false"}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_44f2069c","line":24,"range":{"start_line":24,"start_character":20,"end_line":24,"end_character":37},"in_reply_to":"3fa0c359_5dfdfe6b","updated":"2018-02-12 14:42:03.000000000","message":"Done","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"8295090045e2c9b31964a9c63941b4ee616bca1e","unresolved":false,"context_lines":[{"line_number":21,"context_line":"#  the systemd mount unit and then check for the mount points existance."},{"line_number":22,"context_line":"- name: Check machinectl mount point"},{"line_number":23,"context_line":"  shell: |"},{"line_number":24,"context_line":"    systemctl start var-lib-machiness.mount || true"},{"line_number":25,"context_line":"    sleep 1"},{"line_number":26,"context_line":"    mountpoint /var/lib/machines"},{"line_number":27,"context_line":"  failed_when: false"},{"line_number":28,"context_line":"  changed_when: false"},{"line_number":29,"context_line":"  register: machinectl_mount"}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_dd1eeeb9","line":26,"range":{"start_line":24,"start_character":0,"end_line":26,"end_character":32},"updated":"2018-02-12 11:13:31.000000000","message":"This could probably be written in a way which properly returns whether it changed something, rather than this brute force approach which necessitates using failed_when as false.","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"fb1dc75b16fc8b6f9a374a048785a863ae2c9888","unresolved":false,"context_lines":[{"line_number":21,"context_line":"#  the systemd mount unit and then check for the mount points existance."},{"line_number":22,"context_line":"- name: Check machinectl mount point"},{"line_number":23,"context_line":"  shell: |"},{"line_number":24,"context_line":"    systemctl start var-lib-machiness.mount || true"},{"line_number":25,"context_line":"    sleep 1"},{"line_number":26,"context_line":"    mountpoint /var/lib/machines"},{"line_number":27,"context_line":"  failed_when: false"},{"line_number":28,"context_line":"  changed_when: false"},{"line_number":29,"context_line":"  register: machinectl_mount"}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_8406ce51","line":26,"range":{"start_line":24,"start_character":0,"end_line":26,"end_character":32},"in_reply_to":"3fa0c359_dd1eeeb9","updated":"2018-02-12 14:42:03.000000000","message":"I could run a grep for \"machines\" in proc however that too would return 1 if it wasn\u0027t found. In this case we really don\u0027t care what the return is it\u0027s more or less just gathering some facts. I did attempt to give \"ansible_mounts\" a spin however it\u0027s a list of dictionaries and not something I want to try and sift through in jinja.","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"8295090045e2c9b31964a9c63941b4ee616bca1e","unresolved":false,"context_lines":[{"line_number":30,"context_line":"  tags:"},{"line_number":31,"context_line":"    - skip_ansible_lint"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"- name: Create systemd sparse file"},{"line_number":34,"context_line":"  shell: \"truncate -s \u0027\u003e{{ lxc_host_machine_volume_size }}\u0027 /var/lib/machines.raw\""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"- name: Old systemd machinectl mount"},{"line_number":37,"context_line":"  block:"}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_dd458eb5","line":34,"range":{"start_line":33,"start_character":0,"end_line":34,"end_character":82},"updated":"2018-02-12 11:13:31.000000000","message":"I may be wrong, but it looks to me like this will always replace the existing file, breaking things quite badly. Should this have a conditional, or a \u0027creates\u0027 argument?","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"fb1dc75b16fc8b6f9a374a048785a863ae2c9888","unresolved":false,"context_lines":[{"line_number":30,"context_line":"  tags:"},{"line_number":31,"context_line":"    - skip_ansible_lint"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"- name: Create systemd sparse file"},{"line_number":34,"context_line":"  shell: \"truncate -s \u0027\u003e{{ lxc_host_machine_volume_size }}\u0027 /var/lib/machines.raw\""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"- name: Old systemd machinectl mount"},{"line_number":37,"context_line":"  block:"}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_6442a2ad","line":34,"range":{"start_line":33,"start_character":0,"end_line":34,"end_character":82},"in_reply_to":"3fa0c359_dd458eb5","updated":"2018-02-12 14:42:03.000000000","message":"It\u0027s a little off looking however the \"\u003e\" in front of the size should create the file or extend it if it already exists.","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"8295090045e2c9b31964a9c63941b4ee616bca1e","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    - name: Format the machines sparse file"},{"line_number":41,"context_line":"      filesystem:"},{"line_number":42,"context_line":"        fstype: btrfs"},{"line_number":43,"context_line":"        dev: /var/lib/machines.raw"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    # In later versions of SystemD this is automatically done for us"},{"line_number":46,"context_line":"    #  by the machinectl cli on first run."}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_dde10e9d","line":43,"updated":"2018-02-12 11:13:31.000000000","message":"So if the mount happened to be offline (maybe after a reboot or something else going on), the sparse file is going to be reformatted. I would think that the conditional here should be based on when the file is first created?","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"fb1dc75b16fc8b6f9a374a048785a863ae2c9888","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    - name: Format the machines sparse file"},{"line_number":41,"context_line":"      filesystem:"},{"line_number":42,"context_line":"        fstype: btrfs"},{"line_number":43,"context_line":"        dev: /var/lib/machines.raw"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    # In later versions of SystemD this is automatically done for us"},{"line_number":46,"context_line":"    #  by the machinectl cli on first run."}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_2766dcc2","line":43,"in_reply_to":"3fa0c359_dde10e9d","updated":"2018-02-12 14:42:03.000000000","message":"No this is a safe operation. The filesystem module will only format the sparse file once. Here\u0027s an example creating a new sparse file, formatting it, gowing the file and rerunning the same playbook: http://paste.openstack.org/show/669995","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"8295090045e2c9b31964a9c63941b4ee616bca1e","unresolved":false,"context_lines":[{"line_number":48,"context_line":"      file:"},{"line_number":49,"context_line":"        path: \"/var/lib/machines\""},{"line_number":50,"context_line":"        state: \"directory\""},{"line_number":51,"context_line":"        recurse: true"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    # In later versions of SystemD this unit file has been corrected"},{"line_number":54,"context_line":"    #  and is packaged with systemd proper."}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_9d7aa6ee","line":51,"range":{"start_line":51,"start_character":0,"end_line":51,"end_character":21},"updated":"2018-02-12 11:13:31.000000000","message":"Why recurse? It seems unnecessary to apply unspecified owner/group and default directory attributes down all subdirectories?","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"fb1dc75b16fc8b6f9a374a048785a863ae2c9888","unresolved":false,"context_lines":[{"line_number":48,"context_line":"      file:"},{"line_number":49,"context_line":"        path: \"/var/lib/machines\""},{"line_number":50,"context_line":"        state: \"directory\""},{"line_number":51,"context_line":"        recurse: true"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    # In later versions of SystemD this unit file has been corrected"},{"line_number":54,"context_line":"    #  and is packaged with systemd proper."}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_c40cd695","line":51,"range":{"start_line":51,"start_character":0,"end_line":51,"end_character":21},"in_reply_to":"3fa0c359_9d7aa6ee","updated":"2018-02-12 14:42:03.000000000","message":"Done","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"8295090045e2c9b31964a9c63941b4ee616bca1e","unresolved":false,"context_lines":[{"line_number":97,"context_line":"  changed_when: false"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"- name: Disable the machinectl quota system"},{"line_number":100,"context_line":"  command: \"btrfs quota {{ lxc_host_machine_quota_disabled | bool | ternary(\u0027disable\u0027, \u0027enabled\u0027) }} /var/lib/machines\""},{"line_number":101,"context_line":"  changed_when: false"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"# Because of this post and it\u0027s related bug(s) this is adding the container"}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_9df1466e","line":100,"range":{"start_line":100,"start_character":88,"end_line":100,"end_character":95},"updated":"2018-02-12 11:13:31.000000000","message":"Should this be \u0027enable\u0027?","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"fb1dc75b16fc8b6f9a374a048785a863ae2c9888","unresolved":false,"context_lines":[{"line_number":97,"context_line":"  changed_when: false"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"- name: Disable the machinectl quota system"},{"line_number":100,"context_line":"  command: \"btrfs quota {{ lxc_host_machine_quota_disabled | bool | ternary(\u0027disable\u0027, \u0027enabled\u0027) }} /var/lib/machines\""},{"line_number":101,"context_line":"  changed_when: false"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"# Because of this post and it\u0027s related bug(s) this is adding the container"}],"source_content_type":"text/x-yaml","patch_set":15,"id":"3fa0c359_842a4ed8","line":100,"range":{"start_line":100,"start_character":88,"end_line":100,"end_character":95},"in_reply_to":"3fa0c359_9df1466e","updated":"2018-02-12 14:42:03.000000000","message":"Done","commit_id":"f697354db91a983a559817a05cd7893a5d167c70"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"c9e2003c0f091899181ae7275a349f04a24af646","unresolved":false,"context_lines":[{"line_number":84,"context_line":"        - Reload systemd units"},{"line_number":85,"context_line":"        - Restart dbus"},{"line_number":86,"context_line":"  when:"},{"line_number":87,"context_line":"    - machinectl_mount.rc !\u003d 0"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"# Ensure lxc networks are running as they\u0027re supposed to"},{"line_number":90,"context_line":"- meta: flush_handlers"}],"source_content_type":"text/x-yaml","patch_set":16,"id":"3fa0c359_c7e5b8dd","line":87,"updated":"2018-02-12 14:51:11.000000000","message":"It would seem that if the above tasks are all idempotent and safe operations, is the initial forced mount and this conditional even necessary?","commit_id":"c006cacb8235a719d9550086d36fc150bc9c46cb"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"1c4f1c807c0c272790a5e41dce52831b723456c6","unresolved":false,"context_lines":[{"line_number":84,"context_line":"        - Reload systemd units"},{"line_number":85,"context_line":"        - Restart dbus"},{"line_number":86,"context_line":"  when:"},{"line_number":87,"context_line":"    - machinectl_mount.rc !\u003d 0"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"# Ensure lxc networks are running as they\u0027re supposed to"},{"line_number":90,"context_line":"- meta: flush_handlers"}],"source_content_type":"text/x-yaml","patch_set":16,"id":"3fa0c359_ad3e4db5","line":87,"in_reply_to":"3fa0c359_c7e5b8dd","updated":"2018-02-12 15:30:03.000000000","message":"It\u0027s not required however if the /var/lib/machines is already mounted there\u0027s no need to run any of these things. The intention here is to cater for the case when a deployer has already setup the machines mount outside of this role.","commit_id":"c006cacb8235a719d9550086d36fc150bc9c46cb"}]}
