)]}'
{"specs/stein/driver-reinitialization-after-fail.rst":[{"author":{"_account_id":23083,"name":"TommyLike","email":"tommylikehu@gmail.com","username":"TommyLike"},"change_message_id":"92d3b4b017b2bf1149feff687226a678905fd50a","unresolved":false,"context_lines":[{"line_number":19,"context_line":"When a service starts, at first it does initialization. If something wrong"},{"line_number":20,"context_line":"happens, the service ends."},{"line_number":21,"context_line":"After initialization completes, it cleans up resources, initializes its driver"},{"line_number":22,"context_line":"and RPC servers. Later the volume service reports its capability to scheduler"},{"line_number":23,"context_line":"in fixed intervals."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"During above progress, some errors lead that a volume service process exists"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_1f435213","line":22,"range":{"start_line":22,"start_character":54,"end_line":22,"end_character":64},"updated":"2018-09-13 22:06:01.000000000","message":"capabilities","commit_id":"7d2a02619f01284c1edf5e00993ed6b6701dd7d4"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"50d5f941dc29ecb3d3aabd91e73e1e86ff2ef821","unresolved":false,"context_lines":[{"line_number":19,"context_line":"When a service starts, at first it does initialization. If something wrong"},{"line_number":20,"context_line":"happens, the service ends."},{"line_number":21,"context_line":"After initialization completes, it cleans up resources, initializes its driver"},{"line_number":22,"context_line":"and RPC servers. Later the volume service reports its capability to scheduler"},{"line_number":23,"context_line":"in fixed intervals."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"During above progress, some errors lead that a volume service process exists"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_e1f78359","line":22,"range":{"start_line":22,"start_character":54,"end_line":22,"end_character":64},"in_reply_to":"3f79a3b5_1f435213","updated":"2018-09-19 03:42:32.000000000","message":"Done","commit_id":"7d2a02619f01284c1edf5e00993ed6b6701dd7d4"},{"author":{"_account_id":23083,"name":"TommyLike","email":"tommylikehu@gmail.com","username":"TommyLike"},"change_message_id":"92d3b4b017b2bf1149feff687226a678905fd50a","unresolved":false,"context_lines":[{"line_number":20,"context_line":"happens, the service ends."},{"line_number":21,"context_line":"After initialization completes, it cleans up resources, initializes its driver"},{"line_number":22,"context_line":"and RPC servers. Later the volume service reports its capability to scheduler"},{"line_number":23,"context_line":"in fixed intervals."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"During above progress, some errors lead that a volume service process exists"},{"line_number":26,"context_line":"but its volume driver doesn\u0027t work."}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_7f5da6ea","line":23,"range":{"start_line":23,"start_character":9,"end_line":23,"end_character":18},"updated":"2018-09-13 22:06:01.000000000","message":"interval","commit_id":"7d2a02619f01284c1edf5e00993ed6b6701dd7d4"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"50d5f941dc29ecb3d3aabd91e73e1e86ff2ef821","unresolved":false,"context_lines":[{"line_number":20,"context_line":"happens, the service ends."},{"line_number":21,"context_line":"After initialization completes, it cleans up resources, initializes its driver"},{"line_number":22,"context_line":"and RPC servers. Later the volume service reports its capability to scheduler"},{"line_number":23,"context_line":"in fixed intervals."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"During above progress, some errors lead that a volume service process exists"},{"line_number":26,"context_line":"but its volume driver doesn\u0027t work."}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_41ff5733","line":23,"range":{"start_line":23,"start_character":9,"end_line":23,"end_character":18},"in_reply_to":"3f79a3b5_7f5da6ea","updated":"2018-09-19 03:42:32.000000000","message":"Done","commit_id":"7d2a02619f01284c1edf5e00993ed6b6701dd7d4"},{"author":{"_account_id":23083,"name":"TommyLike","email":"tommylikehu@gmail.com","username":"TommyLike"},"change_message_id":"92d3b4b017b2bf1149feff687226a678905fd50a","unresolved":false,"context_lines":[{"line_number":30,"context_line":"3) Volume cleanups are processed by parent class CleanableManager."},{"line_number":31,"context_line":"4) Something wrong with \u0027publish_service_capabilities\u0027 [2]."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Driver are not set as initialized in above case 1), 2) and 3). As a result,"},{"line_number":34,"context_line":"although the volume service process exists, and tries to publish its service"},{"line_number":35,"context_line":"capabilities to scheduler, but fails every time. This means users have to"},{"line_number":36,"context_line":"restart cinder volume to re-initialize drivers."}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_5f5a2af2","line":33,"range":{"start_line":33,"start_character":7,"end_line":33,"end_character":10},"updated":"2018-09-13 22:06:01.000000000","message":"is","commit_id":"7d2a02619f01284c1edf5e00993ed6b6701dd7d4"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"50d5f941dc29ecb3d3aabd91e73e1e86ff2ef821","unresolved":false,"context_lines":[{"line_number":30,"context_line":"3) Volume cleanups are processed by parent class CleanableManager."},{"line_number":31,"context_line":"4) Something wrong with \u0027publish_service_capabilities\u0027 [2]."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Driver are not set as initialized in above case 1), 2) and 3). As a result,"},{"line_number":34,"context_line":"although the volume service process exists, and tries to publish its service"},{"line_number":35,"context_line":"capabilities to scheduler, but fails every time. This means users have to"},{"line_number":36,"context_line":"restart cinder volume to re-initialize drivers."}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_21025b3f","line":33,"range":{"start_line":33,"start_character":7,"end_line":33,"end_character":10},"in_reply_to":"3f79a3b5_5f5a2af2","updated":"2018-09-19 03:42:32.000000000","message":"Done","commit_id":"7d2a02619f01284c1edf5e00993ed6b6701dd7d4"},{"author":{"_account_id":23083,"name":"TommyLike","email":"tommylikehu@gmail.com","username":"TommyLike"},"change_message_id":"92d3b4b017b2bf1149feff687226a678905fd50a","unresolved":false,"context_lines":[{"line_number":53,"context_line":"- Every time when a volume service publishes its capability to scheduler,"},{"line_number":54,"context_line":"  it calls init_host[1] if the volume driver is not set to initialized."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"For this, the following additional config options would be needed:"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"- \u0027reinit_on_failure\u0027 (default: \u0027False\u0027)"},{"line_number":59,"context_line":"   If set as true, the volume service reinitializes its driver if it is not"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_bf47be4c","line":56,"range":{"start_line":56,"start_character":42,"end_line":56,"end_character":49},"updated":"2018-09-13 22:06:01.000000000","message":"option","commit_id":"7d2a02619f01284c1edf5e00993ed6b6701dd7d4"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"50d5f941dc29ecb3d3aabd91e73e1e86ff2ef821","unresolved":false,"context_lines":[{"line_number":53,"context_line":"- Every time when a volume service publishes its capability to scheduler,"},{"line_number":54,"context_line":"  it calls init_host[1] if the volume driver is not set to initialized."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"For this, the following additional config options would be needed:"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"- \u0027reinit_on_failure\u0027 (default: \u0027False\u0027)"},{"line_number":59,"context_line":"   If set as true, the volume service reinitializes its driver if it is not"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_81e9ef7f","line":56,"range":{"start_line":56,"start_character":42,"end_line":56,"end_character":49},"in_reply_to":"3f79a3b5_bf47be4c","updated":"2018-09-19 03:42:32.000000000","message":"Done","commit_id":"7d2a02619f01284c1edf5e00993ed6b6701dd7d4"},{"author":{"_account_id":23083,"name":"TommyLike","email":"tommylikehu@gmail.com","username":"TommyLike"},"change_message_id":"92d3b4b017b2bf1149feff687226a678905fd50a","unresolved":false,"context_lines":[{"line_number":55,"context_line":""},{"line_number":56,"context_line":"For this, the following additional config options would be needed:"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"- \u0027reinit_on_failure\u0027 (default: \u0027False\u0027)"},{"line_number":59,"context_line":"   If set as true, the volume service reinitializes its driver if it is not"},{"line_number":60,"context_line":"   initialized."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Alternatives"},{"line_number":63,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_ff6696ee","line":60,"range":{"start_line":58,"start_character":0,"end_line":60,"end_character":15},"updated":"2018-09-13 22:06:01.000000000","message":"will it be per backend?","commit_id":"7d2a02619f01284c1edf5e00993ed6b6701dd7d4"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"50d5f941dc29ecb3d3aabd91e73e1e86ff2ef821","unresolved":false,"context_lines":[{"line_number":55,"context_line":""},{"line_number":56,"context_line":"For this, the following additional config options would be needed:"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"- \u0027reinit_on_failure\u0027 (default: \u0027False\u0027)"},{"line_number":59,"context_line":"   If set as true, the volume service reinitializes its driver if it is not"},{"line_number":60,"context_line":"   initialized."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Alternatives"},{"line_number":63,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_61e4d3a8","line":60,"range":{"start_line":58,"start_character":0,"end_line":60,"end_character":15},"in_reply_to":"3f79a3b5_d1905f99","updated":"2018-09-19 03:42:32.000000000","message":"I also think this should be a global config. About the name, I don\u0027t think reinit_on_failure is not good. Let\u0027s see more comments here.","commit_id":"7d2a02619f01284c1edf5e00993ed6b6701dd7d4"},{"author":{"_account_id":10058,"name":"Erlon R. Cruz","email":"erlon.rodrigues.cruz@canonical.com","username":"sombrafam"},"change_message_id":"a0e61fc10332b1a85c0cf7608586b23883090684","unresolved":false,"context_lines":[{"line_number":55,"context_line":""},{"line_number":56,"context_line":"For this, the following additional config options would be needed:"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"- \u0027reinit_on_failure\u0027 (default: \u0027False\u0027)"},{"line_number":59,"context_line":"   If set as true, the volume service reinitializes its driver if it is not"},{"line_number":60,"context_line":"   initialized."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Alternatives"},{"line_number":63,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_d1905f99","line":60,"range":{"start_line":58,"start_character":0,"end_line":60,"end_character":15},"in_reply_to":"3f79a3b5_ff6696ee","updated":"2018-09-14 17:37:29.000000000","message":"This should be global, does not make sense to set this in some backends and others dont. So, the option name should be something like \u0027retry_initialization\u0027.","commit_id":"7d2a02619f01284c1edf5e00993ed6b6701dd7d4"},{"author":{"_account_id":23083,"name":"TommyLike","email":"tommylikehu@gmail.com","username":"TommyLike"},"change_message_id":"92d3b4b017b2bf1149feff687226a678905fd50a","unresolved":false,"context_lines":[{"line_number":98,"context_line":"Performance Impact"},{"line_number":99,"context_line":"------------------"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"None."},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"Other deployer impact"},{"line_number":104,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_dfde3a69","line":101,"range":{"start_line":101,"start_character":0,"end_line":101,"end_character":5},"updated":"2018-09-13 22:06:01.000000000","message":"Can be some kind of performance impact.","commit_id":"7d2a02619f01284c1edf5e00993ed6b6701dd7d4"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"50d5f941dc29ecb3d3aabd91e73e1e86ff2ef821","unresolved":false,"context_lines":[{"line_number":98,"context_line":"Performance Impact"},{"line_number":99,"context_line":"------------------"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"None."},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"Other deployer impact"},{"line_number":104,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_418437b1","line":101,"range":{"start_line":101,"start_character":0,"end_line":101,"end_character":5},"in_reply_to":"3f79a3b5_dfde3a69","updated":"2018-09-19 03:42:32.000000000","message":"I understand the performance impact is something impacted during real tasks. I think it is little.","commit_id":"7d2a02619f01284c1edf5e00993ed6b6701dd7d4"},{"author":{"_account_id":28747,"name":"Ovidiu Poncea","email":"ovidiu.poncea@outlook.com","username":"ovidiu.poncea"},"change_message_id":"09840bc71f8ba88c45aa710f74bbd8affc7b7835","unresolved":false,"context_lines":[{"line_number":134,"context_line":"Testing"},{"line_number":135,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"* Add unit tests to cover this change."},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"Documentation Impact"},{"line_number":140,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_f33b0a99","line":137,"range":{"start_line":137,"start_character":1,"end_line":137,"end_character":38},"updated":"2018-09-04 08:09:42.000000000","message":"Other than UTs doing a short system test with a couple of common backends that tend to have this problem (RBD and on external backend) would provide better coverage.","commit_id":"7d2a02619f01284c1edf5e00993ed6b6701dd7d4"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"99c64b832590f7e00455847b2e6609208612bc5b","unresolved":false,"context_lines":[{"line_number":134,"context_line":"Testing"},{"line_number":135,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"* Add unit tests to cover this change."},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"Documentation Impact"},{"line_number":140,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_c73873d4","line":137,"range":{"start_line":137,"start_character":1,"end_line":137,"end_character":38},"in_reply_to":"3f79a3b5_f33b0a99","updated":"2018-09-05 00:58:14.000000000","message":"Good suggestion. Thank you. Will add RBD.","commit_id":"7d2a02619f01284c1edf5e00993ed6b6701dd7d4"},{"author":{"_account_id":27615,"name":"Rajat Dhasmana","email":"rajatdhasmana@gmail.com","username":"whoami-rajat"},"change_message_id":"70e76b372bf7a5866f8f2e5c91eb7c1dc3086033","unresolved":false,"context_lines":[{"line_number":41,"context_line":"Use Cases"},{"line_number":42,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"When a Cinder volume service starts, its corresponding storage service is"},{"line_number":45,"context_line":"not ready. But later the storage service becomes ready. As a result the"},{"line_number":46,"context_line":"volume service can\u0027t work properly and can\u0027t recover by itself."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_04e88ddc","line":45,"range":{"start_line":44,"start_character":37,"end_line":45,"end_character":10},"updated":"2018-09-19 05:00:25.000000000","message":"1) its not always the case, maybe it can be restated as \n\u0027Sometimes its corresponding...\u0027\n\n2) services are*","commit_id":"b40e2304cc17548395e64f40505abd132bfd1fe9"},{"author":{"_account_id":27615,"name":"Rajat Dhasmana","email":"rajatdhasmana@gmail.com","username":"whoami-rajat"},"change_message_id":"70e76b372bf7a5866f8f2e5c91eb7c1dc3086033","unresolved":false,"context_lines":[{"line_number":42,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"When a Cinder volume service starts, its corresponding storage service is"},{"line_number":45,"context_line":"not ready. But later the storage service becomes ready. As a result the"},{"line_number":46,"context_line":"volume service can\u0027t work properly and can\u0027t recover by itself."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_64b061fe","line":45,"range":{"start_line":45,"start_character":33,"end_line":45,"end_character":40},"updated":"2018-09-19 05:00:25.000000000","message":"services","commit_id":"b40e2304cc17548395e64f40505abd132bfd1fe9"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"436aa3ebf8f0eadb87baa237e076af185c74ca96","unresolved":false,"context_lines":[{"line_number":41,"context_line":"Use Cases"},{"line_number":42,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"When a Cinder volume service starts, its corresponding storage service is"},{"line_number":45,"context_line":"not ready. But later the storage service becomes ready. As a result the"},{"line_number":46,"context_line":"volume service can\u0027t work properly and can\u0027t recover by itself."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_adaa7117","line":45,"range":{"start_line":44,"start_character":37,"end_line":45,"end_character":10},"in_reply_to":"3f79a3b5_04e88ddc","updated":"2018-09-25 06:21:42.000000000","message":"Done","commit_id":"b40e2304cc17548395e64f40505abd132bfd1fe9"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"436aa3ebf8f0eadb87baa237e076af185c74ca96","unresolved":false,"context_lines":[{"line_number":42,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"When a Cinder volume service starts, its corresponding storage service is"},{"line_number":45,"context_line":"not ready. But later the storage service becomes ready. As a result the"},{"line_number":46,"context_line":"volume service can\u0027t work properly and can\u0027t recover by itself."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_4da71d52","line":45,"range":{"start_line":45,"start_character":33,"end_line":45,"end_character":40},"in_reply_to":"3f79a3b5_64b061fe","updated":"2018-09-25 06:21:42.000000000","message":"Done","commit_id":"b40e2304cc17548395e64f40505abd132bfd1fe9"},{"author":{"_account_id":10058,"name":"Erlon R. Cruz","email":"erlon.rodrigues.cruz@canonical.com","username":"sombrafam"},"change_message_id":"f63cc735deb592a201781eafdb5c375a47d70af5","unresolved":false,"context_lines":[{"line_number":45,"context_line":"not ready. But later the storage service becomes ready. As a result the"},{"line_number":46,"context_line":"volume service can\u0027t work properly and can\u0027t recover by itself."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Proposed change"},{"line_number":49,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"The proposal is to"},{"line_number":52,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_ab8ccf34","line":49,"range":{"start_line":48,"start_character":0,"end_line":49,"end_character":15},"updated":"2018-09-21 11:43:25.000000000","message":"Food for though here. As I see, you have 2 approaches to decided whether to retry or not.\n   1) Have a list of retriable exceptions and let drivers to throw the proper exceptions.\n   2) Have a list of unrecoverable errors and retry on any exception that is not in the list.\n\nThe cons of #2 is that the driver might throw a lot of unpredictable errors, like, KeyValue Exception, and you end up retrying on something that is un-recoverable.\nFor #1 cons, you need to rely on driver implementation to receive proper exceptions.\n\nDo you see any other scenarios?","commit_id":"b40e2304cc17548395e64f40505abd132bfd1fe9"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"436aa3ebf8f0eadb87baa237e076af185c74ca96","unresolved":false,"context_lines":[{"line_number":45,"context_line":"not ready. But later the storage service becomes ready. As a result the"},{"line_number":46,"context_line":"volume service can\u0027t work properly and can\u0027t recover by itself."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Proposed change"},{"line_number":49,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"The proposal is to"},{"line_number":52,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_0d2da5ad","line":49,"range":{"start_line":48,"start_character":0,"end_line":49,"end_character":15},"in_reply_to":"3f79a3b5_ab8ccf34","updated":"2018-09-25 06:21:42.000000000","message":"Yes, these are two methods. I prefer solution 2. Currently, we just ignore reinitialization under mis-config, driver not support and lack of python library. For solution 1, it is difficult to list all the exceptions raised by drivers. This is dependent on drivers\u0027 implementation/library. Meanwhile, it changes in different versions of drivers.","commit_id":"b40e2304cc17548395e64f40505abd132bfd1fe9"},{"author":{"_account_id":27615,"name":"Rajat Dhasmana","email":"rajatdhasmana@gmail.com","username":"whoami-rajat"},"change_message_id":"70e76b372bf7a5866f8f2e5c91eb7c1dc3086033","unresolved":false,"context_lines":[{"line_number":53,"context_line":"- Reintialize the volume driver when it failed to initialize. This reinitialization"},{"line_number":54,"context_line":"  happens except unrecoverable errors. The following lists unrecoverable errors:"},{"line_number":55,"context_line":"  1) config error"},{"line_number":56,"context_line":"  2) Driver not supported."},{"line_number":57,"context_line":"  3) lack of python driver library."},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"- Every time when a volume service publishes its capability to scheduler,"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_84b57def","line":56,"range":{"start_line":56,"start_character":25,"end_line":56,"end_character":26},"updated":"2018-09-19 05:00:25.000000000","message":"not needed","commit_id":"b40e2304cc17548395e64f40505abd132bfd1fe9"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"436aa3ebf8f0eadb87baa237e076af185c74ca96","unresolved":false,"context_lines":[{"line_number":53,"context_line":"- Reintialize the volume driver when it failed to initialize. This reinitialization"},{"line_number":54,"context_line":"  happens except unrecoverable errors. The following lists unrecoverable errors:"},{"line_number":55,"context_line":"  1) config error"},{"line_number":56,"context_line":"  2) Driver not supported."},{"line_number":57,"context_line":"  3) lack of python driver library."},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"- Every time when a volume service publishes its capability to scheduler,"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_2d32e110","line":56,"range":{"start_line":56,"start_character":25,"end_line":56,"end_character":26},"in_reply_to":"3f79a3b5_84b57def","updated":"2018-09-25 06:21:42.000000000","message":"Done","commit_id":"b40e2304cc17548395e64f40505abd132bfd1fe9"},{"author":{"_account_id":27615,"name":"Rajat Dhasmana","email":"rajatdhasmana@gmail.com","username":"whoami-rajat"},"change_message_id":"70e76b372bf7a5866f8f2e5c91eb7c1dc3086033","unresolved":false,"context_lines":[{"line_number":54,"context_line":"  happens except unrecoverable errors. The following lists unrecoverable errors:"},{"line_number":55,"context_line":"  1) config error"},{"line_number":56,"context_line":"  2) Driver not supported."},{"line_number":57,"context_line":"  3) lack of python driver library."},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"- Every time when a volume service publishes its capability to scheduler,"},{"line_number":60,"context_line":"  if recoverable, it calls init_host[1] if the volume driver is not set"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_24cee982","line":57,"range":{"start_line":57,"start_character":34,"end_line":57,"end_character":35},"updated":"2018-09-19 05:00:25.000000000","message":"ditto","commit_id":"b40e2304cc17548395e64f40505abd132bfd1fe9"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"436aa3ebf8f0eadb87baa237e076af185c74ca96","unresolved":false,"context_lines":[{"line_number":54,"context_line":"  happens except unrecoverable errors. The following lists unrecoverable errors:"},{"line_number":55,"context_line":"  1) config error"},{"line_number":56,"context_line":"  2) Driver not supported."},{"line_number":57,"context_line":"  3) lack of python driver library."},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"- Every time when a volume service publishes its capability to scheduler,"},{"line_number":60,"context_line":"  if recoverable, it calls init_host[1] if the volume driver is not set"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_cd36cd03","line":57,"range":{"start_line":57,"start_character":34,"end_line":57,"end_character":35},"in_reply_to":"3f79a3b5_24cee982","updated":"2018-09-25 06:21:42.000000000","message":"Done","commit_id":"b40e2304cc17548395e64f40505abd132bfd1fe9"},{"author":{"_account_id":10058,"name":"Erlon R. Cruz","email":"erlon.rodrigues.cruz@canonical.com","username":"sombrafam"},"change_message_id":"f63cc735deb592a201781eafdb5c375a47d70af5","unresolved":false,"context_lines":[{"line_number":62,"context_line":""},{"line_number":63,"context_line":"For this, the following additional config option would be needed:"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"- \u0027reinit_on_failure\u0027 (default: \u0027False\u0027)"},{"line_number":66,"context_line":"   If set as true, the volume service reinitializes its driver if it is not"},{"line_number":67,"context_line":"   initialized."},{"line_number":68,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_2b9d1f56","line":65,"range":{"start_line":65,"start_character":3,"end_line":65,"end_character":20},"updated":"2018-09-21 11:43:25.000000000","message":"How many times do you plan to retry?","commit_id":"b40e2304cc17548395e64f40505abd132bfd1fe9"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"436aa3ebf8f0eadb87baa237e076af185c74ca96","unresolved":false,"context_lines":[{"line_number":62,"context_line":""},{"line_number":63,"context_line":"For this, the following additional config option would be needed:"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"- \u0027reinit_on_failure\u0027 (default: \u0027False\u0027)"},{"line_number":66,"context_line":"   If set as true, the volume service reinitializes its driver if it is not"},{"line_number":67,"context_line":"   initialized."},{"line_number":68,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_8d09b533","line":65,"range":{"start_line":65,"start_character":3,"end_line":65,"end_character":20},"in_reply_to":"3f79a3b5_2b9d1f56","updated":"2018-09-25 06:21:42.000000000","message":"As retry will be done when publishing capability. I don\u0027t set the retry limitation times.As Cinder always publish capability in fixed interval.","commit_id":"b40e2304cc17548395e64f40505abd132bfd1fe9"},{"author":{"_account_id":10058,"name":"Erlon R. Cruz","email":"erlon.rodrigues.cruz@canonical.com","username":"sombrafam"},"change_message_id":"f63cc735deb592a201781eafdb5c375a47d70af5","unresolved":false,"context_lines":[{"line_number":69,"context_line":"Alternatives"},{"line_number":70,"context_line":"------------"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"None"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"Data model impact"},{"line_number":75,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_cbc02b2e","line":72,"range":{"start_line":72,"start_character":0,"end_line":72,"end_character":4},"updated":"2018-09-21 11:43:25.000000000","message":"-1: You should elaborate on the possible options, and pros and cons of each, may be describing the situations #1 and #2 I mentioned, or others you might have.","commit_id":"b40e2304cc17548395e64f40505abd132bfd1fe9"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"436aa3ebf8f0eadb87baa237e076af185c74ca96","unresolved":false,"context_lines":[{"line_number":69,"context_line":"Alternatives"},{"line_number":70,"context_line":"------------"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"None"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"Data model impact"},{"line_number":75,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_3f5c4418","line":72,"range":{"start_line":72,"start_character":0,"end_line":72,"end_character":4},"in_reply_to":"3f79a3b5_cbc02b2e","updated":"2018-09-25 06:21:42.000000000","message":"Done","commit_id":"b40e2304cc17548395e64f40505abd132bfd1fe9"},{"author":{"_account_id":10058,"name":"Erlon R. Cruz","email":"erlon.rodrigues.cruz@canonical.com","username":"sombrafam"},"change_message_id":"f63cc735deb592a201781eafdb5c375a47d70af5","unresolved":false,"context_lines":[{"line_number":100,"context_line":"---------------------"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"Users don\u0027t need to restart volume service when the initialization of"},{"line_number":103,"context_line":"drivers fail."},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"Performance Impact"},{"line_number":106,"context_line":"------------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_ebd087f6","line":103,"range":{"start_line":103,"start_character":8,"end_line":103,"end_character":12},"updated":"2018-09-21 11:43:25.000000000","message":"... fail on recoverable errors.","commit_id":"b40e2304cc17548395e64f40505abd132bfd1fe9"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"436aa3ebf8f0eadb87baa237e076af185c74ca96","unresolved":false,"context_lines":[{"line_number":100,"context_line":"---------------------"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"Users don\u0027t need to restart volume service when the initialization of"},{"line_number":103,"context_line":"drivers fail."},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"Performance Impact"},{"line_number":106,"context_line":"------------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_1f186874","line":103,"range":{"start_line":103,"start_character":8,"end_line":103,"end_character":12},"in_reply_to":"3f79a3b5_ebd087f6","updated":"2018-09-25 06:21:42.000000000","message":"Done","commit_id":"b40e2304cc17548395e64f40505abd132bfd1fe9"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"eb3c876a48a8c530b0027f78f7e370eb607d5a60","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"- Every time when a volume service publishes its capability to scheduler,"},{"line_number":60,"context_line":"  if recoverable, it calls init_host[1] if the volume driver is not set"},{"line_number":61,"context_line":"  to initialized."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"For this, the following additional config option would be needed:"},{"line_number":64,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"3f79a3b5_c46d3f04","line":61,"updated":"2018-09-25 13:46:21.000000000","message":"The driver should have a chance to init prior to publishing capabilities if and only if it\u0027s not initialized.","commit_id":"7fd4164f0bd784167811a6a3c446cb09aedba203"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"f8ba1b47b5c91782e1682f17914033aa2a5b9b09","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"- Every time when a volume service publishes its capability to scheduler,"},{"line_number":60,"context_line":"  if recoverable, it calls init_host[1] if the volume driver is not set"},{"line_number":61,"context_line":"  to initialized."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"For this, the following additional config option would be needed:"},{"line_number":64,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"3f79a3b5_bcd28932","line":61,"in_reply_to":"3f79a3b5_c46d3f04","updated":"2018-09-26 02:50:28.000000000","message":"Currently, in Cinder, it has no chance to reinitialize the driver.\nhttps://github.com/openstack/cinder/blob/master/cinder/volume/manager.py#L481 \nhttps://github.com/openstack/cinder/blob/master/cinder/volume/manager.py#L2425\n\nThis approach would like to add reintialization before publishing capability.","commit_id":"7fd4164f0bd784167811a6a3c446cb09aedba203"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"eb3c876a48a8c530b0027f78f7e370eb607d5a60","unresolved":false,"context_lines":[{"line_number":64,"context_line":""},{"line_number":65,"context_line":"- \u0027reinit_on_failure\u0027 (default: \u0027False\u0027)"},{"line_number":66,"context_line":"   If set as true, the volume service reinitializes its driver if it is not"},{"line_number":67,"context_line":"   initialized."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"Alternatives"},{"line_number":70,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"3f79a3b5_c43bffe7","line":67,"updated":"2018-09-25 13:46:21.000000000","message":"There should only be a limited number of times it retries this process.  It shouldn\u0027t perpetually try and reinit the driver.  There are many reasons why drivers fail to init, and some of them can be failures that aren\u0027t config related and be real problems.   It\u0027s much safer to make this retry 1 or 2 times at most and then give up.","commit_id":"7fd4164f0bd784167811a6a3c446cb09aedba203"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"f8ba1b47b5c91782e1682f17914033aa2a5b9b09","unresolved":false,"context_lines":[{"line_number":64,"context_line":""},{"line_number":65,"context_line":"- \u0027reinit_on_failure\u0027 (default: \u0027False\u0027)"},{"line_number":66,"context_line":"   If set as true, the volume service reinitializes its driver if it is not"},{"line_number":67,"context_line":"   initialized."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"Alternatives"},{"line_number":70,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"3f79a3b5_fce7a10e","line":67,"in_reply_to":"3f79a3b5_c43bffe7","updated":"2018-09-26 02:50:28.000000000","message":"I add an option to set maximum retry number. Default is 3.","commit_id":"7fd4164f0bd784167811a6a3c446cb09aedba203"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"a7e303eafdc85b798b7056d69392579ebeeee79c","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"When a Cinder volume service starts, somtimes its corresponding storage services"},{"line_number":45,"context_line":"are not ready. But later the storage services become ready. As a result the"},{"line_number":46,"context_line":"volume service can\u0027t work properly and can\u0027t recover by itself."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Proposed change"},{"line_number":49,"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":4,"id":"3f79a3b5_98c76747","line":46,"updated":"2018-10-10 12:25:51.000000000","message":"This is more of a problem statement right now than a use case. Maybe add something like:\n\nAdministrator would like Cinder to automatically recover from temporary failures without manual intervention of restarting the service.","commit_id":"b148f24ce0561e0b5334a00f75d7bce4242b57aa"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"c35e57d3aed678abe395108350743bc86568b74d","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"When a Cinder volume service starts, somtimes its corresponding storage services"},{"line_number":45,"context_line":"are not ready. But later the storage services become ready. As a result the"},{"line_number":46,"context_line":"volume service can\u0027t work properly and can\u0027t recover by itself."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Proposed change"},{"line_number":49,"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":4,"id":"3f79a3b5_58669df0","line":46,"in_reply_to":"3f79a3b5_98c76747","updated":"2018-10-11 07:30:14.000000000","message":"Done","commit_id":"b148f24ce0561e0b5334a00f75d7bce4242b57aa"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"a7e303eafdc85b798b7056d69392579ebeeee79c","unresolved":false,"context_lines":[{"line_number":60,"context_line":"  it checks whether the driver is initialized. If it is not initialized"},{"line_number":61,"context_line":"  and can be recoverable, it calls init_host[1] to do reinitialization."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"For this, the following additional config option would be needed:"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"- \u0027reinit_on_failure\u0027 (default: \u0027False\u0027)"},{"line_number":66,"context_line":"   If set as true, the volume service reinitializes its driver if it is not"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_b899036c","line":63,"updated":"2018-10-10 12:25:51.000000000","message":"I wonder if we even want to have config options. In general, we are trying to reduce the number of config options in Cinder.\n\nStill thinking about this, but I wonder if we shouldn\u0027t just always try to reinitialize a failed driver. Something is obviously wrong and broken if that\u0027s the case, so it kind of seems like Cinder should do whatever it can to recover from that broken state.","commit_id":"b148f24ce0561e0b5334a00f75d7bce4242b57aa"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"c35e57d3aed678abe395108350743bc86568b74d","unresolved":false,"context_lines":[{"line_number":60,"context_line":"  it checks whether the driver is initialized. If it is not initialized"},{"line_number":61,"context_line":"  and can be recoverable, it calls init_host[1] to do reinitialization."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"For this, the following additional config option would be needed:"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"- \u0027reinit_on_failure\u0027 (default: \u0027False\u0027)"},{"line_number":66,"context_line":"   If set as true, the volume service reinitializes its driver if it is not"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_3812c156","line":63,"in_reply_to":"3f79a3b5_b899036c","updated":"2018-10-11 07:30:14.000000000","message":"I am wondering whether we can just have the option retry_count. By default, Cinder will retry 3 times if a recoverable error happens. How do you think?","commit_id":"b148f24ce0561e0b5334a00f75d7bce4242b57aa"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"a7e303eafdc85b798b7056d69392579ebeeee79c","unresolved":false,"context_lines":[{"line_number":156,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"* Add administrator documentation to advertise the option of \u0027reinit_on_failure\u0027"},{"line_number":159,"context_line":"  for driver reinitialization and explain why\u0026when\u0026how this should be used."},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"References"},{"line_number":162,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_9879a731","line":159,"range":{"start_line":159,"start_character":42,"end_line":159,"end_character":54},"updated":"2018-10-10 12:25:51.000000000","message":"I think you can just say \"how\", but at least add spaces between the \u0026.","commit_id":"b148f24ce0561e0b5334a00f75d7bce4242b57aa"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"c35e57d3aed678abe395108350743bc86568b74d","unresolved":false,"context_lines":[{"line_number":156,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"* Add administrator documentation to advertise the option of \u0027reinit_on_failure\u0027"},{"line_number":159,"context_line":"  for driver reinitialization and explain why\u0026when\u0026how this should be used."},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"References"},{"line_number":162,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_38596128","line":159,"range":{"start_line":159,"start_character":42,"end_line":159,"end_character":54},"in_reply_to":"3f79a3b5_9879a731","updated":"2018-10-11 07:30:14.000000000","message":"Done","commit_id":"b148f24ce0561e0b5334a00f75d7bce4242b57aa"},{"author":{"_account_id":10058,"name":"Erlon R. Cruz","email":"erlon.rodrigues.cruz@canonical.com","username":"sombrafam"},"change_message_id":"ca24f68ebb1e7bad162e7c9f4d1ac11204aa92ad","unresolved":false,"context_lines":[{"line_number":41,"context_line":"Use Cases"},{"line_number":42,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"When a Cinder volume service starts, somtimes its corresponding storage services"},{"line_number":45,"context_line":"are not ready. But later the storage services become ready. As a result the"},{"line_number":46,"context_line":"volume service can\u0027t work properly and can\u0027t recover by itself. But the"},{"line_number":47,"context_line":"administrator probably prefer Cinder to automatically recover from the"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_db0a5276","line":44,"range":{"start_line":44,"start_character":37,"end_line":44,"end_character":45},"updated":"2018-10-15 20:00:35.000000000","message":"sometimes","commit_id":"823e01ffaacdc4dfb67c94db1e37ad83d2e60f66"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"75c941563c5d02eb5c0b4b13b032ac9bf741a451","unresolved":false,"context_lines":[{"line_number":41,"context_line":"Use Cases"},{"line_number":42,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"When a Cinder volume service starts, somtimes its corresponding storage services"},{"line_number":45,"context_line":"are not ready. But later the storage services become ready. As a result the"},{"line_number":46,"context_line":"volume service can\u0027t work properly and can\u0027t recover by itself. But the"},{"line_number":47,"context_line":"administrator probably prefer Cinder to automatically recover from the"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_dd653f4c","line":44,"range":{"start_line":44,"start_character":37,"end_line":44,"end_character":45},"in_reply_to":"3f79a3b5_db0a5276","updated":"2018-10-17 07:57:33.000000000","message":"Done","commit_id":"823e01ffaacdc4dfb67c94db1e37ad83d2e60f66"},{"author":{"_account_id":7198,"name":"Jay Bryant","email":"jungleboyj@electronicjungle.net","username":"jsbryant"},"change_message_id":"1bddc3e0b7a6792e97dab8365291f701753824d0","unresolved":false,"context_lines":[{"line_number":22,"context_line":"and RPC servers. Later the volume service reports its capabilities to scheduler"},{"line_number":23,"context_line":"in fixed interval."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"During above progress, some errors lead that a volume service process exists"},{"line_number":26,"context_line":"but its volume driver doesn\u0027t work."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"1) Driver not supported."},{"line_number":29,"context_line":"2) Driver initialization fails."}],"source_content_type":"text/x-rst","patch_set":7,"id":"3f79a3b5_6270e3dc","line":26,"range":{"start_line":25,"start_character":34,"end_line":26,"end_character":34},"updated":"2018-10-18 15:38:59.000000000","message":"lead to the service process exiting, leaving the volume driver not functioning.","commit_id":"e8bea570e66817f00f92d5bf8955a04a0856fd78"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"43a20a41d5d2f6b934b3eac5af64d8ed4c4eedc1","unresolved":false,"context_lines":[{"line_number":22,"context_line":"and RPC servers. Later the volume service reports its capabilities to scheduler"},{"line_number":23,"context_line":"in fixed interval."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"During above progress, some errors lead that a volume service process exists"},{"line_number":26,"context_line":"but its volume driver doesn\u0027t work."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"1) Driver not supported."},{"line_number":29,"context_line":"2) Driver initialization fails."}],"source_content_type":"text/x-rst","patch_set":7,"id":"3f79a3b5_8e473a53","line":26,"range":{"start_line":25,"start_character":34,"end_line":26,"end_character":34},"in_reply_to":"3f79a3b5_6270e3dc","updated":"2018-10-22 12:25:12.000000000","message":"Done","commit_id":"e8bea570e66817f00f92d5bf8955a04a0856fd78"},{"author":{"_account_id":7198,"name":"Jay Bryant","email":"jungleboyj@electronicjungle.net","username":"jsbryant"},"change_message_id":"1bddc3e0b7a6792e97dab8365291f701753824d0","unresolved":false,"context_lines":[{"line_number":30,"context_line":"3) Volume cleanups are processed by parent class CleanableManager."},{"line_number":31,"context_line":"4) Something wrong with \u0027publish_service_capabilities\u0027 [2]."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Driver is not set as initialized in above case 1), 2) and 3). As a result,"},{"line_number":34,"context_line":"although the volume service process exists, and tries to publish its service"},{"line_number":35,"context_line":"capabilities to scheduler, but fails every time. This means users have to"},{"line_number":36,"context_line":"restart cinder volume to re-initialize drivers."}],"source_content_type":"text/x-rst","patch_set":7,"id":"3f79a3b5_82565f2b","line":33,"range":{"start_line":33,"start_character":0,"end_line":33,"end_character":32},"updated":"2018-10-18 15:38:59.000000000","message":"The driver will not be initialized","commit_id":"e8bea570e66817f00f92d5bf8955a04a0856fd78"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"43a20a41d5d2f6b934b3eac5af64d8ed4c4eedc1","unresolved":false,"context_lines":[{"line_number":30,"context_line":"3) Volume cleanups are processed by parent class CleanableManager."},{"line_number":31,"context_line":"4) Something wrong with \u0027publish_service_capabilities\u0027 [2]."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Driver is not set as initialized in above case 1), 2) and 3). As a result,"},{"line_number":34,"context_line":"although the volume service process exists, and tries to publish its service"},{"line_number":35,"context_line":"capabilities to scheduler, but fails every time. This means users have to"},{"line_number":36,"context_line":"restart cinder volume to re-initialize drivers."}],"source_content_type":"text/x-rst","patch_set":7,"id":"3f79a3b5_faf3049f","line":33,"range":{"start_line":33,"start_character":0,"end_line":33,"end_character":32},"in_reply_to":"3f79a3b5_82565f2b","updated":"2018-10-22 12:25:12.000000000","message":"Done","commit_id":"e8bea570e66817f00f92d5bf8955a04a0856fd78"},{"author":{"_account_id":7198,"name":"Jay Bryant","email":"jungleboyj@electronicjungle.net","username":"jsbryant"},"change_message_id":"1bddc3e0b7a6792e97dab8365291f701753824d0","unresolved":false,"context_lines":[{"line_number":53,"context_line":"The proposal is to"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"- Reintialize the volume driver when it failed to initialize. This reinitialization"},{"line_number":56,"context_line":"  happens except unrecoverable errors. The following lists unrecoverable errors:"},{"line_number":57,"context_line":"  1) config error"},{"line_number":58,"context_line":"  2) Driver not supported"},{"line_number":59,"context_line":"  3) lack of python driver library"}],"source_content_type":"text/x-rst","patch_set":7,"id":"3f79a3b5_a234bbfb","line":56,"range":{"start_line":56,"start_character":10,"end_line":56,"end_character":37},"updated":"2018-10-18 15:38:59.000000000","message":"except when the error is unrecoverable.","commit_id":"e8bea570e66817f00f92d5bf8955a04a0856fd78"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"43a20a41d5d2f6b934b3eac5af64d8ed4c4eedc1","unresolved":false,"context_lines":[{"line_number":53,"context_line":"The proposal is to"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"- Reintialize the volume driver when it failed to initialize. This reinitialization"},{"line_number":56,"context_line":"  happens except unrecoverable errors. The following lists unrecoverable errors:"},{"line_number":57,"context_line":"  1) config error"},{"line_number":58,"context_line":"  2) Driver not supported"},{"line_number":59,"context_line":"  3) lack of python driver library"}],"source_content_type":"text/x-rst","patch_set":7,"id":"3f79a3b5_faca2445","line":56,"range":{"start_line":56,"start_character":10,"end_line":56,"end_character":37},"in_reply_to":"3f79a3b5_a234bbfb","updated":"2018-10-22 12:25:12.000000000","message":"Done","commit_id":"e8bea570e66817f00f92d5bf8955a04a0856fd78"},{"author":{"_account_id":7198,"name":"Jay Bryant","email":"jungleboyj@electronicjungle.net","username":"jsbryant"},"change_message_id":"1bddc3e0b7a6792e97dab8365291f701753824d0","unresolved":false,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":"- Every time when a volume service publishes its capability to scheduler,"},{"line_number":62,"context_line":"  it checks whether the driver is initialized. If it is not initialized"},{"line_number":63,"context_line":"  and can be recoverable, it calls init_host[1] to do reinitialization."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"For this, the following additional config option would be needed:"},{"line_number":66,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"3f79a3b5_2228ab96","line":63,"range":{"start_line":63,"start_character":13,"end_line":63,"end_character":24},"updated":"2018-10-18 15:38:59.000000000","message":"recovered","commit_id":"e8bea570e66817f00f92d5bf8955a04a0856fd78"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"43a20a41d5d2f6b934b3eac5af64d8ed4c4eedc1","unresolved":false,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":"- Every time when a volume service publishes its capability to scheduler,"},{"line_number":62,"context_line":"  it checks whether the driver is initialized. If it is not initialized"},{"line_number":63,"context_line":"  and can be recoverable, it calls init_host[1] to do reinitialization."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"For this, the following additional config option would be needed:"},{"line_number":66,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"3f79a3b5_1ac60043","line":63,"range":{"start_line":63,"start_character":13,"end_line":63,"end_character":24},"in_reply_to":"3f79a3b5_2228ab96","updated":"2018-10-22 12:25:12.000000000","message":"Done","commit_id":"e8bea570e66817f00f92d5bf8955a04a0856fd78"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"67181201290d9fc71d87f1e8bece43582838eb55","unresolved":false,"context_lines":[{"line_number":22,"context_line":"and RPC servers. Later the volume service reports its capabilities to scheduler"},{"line_number":23,"context_line":"in fixed interval."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"During above progress, some errors lead to the service process existing,"},{"line_number":26,"context_line":"leaving the volume driver not functioning."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"1) Driver not supported."}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_0057725c","line":25,"range":{"start_line":25,"start_character":63,"end_line":25,"end_character":71},"updated":"2018-10-22 13:17:37.000000000","message":"exiting","commit_id":"fa63af9824bde7928c9505979ae7a44ead63dad5"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"c7b2a070b598a7cdf7f68420456c49508c7179db","unresolved":false,"context_lines":[{"line_number":22,"context_line":"and RPC servers. Later the volume service reports its capabilities to scheduler"},{"line_number":23,"context_line":"in fixed interval."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"During above progress, some errors lead to the service process existing,"},{"line_number":26,"context_line":"leaving the volume driver not functioning."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"1) Driver not supported."}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_0641ca63","line":25,"range":{"start_line":25,"start_character":63,"end_line":25,"end_character":71},"in_reply_to":"3f79a3b5_0057725c","updated":"2018-10-22 14:23:17.000000000","message":"Done","commit_id":"fa63af9824bde7928c9505979ae7a44ead63dad5"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"67181201290d9fc71d87f1e8bece43582838eb55","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"- Reintialize the volume driver when it failed to initialize. This reinitialization"},{"line_number":56,"context_line":"  happens except when the error is unrecoverable. The following lists"},{"line_number":57,"context_line":"  unrecoverable errors:"},{"line_number":58,"context_line":"  1) config error"},{"line_number":59,"context_line":"  2) Driver not supported"},{"line_number":60,"context_line":"  3) lack of python driver library"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_a076bed4","line":57,"updated":"2018-10-22 13:17:37.000000000","message":"An extra blank line is needed before the numbered list for this to get properly formatted in the generated output.","commit_id":"fa63af9824bde7928c9505979ae7a44ead63dad5"},{"author":{"_account_id":15961,"name":"lisali","email":"xiaoyan.li@intel.com","username":"lisali"},"change_message_id":"c7b2a070b598a7cdf7f68420456c49508c7179db","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"- Reintialize the volume driver when it failed to initialize. This reinitialization"},{"line_number":56,"context_line":"  happens except when the error is unrecoverable. The following lists"},{"line_number":57,"context_line":"  unrecoverable errors:"},{"line_number":58,"context_line":"  1) config error"},{"line_number":59,"context_line":"  2) Driver not supported"},{"line_number":60,"context_line":"  3) lack of python driver library"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3f79a3b5_a676d6d4","line":57,"in_reply_to":"3f79a3b5_a076bed4","updated":"2018-10-22 14:23:17.000000000","message":"Done","commit_id":"fa63af9824bde7928c9505979ae7a44ead63dad5"}]}
