)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"8199495373c0fad2cbeda821d384dc530246fe97","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     zhongjun \u003cjun.zhongjun2@gmail.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-04-11 09:30:37 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Enhance update shares"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This spec adds the ability to update shares without manila share service"},{"line_number":10,"context_line":"restart."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"bff0334d_8f348894","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":21},"updated":"2017-04-11 11:27:26.000000000","message":"Actually, from \"proposed change\" point of view. You do not enhance \"ensure_share\" here itself. You proposed different trigger for this interface, but interface itself is not really changed.","commit_id":"59046bacb53be9392611295fa70ca812f4f53ddb"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"8c2e62c0620a3a9e0220b8320a3b87c80d54884d","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     zhongjun \u003cjun.zhongjun2@gmail.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-04-11 09:30:37 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Enhance update shares"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This spec adds the ability to update shares without manila share service"},{"line_number":10,"context_line":"restart."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"bff0334d_0e1bc5c9","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":21},"in_reply_to":"bff0334d_8f348894","updated":"2017-04-11 23:25:35.000000000","message":"+1 \n\nWhat\u0027s this going to be called?\n\n* ensure share ?\n* maintain share ?\n* update share ?","commit_id":"59046bacb53be9392611295fa70ca812f4f53ddb"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"ed7e9f03373137b523a5cd731b3c79e4005e07c6","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     zhongjun \u003cjun.zhongjun2@gmail.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-04-12 05:06:27 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Maintain shares"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This spec adds the ability to update shares without manila share service"},{"line_number":10,"context_line":"restart."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"bff0334d_c1d35900","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":15},"updated":"2017-04-12 12:27:16.000000000","message":"if you add spec, then, better to say it in commit topic.","commit_id":"36e2bd6b4aafebeada7ab3c0e601cc5d526a5837"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"bd40ed2fa51a939a6825d490e32f8c0059f5e2ab","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     zhongjun \u003cjun.zhongjun2@gmail.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-04-12 05:06:27 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Maintain shares"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This spec adds the ability to update shares without manila share service"},{"line_number":10,"context_line":"restart."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"bff0334d_8151d138","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":15},"in_reply_to":"bff0334d_c1d35900","updated":"2017-04-12 12:35:48.000000000","message":"Done","commit_id":"36e2bd6b4aafebeada7ab3c0e601cc5d526a5837"}],"specs/pike/enhance-update-shares.rst":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"bc170e20e5dbac9a7708abd3c2f136ee264aa11a","unresolved":false,"context_lines":[{"line_number":15,"context_line":"Problem description\r"},{"line_number":16,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\r"},{"line_number":17,"context_line":"\r"},{"line_number":18,"context_line":"This driver interface (ensure share) only executes at service startup time. It is\r"},{"line_number":19,"context_line":"not scalable and redundant in most cases.\r"},{"line_number":20,"context_line":"\r"},{"line_number":21,"context_line":"Use cases\r"},{"line_number":22,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\r"}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_312f7340","line":19,"range":{"start_line":18,"start_character":0,"end_line":19,"end_character":41},"updated":"2017-04-07 15:21:10.000000000","message":"Sounds incomplete, something is lost.\n\nReal problem is not disclosed completely. Maybe write something like following:\n\n\"\"\"\nmanila-share service has share driver interface called \"ensure_share\", that, depending on share driver, performs some actions on existing shares. This method is called on each manila-share service start and none of RPC requests are handled while this method does not finish processing existing shares. It makes life of cloud administrator painful, because each manila-share service restart takes more and more time with growth of shares amount. Also, in most cases, this processing is redundant.\n\"\"\"","commit_id":"65c9465e73761275a9f573558380ca8cf78e4f5c"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"a4b66f2957dd511c49a4844d153aa6583a32e670","unresolved":false,"context_lines":[{"line_number":15,"context_line":"Problem description\r"},{"line_number":16,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\r"},{"line_number":17,"context_line":"\r"},{"line_number":18,"context_line":"This driver interface (ensure share) only executes at service startup time. It is\r"},{"line_number":19,"context_line":"not scalable and redundant in most cases.\r"},{"line_number":20,"context_line":"\r"},{"line_number":21,"context_line":"Use cases\r"},{"line_number":22,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\r"}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_c6b87d77","line":19,"range":{"start_line":18,"start_character":0,"end_line":19,"end_character":41},"in_reply_to":"bff0334d_312f7340","updated":"2017-04-08 03:11:21.000000000","message":"Done","commit_id":"65c9465e73761275a9f573558380ca8cf78e4f5c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"1bf6d15044877dd700355d776acfc710c7bca1bf","unresolved":false,"context_lines":[{"line_number":21,"context_line":"Use cases\r"},{"line_number":22,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\r"},{"line_number":23,"context_line":"\r"},{"line_number":24,"context_line":"* Allows admins to update shares and don\u0027t need to restart manila share\r"},{"line_number":25,"context_line":"  services when the admin change something on array (such as: export location IP).\r"},{"line_number":26,"context_line":"\r"},{"line_number":27,"context_line":"Proposed change\r"},{"line_number":28,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\r"}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_d187270f","line":25,"range":{"start_line":24,"start_character":0,"end_line":25,"end_character":82},"updated":"2017-04-07 15:23:08.000000000","message":"Admin may want/need to restart manila-share service for lots of reasons and not because of required share updates. Also, if needs share updates, it is not flexible enough to require service restart.","commit_id":"65c9465e73761275a9f573558380ca8cf78e4f5c"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"a4b66f2957dd511c49a4844d153aa6583a32e670","unresolved":false,"context_lines":[{"line_number":21,"context_line":"Use cases\r"},{"line_number":22,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\r"},{"line_number":23,"context_line":"\r"},{"line_number":24,"context_line":"* Allows admins to update shares and don\u0027t need to restart manila share\r"},{"line_number":25,"context_line":"  services when the admin change something on array (such as: export location IP).\r"},{"line_number":26,"context_line":"\r"},{"line_number":27,"context_line":"Proposed change\r"},{"line_number":28,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\r"}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_268e09d0","line":25,"range":{"start_line":24,"start_character":0,"end_line":25,"end_character":82},"in_reply_to":"bff0334d_d187270f","updated":"2017-04-08 03:11:21.000000000","message":"Yes, Admin may want/need to restart manila-share service for lots of reasons, but we could focus on share updates in this spec.","commit_id":"65c9465e73761275a9f573558380ca8cf78e4f5c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"4143b8b4b84caeb9288243ddc03113a027b54afb","unresolved":false,"context_lines":[{"line_number":29,"context_line":"\r"},{"line_number":30,"context_line":"To accomplish this change, we will do the following:\r"},{"line_number":31,"context_line":"\r"},{"line_number":32,"context_line":"method 1\r"},{"line_number":33,"context_line":"There are workflow examples:\r"},{"line_number":34,"context_line":"1. An existing share with a set of characteristics, and then some change in\r"},{"line_number":35,"context_line":"   array.\r"}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_5173174e","line":32,"range":{"start_line":32,"start_character":0,"end_line":32,"end_character":8},"updated":"2017-04-07 15:29:31.000000000","message":"?","commit_id":"65c9465e73761275a9f573558380ca8cf78e4f5c"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"a4b66f2957dd511c49a4844d153aa6583a32e670","unresolved":false,"context_lines":[{"line_number":29,"context_line":"\r"},{"line_number":30,"context_line":"To accomplish this change, we will do the following:\r"},{"line_number":31,"context_line":"\r"},{"line_number":32,"context_line":"method 1\r"},{"line_number":33,"context_line":"There are workflow examples:\r"},{"line_number":34,"context_line":"1. An existing share with a set of characteristics, and then some change in\r"},{"line_number":35,"context_line":"   array.\r"}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_46934dfb","line":32,"range":{"start_line":32,"start_character":0,"end_line":32,"end_character":8},"in_reply_to":"bff0334d_5173174e","updated":"2017-04-08 03:11:21.000000000","message":"Done","commit_id":"65c9465e73761275a9f573558380ca8cf78e4f5c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"22e3faf3628f05c3840d03385ae1349a1905194d","unresolved":false,"context_lines":[{"line_number":16,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"The manila-share service has share driver interface called \"ensure_share\","},{"line_number":19,"context_line":"it depending on share driver, performs update shares on existing shares. This"},{"line_number":20,"context_line":"method is called on each manila-share service start. The restart service"},{"line_number":21,"context_line":"operation may disruptive admin/user tasks. We could find a way to update"},{"line_number":22,"context_line":"shares without restart."}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_2b0c7beb","line":19,"range":{"start_line":19,"start_character":3,"end_line":19,"end_character":28},"updated":"2017-04-10 11:01:22.000000000","message":"\"depending on share driver\" is clarification part, it should be separated with commas, included word \"it\" as part of this sentence makes structure be wrong and ambiguous.","commit_id":"247f7c3f35a5a7bdcc2196eef5ec4e8a3bf95265"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"22e3faf3628f05c3840d03385ae1349a1905194d","unresolved":false,"context_lines":[{"line_number":16,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"The manila-share service has share driver interface called \"ensure_share\","},{"line_number":19,"context_line":"it depending on share driver, performs update shares on existing shares. This"},{"line_number":20,"context_line":"method is called on each manila-share service start. The restart service"},{"line_number":21,"context_line":"operation may disruptive admin/user tasks. We could find a way to update"},{"line_number":22,"context_line":"shares without restart."}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_abf76bd3","line":19,"range":{"start_line":19,"start_character":30,"end_line":19,"end_character":71},"updated":"2017-04-10 11:01:22.000000000","message":"\"performs update shares on existing shares\"?","commit_id":"247f7c3f35a5a7bdcc2196eef5ec4e8a3bf95265"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"22e3faf3628f05c3840d03385ae1349a1905194d","unresolved":false,"context_lines":[{"line_number":18,"context_line":"The manila-share service has share driver interface called \"ensure_share\","},{"line_number":19,"context_line":"it depending on share driver, performs update shares on existing shares. This"},{"line_number":20,"context_line":"method is called on each manila-share service start. The restart service"},{"line_number":21,"context_line":"operation may disruptive admin/user tasks. We could find a way to update"},{"line_number":22,"context_line":"shares without restart."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Use cases"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_6bc4c35f","line":21,"range":{"start_line":21,"start_character":43,"end_line":21,"end_character":72},"updated":"2017-04-10 11:01:22.000000000","message":"\"We could find a way to update\". It does not sound as \"problem description. We say \"what\" is wrong and \"why\" in this paragraph.","commit_id":"247f7c3f35a5a7bdcc2196eef5ec4e8a3bf95265"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"22e3faf3628f05c3840d03385ae1349a1905194d","unresolved":false,"context_lines":[{"line_number":18,"context_line":"The manila-share service has share driver interface called \"ensure_share\","},{"line_number":19,"context_line":"it depending on share driver, performs update shares on existing shares. This"},{"line_number":20,"context_line":"method is called on each manila-share service start. The restart service"},{"line_number":21,"context_line":"operation may disruptive admin/user tasks. We could find a way to update"},{"line_number":22,"context_line":"shares without restart."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Use cases"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_4bd57f1b","line":21,"range":{"start_line":21,"start_character":14,"end_line":21,"end_character":24},"updated":"2017-04-10 11:01:22.000000000","message":"\"disruptive\" is adjective, you either should use \"be\" before it or replace with verb. In any case, sentence is confusing as is.","commit_id":"247f7c3f35a5a7bdcc2196eef5ec4e8a3bf95265"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"22e3faf3628f05c3840d03385ae1349a1905194d","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Proposed change"},{"line_number":33,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"To accomplish this change, we will do the following:"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"There are workflow examples:"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_6bb3a34e","line":34,"updated":"2017-04-10 11:01:22.000000000","message":"It is strange to see \"workflow example\" in \"proposed change\". Workflow example should not be here.","commit_id":"247f7c3f35a5a7bdcc2196eef5ec4e8a3bf95265"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"977c987949244409caea6fc9ba17ed4092788b81","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Proposed change"},{"line_number":33,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"To accomplish this change, we will do the following:"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"There are workflow examples:"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_69084891","line":34,"in_reply_to":"bff0334d_6bb3a34e","updated":"2017-10-24 02:20:59.000000000","message":"The workflow example will be keep in proposed change, because it is the part of proposed change.","commit_id":"247f7c3f35a5a7bdcc2196eef5ec4e8a3bf95265"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"0fee54238abb7433f0ee364dbc609c3650943b33","unresolved":false,"context_lines":[{"line_number":15,"context_line":"Problem description"},{"line_number":16,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"The manila-share service has share driver interface called \"ensure_share\","},{"line_number":19,"context_line":"that, it depending on share driver, performs update shares on existing shares."},{"line_number":20,"context_line":"This method is called on each manila-share service start. The restart service"},{"line_number":21,"context_line":"operation may disrupt admin/user tasks."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Use cases"},{"line_number":24,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bff0334d_69df280d","line":21,"range":{"start_line":18,"start_character":0,"end_line":21,"end_character":39},"updated":"2017-04-10 13:13:43.000000000","message":"not all comments are addressed from previous patch-set: https://review.openstack.org/#/c/453553/2..3/specs/pike/enhance-update-shares.rst","commit_id":"82c6f1777848048a890db790861c997e466eca9c"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"63ee3532e248e4c508c84106c01c283e988b0af1","unresolved":false,"context_lines":[{"line_number":15,"context_line":"Problem description"},{"line_number":16,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"The manila-share service has share driver interface called \"ensure_share\","},{"line_number":19,"context_line":"that, it depending on share driver, performs update shares on existing shares."},{"line_number":20,"context_line":"This method is called on each manila-share service start. The restart service"},{"line_number":21,"context_line":"operation may disrupt admin/user tasks."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Use cases"},{"line_number":24,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bff0334d_1be55e09","line":21,"range":{"start_line":18,"start_character":0,"end_line":21,"end_character":39},"in_reply_to":"bff0334d_69df280d","updated":"2017-04-11 09:37:20.000000000","message":"rewrite it","commit_id":"82c6f1777848048a890db790861c997e466eca9c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"0fee54238abb7433f0ee364dbc609c3650943b33","unresolved":false,"context_lines":[{"line_number":66,"context_line":"    interface, and just keep the original status(such as: extending,"},{"line_number":67,"context_line":"    migrating, etc)."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"Workflow example"},{"line_number":70,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"There are workflow examples:"},{"line_number":73,"context_line":"1. An existing share with a set of characteristics, and then some change in"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bff0334d_49bfc4af","line":70,"range":{"start_line":69,"start_character":0,"end_line":70,"end_character":16},"updated":"2017-04-10 13:13:43.000000000","message":"We have template for specs and it should not be changed. And there is no such section.","commit_id":"82c6f1777848048a890db790861c997e466eca9c"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"63ee3532e248e4c508c84106c01c283e988b0af1","unresolved":false,"context_lines":[{"line_number":66,"context_line":"    interface, and just keep the original status(such as: extending,"},{"line_number":67,"context_line":"    migrating, etc)."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"Workflow example"},{"line_number":70,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"There are workflow examples:"},{"line_number":73,"context_line":"1. An existing share with a set of characteristics, and then some change in"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bff0334d_45b30799","line":70,"range":{"start_line":69,"start_character":0,"end_line":70,"end_character":16},"in_reply_to":"bff0334d_49bfc4af","updated":"2017-04-11 09:37:20.000000000","message":"Done remove it","commit_id":"82c6f1777848048a890db790861c997e466eca9c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"863f3331ff8c371e9332ef5ef24aa4dc2ce02e9f","unresolved":false,"context_lines":[{"line_number":14,"context_line":"Problem description"},{"line_number":15,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"We already adds the ability to solve the potential problem of slow start up,"},{"line_number":18,"context_line":"and deal with non-user-initiated state changes to shares when we restart"},{"line_number":19,"context_line":"manila share service [1]. But The restart service operation may disrupt"},{"line_number":20,"context_line":"admin/user tasks. So we still need to support update shares without restart"},{"line_number":21,"context_line":"service."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Use cases"},{"line_number":24,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bff0334d_54117303","line":21,"range":{"start_line":17,"start_character":0,"end_line":21,"end_character":8},"updated":"2017-04-11 11:23:26.000000000","message":"Previous variant provided more details, it just required grammatical fixes. This one is context-dependent. Here you say that you did something in other spec and need to do something here. It is not problem description.\n\nProposed variant:\n\n\"\"\"\nThe manila-share service has share driver interface called \"ensure_share\", which, depending on share driver, performs share checks and makes corrections if needed. This method is called only on manila-share service start. Admin, in case he needs to perform such check, is forced to restart manila-share service,\nthat can cause undesired service downtime.\nAlso, if admin does not need such checks on each share, but need to restart service for some reason, he will wait for some time, possibly very long time, until manila-share service finishes these share checks and starts handling of RPC requests.\n\"\"\"","commit_id":"59046bacb53be9392611295fa70ca812f4f53ddb"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"aa107307e44036d05bf8537435a5f92945d83cc6","unresolved":false,"context_lines":[{"line_number":14,"context_line":"Problem description"},{"line_number":15,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"We already adds the ability to solve the potential problem of slow start up,"},{"line_number":18,"context_line":"and deal with non-user-initiated state changes to shares when we restart"},{"line_number":19,"context_line":"manila share service [1]. But The restart service operation may disrupt"},{"line_number":20,"context_line":"admin/user tasks. So we still need to support update shares without restart"},{"line_number":21,"context_line":"service."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Use cases"},{"line_number":24,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bff0334d_da6eb0c7","line":21,"range":{"start_line":17,"start_character":0,"end_line":21,"end_character":8},"in_reply_to":"bff0334d_54117303","updated":"2017-04-12 05:02:36.000000000","message":"Done","commit_id":"59046bacb53be9392611295fa70ca812f4f53ddb"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"863f3331ff8c371e9332ef5ef24aa4dc2ce02e9f","unresolved":false,"context_lines":[{"line_number":23,"context_line":"Use cases"},{"line_number":24,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"Allows admins to update shares or some other resources and don\u0027t need to"},{"line_number":27,"context_line":"restart manila share services when the admin change something on array"},{"line_number":28,"context_line":"(such as: export location IP). But in this spec, we only care about update"},{"line_number":29,"context_line":"shares."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Proposed change"},{"line_number":32,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bff0334d_1423ebbe","line":29,"range":{"start_line":26,"start_character":0,"end_line":29,"end_character":7},"updated":"2017-04-11 11:23:26.000000000","message":"\"use cases\":\n\n- manila-share node going to be shut down for maintenance and then enabled back. In this case admin expects fast start of service, no matter how many shares do exist and managed by manila.\n- admin updates storage somehow and needs to make manila up-to-date with these changes. So, he needs to perform such update with minimal amount of efforts.","commit_id":"59046bacb53be9392611295fa70ca812f4f53ddb"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"aa107307e44036d05bf8537435a5f92945d83cc6","unresolved":false,"context_lines":[{"line_number":23,"context_line":"Use cases"},{"line_number":24,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"Allows admins to update shares or some other resources and don\u0027t need to"},{"line_number":27,"context_line":"restart manila share services when the admin change something on array"},{"line_number":28,"context_line":"(such as: export location IP). But in this spec, we only care about update"},{"line_number":29,"context_line":"shares."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Proposed change"},{"line_number":32,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bff0334d_922021f9","line":29,"range":{"start_line":26,"start_character":0,"end_line":29,"end_character":7},"in_reply_to":"bff0334d_1423ebbe","updated":"2017-04-12 05:02:36.000000000","message":"Done\n\n\"manila-share node going to be shut down for maintenance and then enabled back. In this case admin expects fast start of service, no matter how many shares do exist and managed by manila.\" this is the ensure_share spec goal","commit_id":"59046bacb53be9392611295fa70ca812f4f53ddb"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"8c2e62c0620a3a9e0220b8320a3b87c80d54884d","unresolved":false,"context_lines":[{"line_number":38,"context_line":"- Four new shares states will be introduced: \u0027ensuring\u0027 , the status"},{"line_number":39,"context_line":"  transition for this:"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"  * When the request is received by the API**"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    share_instances.task_state:"},{"line_number":44,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"bff0334d_ce303d59","line":41,"range":{"start_line":41,"start_character":33,"end_line":41,"end_character":43},"updated":"2017-04-11 23:25:35.000000000","message":"What API? This is important. How does an existing share be tagged to be \"ensured\"?","commit_id":"59046bacb53be9392611295fa70ca812f4f53ddb"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"aa107307e44036d05bf8537435a5f92945d83cc6","unresolved":false,"context_lines":[{"line_number":38,"context_line":"- Four new shares states will be introduced: \u0027ensuring\u0027 , the status"},{"line_number":39,"context_line":"  transition for this:"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"  * When the request is received by the API**"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    share_instances.task_state:"},{"line_number":44,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"bff0334d_61581f55","line":41,"range":{"start_line":41,"start_character":33,"end_line":41,"end_character":43},"in_reply_to":"bff0334d_ce303d59","updated":"2017-04-12 05:02:36.000000000","message":"It is received by the period task","commit_id":"59046bacb53be9392611295fa70ca812f4f53ddb"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"8c2e62c0620a3a9e0220b8320a3b87c80d54884d","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"  * When the request is received by the API**"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    share_instances.task_state:"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    - \u0027available\u0027             ----\u003e \u0027ensuring\u0027"},{"line_number":46,"context_line":"    - \u0027error\u0027                 ----\u003e \u0027error\u0027 (status will be preserved)"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bff0334d_ee8c2137","line":43,"range":{"start_line":43,"start_character":4,"end_line":43,"end_character":30},"updated":"2017-04-11 23:25:35.000000000","message":"\u0027task_state\u0027 is a share attribute..","commit_id":"59046bacb53be9392611295fa70ca812f4f53ddb"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"aa107307e44036d05bf8537435a5f92945d83cc6","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"  * When the request is received by the API**"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    share_instances.task_state:"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    - \u0027available\u0027             ----\u003e \u0027ensuring\u0027"},{"line_number":46,"context_line":"    - \u0027error\u0027                 ----\u003e \u0027error\u0027 (status will be preserved)"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bff0334d_9706c151","line":43,"range":{"start_line":43,"start_character":4,"end_line":43,"end_character":30},"in_reply_to":"bff0334d_ee8c2137","updated":"2017-04-12 05:02:36.000000000","message":"Thanks for point out","commit_id":"59046bacb53be9392611295fa70ca812f4f53ddb"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"8c2e62c0620a3a9e0220b8320a3b87c80d54884d","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    - \u0027available\u0027             ----\u003e \u0027ensuring\u0027"},{"line_number":46,"context_line":"    - \u0027error\u0027                 ----\u003e \u0027error\u0027 (status will be preserved)"},{"line_number":47,"context_line":"    - \u0027out_of_sync\u0027           ----\u003e \u0027out_of_sync\u0027 (status will be preserved)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"  * In the share manager, before the request is sent to the share driver**"},{"line_number":50,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"bff0334d_8e36b550","line":47,"range":{"start_line":47,"start_character":3,"end_line":47,"end_character":76},"updated":"2017-04-11 23:25:35.000000000","message":"this is not a task_state or a status currently","commit_id":"59046bacb53be9392611295fa70ca812f4f53ddb"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"aa107307e44036d05bf8537435a5f92945d83cc6","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    - \u0027available\u0027             ----\u003e \u0027ensuring\u0027"},{"line_number":46,"context_line":"    - \u0027error\u0027                 ----\u003e \u0027error\u0027 (status will be preserved)"},{"line_number":47,"context_line":"    - \u0027out_of_sync\u0027           ----\u003e \u0027out_of_sync\u0027 (status will be preserved)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"  * In the share manager, before the request is sent to the share driver**"},{"line_number":50,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"bff0334d_4153db39","line":47,"range":{"start_line":47,"start_character":3,"end_line":47,"end_character":76},"in_reply_to":"bff0334d_8e36b550","updated":"2017-04-12 05:02:36.000000000","message":"Done","commit_id":"59046bacb53be9392611295fa70ca812f4f53ddb"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"863f3331ff8c371e9332ef5ef24aa4dc2ce02e9f","unresolved":false,"context_lines":[{"line_number":66,"context_line":"    interface, and just keep the original status(such as: extending,"},{"line_number":67,"context_line":"    migrating, etc)."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"- Add driver interface ``maintain_share`` to update share informations."},{"line_number":70,"context_line":"  ``ensure_share`` method will be called on manila-share service start [1]."},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"Alternatives"},{"line_number":73,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bff0334d_cf5df015","line":70,"range":{"start_line":69,"start_character":0,"end_line":70,"end_character":75},"updated":"2017-04-11 11:23:26.000000000","message":"It is unclear what is the difference between these two interfaces. Need to clarify what is the intention for each of them.","commit_id":"59046bacb53be9392611295fa70ca812f4f53ddb"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"aa107307e44036d05bf8537435a5f92945d83cc6","unresolved":false,"context_lines":[{"line_number":66,"context_line":"    interface, and just keep the original status(such as: extending,"},{"line_number":67,"context_line":"    migrating, etc)."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"- Add driver interface ``maintain_share`` to update share informations."},{"line_number":70,"context_line":"  ``ensure_share`` method will be called on manila-share service start [1]."},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"Alternatives"},{"line_number":73,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bff0334d_b7e8a5b2","line":70,"range":{"start_line":69,"start_character":0,"end_line":70,"end_character":75},"in_reply_to":"bff0334d_cf5df015","updated":"2017-04-12 05:02:36.000000000","message":"Add something in spec","commit_id":"59046bacb53be9392611295fa70ca812f4f53ddb"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"863f3331ff8c371e9332ef5ef24aa4dc2ce02e9f","unresolved":false,"context_lines":[{"line_number":143,"context_line":"Developer impact"},{"line_number":144,"context_line":"----------------"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"None"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"Implementation"},{"line_number":149,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bff0334d_0f963894","line":146,"range":{"start_line":146,"start_character":0,"end_line":146,"end_character":4},"updated":"2017-04-11 11:23:26.000000000","message":"Each developer should implement newly proposed method \"maintain_share\", but it is unclear what it should do.","commit_id":"59046bacb53be9392611295fa70ca812f4f53ddb"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"aa107307e44036d05bf8537435a5f92945d83cc6","unresolved":false,"context_lines":[{"line_number":143,"context_line":"Developer impact"},{"line_number":144,"context_line":"----------------"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"None"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"Implementation"},{"line_number":149,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bff0334d_177cf1e9","line":146,"range":{"start_line":146,"start_character":0,"end_line":146,"end_character":4},"in_reply_to":"bff0334d_0f963894","updated":"2017-04-12 05:02:36.000000000","message":"Each developer could implement newly proposed method \"maintain_share\" if\nthe backend want to update share automatically.\nIf they don\u0027t need it, then the developer not need to implement \"maintain_share\".","commit_id":"59046bacb53be9392611295fa70ca812f4f53ddb"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"8c2e62c0620a3a9e0220b8320a3b87c80d54884d","unresolved":false,"context_lines":[{"line_number":158,"context_line":"Work items"},{"line_number":159,"context_line":"----------"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"* Implement the core feature with functional tempest and scenario test"},{"line_number":162,"context_line":"  coverage"},{"line_number":163,"context_line":"* Add documentation of this feature"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bff0334d_0ea625ac","line":162,"range":{"start_line":161,"start_character":57,"end_line":162,"end_character":10},"updated":"2017-04-11 23:25:35.000000000","message":"What does this involve?","commit_id":"59046bacb53be9392611295fa70ca812f4f53ddb"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"aa107307e44036d05bf8537435a5f92945d83cc6","unresolved":false,"context_lines":[{"line_number":158,"context_line":"Work items"},{"line_number":159,"context_line":"----------"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"* Implement the core feature with functional tempest and scenario test"},{"line_number":162,"context_line":"  coverage"},{"line_number":163,"context_line":"* Add documentation of this feature"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bff0334d_d7e8c97c","line":162,"range":{"start_line":161,"start_character":57,"end_line":162,"end_character":10},"in_reply_to":"bff0334d_0ea625ac","updated":"2017-04-12 05:02:36.000000000","message":"Could not add scenario test firstly.","commit_id":"59046bacb53be9392611295fa70ca812f4f53ddb"}],"specs/pike/maintain-shares.rst":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"53e1f68add38ab3dc41f6e44eab47d4f9ee3f099","unresolved":false,"context_lines":[{"line_number":14,"context_line":"Problem description"},{"line_number":15,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"We already adds the ability to solve the potential problem of slow start up,"},{"line_number":18,"context_line":"and deal with non-user-initiated state changes to shares when we restart"},{"line_number":19,"context_line":"manila share service [1]. But The restart service operation may disrupt"},{"line_number":20,"context_line":"admin/user tasks. So we still need to support update shares without restart"},{"line_number":21,"context_line":"service."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"The manila-share service has share driver interface called \"ensure_share\","},{"line_number":24,"context_line":"which, depending on share driver, performs share checks and makes corrections"}],"source_content_type":"text/x-rst","patch_set":8,"id":"bff0334d_cea5c8a0","line":21,"range":{"start_line":17,"start_character":0,"end_line":21,"end_character":8},"updated":"2017-04-12 12:26:54.000000000","message":"If write it, then only after problem description that is lines 23-27. But, I suggest just removing it.","commit_id":"36e2bd6b4aafebeada7ab3c0e601cc5d526a5837"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"5474feb29c754cc4379e39fe6b86fd3129c78fb1","unresolved":false,"context_lines":[{"line_number":14,"context_line":"Problem description"},{"line_number":15,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"We already adds the ability to solve the potential problem of slow start up,"},{"line_number":18,"context_line":"and deal with non-user-initiated state changes to shares when we restart"},{"line_number":19,"context_line":"manila share service [1]. But The restart service operation may disrupt"},{"line_number":20,"context_line":"admin/user tasks. So we still need to support update shares without restart"},{"line_number":21,"context_line":"service."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"The manila-share service has share driver interface called \"ensure_share\","},{"line_number":24,"context_line":"which, depending on share driver, performs share checks and makes corrections"}],"source_content_type":"text/x-rst","patch_set":8,"id":"bff0334d_21068553","line":21,"range":{"start_line":17,"start_character":0,"end_line":21,"end_character":8},"in_reply_to":"bff0334d_cea5c8a0","updated":"2017-04-12 12:33:53.000000000","message":"Done","commit_id":"36e2bd6b4aafebeada7ab3c0e601cc5d526a5837"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"53e1f68add38ab3dc41f6e44eab47d4f9ee3f099","unresolved":false,"context_lines":[{"line_number":24,"context_line":"which, depending on share driver, performs share checks and makes corrections"},{"line_number":25,"context_line":"if needed. This method is called only on manila-share service start. Admin,"},{"line_number":26,"context_line":"in case he needs to perform such check, is forced to restart manila-share"},{"line_number":27,"context_line":"service [1], that can cause undesired service downtime. So we need to support"},{"line_number":28,"context_line":"performs share checks and makes corrections if needed restart service."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Use cases"},{"line_number":31,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":8,"id":"bff0334d_cec26853","line":28,"range":{"start_line":27,"start_character":56,"end_line":28,"end_character":70},"updated":"2017-04-12 12:26:54.000000000","message":"I can only guess that you, maybe, wanted to say following here:\n\n\"\"\"\nSo, we need to support performing share checks and making corrections without the need to restart manila-share service.\n\"\"\"","commit_id":"36e2bd6b4aafebeada7ab3c0e601cc5d526a5837"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"5474feb29c754cc4379e39fe6b86fd3129c78fb1","unresolved":false,"context_lines":[{"line_number":24,"context_line":"which, depending on share driver, performs share checks and makes corrections"},{"line_number":25,"context_line":"if needed. This method is called only on manila-share service start. Admin,"},{"line_number":26,"context_line":"in case he needs to perform such check, is forced to restart manila-share"},{"line_number":27,"context_line":"service [1], that can cause undesired service downtime. So we need to support"},{"line_number":28,"context_line":"performs share checks and makes corrections if needed restart service."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Use cases"},{"line_number":31,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":8,"id":"bff0334d_e1fbfd43","line":28,"range":{"start_line":27,"start_character":56,"end_line":28,"end_character":70},"in_reply_to":"bff0334d_cec26853","updated":"2017-04-12 12:33:53.000000000","message":"Done","commit_id":"36e2bd6b4aafebeada7ab3c0e601cc5d526a5837"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"71d941ac116e4f624f2f643428c185d5051a0224","unresolved":false,"context_lines":[{"line_number":35,"context_line":""},{"line_number":36,"context_line":"- Add periodic task to invoke maintain shares methods."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"- Four new shares states will be introduced: \u0027maintaining\u0027 , the status"},{"line_number":39,"context_line":"  transition for this:"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"  * When the request is received by period task**"}],"source_content_type":"text/x-rst","patch_set":12,"id":"9ff52f3f_5fd70b25","line":38,"range":{"start_line":38,"start_character":58,"end_line":38,"end_character":59},"updated":"2017-04-12 22:15:57.000000000","message":"remove this space","commit_id":"a1dabe0f9dbf0084d354919a8868cadb1b2af05a"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"977c987949244409caea6fc9ba17ed4092788b81","unresolved":false,"context_lines":[{"line_number":35,"context_line":""},{"line_number":36,"context_line":"- Add periodic task to invoke maintain shares methods."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"- Four new shares states will be introduced: \u0027maintaining\u0027 , the status"},{"line_number":39,"context_line":"  transition for this:"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"  * When the request is received by period task**"}],"source_content_type":"text/x-rst","patch_set":12,"id":"9ff52f3f_c576ae3f","line":38,"range":{"start_line":38,"start_character":58,"end_line":38,"end_character":59},"in_reply_to":"9ff52f3f_5fd70b25","updated":"2017-10-24 02:20:59.000000000","message":"Done","commit_id":"a1dabe0f9dbf0084d354919a8868cadb1b2af05a"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"71d941ac116e4f624f2f643428c185d5051a0224","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"  * When the request is received by period task**"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    shareinstances.status:"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    - \u0027available\u0027             ----\u003e \u0027maintaining\u0027"},{"line_number":46,"context_line":"    - \u0027error\u0027                 ----\u003e \u0027error\u0027 (status will be preserved)"}],"source_content_type":"text/x-rst","patch_set":12,"id":"9ff52f3f_bfef37e8","line":43,"range":{"start_line":43,"start_character":4,"end_line":43,"end_character":18},"updated":"2017-04-12 22:15:57.000000000","message":"share_instances","commit_id":"a1dabe0f9dbf0084d354919a8868cadb1b2af05a"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"977c987949244409caea6fc9ba17ed4092788b81","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"  * When the request is received by period task**"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    shareinstances.status:"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    - \u0027available\u0027             ----\u003e \u0027maintaining\u0027"},{"line_number":46,"context_line":"    - \u0027error\u0027                 ----\u003e \u0027error\u0027 (status will be preserved)"}],"source_content_type":"text/x-rst","patch_set":12,"id":"9ff52f3f_a573aa4d","line":43,"range":{"start_line":43,"start_character":4,"end_line":43,"end_character":18},"in_reply_to":"9ff52f3f_bfef37e8","updated":"2017-10-24 02:20:59.000000000","message":"Done","commit_id":"a1dabe0f9dbf0084d354919a8868cadb1b2af05a"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"71d941ac116e4f624f2f643428c185d5051a0224","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"  * In the share manager, before the request is sent to the share driver**"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    shareinstances.status:"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    - \u0027error\u0027 / \u0027out_of_sync\u0027 ----\u003e (status will be preserved)"},{"line_number":53,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"9ff52f3f_dfcb1b70","line":50,"range":{"start_line":50,"start_character":4,"end_line":50,"end_character":18},"updated":"2017-04-12 22:15:57.000000000","message":"same as above","commit_id":"a1dabe0f9dbf0084d354919a8868cadb1b2af05a"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"977c987949244409caea6fc9ba17ed4092788b81","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"  * In the share manager, before the request is sent to the share driver**"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    shareinstances.status:"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    - \u0027error\u0027 / \u0027out_of_sync\u0027 ----\u003e (status will be preserved)"},{"line_number":53,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"9ff52f3f_858e6625","line":50,"range":{"start_line":50,"start_character":4,"end_line":50,"end_character":18},"in_reply_to":"9ff52f3f_dfcb1b70","updated":"2017-10-24 02:20:59.000000000","message":"Done","commit_id":"a1dabe0f9dbf0084d354919a8868cadb1b2af05a"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"71d941ac116e4f624f2f643428c185d5051a0224","unresolved":false,"context_lines":[{"line_number":66,"context_line":"    migrating, etc)."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"- Add driver interface ``maintain_share`` to update share informations."},{"line_number":69,"context_line":"  * ``ensure_share`` method just be called on manila-share service start [1]."},{"line_number":70,"context_line":"  It has exclusive access to the share because the owning backend is not \"up\""},{"line_number":71,"context_line":"  at the time that it runs."},{"line_number":72,"context_line":"  * ``maintain_share`` method could not exclusive access and would need to"}],"source_content_type":"text/x-rst","patch_set":12,"id":"9ff52f3f_3f832707","line":69,"range":{"start_line":69,"start_character":28,"end_line":69,"end_character":42},"updated":"2017-04-12 22:15:57.000000000","message":"will be called just","commit_id":"a1dabe0f9dbf0084d354919a8868cadb1b2af05a"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"977c987949244409caea6fc9ba17ed4092788b81","unresolved":false,"context_lines":[{"line_number":66,"context_line":"    migrating, etc)."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"- Add driver interface ``maintain_share`` to update share informations."},{"line_number":69,"context_line":"  * ``ensure_share`` method just be called on manila-share service start [1]."},{"line_number":70,"context_line":"  It has exclusive access to the share because the owning backend is not \"up\""},{"line_number":71,"context_line":"  at the time that it runs."},{"line_number":72,"context_line":"  * ``maintain_share`` method could not exclusive access and would need to"}],"source_content_type":"text/x-rst","patch_set":12,"id":"9ff52f3f_05a2569b","line":69,"range":{"start_line":69,"start_character":28,"end_line":69,"end_character":42},"in_reply_to":"9ff52f3f_3f832707","updated":"2017-10-24 02:20:59.000000000","message":"Done","commit_id":"a1dabe0f9dbf0084d354919a8868cadb1b2af05a"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"71d941ac116e4f624f2f643428c185d5051a0224","unresolved":false,"context_lines":[{"line_number":69,"context_line":"  * ``ensure_share`` method just be called on manila-share service start [1]."},{"line_number":70,"context_line":"  It has exclusive access to the share because the owning backend is not \"up\""},{"line_number":71,"context_line":"  at the time that it runs."},{"line_number":72,"context_line":"  * ``maintain_share`` method could not exclusive access and would need to"},{"line_number":73,"context_line":"  take extra precautions."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":12,"id":"9ff52f3f_7f8e4f28","line":72,"range":{"start_line":72,"start_character":30,"end_line":72,"end_character":39},"updated":"2017-04-12 22:15:57.000000000","message":"does not have","commit_id":"a1dabe0f9dbf0084d354919a8868cadb1b2af05a"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"977c987949244409caea6fc9ba17ed4092788b81","unresolved":false,"context_lines":[{"line_number":69,"context_line":"  * ``ensure_share`` method just be called on manila-share service start [1]."},{"line_number":70,"context_line":"  It has exclusive access to the share because the owning backend is not \"up\""},{"line_number":71,"context_line":"  at the time that it runs."},{"line_number":72,"context_line":"  * ``maintain_share`` method could not exclusive access and would need to"},{"line_number":73,"context_line":"  take extra precautions."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":12,"id":"9ff52f3f_e59e5253","line":72,"range":{"start_line":72,"start_character":30,"end_line":72,"end_character":39},"in_reply_to":"9ff52f3f_7f8e4f28","updated":"2017-10-24 02:20:59.000000000","message":"Done","commit_id":"a1dabe0f9dbf0084d354919a8868cadb1b2af05a"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"71d941ac116e4f624f2f643428c185d5051a0224","unresolved":false,"context_lines":[{"line_number":71,"context_line":"  at the time that it runs."},{"line_number":72,"context_line":"  * ``maintain_share`` method could not exclusive access and would need to"},{"line_number":73,"context_line":"  take extra precautions."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"Alternatives"},{"line_number":76,"context_line":"------------"},{"line_number":77,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"9ff52f3f_5ff4ab5b","line":74,"updated":"2017-04-12 22:15:57.000000000","message":"I have some questions. First, I haven\u0027t read the latest patchset of the ensure_share spec, but since this one does not have a dependency I assume that I don\u0027t need to. \n\nSo, I would like to know a bit more about the workflow of this. The way I understand is:\n\n1) Periodic task is triggered\n2) It invokes driver interface \"maintain_shares\".\n\nIt is clarified that maintain_shares is not the same as ensure_share, so, I would like to know:\n\n1) Does maintain_share is invoked for every share? The statement \u0027passing existing shares and the \"changed\" shares\u0027 above implies that it is a subset of shares, so how is this subset determined? If maintain_shares is invoked for all shares periodically, this will bring performance problems. If not, how is the subset determined?\n\n2) It looks to me that the sole responsibility of the maintain_share method, to be implemented by a driver, is to find out if the export_locations of the given share has changed. So, a valid driver implementation would only check the backend if the current export location is still accurate (or always return the latest one), and that\u0027s it? If yes, this looks similar to what ensure_share method has been doing lately, and it does not scale, so, we kinda go back to question #1.\n\n3) from the other spec problem description \"Also, in most cases, this processing is redundant.\". So it seems the periodic task will be doing redundant checks most of the time. Doesn\u0027t this introduce back the problem you are trying to solve in the other spec or are we okay with this scenario since it is not on driver restarts?","commit_id":"a1dabe0f9dbf0084d354919a8868cadb1b2af05a"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"977c987949244409caea6fc9ba17ed4092788b81","unresolved":false,"context_lines":[{"line_number":71,"context_line":"  at the time that it runs."},{"line_number":72,"context_line":"  * ``maintain_share`` method could not exclusive access and would need to"},{"line_number":73,"context_line":"  take extra precautions."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"Alternatives"},{"line_number":76,"context_line":"------------"},{"line_number":77,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"9ff52f3f_05037644","line":74,"in_reply_to":"9ff52f3f_5ff4ab5b","updated":"2017-10-24 02:20:59.000000000","message":"Thanks ganso, the maintain_shares logic is as the same as ensure_shares. I will add the description about it.\nWe have two different name because of line 69-73:\n* ``ensure_share`` method just be called on manila-share service start [1].\n  It has exclusive access to the share because the owning backend is not \"up\"\n  at the time that it runs.\n  * ``maintain_share`` method could not exclusive access and would need to\n  take extra precautions.","commit_id":"a1dabe0f9dbf0084d354919a8868cadb1b2af05a"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"71d941ac116e4f624f2f643428c185d5051a0224","unresolved":false,"context_lines":[{"line_number":85,"context_line":"REST API impact"},{"line_number":86,"context_line":"---------------"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"None"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"Driver impact"},{"line_number":91,"context_line":"-------------"}],"source_content_type":"text/x-rst","patch_set":12,"id":"9ff52f3f_e26f6890","line":88,"range":{"start_line":88,"start_character":0,"end_line":88,"end_character":4},"updated":"2017-04-12 22:15:57.000000000","message":"Microversion needs to be bumped due to new status \"maintaining\".","commit_id":"a1dabe0f9dbf0084d354919a8868cadb1b2af05a"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"977c987949244409caea6fc9ba17ed4092788b81","unresolved":false,"context_lines":[{"line_number":85,"context_line":"REST API impact"},{"line_number":86,"context_line":"---------------"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"None"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"Driver impact"},{"line_number":91,"context_line":"-------------"}],"source_content_type":"text/x-rst","patch_set":12,"id":"9ff52f3f_05cb7653","line":88,"range":{"start_line":88,"start_character":0,"end_line":88,"end_character":4},"in_reply_to":"9ff52f3f_e26f6890","updated":"2017-10-24 02:20:59.000000000","message":"Done","commit_id":"a1dabe0f9dbf0084d354919a8868cadb1b2af05a"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"71d941ac116e4f624f2f643428c185d5051a0224","unresolved":false,"context_lines":[{"line_number":93,"context_line":"- Add the ``maintain_share`` driver interface to update shares."},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"  def maintain_share(self, context, shares, share_server\u003dNone):"},{"line_number":96,"context_line":"        \"\"\"Invoked to update share that shares are exported."},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"        Driver can use this method to update the list of export locations of"},{"line_number":99,"context_line":"        the shares if it changes. To do that, you should return dictionary of"}],"source_content_type":"text/x-rst","patch_set":12,"id":"9ff52f3f_bfabb773","line":96,"range":{"start_line":96,"start_character":29,"end_line":96,"end_character":46},"updated":"2017-04-12 22:15:57.000000000","message":"this looks confusing, I suggest:\n\n\"\"\"Invoked to update shares that are exported.\"\"\"","commit_id":"a1dabe0f9dbf0084d354919a8868cadb1b2af05a"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"977c987949244409caea6fc9ba17ed4092788b81","unresolved":false,"context_lines":[{"line_number":93,"context_line":"- Add the ``maintain_share`` driver interface to update shares."},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"  def maintain_share(self, context, shares, share_server\u003dNone):"},{"line_number":96,"context_line":"        \"\"\"Invoked to update share that shares are exported."},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"        Driver can use this method to update the list of export locations of"},{"line_number":99,"context_line":"        the shares if it changes. To do that, you should return dictionary of"}],"source_content_type":"text/x-rst","patch_set":12,"id":"9ff52f3f_25eb1ab1","line":96,"range":{"start_line":96,"start_character":29,"end_line":96,"end_character":46},"in_reply_to":"9ff52f3f_bfabb773","updated":"2017-10-24 02:20:59.000000000","message":"Done","commit_id":"a1dabe0f9dbf0084d354919a8868cadb1b2af05a"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"71d941ac116e4f624f2f643428c185d5051a0224","unresolved":false,"context_lines":[{"line_number":147,"context_line":"----------------"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"Each developer could implement newly proposed method \"maintain_share\" if"},{"line_number":150,"context_line":"the backend want to update share automatically."},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"Implementation"},{"line_number":153,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":12,"id":"9ff52f3f_7fb76fda","line":150,"range":{"start_line":150,"start_character":12,"end_line":150,"end_character":16},"updated":"2017-04-12 22:15:57.000000000","message":"wants","commit_id":"a1dabe0f9dbf0084d354919a8868cadb1b2af05a"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"977c987949244409caea6fc9ba17ed4092788b81","unresolved":false,"context_lines":[{"line_number":147,"context_line":"----------------"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"Each developer could implement newly proposed method \"maintain_share\" if"},{"line_number":150,"context_line":"the backend want to update share automatically."},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"Implementation"},{"line_number":153,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":12,"id":"9ff52f3f_c5d90e23","line":150,"range":{"start_line":150,"start_character":12,"end_line":150,"end_character":16},"in_reply_to":"9ff52f3f_7fb76fda","updated":"2017-10-24 02:20:59.000000000","message":"Done","commit_id":"a1dabe0f9dbf0084d354919a8868cadb1b2af05a"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a8891664a0123fe5396a99965b013450cd901033","unresolved":false,"context_lines":[{"line_number":34,"context_line":"To accomplish this change, we will do the following:"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"- Add periodic task to invoke maintain shares methods."},{"line_number":37,"context_line":"  Before we invoke maintain shares methods, we will use ``get_driver_info``"},{"line_number":38,"context_line":"  to get driver info from DB, and invoke the ``ensure_check_update`` method"},{"line_number":39,"context_line":"  to check whether we need to update shares. We already added them in ensure"},{"line_number":40,"context_line":"  share spec[1]."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"- Four new shares states will be introduced: \u0027maintaining\u0027, the status"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9ff52f3f_7a264bba","line":39,"range":{"start_line":37,"start_character":0,"end_line":39,"end_character":44},"updated":"2017-04-13 12:00:32.000000000","message":"I guess, spec should define explicitly HOW manila will determine whether we need to update some share info or not.","commit_id":"573768f4ad8ca8e70d9e68b7ddc4141b9963e9a6"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"c2485ec785723f6a78f2c1ae5c432c8429f4c424","unresolved":false,"context_lines":[{"line_number":34,"context_line":"To accomplish this change, we will do the following:"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"- Add periodic task to invoke maintain shares methods."},{"line_number":37,"context_line":"  Before we invoke maintain shares methods, we will use ``get_driver_info``"},{"line_number":38,"context_line":"  to get driver info from DB, and invoke the ``ensure_check_update`` method"},{"line_number":39,"context_line":"  to check whether we need to update shares. We already added them in ensure"},{"line_number":40,"context_line":"  share spec[1]."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"- Four new shares states will be introduced: \u0027maintaining\u0027, the status"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9ff52f3f_60d0de51","line":39,"range":{"start_line":37,"start_character":0,"end_line":39,"end_character":44},"in_reply_to":"9ff52f3f_7a264bba","updated":"2017-04-13 13:02:37.000000000","message":"Done","commit_id":"573768f4ad8ca8e70d9e68b7ddc4141b9963e9a6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a8891664a0123fe5396a99965b013450cd901033","unresolved":false,"context_lines":[{"line_number":36,"context_line":"- Add periodic task to invoke maintain shares methods."},{"line_number":37,"context_line":"  Before we invoke maintain shares methods, we will use ``get_driver_info``"},{"line_number":38,"context_line":"  to get driver info from DB, and invoke the ``ensure_check_update`` method"},{"line_number":39,"context_line":"  to check whether we need to update shares. We already added them in ensure"},{"line_number":40,"context_line":"  share spec[1]."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"- Four new shares states will be introduced: \u0027maintaining\u0027, the status"},{"line_number":43,"context_line":"  transition for this:"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9ff52f3f_f74b96ad","line":40,"range":{"start_line":39,"start_character":44,"end_line":40,"end_character":16},"updated":"2017-04-13 12:00:32.000000000","message":"Actually it is point for \"Dependencies\" section here, that is line 173-176. It is dependency on other proposed spec changes.","commit_id":"573768f4ad8ca8e70d9e68b7ddc4141b9963e9a6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"f8dae76cd20c7a22d478a8d3c359d7dc7105dc9e","unresolved":false,"context_lines":[{"line_number":36,"context_line":"- Add periodic task to invoke maintain shares methods."},{"line_number":37,"context_line":"  Before we invoke maintain shares methods, we will use ``get_driver_info``"},{"line_number":38,"context_line":"  to get driver info from DB, and invoke the ``ensure_check_update`` method"},{"line_number":39,"context_line":"  to check whether we need to update shares. We already added them in ensure"},{"line_number":40,"context_line":"  share spec[1]."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"- Four new shares states will be introduced: \u0027maintaining\u0027, the status"},{"line_number":43,"context_line":"  transition for this:"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9ff52f3f_ba6cce08","line":40,"range":{"start_line":39,"start_character":44,"end_line":40,"end_character":16},"in_reply_to":"9ff52f3f_a52f18f5","updated":"2017-04-13 14:23:31.000000000","message":"It is not done. \"Dependencies\" section still empty.","commit_id":"573768f4ad8ca8e70d9e68b7ddc4141b9963e9a6"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"c2485ec785723f6a78f2c1ae5c432c8429f4c424","unresolved":false,"context_lines":[{"line_number":36,"context_line":"- Add periodic task to invoke maintain shares methods."},{"line_number":37,"context_line":"  Before we invoke maintain shares methods, we will use ``get_driver_info``"},{"line_number":38,"context_line":"  to get driver info from DB, and invoke the ``ensure_check_update`` method"},{"line_number":39,"context_line":"  to check whether we need to update shares. We already added them in ensure"},{"line_number":40,"context_line":"  share spec[1]."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"- Four new shares states will be introduced: \u0027maintaining\u0027, the status"},{"line_number":43,"context_line":"  transition for this:"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9ff52f3f_a52f18f5","line":40,"range":{"start_line":39,"start_character":44,"end_line":40,"end_character":16},"in_reply_to":"9ff52f3f_f74b96ad","updated":"2017-04-13 13:02:37.000000000","message":"Done","commit_id":"573768f4ad8ca8e70d9e68b7ddc4141b9963e9a6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a8891664a0123fe5396a99965b013450cd901033","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  to check whether we need to update shares. We already added them in ensure"},{"line_number":40,"context_line":"  share spec[1]."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"- Four new shares states will be introduced: \u0027maintaining\u0027, the status"},{"line_number":43,"context_line":"  transition for this:"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"  * When the request is received by period task**"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    share_instances.status:"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    - \u0027available\u0027             ----\u003e \u0027maintaining\u0027"},{"line_number":50,"context_line":"    - \u0027error\u0027                 ----\u003e \u0027error\u0027 (status will be preserved)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"  * In the share manager, before the request is sent to the share driver**"},{"line_number":53,"context_line":""}],"source_content_type":"text/x-rst","patch_set":14,"id":"9ff52f3f_b7c2aee8","line":50,"range":{"start_line":42,"start_character":0,"end_line":50,"end_character":70},"updated":"2017-04-13 12:00:32.000000000","message":"Actually, it is not share\u0027s status. It is \"task_state\". One other field we have for shares. We update DB data with proposed feature, not share itself.","commit_id":"573768f4ad8ca8e70d9e68b7ddc4141b9963e9a6"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"c2485ec785723f6a78f2c1ae5c432c8429f4c424","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  to check whether we need to update shares. We already added them in ensure"},{"line_number":40,"context_line":"  share spec[1]."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"- Four new shares states will be introduced: \u0027maintaining\u0027, the status"},{"line_number":43,"context_line":"  transition for this:"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"  * When the request is received by period task**"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    share_instances.status:"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    - \u0027available\u0027             ----\u003e \u0027maintaining\u0027"},{"line_number":50,"context_line":"    - \u0027error\u0027                 ----\u003e \u0027error\u0027 (status will be preserved)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"  * In the share manager, before the request is sent to the share driver**"},{"line_number":53,"context_line":""}],"source_content_type":"text/x-rst","patch_set":14,"id":"9ff52f3f_c52a1ce6","line":50,"range":{"start_line":42,"start_character":0,"end_line":50,"end_character":70},"in_reply_to":"9ff52f3f_b7c2aee8","updated":"2017-04-13 13:02:37.000000000","message":"Done","commit_id":"573768f4ad8ca8e70d9e68b7ddc4141b9963e9a6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a8891664a0123fe5396a99965b013450cd901033","unresolved":false,"context_lines":[{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    - \u0027error\u0027 / \u0027out_of_sync\u0027 ----\u003e (status will be preserved)"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"  * Call the driver interface ``maintain_share`` passing existing shares and"},{"line_number":59,"context_line":"    the \"changed\" shares (\u0027maintaining\u0027 shares)."},{"line_number":60,"context_line":"  * Accept ``status`` attribute to be set by driver, allowing for shares in"},{"line_number":61,"context_line":"    transitional status to be updated by the driver. If the driver does not"},{"line_number":62,"context_line":"    return a status for each share in transitional status, transition"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9ff52f3f_37ae9e2e","line":59,"range":{"start_line":58,"start_character":2,"end_line":59,"end_character":48},"updated":"2017-04-13 12:00:32.000000000","message":"What about snapshots?","commit_id":"573768f4ad8ca8e70d9e68b7ddc4141b9963e9a6"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"c2485ec785723f6a78f2c1ae5c432c8429f4c424","unresolved":false,"context_lines":[{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    - \u0027error\u0027 / \u0027out_of_sync\u0027 ----\u003e (status will be preserved)"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"  * Call the driver interface ``maintain_share`` passing existing shares and"},{"line_number":59,"context_line":"    the \"changed\" shares (\u0027maintaining\u0027 shares)."},{"line_number":60,"context_line":"  * Accept ``status`` attribute to be set by driver, allowing for shares in"},{"line_number":61,"context_line":"    transitional status to be updated by the driver. If the driver does not"},{"line_number":62,"context_line":"    return a status for each share in transitional status, transition"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9ff52f3f_60f7bef7","line":59,"range":{"start_line":58,"start_character":2,"end_line":59,"end_character":48},"in_reply_to":"9ff52f3f_37ae9e2e","updated":"2017-04-13 13:02:37.000000000","message":"We could ensure snapshots in other spec. snapshot status and share task status could be different.","commit_id":"573768f4ad8ca8e70d9e68b7ddc4141b9963e9a6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a8891664a0123fe5396a99965b013450cd901033","unresolved":false,"context_lines":[{"line_number":96,"context_line":""},{"line_number":97,"context_line":"- Add the ``maintain_share`` driver interface to update shares."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"  def maintain_share(self, context, shares, share_server\u003dNone):"},{"line_number":100,"context_line":"        \"\"\"Invoked to update shares that are exported."},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        Driver can use this method to update the list of export locations of"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9ff52f3f_d74bf284","line":99,"range":{"start_line":99,"start_character":36,"end_line":99,"end_character":42},"updated":"2017-04-13 12:00:32.000000000","message":"\"spec\" should not implement ambiguity in such things. Share driver operates on \"share_instances\" only.","commit_id":"573768f4ad8ca8e70d9e68b7ddc4141b9963e9a6"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"c2485ec785723f6a78f2c1ae5c432c8429f4c424","unresolved":false,"context_lines":[{"line_number":96,"context_line":""},{"line_number":97,"context_line":"- Add the ``maintain_share`` driver interface to update shares."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"  def maintain_share(self, context, shares, share_server\u003dNone):"},{"line_number":100,"context_line":"        \"\"\"Invoked to update shares that are exported."},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        Driver can use this method to update the list of export locations of"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9ff52f3f_e51d20be","line":99,"range":{"start_line":99,"start_character":36,"end_line":99,"end_character":42},"in_reply_to":"9ff52f3f_d74bf284","updated":"2017-04-13 13:02:37.000000000","message":"Done","commit_id":"573768f4ad8ca8e70d9e68b7ddc4141b9963e9a6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a8891664a0123fe5396a99965b013450cd901033","unresolved":false,"context_lines":[{"line_number":134,"context_line":"Other end user impact"},{"line_number":135,"context_line":"---------------------"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"None"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"Performance impact"},{"line_number":140,"context_line":"------------------"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9ff52f3f_97456a73","line":137,"range":{"start_line":137,"start_character":0,"end_line":137,"end_character":4},"updated":"2017-04-13 12:00:32.000000000","message":"Why None? User may get failure trying to perform some action against share that is being \"maintaining\".","commit_id":"573768f4ad8ca8e70d9e68b7ddc4141b9963e9a6"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"c2485ec785723f6a78f2c1ae5c432c8429f4c424","unresolved":false,"context_lines":[{"line_number":134,"context_line":"Other end user impact"},{"line_number":135,"context_line":"---------------------"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"None"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"Performance impact"},{"line_number":140,"context_line":"------------------"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9ff52f3f_6587d0d9","line":137,"range":{"start_line":137,"start_character":0,"end_line":137,"end_character":4},"in_reply_to":"9ff52f3f_97456a73","updated":"2017-04-13 13:02:37.000000000","message":"Done","commit_id":"573768f4ad8ca8e70d9e68b7ddc4141b9963e9a6"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"e08fcaa2be9b3b9e1b8ffcbf036a55c920a62a0c","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  manila.conf are read through this) and also array information. Then invoke the"},{"line_number":40,"context_line":"  ``ensure_check_update`` method, it will compare driver info from DB with the"},{"line_number":41,"context_line":"  current real driver info from ``get_driver_info`` method, then driver will"},{"line_number":42,"context_line":"  decided whether we need to update shares. It is dependency on other proposed"},{"line_number":43,"context_line":"  spec changes[1]."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"- Four new shares states will be introduced: \u0027maintaining\u0027, the task_state"},{"line_number":46,"context_line":"  transition for this:"}],"source_content_type":"text/x-rst","patch_set":15,"id":"9ff52f3f_da679225","line":43,"range":{"start_line":42,"start_character":43,"end_line":43,"end_character":18},"updated":"2017-04-13 14:26:48.000000000","message":"Comment from previous patch set [1] is not addressed. THIS statement should be part of \"Dependencies\" section.\n\n[1] https://review.openstack.org/#/c/453553/14..15/specs/pike/maintain-shares.rst","commit_id":"c89220de34de352db655fa3af67262ce396dfdb2"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"34f5b657fa24813930ae5ea4d32a366ef5d22d1d","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  manila.conf are read through this) and also array information. Then invoke the"},{"line_number":40,"context_line":"  ``ensure_check_update`` method, it will compare driver info from DB with the"},{"line_number":41,"context_line":"  current real driver info from ``get_driver_info`` method, then driver will"},{"line_number":42,"context_line":"  decided whether we need to update shares. It is dependency on other proposed"},{"line_number":43,"context_line":"  spec changes[1]."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"- Four new shares states will be introduced: \u0027maintaining\u0027, the task_state"},{"line_number":46,"context_line":"  transition for this:"}],"source_content_type":"text/x-rst","patch_set":15,"id":"9ff52f3f_f0a037a8","line":43,"range":{"start_line":42,"start_character":43,"end_line":43,"end_character":18},"in_reply_to":"9ff52f3f_da679225","updated":"2017-04-13 14:56:32.000000000","message":"Done","commit_id":"c89220de34de352db655fa3af67262ce396dfdb2"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"e08fcaa2be9b3b9e1b8ffcbf036a55c920a62a0c","unresolved":false,"context_lines":[{"line_number":104,"context_line":""},{"line_number":105,"context_line":"        Driver can use this method to update the list of export locations of"},{"line_number":106,"context_line":"        the share instances if it changes. To do that, you should return"},{"line_number":107,"context_line":"        dictionary of shares."},{"line_number":108,"context_line":"        :shares: None or a list of all shares for updates."},{"line_number":109,"context_line":"        :return None or a dictionary of updates in the format::"},{"line_number":110,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"9ff52f3f_7a4ac627","line":107,"range":{"start_line":107,"start_character":22,"end_line":107,"end_character":28},"updated":"2017-04-13 14:26:48.000000000","message":"shares?","commit_id":"c89220de34de352db655fa3af67262ce396dfdb2"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"34f5b657fa24813930ae5ea4d32a366ef5d22d1d","unresolved":false,"context_lines":[{"line_number":104,"context_line":""},{"line_number":105,"context_line":"        Driver can use this method to update the list of export locations of"},{"line_number":106,"context_line":"        the share instances if it changes. To do that, you should return"},{"line_number":107,"context_line":"        dictionary of shares."},{"line_number":108,"context_line":"        :shares: None or a list of all shares for updates."},{"line_number":109,"context_line":"        :return None or a dictionary of updates in the format::"},{"line_number":110,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"9ff52f3f_90afab93","line":107,"range":{"start_line":107,"start_character":22,"end_line":107,"end_character":28},"in_reply_to":"9ff52f3f_7a4ac627","updated":"2017-04-13 14:56:32.000000000","message":"Done","commit_id":"c89220de34de352db655fa3af67262ce396dfdb2"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"e08fcaa2be9b3b9e1b8ffcbf036a55c920a62a0c","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        Driver can use this method to update the list of export locations of"},{"line_number":106,"context_line":"        the share instances if it changes. To do that, you should return"},{"line_number":107,"context_line":"        dictionary of shares."},{"line_number":108,"context_line":"        :shares: None or a list of all shares for updates."},{"line_number":109,"context_line":"        :return None or a dictionary of updates in the format::"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"            {"}],"source_content_type":"text/x-rst","patch_set":15,"id":"9ff52f3f_1a517ad9","line":108,"range":{"start_line":108,"start_character":39,"end_line":108,"end_character":45},"updated":"2017-04-13 14:26:48.000000000","message":"shares?","commit_id":"c89220de34de352db655fa3af67262ce396dfdb2"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"34f5b657fa24813930ae5ea4d32a366ef5d22d1d","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        Driver can use this method to update the list of export locations of"},{"line_number":106,"context_line":"        the share instances if it changes. To do that, you should return"},{"line_number":107,"context_line":"        dictionary of shares."},{"line_number":108,"context_line":"        :shares: None or a list of all shares for updates."},{"line_number":109,"context_line":"        :return None or a dictionary of updates in the format::"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"            {"}],"source_content_type":"text/x-rst","patch_set":15,"id":"9ff52f3f_707d471b","line":108,"range":{"start_line":108,"start_character":39,"end_line":108,"end_character":45},"in_reply_to":"9ff52f3f_1a517ad9","updated":"2017-04-13 14:56:32.000000000","message":"Done","commit_id":"c89220de34de352db655fa3af67262ce396dfdb2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"61d273304d27f748207edc48874c946933911c88","unresolved":false,"context_lines":[{"line_number":61,"context_line":"    transaction."},{"line_number":62,"context_line":"  * The share information will be provided by the driver when maintaining a"},{"line_number":63,"context_line":"    share."},{"line_number":64,"context_line":"  * If the share task_state is not ``available``, we will not go to driver"},{"line_number":65,"context_line":"    interface, and just keep the original task_state (such as: extending,"},{"line_number":66,"context_line":"    migrating, etc)."},{"line_number":67,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"9ff52f3f_d01893d4","line":64,"range":{"start_line":64,"start_character":4,"end_line":64,"end_character":47},"updated":"2017-04-13 14:59:21.000000000","message":"there is no such thing as \"task_state\" available... task_states aren\u0027t designed for this purpose.","commit_id":"6d5115679dcc0ff1bbb33cbc2c92033d97fb24b4"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"f5871a379935dc6017deef49a07d629fceb045b4","unresolved":false,"context_lines":[{"line_number":61,"context_line":"    transaction."},{"line_number":62,"context_line":"  * The share information will be provided by the driver when maintaining a"},{"line_number":63,"context_line":"    share."},{"line_number":64,"context_line":"  * If the share task_state is not ``available``, we will not go to driver"},{"line_number":65,"context_line":"    interface, and just keep the original task_state (such as: extending,"},{"line_number":66,"context_line":"    migrating, etc)."},{"line_number":67,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"7ffa3b31_99c24ce9","line":64,"range":{"start_line":64,"start_character":4,"end_line":64,"end_character":47},"in_reply_to":"9ff52f3f_d01893d4","updated":"2017-04-14 08:09:59.000000000","message":"Done","commit_id":"6d5115679dcc0ff1bbb33cbc2c92033d97fb24b4"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"04a827c74741c22843245fdf59c81b3a865c5c3a","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  shares.task_state and shares.status transition for this:"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"  * When the request is received by period task and share status is"},{"line_number":42,"context_line":"    ``available``, we will set shares.task_state to ``maintaining``."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"  * We will set shares.task_state to ``NULL``, after we maintain all shares"},{"line_number":45,"context_line":"    in the share manager**"}],"source_content_type":"text/x-rst","patch_set":17,"id":"7ffa3b31_8f34374c","line":42,"range":{"start_line":42,"start_character":19,"end_line":42,"end_character":67},"updated":"2017-04-14 11:34:37.000000000","message":"Hi ZhongJun, I would like to understand why the sudden change to using shares.task_state instead of share_instances.status.\n\nUsing task_state will not block most of shares operations. Since this maintain_shares method will run during normal manila-share service operation, setting the task_state will not block other operations such as extend, create_snapshot, etc, while setting shares.status will.\n\nI don\u0027t see any advantage, so please enlighten me.\n\nAlso, on migration implementation, I had the shares as \"available\" while only setting the task_state. Later, I changed to have status \"migration\" because it made more sense.\n\nIf we are going to stay with status \"available\" and task_state maintaining, but prevent the user from extending, creating snapshots, etc. It needs to be clear to the user why his request is being denied.","commit_id":"95a8b81d0b35267fde522a6fcd4bd576e3e9c566"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"737b0b33d2f818a94e40cef81405a1ddec334faa","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  shares.task_state and shares.status transition for this:"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"  * When the request is received by period task and share status is"},{"line_number":42,"context_line":"    ``available``, we will set shares.task_state to ``maintaining``."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"  * We will set shares.task_state to ``NULL``, after we maintain all shares"},{"line_number":45,"context_line":"    in the share manager**"}],"source_content_type":"text/x-rst","patch_set":17,"id":"7ffa3b31_bfdcac46","line":42,"range":{"start_line":42,"start_character":19,"end_line":42,"end_character":67},"in_reply_to":"7ffa3b31_8f34374c","updated":"2017-04-17 03:20:11.000000000","message":"Because the \"maintaining\" state should not be show to user. Using task_state will block shares operations. We need to add maintaining state to busy states, then the task_state will block shares operations by def _check_is_share_busy(self, share): function.(\nextend: https://github.com/openstack/manila/blob/059fae0ed5b99fd31abdc22768da90ed3347ade4/manila/share/api.py#L1774\ncreate_snapshot: https://github.com/openstack/manila/blob/059fae0ed5b99fd31abdc22768da90ed3347ade4/manila/share/api.py#L1009)","commit_id":"95a8b81d0b35267fde522a6fcd4bd576e3e9c566"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"987d417c7d2dc8e2ef983bcd409042086e719540","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  shares.task_state and shares.status transition for this:"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"  * When the request is received by period task and share status is"},{"line_number":42,"context_line":"    ``available``, we will set shares.task_state to ``maintaining``."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"  * We will set shares.task_state to ``NULL``, after we maintain all shares"},{"line_number":45,"context_line":"    in the share manager**"}],"source_content_type":"text/x-rst","patch_set":17,"id":"7ffa3b31_f97da91c","line":42,"range":{"start_line":42,"start_character":19,"end_line":42,"end_character":67},"in_reply_to":"7ffa3b31_bfdcac46","updated":"2017-04-17 11:22:50.000000000","message":"What response will we give to users when they try to extend or create a snapshot while task_state is \"maintaining\" and status is \"available\" ?","commit_id":"95a8b81d0b35267fde522a6fcd4bd576e3e9c566"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"d18c7fd393ee23702b623362b23552a113e8720b","unresolved":false,"context_lines":[{"line_number":41,"context_line":"  * When the request is received by period task and share status is"},{"line_number":42,"context_line":"    ``available``, we will set shares.task_state to ``maintaining``."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"  * We will set shares.task_state to ``NULL``, after we maintain all shares"},{"line_number":45,"context_line":"    in the share manager**"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"  * Call the driver interface ``maintain_share`` passing existing shares and"},{"line_number":48,"context_line":"    the \"changed\" shares (\u0027maintaining\u0027 shares)."}],"source_content_type":"text/x-rst","patch_set":17,"id":"7ffa3b31_0ff387a0","line":45,"range":{"start_line":44,"start_character":47,"end_line":45,"end_character":26},"updated":"2017-04-14 11:37:43.000000000","message":"Why wait for all to make per-share DB update?","commit_id":"95a8b81d0b35267fde522a6fcd4bd576e3e9c566"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"737b0b33d2f818a94e40cef81405a1ddec334faa","unresolved":false,"context_lines":[{"line_number":41,"context_line":"  * When the request is received by period task and share status is"},{"line_number":42,"context_line":"    ``available``, we will set shares.task_state to ``maintaining``."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"  * We will set shares.task_state to ``NULL``, after we maintain all shares"},{"line_number":45,"context_line":"    in the share manager**"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"  * Call the driver interface ``maintain_share`` passing existing shares and"},{"line_number":48,"context_line":"    the \"changed\" shares (\u0027maintaining\u0027 shares)."}],"source_content_type":"text/x-rst","patch_set":17,"id":"7ffa3b31_cc0d9491","line":45,"range":{"start_line":44,"start_character":47,"end_line":45,"end_character":26},"in_reply_to":"7ffa3b31_0ff387a0","updated":"2017-04-17 03:20:11.000000000","message":"Because we maintain all share instances in driver interface (please see driver interface). We will wait for all share instances be returned by driver to make per-share DB update.\ndef maintain_share(self, context, share_instances, share_server\u003dNone):","commit_id":"95a8b81d0b35267fde522a6fcd4bd576e3e9c566"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"d18c7fd393ee23702b623362b23552a113e8720b","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    driver interface, and just keep the original status (such as: extending,"},{"line_number":59,"context_line":"    migrating, etc)."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"- Add driver interface ``maintain_share`` to update share informations."},{"line_number":62,"context_line":"  * ``ensure_share`` method will be called just on manila-share service"},{"line_number":63,"context_line":"  start [1]. It has exclusive access to the share because the owning backend"},{"line_number":64,"context_line":"  is not \"up\" at the time that it runs."},{"line_number":65,"context_line":"  * ``maintain_share`` method does not have exclusive access and would need"},{"line_number":66,"context_line":"  to take extra precautions."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"Alternatives"},{"line_number":69,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":17,"id":"7ffa3b31_af7db3e8","line":66,"range":{"start_line":61,"start_character":0,"end_line":66,"end_character":28},"updated":"2017-04-14 11:37:43.000000000","message":"How \"ensure_share\" and \"maintain_share\" should differ from driver point of view? What is the goal for each of them? Why do you need two, not one method?","commit_id":"95a8b81d0b35267fde522a6fcd4bd576e3e9c566"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"737b0b33d2f818a94e40cef81405a1ddec334faa","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    driver interface, and just keep the original status (such as: extending,"},{"line_number":59,"context_line":"    migrating, etc)."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"- Add driver interface ``maintain_share`` to update share informations."},{"line_number":62,"context_line":"  * ``ensure_share`` method will be called just on manila-share service"},{"line_number":63,"context_line":"  start [1]. It has exclusive access to the share because the owning backend"},{"line_number":64,"context_line":"  is not \"up\" at the time that it runs."},{"line_number":65,"context_line":"  * ``maintain_share`` method does not have exclusive access and would need"},{"line_number":66,"context_line":"  to take extra precautions."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"Alternatives"},{"line_number":69,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":17,"id":"7ffa3b31_0c637c1c","line":66,"range":{"start_line":61,"start_character":0,"end_line":66,"end_character":28},"in_reply_to":"7ffa3b31_af7db3e8","updated":"2017-04-17 03:20:11.000000000","message":"The difference would be that ensure_share() could assume it has exclusive access to the share because the owning backend is not \"up\" at the time that it runs\nThe other call (maintain_share()?) could not assume exclusive access and would need to take extra precautions","commit_id":"95a8b81d0b35267fde522a6fcd4bd576e3e9c566"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"6a336b384d13071b5ca26984f62c50d2a73e8aa4","unresolved":false,"context_lines":[{"line_number":163,"context_line":"Dependencies"},{"line_number":164,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"Before we invoke maintain shares methods, we will get driver info from DB,"},{"line_number":167,"context_line":"and use ``get_driver_info`` to read the config options (so changes in"},{"line_number":168,"context_line":"manila.conf are read through this) and also array information. Then invoke the"},{"line_number":169,"context_line":"``ensure_check_update`` method, it will compare driver info from DB with the"},{"line_number":170,"context_line":"current real driver info from ``get_driver_info`` method, then driver will"},{"line_number":171,"context_line":"decided whether we need to update shares."},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"Testing"},{"line_number":174,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":17,"id":"7ffa3b31_6fee8b89","line":171,"range":{"start_line":166,"start_character":0,"end_line":171,"end_character":41},"updated":"2017-04-14 11:42:30.000000000","message":"Here you refer to method, that you proposed in other spec [1], but you do not mention this \"other\" spec here.\n\nHere, in \"dependencies\" section, we should describe \"dependency\" on some other thing/activity, whatever. Right now, it is unclear what is the dependency here.\n\n[1] https://review.openstack.org/#/c/446494/26/specs/pike/ensure-share.rst","commit_id":"95a8b81d0b35267fde522a6fcd4bd576e3e9c566"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"737b0b33d2f818a94e40cef81405a1ddec334faa","unresolved":false,"context_lines":[{"line_number":163,"context_line":"Dependencies"},{"line_number":164,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"Before we invoke maintain shares methods, we will get driver info from DB,"},{"line_number":167,"context_line":"and use ``get_driver_info`` to read the config options (so changes in"},{"line_number":168,"context_line":"manila.conf are read through this) and also array information. Then invoke the"},{"line_number":169,"context_line":"``ensure_check_update`` method, it will compare driver info from DB with the"},{"line_number":170,"context_line":"current real driver info from ``get_driver_info`` method, then driver will"},{"line_number":171,"context_line":"decided whether we need to update shares."},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"Testing"},{"line_number":174,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":17,"id":"7ffa3b31_df665852","line":171,"range":{"start_line":166,"start_character":0,"end_line":171,"end_character":41},"in_reply_to":"7ffa3b31_6fee8b89","updated":"2017-04-17 03:20:11.000000000","message":"Done","commit_id":"95a8b81d0b35267fde522a6fcd4bd576e3e9c566"}]}
