)]}'
{"specs/support-reset-container-state.rst":[{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"cd5e7ad645cb99914f652d1f3b66dceafa10da5c","unresolved":false,"context_lines":[{"line_number":10,"context_line":"Related Launchpad Blueprint:"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"https://blueprints.launchpad.net/zun/+spec/reset-state-container"},{"line_number":13,"context_line":"Zun need to set the state of container, and make it can be operate by user,"},{"line_number":14,"context_line":"when the container be left in intermediate state."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bff0334d_f66e0f2d","line":13,"range":{"start_line":13,"start_character":4,"end_line":13,"end_character":8},"updated":"2017-04-12 21:06:04.000000000","message":"needs","commit_id":"b842e93b150f1ad79a88bfdafcfa99e1917da35b"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"cd5e7ad645cb99914f652d1f3b66dceafa10da5c","unresolved":false,"context_lines":[{"line_number":10,"context_line":"Related Launchpad Blueprint:"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"https://blueprints.launchpad.net/zun/+spec/reset-state-container"},{"line_number":13,"context_line":"Zun need to set the state of container, and make it can be operate by user,"},{"line_number":14,"context_line":"when the container be left in intermediate state."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bff0334d_966fc326","line":13,"range":{"start_line":13,"start_character":59,"end_line":13,"end_character":66},"updated":"2017-04-12 21:06:04.000000000","message":"operated","commit_id":"b842e93b150f1ad79a88bfdafcfa99e1917da35b"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"cd5e7ad645cb99914f652d1f3b66dceafa10da5c","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Proposed change"},{"line_number":24,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":25,"context_line":"1. Introduce a new CLI command to enable a user to reset the state of container."},{"line_number":26,"context_line":"   zun reset-state [--status \u003cstatus\u003e] \u003ccontainer\u003e [\u003ccontainer\u003e ...]"},{"line_number":27,"context_line":"   # zun help reset-state"},{"line_number":28,"context_line":"   usage: zun reset-state [--status \u003cstatus\u003e] \u003ccontainer\u003e [\u003ccontainer\u003e ...]"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bff0334d_315a4182","line":25,"range":{"start_line":25,"start_character":51,"end_line":25,"end_character":79},"updated":"2017-04-12 21:06:04.000000000","message":"To clarify, this command will reset the state and persist it into DB? or there are other things that this command will do?","commit_id":"b842e93b150f1ad79a88bfdafcfa99e1917da35b"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"cd5e7ad645cb99914f652d1f3b66dceafa10da5c","unresolved":false,"context_lines":[{"line_number":31,"context_line":"          \u003ccontainer\u003e              Name or ID of container(s)."},{"line_number":32,"context_line":"   Optional arguments:"},{"line_number":33,"context_line":"          --status \u003cstatus\u003e        The status to assign to the container. Valid values"},{"line_number":34,"context_line":"                                   are \"Error\", \"Running\", \"Stoped\", \"Paused\", \"Unknown\","},{"line_number":35,"context_line":"                                   and \"Created\"."},{"line_number":36,"context_line":"                                   Default\u003dError."},{"line_number":37,"context_line":"2. Add zun api interface to change the container task_state to None and"},{"line_number":38,"context_line":"   the container status to the command-line parameter be assigned (Default\u003dError) in the DataBase."}],"source_content_type":"text/x-rst","patch_set":3,"id":"bff0334d_31448173","line":35,"range":{"start_line":34,"start_character":39,"end_line":35,"end_character":48},"updated":"2017-04-12 21:06:04.000000000","message":"I am not confident to allow normal users to reset the state unless:\n\n* Only admin is allowed to execute this command\n* There are proper validation to validate the correctness of this operations. For example, if the docker container is indeed \"Running\", reset-state to \"Stopped\", \"Paused\", ... should fail.","commit_id":"b842e93b150f1ad79a88bfdafcfa99e1917da35b"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"cd5e7ad645cb99914f652d1f3b66dceafa10da5c","unresolved":false,"context_lines":[{"line_number":34,"context_line":"                                   are \"Error\", \"Running\", \"Stoped\", \"Paused\", \"Unknown\","},{"line_number":35,"context_line":"                                   and \"Created\"."},{"line_number":36,"context_line":"                                   Default\u003dError."},{"line_number":37,"context_line":"2. Add zun api interface to change the container task_state to None and"},{"line_number":38,"context_line":"   the container status to the command-line parameter be assigned (Default\u003dError) in the DataBase."},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"Design Principles"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bff0334d_2c20aa9a","line":37,"range":{"start_line":37,"start_character":49,"end_line":37,"end_character":59},"updated":"2017-04-12 21:06:04.000000000","message":"Could you show the sample command for this as well?","commit_id":"b842e93b150f1ad79a88bfdafcfa99e1917da35b"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"cd5e7ad645cb99914f652d1f3b66dceafa10da5c","unresolved":false,"context_lines":[{"line_number":35,"context_line":"                                   and \"Created\"."},{"line_number":36,"context_line":"                                   Default\u003dError."},{"line_number":37,"context_line":"2. Add zun api interface to change the container task_state to None and"},{"line_number":38,"context_line":"   the container status to the command-line parameter be assigned (Default\u003dError) in the DataBase."},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"Design Principles"},{"line_number":41,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bff0334d_5136e504","line":38,"range":{"start_line":38,"start_character":89,"end_line":38,"end_character":97},"updated":"2017-04-12 21:06:04.000000000","message":"database (no capital)","commit_id":"b842e93b150f1ad79a88bfdafcfa99e1917da35b"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"cd5e7ad645cb99914f652d1f3b66dceafa10da5c","unresolved":false,"context_lines":[{"line_number":57,"context_line":""},{"line_number":58,"context_line":"Specify the container name and status in the request body."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"After making this request, zun api verify the right of user and change the container task_state to None and"},{"line_number":61,"context_line":"change the container status to expect of user (Default\u003dError) in the DataBase."},{"line_number":62,"context_line":"If the operation succeeds, the status and task_state of container will be changed."},{"line_number":63,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"bff0334d_2c078a1a","line":60,"range":{"start_line":60,"start_character":99,"end_line":60,"end_character":103},"updated":"2017-04-12 21:06:04.000000000","message":"This line is too long.","commit_id":"b842e93b150f1ad79a88bfdafcfa99e1917da35b"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"cd5e7ad645cb99914f652d1f3b66dceafa10da5c","unresolved":false,"context_lines":[{"line_number":57,"context_line":""},{"line_number":58,"context_line":"Specify the container name and status in the request body."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"After making this request, zun api verify the right of user and change the container task_state to None and"},{"line_number":61,"context_line":"change the container status to expect of user (Default\u003dError) in the DataBase."},{"line_number":62,"context_line":"If the operation succeeds, the status and task_state of container will be changed."},{"line_number":63,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"bff0334d_6c011205","line":60,"range":{"start_line":60,"start_character":35,"end_line":60,"end_character":41},"updated":"2017-04-12 21:06:04.000000000","message":"verifies","commit_id":"b842e93b150f1ad79a88bfdafcfa99e1917da35b"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"cd5e7ad645cb99914f652d1f3b66dceafa10da5c","unresolved":false,"context_lines":[{"line_number":58,"context_line":"Specify the container name and status in the request body."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"After making this request, zun api verify the right of user and change the container task_state to None and"},{"line_number":61,"context_line":"change the container status to expect of user (Default\u003dError) in the DataBase."},{"line_number":62,"context_line":"If the operation succeeds, the status and task_state of container will be changed."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"bff0334d_0c0a861e","line":61,"range":{"start_line":61,"start_character":69,"end_line":61,"end_character":77},"updated":"2017-04-12 21:06:04.000000000","message":"database","commit_id":"b842e93b150f1ad79a88bfdafcfa99e1917da35b"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"cd5e7ad645cb99914f652d1f3b66dceafa10da5c","unresolved":false,"context_lines":[{"line_number":62,"context_line":"If the operation succeeds, the status and task_state of container will be changed."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"POST V1/containers/\u003cID\u003e/commit:        commit a container"},{"line_number":66,"context_line":"Example commit"},{"line_number":67,"context_line":"{"},{"line_number":68,"context_line":"        \u0027reset_state\u0027: {"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bff0334d_0c58462e","line":65,"range":{"start_line":65,"start_character":24,"end_line":65,"end_character":45},"updated":"2017-04-12 21:06:04.000000000","message":"I guess it is not \"commit\".","commit_id":"b842e93b150f1ad79a88bfdafcfa99e1917da35b"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"cd5e7ad645cb99914f652d1f3b66dceafa10da5c","unresolved":false,"context_lines":[{"line_number":63,"context_line":""},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"POST V1/containers/\u003cID\u003e/commit:        commit a container"},{"line_number":66,"context_line":"Example commit"},{"line_number":67,"context_line":"{"},{"line_number":68,"context_line":"        \u0027reset_state\u0027: {"},{"line_number":69,"context_line":"           \u0027status\u0027: status"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bff0334d_ec42c23d","line":66,"range":{"start_line":66,"start_character":8,"end_line":66,"end_character":14},"updated":"2017-04-12 21:06:04.000000000","message":"Ditto","commit_id":"b842e93b150f1ad79a88bfdafcfa99e1917da35b"},{"author":{"_account_id":12407,"name":"Shubham Kumar Sharma","email":"shubham.git@gmail.com","username":"shubham.git"},"change_message_id":"4e94261a780dff477759e60dda93f85360805208","unresolved":false,"context_lines":[{"line_number":31,"context_line":"   Positional arguments:"},{"line_number":32,"context_line":"          \u003ccontainer\u003e              Name or ID of container(s)."},{"line_number":33,"context_line":"   Optional arguments:"},{"line_number":34,"context_line":"          --status \u003cstatus\u003e        The status to assign to the container. Valid values"},{"line_number":35,"context_line":"                                   are \"Error\", \"Running\", \"Stopped\", \"Paused\", \"Unknown\","},{"line_number":36,"context_line":"                                   \"Creating\" and \"Created\"."},{"line_number":37,"context_line":"                                   Default\u003dError."}],"source_content_type":"text/x-rst","patch_set":4,"id":"7ffa3b31_8b2f2ea0","line":34,"updated":"2017-04-19 05:00:46.000000000","message":"I have a very basic question here, How will an admin know that which state should be set?\nHow do we prevent scenarios where admin accidentally assigns a wrong state ?","commit_id":"d4a8737d3216bc1aaf34533637d8292d006d8081"},{"author":{"_account_id":12407,"name":"Shubham Kumar Sharma","email":"shubham.git@gmail.com","username":"shubham.git"},"change_message_id":"4e94261a780dff477759e60dda93f85360805208","unresolved":false,"context_lines":[{"line_number":35,"context_line":"                                   are \"Error\", \"Running\", \"Stopped\", \"Paused\", \"Unknown\","},{"line_number":36,"context_line":"                                   \"Creating\" and \"Created\"."},{"line_number":37,"context_line":"                                   Default\u003dError."},{"line_number":38,"context_line":"2. Add zun api interface to verify the right, then change the container task_state"},{"line_number":39,"context_line":"   (such as \"container_stopping\") to None and the container status(such as \"Creating\")"},{"line_number":40,"context_line":"   to the command-line parameter be assigned (Default\u003d\"Error\") in the database."},{"line_number":41,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"7ffa3b31_c613eb5b","line":38,"updated":"2017-04-19 05:00:46.000000000","message":"To avoid confusions, can we have a complete mapping here :\nex:\nCurrent State --\u003e Allowed States\n1. container_stopping --\u003e None, STOPPED","commit_id":"d4a8737d3216bc1aaf34533637d8292d006d8081"}]}
