)]}'
{"specs/local-volume-integration.rst":[{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"47712c6aa4277666f5dab10a5cfdaf2140bdcab2","unresolved":false,"context_lines":[{"line_number":12,"context_line":"https://blueprints.launchpad.net/zun/+spec/support-volume-binds"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Zun has introduced an option for users to bind-mount Cinder volumes"},{"line_number":15,"context_line":"to containers. But users can\u0027t mount local volume to containers,"},{"line_number":16,"context_line":"this function is like the option \u0027-v\u0027 of docker run/create:"},{"line_number":17,"context_line":"$ docker run -v /host/path:/container/path \u003cimage\u003e"},{"line_number":18,"context_line":"The above command will bind-mount the directory with path \u0027/host/path\u0027"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1f485f77_82c2a632","line":15,"range":{"start_line":15,"start_character":37,"end_line":15,"end_character":49},"updated":"2017-11-13 05:14:50.000000000","message":"\"file or directory in local file system\"","commit_id":"af718d5fe92230e4fbc8cc425e04cbbf06aeba85"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"47712c6aa4277666f5dab10a5cfdaf2140bdcab2","unresolved":false,"context_lines":[{"line_number":12,"context_line":"https://blueprints.launchpad.net/zun/+spec/support-volume-binds"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Zun has introduced an option for users to bind-mount Cinder volumes"},{"line_number":15,"context_line":"to containers. But users can\u0027t mount local volume to containers,"},{"line_number":16,"context_line":"this function is like the option \u0027-v\u0027 of docker run/create:"},{"line_number":17,"context_line":"$ docker run -v /host/path:/container/path \u003cimage\u003e"},{"line_number":18,"context_line":"The above command will bind-mount the directory with path \u0027/host/path\u0027"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1f485f77_02b7d6d7","line":15,"range":{"start_line":15,"start_character":63,"end_line":15,"end_character":64},"updated":"2017-11-13 05:14:50.000000000","message":"This should be period","commit_id":"af718d5fe92230e4fbc8cc425e04cbbf06aeba85"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"47712c6aa4277666f5dab10a5cfdaf2140bdcab2","unresolved":false,"context_lines":[{"line_number":12,"context_line":"https://blueprints.launchpad.net/zun/+spec/support-volume-binds"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Zun has introduced an option for users to bind-mount Cinder volumes"},{"line_number":15,"context_line":"to containers. But users can\u0027t mount local volume to containers,"},{"line_number":16,"context_line":"this function is like the option \u0027-v\u0027 of docker run/create:"},{"line_number":17,"context_line":"$ docker run -v /host/path:/container/path \u003cimage\u003e"},{"line_number":18,"context_line":"The above command will bind-mount the directory with path \u0027/host/path\u0027"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1f485f77_02ec76c5","line":15,"range":{"start_line":15,"start_character":31,"end_line":15,"end_character":36},"updated":"2017-11-13 05:14:50.000000000","message":"bind-mount","commit_id":"af718d5fe92230e4fbc8cc425e04cbbf06aeba85"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"47712c6aa4277666f5dab10a5cfdaf2140bdcab2","unresolved":false,"context_lines":[{"line_number":12,"context_line":"https://blueprints.launchpad.net/zun/+spec/support-volume-binds"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Zun has introduced an option for users to bind-mount Cinder volumes"},{"line_number":15,"context_line":"to containers. But users can\u0027t mount local volume to containers,"},{"line_number":16,"context_line":"this function is like the option \u0027-v\u0027 of docker run/create:"},{"line_number":17,"context_line":"$ docker run -v /host/path:/container/path \u003cimage\u003e"},{"line_number":18,"context_line":"The above command will bind-mount the directory with path \u0027/host/path\u0027"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1f485f77_e2d03afa","line":15,"range":{"start_line":15,"start_character":50,"end_line":15,"end_character":52},"updated":"2017-11-13 05:14:50.000000000","message":"into","commit_id":"af718d5fe92230e4fbc8cc425e04cbbf06aeba85"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"47712c6aa4277666f5dab10a5cfdaf2140bdcab2","unresolved":false,"context_lines":[{"line_number":12,"context_line":"https://blueprints.launchpad.net/zun/+spec/support-volume-binds"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Zun has introduced an option for users to bind-mount Cinder volumes"},{"line_number":15,"context_line":"to containers. But users can\u0027t mount local volume to containers,"},{"line_number":16,"context_line":"this function is like the option \u0027-v\u0027 of docker run/create:"},{"line_number":17,"context_line":"$ docker run -v /host/path:/container/path \u003cimage\u003e"},{"line_number":18,"context_line":"The above command will bind-mount the directory with path \u0027/host/path\u0027"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1f485f77_22b2d2e7","line":15,"range":{"start_line":15,"start_character":15,"end_line":15,"end_character":18},"updated":"2017-11-13 05:14:50.000000000","message":"s/But/However, /","commit_id":"af718d5fe92230e4fbc8cc425e04cbbf06aeba85"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"47712c6aa4277666f5dab10a5cfdaf2140bdcab2","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Problem description"},{"line_number":22,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":23,"context_line":"Some special application containers need use the files/directory"},{"line_number":24,"context_line":"in localhost for initializing process or getting a large amount of data."},{"line_number":25,"context_line":"For example:"},{"line_number":26,"context_line":"$ docker run -it --volume\u003d/dev:/dev --volume\u003d/proc:/proc:ro sysdig/sysdig"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1f485f77_a2da4214","line":23,"range":{"start_line":23,"start_character":55,"end_line":23,"end_character":64},"updated":"2017-11-13 05:14:50.000000000","message":"directories","commit_id":"af718d5fe92230e4fbc8cc425e04cbbf06aeba85"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"47712c6aa4277666f5dab10a5cfdaf2140bdcab2","unresolved":false,"context_lines":[{"line_number":23,"context_line":"Some special application containers need use the files/directory"},{"line_number":24,"context_line":"in localhost for initializing process or getting a large amount of data."},{"line_number":25,"context_line":"For example:"},{"line_number":26,"context_line":"$ docker run -it --volume\u003d/dev:/dev --volume\u003d/proc:/proc:ro sysdig/sysdig"},{"line_number":27,"context_line":"So zun should implement the option, and this option should work well with"},{"line_number":28,"context_line":"the cinder volume together."},{"line_number":29,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"1f485f77_2283f2ce","line":26,"range":{"start_line":26,"start_character":0,"end_line":26,"end_character":73},"updated":"2017-11-13 05:14:50.000000000","message":"I guess this won\u0027t formatted correctly. You need to use code block (i.e. ::). See other .rst file for examples.","commit_id":"af718d5fe92230e4fbc8cc425e04cbbf06aeba85"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"47712c6aa4277666f5dab10a5cfdaf2140bdcab2","unresolved":false,"context_lines":[{"line_number":37,"context_line":"2. We leverage the --mount option for cinder volume bindmount. It is better to"},{"line_number":38,"context_line":"   reuse this option for bind-mounting local file system."},{"line_number":39,"context_line":"   For example:"},{"line_number":40,"context_line":"   $ zun run --mount voltype\u003d\u003clocal|cinder\u003e,source\u003d...,destination\u003d... \u003cimage\u003e"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"3. Zun introduces a config (called \u0027forbidden_volume.conf\u0027)."},{"line_number":43,"context_line":"   Operators can tune this config to restrict the path for bind-mounting."}],"source_content_type":"text/x-rst","patch_set":3,"id":"1f485f77_e255da51","line":40,"range":{"start_line":40,"start_character":21,"end_line":40,"end_character":28},"updated":"2017-11-13 05:14:50.000000000","message":"I think just \u0027type\u0027 is clear enough.","commit_id":"af718d5fe92230e4fbc8cc425e04cbbf06aeba85"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"47712c6aa4277666f5dab10a5cfdaf2140bdcab2","unresolved":false,"context_lines":[{"line_number":39,"context_line":"   For example:"},{"line_number":40,"context_line":"   $ zun run --mount voltype\u003d\u003clocal|cinder\u003e,source\u003d...,destination\u003d... \u003cimage\u003e"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"3. Zun introduces a config (called \u0027forbidden_volume.conf\u0027)."},{"line_number":43,"context_line":"   Operators can tune this config to restrict the path for bind-mounting."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"4. The administrator would be aware that a special container should be scheduled"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1f485f77_c2d77ebf","line":42,"range":{"start_line":42,"start_character":36,"end_line":42,"end_character":52},"updated":"2017-11-13 05:14:50.000000000","message":"I would lean to called this as \u0027allowed_mount_path.conf\u0027 and the allowed list should be enough by default (since this is a dangerous operations).","commit_id":"af718d5fe92230e4fbc8cc425e04cbbf06aeba85"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"47712c6aa4277666f5dab10a5cfdaf2140bdcab2","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"1. A user calls Zun APIs to create a container with a local volume::"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    $ zun run --mount voltype\u003dlocal,source\u003d/proc,destination\u003d/proc \\"},{"line_number":56,"context_line":"      --label \u003ckey\u003dvalue\u003e centos"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"2. After receiving this request, Zun will check if the mount info has local volumes."}],"source_content_type":"text/x-rst","patch_set":3,"id":"1f485f77_e2039a41","line":55,"range":{"start_line":55,"start_character":22,"end_line":55,"end_character":29},"updated":"2017-11-13 05:14:50.000000000","message":"type","commit_id":"af718d5fe92230e4fbc8cc425e04cbbf06aeba85"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"47712c6aa4277666f5dab10a5cfdaf2140bdcab2","unresolved":false,"context_lines":[{"line_number":58,"context_line":"2. After receiving this request, Zun will check if the mount info has local volumes."},{"line_number":59,"context_line":"   Then it will check the user has administrator permissions operation."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"3. Zun will create a item for local volume, and store in the volume_mapping table."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"4. Zun will choose a node by the option --label, and check the local volume whether in"},{"line_number":64,"context_line":"   the volume lists in forbidden_volume.conf."}],"source_content_type":"text/x-rst","patch_set":3,"id":"1f485f77_429a6e14","line":61,"range":{"start_line":61,"start_character":19,"end_line":61,"end_character":20},"updated":"2017-11-13 05:14:50.000000000","message":"an","commit_id":"af718d5fe92230e4fbc8cc425e04cbbf06aeba85"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"47712c6aa4277666f5dab10a5cfdaf2140bdcab2","unresolved":false,"context_lines":[{"line_number":69,"context_line":""},{"line_number":70,"context_line":"Security impact"},{"line_number":71,"context_line":"---------------"},{"line_number":72,"context_line":"None"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"Notifications impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1f485f77_02a47656","line":72,"range":{"start_line":72,"start_character":0,"end_line":72,"end_character":4},"updated":"2017-11-13 05:14:50.000000000","message":"We\u0027d better explain the security implication of this feature in here.","commit_id":"af718d5fe92230e4fbc8cc425e04cbbf06aeba85"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"47712c6aa4277666f5dab10a5cfdaf2140bdcab2","unresolved":false,"context_lines":[{"line_number":88,"context_line":""},{"line_number":89,"context_line":"Other deployer impact"},{"line_number":90,"context_line":"---------------------"},{"line_number":91,"context_line":"Deployers need to deploy a Fuxi and Cinder."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"Developer impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1f485f77_e2883ac7","line":91,"range":{"start_line":91,"start_character":27,"end_line":91,"end_character":31},"updated":"2017-11-13 05:14:50.000000000","message":"Fuxi is not needed. Just Cinder.","commit_id":"af718d5fe92230e4fbc8cc425e04cbbf06aeba85"}]}
