)]}'
{"ironic/common/maintenance.py":[{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"a108b7c330cc6f49cc59055a664de0099b2ebc9d","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"MANUAL \u003d \u0027manual\u0027"},{"line_number":20,"context_line":"\"\"\" Node is explicitly put into maintenance from external request. \"\"\""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"POWER_FAILURE \u003d \u0027power failure\u0027"},{"line_number":23,"context_line":"\"\"\" Node is moved to maintenance due to power synchronization failure. \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_a29ae910","line":20,"range":{"start_line":20,"start_character":44,"end_line":20,"end_character":48},"updated":"2018-04-12 19:53:31.000000000","message":"nit: by external request may be?","commit_id":"4f77d90402fc07584da06d764c5c6a95eccf12aa"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"f8564da6d6771077c04ddab2f4bf55b89c8efc0e","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"MANUAL \u003d \u0027manual\u0027"},{"line_number":20,"context_line":"\"\"\" Node is explicitly put into maintenance from external request. \"\"\""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"POWER_FAILURE \u003d \u0027power failure\u0027"},{"line_number":23,"context_line":"\"\"\" Node is moved to maintenance due to power synchronization failure. \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_2dd5621c","line":20,"range":{"start_line":20,"start_character":44,"end_line":20,"end_character":48},"in_reply_to":"bf659307_a29ae910","updated":"2018-04-13 02:56:13.000000000","message":"Done","commit_id":"4f77d90402fc07584da06d764c5c6a95eccf12aa"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"a108b7c330cc6f49cc59055a664de0099b2ebc9d","unresolved":false,"context_lines":[{"line_number":23,"context_line":"\"\"\" Node is moved to maintenance due to power synchronization failure. \"\"\""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"CLEAN_FAILURE \u003d \u0027clean failure\u0027"},{"line_number":26,"context_line":"\"\"\" Node is moved to maintenance due to failure of a cleaning"},{"line_number":27,"context_line":"    operation. \"\"\""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"RESCUE_ABORT_FAILURE \u003d \u0027rescue abort failure\u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_c28efdcf","line":26,"range":{"start_line":26,"start_character":40,"end_line":26,"end_character":61},"updated":"2018-04-12 19:53:31.000000000","message":"nit: \"cleaning failure\" may be?","commit_id":"4f77d90402fc07584da06d764c5c6a95eccf12aa"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"e1ab94987d1fe6ae97962d41d4c92cc481fafa60","unresolved":false,"context_lines":[{"line_number":23,"context_line":"\"\"\" Node is moved to maintenance due to power synchronization failure. \"\"\""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"CLEAN_FAILURE \u003d \u0027clean failure\u0027"},{"line_number":26,"context_line":"\"\"\" Node is moved to maintenance due to failure of a cleaning"},{"line_number":27,"context_line":"    operation. \"\"\""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"RESCUE_ABORT_FAILURE \u003d \u0027rescue abort failure\u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_91259c5e","line":26,"range":{"start_line":26,"start_character":40,"end_line":26,"end_character":61},"in_reply_to":"bf659307_6deefaed","updated":"2018-04-13 11:49:01.000000000","message":"How about:\n\nNode is moved to the maintenance state due to cleaning failure\n\n?\n\n/disclaimer: I am not a native English speaker. ;)","commit_id":"4f77d90402fc07584da06d764c5c6a95eccf12aa"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"f8564da6d6771077c04ddab2f4bf55b89c8efc0e","unresolved":false,"context_lines":[{"line_number":23,"context_line":"\"\"\" Node is moved to maintenance due to power synchronization failure. \"\"\""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"CLEAN_FAILURE \u003d \u0027clean failure\u0027"},{"line_number":26,"context_line":"\"\"\" Node is moved to maintenance due to failure of a cleaning"},{"line_number":27,"context_line":"    operation. \"\"\""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"RESCUE_ABORT_FAILURE \u003d \u0027rescue abort failure\u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_6deefaed","line":26,"range":{"start_line":26,"start_character":40,"end_line":26,"end_character":61},"in_reply_to":"bf659307_c28efdcf","updated":"2018-04-13 02:56:13.000000000","message":"Hmm, how do we organize words if using \"cleaning failure\",\n\ne.g.: due to cleaning failure of a clean operation?\n\nseems a bit redundant to me, wdyt?","commit_id":"4f77d90402fc07584da06d764c5c6a95eccf12aa"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"a108b7c330cc6f49cc59055a664de0099b2ebc9d","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    operation. \"\"\""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"RESCUE_ABORT_FAILURE \u003d \u0027rescue abort failure\u0027"},{"line_number":30,"context_line":"\"\"\" Node is moved to maintenance due to failure of cleaning up during"},{"line_number":31,"context_line":"    rescue abort. \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_e28b01bd","line":30,"range":{"start_line":30,"start_character":40,"end_line":30,"end_character":62},"updated":"2018-04-12 19:53:31.000000000","message":"ditto","commit_id":"4f77d90402fc07584da06d764c5c6a95eccf12aa"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"22a50962faa6bc7820c36d5d5865cd591d289b43","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# coding\u003dutf-8"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":9,"id":"5f7c97a3_76bec9ff","line":1,"updated":"2018-05-14 17:07:56.000000000","message":"nit, we don\u0027t use this unless it is needed. (Something that we agreed upon awhile ago, although we didn\u0027t go through old code and remove it)","commit_id":"90aa89b899f3d45cc16206c611811e24da537c69"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"aa942743e6bb7c6d43c1606a42eb2ca466eec352","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# coding\u003dutf-8"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":9,"id":"5f7c97a3_bd1711a4","line":1,"in_reply_to":"5f7c97a3_76bec9ff","updated":"2018-05-17 15:51:23.000000000","message":"Done","commit_id":"90aa89b899f3d45cc16206c611811e24da537c69"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"8e3e3b372dec596cd928b375bb2ee648d5502d75","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# coding\u003dutf-8"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":9,"id":"5f7c97a3_2b71a944","line":1,"in_reply_to":"5f7c97a3_76bec9ff","updated":"2018-05-15 17:19:15.000000000","message":"er, copied from some other file, will remove.\nAlso, since we\u0027ll change the maintenance_type to fault, I guess this file should be renamed to fault.py\n\nActually I thought about the const file when coding this patch, do you think it\u0027s the right time to do in this patch, and which name you think fits if we do?","commit_id":"90aa89b899f3d45cc16206c611811e24da537c69"}],"ironic/conductor/manager.py":[{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"b2a7266c9a26ebb16b9cdf3628a312bb92ca9359","unresolved":false,"context_lines":[{"line_number":1547,"context_line":"                eventlet.sleep(0)"},{"line_number":1548,"context_line":""},{"line_number":1549,"context_line":"    @METRICS.timer(\u0027ConductorManager._power_failure_recovery\u0027)"},{"line_number":1550,"context_line":"    @periodics.periodic(spacing\u003dCONF.conductor.power_failure_recovery_interval)"},{"line_number":1551,"context_line":"    def _power_failure_recovery(self, context):"},{"line_number":1552,"context_line":"        \"\"\"Periodic task to check power states for nodes in maintenance."},{"line_number":1553,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_19cec359","line":1550,"range":{"start_line":1550,"start_character":4,"end_line":1550,"end_character":79},"updated":"2018-04-12 02:33:23.000000000","message":"needs to add enabled here.","commit_id":"4f77d90402fc07584da06d764c5c6a95eccf12aa"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"f8564da6d6771077c04ddab2f4bf55b89c8efc0e","unresolved":false,"context_lines":[{"line_number":1547,"context_line":"                eventlet.sleep(0)"},{"line_number":1548,"context_line":""},{"line_number":1549,"context_line":"    @METRICS.timer(\u0027ConductorManager._power_failure_recovery\u0027)"},{"line_number":1550,"context_line":"    @periodics.periodic(spacing\u003dCONF.conductor.power_failure_recovery_interval)"},{"line_number":1551,"context_line":"    def _power_failure_recovery(self, context):"},{"line_number":1552,"context_line":"        \"\"\"Periodic task to check power states for nodes in maintenance."},{"line_number":1553,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_0d109eff","line":1550,"range":{"start_line":1550,"start_character":4,"end_line":1550,"end_character":79},"in_reply_to":"bf659307_19cec359","updated":"2018-04-13 02:56:13.000000000","message":"Done","commit_id":"4f77d90402fc07584da06d764c5c6a95eccf12aa"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"a108b7c330cc6f49cc59055a664de0099b2ebc9d","unresolved":false,"context_lines":[{"line_number":1562,"context_line":"        filters \u003d {\u0027maintenance\u0027: True,"},{"line_number":1563,"context_line":"                   \u0027maintenance_type\u0027: maint_type.POWER_FAILURE}"},{"line_number":1564,"context_line":"        node_iter \u003d self.iter_nodes(fields\u003d[\u0027id\u0027], filters\u003dfilters)"},{"line_number":1565,"context_line":"        for (node_uuid, driver, node_id) in node_iter:"},{"line_number":1566,"context_line":"            try:"},{"line_number":1567,"context_line":"                with task_manager.acquire(context, node_uuid,"},{"line_number":1568,"context_line":"                                          purpose\u003d\u0027power failure recovery\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_70fb38bd","line":1565,"range":{"start_line":1565,"start_character":12,"end_line":1565,"end_character":40},"updated":"2018-04-12 19:53:31.000000000","message":"nit: do we need parenthesis here?","commit_id":"4f77d90402fc07584da06d764c5c6a95eccf12aa"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"f8564da6d6771077c04ddab2f4bf55b89c8efc0e","unresolved":false,"context_lines":[{"line_number":1562,"context_line":"        filters \u003d {\u0027maintenance\u0027: True,"},{"line_number":1563,"context_line":"                   \u0027maintenance_type\u0027: maint_type.POWER_FAILURE}"},{"line_number":1564,"context_line":"        node_iter \u003d self.iter_nodes(fields\u003d[\u0027id\u0027], filters\u003dfilters)"},{"line_number":1565,"context_line":"        for (node_uuid, driver, node_id) in node_iter:"},{"line_number":1566,"context_line":"            try:"},{"line_number":1567,"context_line":"                with task_manager.acquire(context, node_uuid,"},{"line_number":1568,"context_line":"                                          purpose\u003d\u0027power failure recovery\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_2d30029f","line":1565,"range":{"start_line":1565,"start_character":12,"end_line":1565,"end_character":40},"in_reply_to":"bf659307_70fb38bd","updated":"2018-04-13 02:56:13.000000000","message":"No we don\u0027t, it\u0027s a coding style thing, I just followed other places where iter_nodes is used.","commit_id":"4f77d90402fc07584da06d764c5c6a95eccf12aa"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"22a50962faa6bc7820c36d5d5865cd591d289b43","unresolved":false,"context_lines":[{"line_number":1603,"context_line":"                                    \"Error: %(err)s.\","},{"line_number":1604,"context_line":"                                    {\u0027node\u0027: task.node.uuid, \u0027err\u0027: e})"},{"line_number":1605,"context_line":"                    else:"},{"line_number":1606,"context_line":"                        task.upgrade_lock(\u0027Recovering node from maintenance\u0027)"},{"line_number":1607,"context_line":"                        node \u003d task.node"},{"line_number":1608,"context_line":"                        # Update power state"},{"line_number":1609,"context_line":"                        node.power_state \u003d power_state"}],"source_content_type":"text/x-python","patch_set":9,"id":"5f7c97a3_22ca4c1a","line":1606,"updated":"2018-05-14 17:07:56.000000000","message":"If you want to change the purpose, please use purpose\u003d\u0027Recovering...\u0027\n\nHowever, I don\u0027t like the fact that the purpose doesn\u0027t mention \u0027power failure recovery\u0027. Why not leave the original purpose string?","commit_id":"90aa89b899f3d45cc16206c611811e24da537c69"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"8e3e3b372dec596cd928b375bb2ee648d5502d75","unresolved":false,"context_lines":[{"line_number":1603,"context_line":"                                    \"Error: %(err)s.\","},{"line_number":1604,"context_line":"                                    {\u0027node\u0027: task.node.uuid, \u0027err\u0027: e})"},{"line_number":1605,"context_line":"                    else:"},{"line_number":1606,"context_line":"                        task.upgrade_lock(\u0027Recovering node from maintenance\u0027)"},{"line_number":1607,"context_line":"                        node \u003d task.node"},{"line_number":1608,"context_line":"                        # Update power state"},{"line_number":1609,"context_line":"                        node.power_state \u003d power_state"}],"source_content_type":"text/x-python","patch_set":9,"id":"5f7c97a3_8bb47df3","line":1606,"in_reply_to":"5f7c97a3_22ca4c1a","updated":"2018-05-15 17:19:15.000000000","message":"\u003e If you want to change the purpose, please use purpose\u003d\u0027Recovering...\u0027\n\nI think it\u0027s valid for the method definition:\n\n    def upgrade_lock(self, purpose\u003dNone):\n\nPerhaps your way looks more pythonic :D\n\n \u003e However, I don\u0027t like the fact that the purpose doesn\u0027t mention\n \u003e \u0027power failure recovery\u0027. Why not leave the original purpose\n \u003e string?\n\nSure, will do.","commit_id":"90aa89b899f3d45cc16206c611811e24da537c69"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"aa942743e6bb7c6d43c1606a42eb2ca466eec352","unresolved":false,"context_lines":[{"line_number":1603,"context_line":"                                    \"Error: %(err)s.\","},{"line_number":1604,"context_line":"                                    {\u0027node\u0027: task.node.uuid, \u0027err\u0027: e})"},{"line_number":1605,"context_line":"                    else:"},{"line_number":1606,"context_line":"                        task.upgrade_lock(\u0027Recovering node from maintenance\u0027)"},{"line_number":1607,"context_line":"                        node \u003d task.node"},{"line_number":1608,"context_line":"                        # Update power state"},{"line_number":1609,"context_line":"                        node.power_state \u003d power_state"}],"source_content_type":"text/x-python","patch_set":9,"id":"5f7c97a3_7d1179ac","line":1606,"in_reply_to":"5f7c97a3_22ca4c1a","updated":"2018-05-17 15:51:23.000000000","message":"Done","commit_id":"90aa89b899f3d45cc16206c611811e24da537c69"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6cac992632363297f934b50be524cbf0d0e039bf","unresolved":false,"context_lines":[{"line_number":168,"context_line":"        # NOTE(kaifeng) also clear fault when out of maintenance."},{"line_number":169,"context_line":"        delta \u003d node_obj.obj_what_changed()"},{"line_number":170,"context_line":"        if \u0027maintenance\u0027 in delta:"},{"line_number":171,"context_line":"            if not node_obj.maintenance:"},{"line_number":172,"context_line":"                node_obj.maintenance_reason \u003d None"},{"line_number":173,"context_line":"                node_obj.fault \u003d None"},{"line_number":174,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_2d92aaa0","line":171,"updated":"2018-05-22 14:28:03.000000000","message":"I\u0027m curious. What was wrong with the original if ... and ...?","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"17cfe0eab983713bb4211121414debdcf2967016","unresolved":false,"context_lines":[{"line_number":168,"context_line":"        # NOTE(kaifeng) also clear fault when out of maintenance."},{"line_number":169,"context_line":"        delta \u003d node_obj.obj_what_changed()"},{"line_number":170,"context_line":"        if \u0027maintenance\u0027 in delta:"},{"line_number":171,"context_line":"            if not node_obj.maintenance:"},{"line_number":172,"context_line":"                node_obj.maintenance_reason \u003d None"},{"line_number":173,"context_line":"                node_obj.fault \u003d None"},{"line_number":174,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_b4cfd57d","line":171,"in_reply_to":"5f7c97a3_2d92aaa0","updated":"2018-05-23 18:17:09.000000000","message":"Done","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"92fd5673ee2f02e126af2982c4f26aba2e4f125d","unresolved":false,"context_lines":[{"line_number":168,"context_line":"        # NOTE(kaifeng) also clear fault when out of maintenance."},{"line_number":169,"context_line":"        delta \u003d node_obj.obj_what_changed()"},{"line_number":170,"context_line":"        if \u0027maintenance\u0027 in delta:"},{"line_number":171,"context_line":"            if not node_obj.maintenance:"},{"line_number":172,"context_line":"                node_obj.maintenance_reason \u003d None"},{"line_number":173,"context_line":"                node_obj.fault \u003d None"},{"line_number":174,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_63df533a","line":171,"in_reply_to":"5f7c97a3_2d92aaa0","updated":"2018-05-22 16:04:50.000000000","message":"oh, it was changed to set maintenance_type to manual when entering maintenance in the same clause, will restore it on next patch.","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6cac992632363297f934b50be524cbf0d0e039bf","unresolved":false,"context_lines":[{"line_number":1582,"context_line":"                    if (task.node.provision_state \u003d\u003d states.ENROLL or"},{"line_number":1583,"context_line":"                            not task.node.maintenance or"},{"line_number":1584,"context_line":"                            (task.node.fault !\u003d"},{"line_number":1585,"context_line":"                             faults.POWER_FAILURE) or"},{"line_number":1586,"context_line":"                            task.node.target_power_state or"},{"line_number":1587,"context_line":"                            task.node.reservation):"},{"line_number":1588,"context_line":"                        continue"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_add47a48","line":1585,"updated":"2018-05-22 14:28:03.000000000","message":"just eyeballing this so could be wrong, but I think the above two lines could be combined into one","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"5b8a6e5e06e6f862f505d5f0787bb69d423663ff","unresolved":false,"context_lines":[{"line_number":1582,"context_line":"                    if (task.node.provision_state \u003d\u003d states.ENROLL or"},{"line_number":1583,"context_line":"                            not task.node.maintenance or"},{"line_number":1584,"context_line":"                            (task.node.fault !\u003d"},{"line_number":1585,"context_line":"                             faults.POWER_FAILURE) or"},{"line_number":1586,"context_line":"                            task.node.target_power_state or"},{"line_number":1587,"context_line":"                            task.node.reservation):"},{"line_number":1588,"context_line":"                        continue"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_ea6c8a09","line":1585,"in_reply_to":"5f7c97a3_43aa5785","updated":"2018-05-23 09:26:28.000000000","message":"nit: I wonder if we could create a helper call, so that this looks like \n\n if _should_sync_power_state(task) or task.node.fault !\u003d faults.POWER_FAILURE","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"17cfe0eab983713bb4211121414debdcf2967016","unresolved":false,"context_lines":[{"line_number":1582,"context_line":"                    if (task.node.provision_state \u003d\u003d states.ENROLL or"},{"line_number":1583,"context_line":"                            not task.node.maintenance or"},{"line_number":1584,"context_line":"                            (task.node.fault !\u003d"},{"line_number":1585,"context_line":"                             faults.POWER_FAILURE) or"},{"line_number":1586,"context_line":"                            task.node.target_power_state or"},{"line_number":1587,"context_line":"                            task.node.reservation):"},{"line_number":1588,"context_line":"                        continue"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_f4aa2d83","line":1585,"in_reply_to":"5f7c97a3_add47a48","updated":"2018-05-23 18:17:09.000000000","message":"Done","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"92fd5673ee2f02e126af2982c4f26aba2e4f125d","unresolved":false,"context_lines":[{"line_number":1582,"context_line":"                    if (task.node.provision_state \u003d\u003d states.ENROLL or"},{"line_number":1583,"context_line":"                            not task.node.maintenance or"},{"line_number":1584,"context_line":"                            (task.node.fault !\u003d"},{"line_number":1585,"context_line":"                             faults.POWER_FAILURE) or"},{"line_number":1586,"context_line":"                            task.node.target_power_state or"},{"line_number":1587,"context_line":"                            task.node.reservation):"},{"line_number":1588,"context_line":"                        continue"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_43aa5785","line":1585,"in_reply_to":"5f7c97a3_add47a48","updated":"2018-05-22 16:04:50.000000000","message":"probably, it was exceeding 79 when it was maintenance_type, will do.","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"5d3236c888ffaee58b2273d2f82fdee615919204","unresolved":false,"context_lines":[{"line_number":1582,"context_line":"                    if (task.node.provision_state \u003d\u003d states.ENROLL or"},{"line_number":1583,"context_line":"                            not task.node.maintenance or"},{"line_number":1584,"context_line":"                            (task.node.fault !\u003d"},{"line_number":1585,"context_line":"                             faults.POWER_FAILURE) or"},{"line_number":1586,"context_line":"                            task.node.target_power_state or"},{"line_number":1587,"context_line":"                            task.node.reservation):"},{"line_number":1588,"context_line":"                        continue"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_c7597335","line":1585,"in_reply_to":"5f7c97a3_ea6c8a09","updated":"2018-05-24 17:12:29.000000000","message":"Done with a bit variation, I\u0027m thinking why not put the fault checking there too.\n\nInitially I intend to reuse the condition with _sync_power_states, but found they only share with node.reservation and node.target_power_state, so I keep this check within the recovery scope.","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"5b8a6e5e06e6f862f505d5f0787bb69d423663ff","unresolved":false,"context_lines":[{"line_number":1598,"context_line":"                                _(\"Power driver returned ERROR state \""},{"line_number":1599,"context_line":"                                  \"while trying to get power state.\"))"},{"line_number":1600,"context_line":"                    except Exception as e:"},{"line_number":1601,"context_line":"                        LOG.warning(\"During power_failure_recovery, could \""},{"line_number":1602,"context_line":"                                    \"not get power state for node %(node)s, \""},{"line_number":1603,"context_line":"                                    \"Error: %(err)s.\","},{"line_number":1604,"context_line":"                                    {\u0027node\u0027: task.node.uuid, \u0027err\u0027: e})"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_8a7b96bc","line":1601,"range":{"start_line":1601,"start_character":24,"end_line":1601,"end_character":35},"updated":"2018-05-23 09:26:28.000000000","message":"We\u0027re risking spamming the logs with this warning while recovery is not possible yet. Maybe demote to LOG.debug?","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"17cfe0eab983713bb4211121414debdcf2967016","unresolved":false,"context_lines":[{"line_number":1598,"context_line":"                                _(\"Power driver returned ERROR state \""},{"line_number":1599,"context_line":"                                  \"while trying to get power state.\"))"},{"line_number":1600,"context_line":"                    except Exception as e:"},{"line_number":1601,"context_line":"                        LOG.warning(\"During power_failure_recovery, could \""},{"line_number":1602,"context_line":"                                    \"not get power state for node %(node)s, \""},{"line_number":1603,"context_line":"                                    \"Error: %(err)s.\","},{"line_number":1604,"context_line":"                                    {\u0027node\u0027: task.node.uuid, \u0027err\u0027: e})"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_9472d948","line":1601,"range":{"start_line":1601,"start_character":24,"end_line":1601,"end_character":35},"in_reply_to":"5f7c97a3_8a7b96bc","updated":"2018-05-23 18:17:09.000000000","message":"Done","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"af7c97dde59d3d859fcf8ea01d77bbe03ee63426","unresolved":false,"context_lines":[{"line_number":1603,"context_line":"                                    \"Error: %(err)s.\","},{"line_number":1604,"context_line":"                                    {\u0027node\u0027: task.node.uuid, \u0027err\u0027: e})"},{"line_number":1605,"context_line":"                    else:"},{"line_number":1606,"context_line":"                        task.upgrade_lock(purpose\u003d\u0027power failure recovery\u0027)"},{"line_number":1607,"context_line":"                        node \u003d task.node"},{"line_number":1608,"context_line":"                        # Update power state"},{"line_number":1609,"context_line":"                        node.power_state \u003d power_state"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_3670b2dc","line":1606,"range":{"start_line":1606,"start_character":42,"end_line":1606,"end_character":74},"updated":"2018-05-23 08:43:16.000000000","message":"nit: This is not necessary when using the same purpose.","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"17cfe0eab983713bb4211121414debdcf2967016","unresolved":false,"context_lines":[{"line_number":1603,"context_line":"                                    \"Error: %(err)s.\","},{"line_number":1604,"context_line":"                                    {\u0027node\u0027: task.node.uuid, \u0027err\u0027: e})"},{"line_number":1605,"context_line":"                    else:"},{"line_number":1606,"context_line":"                        task.upgrade_lock(purpose\u003d\u0027power failure recovery\u0027)"},{"line_number":1607,"context_line":"                        node \u003d task.node"},{"line_number":1608,"context_line":"                        # Update power state"},{"line_number":1609,"context_line":"                        node.power_state \u003d power_state"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_149c895b","line":1606,"range":{"start_line":1606,"start_character":42,"end_line":1606,"end_character":74},"in_reply_to":"5f7c97a3_3670b2dc","updated":"2018-05-23 18:17:09.000000000","message":"Done\nReally, thanks","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"af7c97dde59d3d859fcf8ea01d77bbe03ee63426","unresolved":false,"context_lines":[{"line_number":1611,"context_line":"                        node.maintenance \u003d False"},{"line_number":1612,"context_line":"                        node.maintenance_reason \u003d None"},{"line_number":1613,"context_line":"                        node.fault \u003d None"},{"line_number":1614,"context_line":"                        node.save()"},{"line_number":1615,"context_line":"            except exception.NodeNotFound:"},{"line_number":1616,"context_line":"                LOG.info(\"During power_failure_recovery, node %(node)s was \""},{"line_number":1617,"context_line":"                         \"not found and presumed deleted by another process.\","}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_aa121257","line":1614,"updated":"2018-05-23 08:43:16.000000000","message":"Isn\u0027t it necessary to clear last_error set at line 3448? Don\u0027t we need to call emit_power_state_corrected_notification when power_state_is changed?\n\nIt might be helpful to log the recovery here.","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"5b8a6e5e06e6f862f505d5f0787bb69d423663ff","unresolved":false,"context_lines":[{"line_number":1611,"context_line":"                        node.maintenance \u003d False"},{"line_number":1612,"context_line":"                        node.maintenance_reason \u003d None"},{"line_number":1613,"context_line":"                        node.fault \u003d None"},{"line_number":1614,"context_line":"                        node.save()"},{"line_number":1615,"context_line":"            except exception.NodeNotFound:"},{"line_number":1616,"context_line":"                LOG.info(\"During power_failure_recovery, node %(node)s was \""},{"line_number":1617,"context_line":"                         \"not found and presumed deleted by another process.\","}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_caac2e37","line":1614,"in_reply_to":"5f7c97a3_aa121257","updated":"2018-05-23 09:26:28.000000000","message":"\u003e Isn\u0027t it necessary to clear last_error set at line 3448?\n\nGood question. What if last_error was changed since the node entered maintenance? I\u0027d prefer to keep it untouched. After all, it does not affect operation.","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"5d3236c888ffaee58b2273d2f82fdee615919204","unresolved":false,"context_lines":[{"line_number":1611,"context_line":"                        node.maintenance \u003d False"},{"line_number":1612,"context_line":"                        node.maintenance_reason \u003d None"},{"line_number":1613,"context_line":"                        node.fault \u003d None"},{"line_number":1614,"context_line":"                        node.save()"},{"line_number":1615,"context_line":"            except exception.NodeNotFound:"},{"line_number":1616,"context_line":"                LOG.info(\"During power_failure_recovery, node %(node)s was \""},{"line_number":1617,"context_line":"                         \"not found and presumed deleted by another process.\","}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_27b86728","line":1614,"in_reply_to":"5f7c97a3_aa121257","updated":"2018-05-24 17:12:29.000000000","message":"Done\nnotification and log is appended.","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"17cfe0eab983713bb4211121414debdcf2967016","unresolved":false,"context_lines":[{"line_number":1611,"context_line":"                        node.maintenance \u003d False"},{"line_number":1612,"context_line":"                        node.maintenance_reason \u003d None"},{"line_number":1613,"context_line":"                        node.fault \u003d None"},{"line_number":1614,"context_line":"                        node.save()"},{"line_number":1615,"context_line":"            except exception.NodeNotFound:"},{"line_number":1616,"context_line":"                LOG.info(\"During power_failure_recovery, node %(node)s was \""},{"line_number":1617,"context_line":"                         \"not found and presumed deleted by another process.\","}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_4fca681a","line":1614,"in_reply_to":"5f7c97a3_aa121257","updated":"2018-05-23 18:17:09.000000000","message":"will update on next patch wrt notification \u0026 log","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"17cfe0eab983713bb4211121414debdcf2967016","unresolved":false,"context_lines":[{"line_number":1611,"context_line":"                        node.maintenance \u003d False"},{"line_number":1612,"context_line":"                        node.maintenance_reason \u003d None"},{"line_number":1613,"context_line":"                        node.fault \u003d None"},{"line_number":1614,"context_line":"                        node.save()"},{"line_number":1615,"context_line":"            except exception.NodeNotFound:"},{"line_number":1616,"context_line":"                LOG.info(\"During power_failure_recovery, node %(node)s was \""},{"line_number":1617,"context_line":"                         \"not found and presumed deleted by another process.\","}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_34066588","line":1614,"in_reply_to":"5f7c97a3_caac2e37","updated":"2018-05-23 18:17:09.000000000","message":"I think the guideline is, last_error is set when we have an error, while a successful recovery is not an error, better to keep it so that the user knows what happens recently.","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"}],"ironic/conf/conductor.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6cac992632363297f934b50be524cbf0d0e039bf","unresolved":false,"context_lines":[{"line_number":171,"context_line":"                      \u0027is considered a failure.\u0027)),"},{"line_number":172,"context_line":"    cfg.IntOpt(\u0027power_failure_recovery_interval\u0027,"},{"line_number":173,"context_line":"               min\u003d0, default\u003d300,"},{"line_number":174,"context_line":"               help\u003d_(\u0027Interval between checking the power state for nodes \u0027"},{"line_number":175,"context_line":"                      \u0027previously been put into maintenance mode due to \u0027"},{"line_number":176,"context_line":"                      \u0027power synchronization failure, in seconds. A node is \u0027"},{"line_number":177,"context_line":"                      \u0027automatically moved out of maintenance mode, once its \u0027"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_8d041ec8","line":174,"updated":"2018-05-22 14:28:03.000000000","message":"maybe s/Interval/Interval (seconds)/\n\nand then remove \u0027, in seconds\u0027 at L176.","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"17cfe0eab983713bb4211121414debdcf2967016","unresolved":false,"context_lines":[{"line_number":171,"context_line":"                      \u0027is considered a failure.\u0027)),"},{"line_number":172,"context_line":"    cfg.IntOpt(\u0027power_failure_recovery_interval\u0027,"},{"line_number":173,"context_line":"               min\u003d0, default\u003d300,"},{"line_number":174,"context_line":"               help\u003d_(\u0027Interval between checking the power state for nodes \u0027"},{"line_number":175,"context_line":"                      \u0027previously been put into maintenance mode due to \u0027"},{"line_number":176,"context_line":"                      \u0027power synchronization failure, in seconds. A node is \u0027"},{"line_number":177,"context_line":"                      \u0027automatically moved out of maintenance mode, once its \u0027"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_542e81fa","line":174,"in_reply_to":"5f7c97a3_8d041ec8","updated":"2018-05-23 18:17:09.000000000","message":"Done","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6cac992632363297f934b50be524cbf0d0e039bf","unresolved":false,"context_lines":[{"line_number":172,"context_line":"    cfg.IntOpt(\u0027power_failure_recovery_interval\u0027,"},{"line_number":173,"context_line":"               min\u003d0, default\u003d300,"},{"line_number":174,"context_line":"               help\u003d_(\u0027Interval between checking the power state for nodes \u0027"},{"line_number":175,"context_line":"                      \u0027previously been put into maintenance mode due to \u0027"},{"line_number":176,"context_line":"                      \u0027power synchronization failure, in seconds. A node is \u0027"},{"line_number":177,"context_line":"                      \u0027automatically moved out of maintenance mode, once its \u0027"},{"line_number":178,"context_line":"                      \u0027power state is retrieved successfully. Set to 0 to \u0027"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_cd6c569e","line":175,"updated":"2018-05-22 14:28:03.000000000","message":"s/been put/put/","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"17cfe0eab983713bb4211121414debdcf2967016","unresolved":false,"context_lines":[{"line_number":172,"context_line":"    cfg.IntOpt(\u0027power_failure_recovery_interval\u0027,"},{"line_number":173,"context_line":"               min\u003d0, default\u003d300,"},{"line_number":174,"context_line":"               help\u003d_(\u0027Interval between checking the power state for nodes \u0027"},{"line_number":175,"context_line":"                      \u0027previously been put into maintenance mode due to \u0027"},{"line_number":176,"context_line":"                      \u0027power synchronization failure, in seconds. A node is \u0027"},{"line_number":177,"context_line":"                      \u0027automatically moved out of maintenance mode, once its \u0027"},{"line_number":178,"context_line":"                      \u0027power state is retrieved successfully. Set to 0 to \u0027"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_f4346d4c","line":175,"in_reply_to":"5f7c97a3_cd6c569e","updated":"2018-05-23 18:17:09.000000000","message":"Done","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6cac992632363297f934b50be524cbf0d0e039bf","unresolved":false,"context_lines":[{"line_number":174,"context_line":"               help\u003d_(\u0027Interval between checking the power state for nodes \u0027"},{"line_number":175,"context_line":"                      \u0027previously been put into maintenance mode due to \u0027"},{"line_number":176,"context_line":"                      \u0027power synchronization failure, in seconds. A node is \u0027"},{"line_number":177,"context_line":"                      \u0027automatically moved out of maintenance mode, once its \u0027"},{"line_number":178,"context_line":"                      \u0027power state is retrieved successfully. Set to 0 to \u0027"},{"line_number":179,"context_line":"                      \u0027disable this check.\u0027)),"},{"line_number":180,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_0df80ec2","line":177,"updated":"2018-05-22 14:28:03.000000000","message":"s/mode, once/mode once/","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"17cfe0eab983713bb4211121414debdcf2967016","unresolved":false,"context_lines":[{"line_number":174,"context_line":"               help\u003d_(\u0027Interval between checking the power state for nodes \u0027"},{"line_number":175,"context_line":"                      \u0027previously been put into maintenance mode due to \u0027"},{"line_number":176,"context_line":"                      \u0027power synchronization failure, in seconds. A node is \u0027"},{"line_number":177,"context_line":"                      \u0027automatically moved out of maintenance mode, once its \u0027"},{"line_number":178,"context_line":"                      \u0027power state is retrieved successfully. Set to 0 to \u0027"},{"line_number":179,"context_line":"                      \u0027disable this check.\u0027)),"},{"line_number":180,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_b43ef526","line":177,"in_reply_to":"5f7c97a3_0df80ec2","updated":"2018-05-23 18:17:09.000000000","message":"Done","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"}],"ironic/tests/unit/conductor/test_manager.py":[{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"debcf6d95afb479d027f21b81438c165a752281d","unresolved":false,"context_lines":[{"line_number":498,"context_line":"        self.assertIsNone(res[\u0027maintenance_reason\u0027])"},{"line_number":499,"context_line":""},{"line_number":500,"context_line":"    def test_unset_maintenance_clears_fault(self):"},{"line_number":501,"context_line":"        node \u003d obj_utils.create_test_node(self.context, driver\u003d\u0027fake\u0027,"},{"line_number":502,"context_line":"                                          maintenance\u003dTrue,"},{"line_number":503,"context_line":"                                          fault\u003d\u0027clean failure\u0027,"},{"line_number":504,"context_line":"                                          maintenance_reason\u003d\u0027reason\u0027)"}],"source_content_type":"text/x-python","patch_set":10,"id":"5f7c97a3_82e8ad7c","line":501,"range":{"start_line":501,"start_character":56,"end_line":501,"end_character":69},"updated":"2018-05-17 18:54:09.000000000","message":"This should be switched over to the fake hardware type.","commit_id":"7f7f3850f59368a799f537ec34e8e545d34d9eb8"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"c5e26b830ff74c04cc9b7f29331c938a6452cc65","unresolved":false,"context_lines":[{"line_number":498,"context_line":"        self.assertIsNone(res[\u0027maintenance_reason\u0027])"},{"line_number":499,"context_line":""},{"line_number":500,"context_line":"    def test_unset_maintenance_clears_fault(self):"},{"line_number":501,"context_line":"        node \u003d obj_utils.create_test_node(self.context, driver\u003d\u0027fake\u0027,"},{"line_number":502,"context_line":"                                          maintenance\u003dTrue,"},{"line_number":503,"context_line":"                                          fault\u003d\u0027clean failure\u0027,"},{"line_number":504,"context_line":"                                          maintenance_reason\u003d\u0027reason\u0027)"}],"source_content_type":"text/x-python","patch_set":10,"id":"5f7c97a3_f3ea8caa","line":501,"range":{"start_line":501,"start_character":56,"end_line":501,"end_character":69},"in_reply_to":"5f7c97a3_82e8ad7c","updated":"2018-05-18 08:19:52.000000000","message":"Done","commit_id":"7f7f3850f59368a799f537ec34e8e545d34d9eb8"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6cac992632363297f934b50be524cbf0d0e039bf","unresolved":false,"context_lines":[{"line_number":497,"context_line":"        self.assertFalse(res[\u0027maintenance\u0027])"},{"line_number":498,"context_line":"        self.assertIsNone(res[\u0027maintenance_reason\u0027])"},{"line_number":499,"context_line":""},{"line_number":500,"context_line":"    def test_unset_maintenance_clears_fault(self):"},{"line_number":501,"context_line":"        node \u003d obj_utils.create_test_node(self.context,"},{"line_number":502,"context_line":"                                          driver\u003d\u0027fake-hardware\u0027,"},{"line_number":503,"context_line":"                                          maintenance\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_ad8c7a35","line":500,"updated":"2018-05-22 14:28:03.000000000","message":"personally, I\u0027d combine this with the test above at L489. They are both cleared in the same if statement, so it doesn\u0027t make sense to have two separate tests for them.\n\neg. \u0027test_update_node_maintenance_set_false()\u0027.","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"17cfe0eab983713bb4211121414debdcf2967016","unresolved":false,"context_lines":[{"line_number":497,"context_line":"        self.assertFalse(res[\u0027maintenance\u0027])"},{"line_number":498,"context_line":"        self.assertIsNone(res[\u0027maintenance_reason\u0027])"},{"line_number":499,"context_line":""},{"line_number":500,"context_line":"    def test_unset_maintenance_clears_fault(self):"},{"line_number":501,"context_line":"        node \u003d obj_utils.create_test_node(self.context,"},{"line_number":502,"context_line":"                                          driver\u003d\u0027fake-hardware\u0027,"},{"line_number":503,"context_line":"                                          maintenance\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_af69bcbe","line":500,"in_reply_to":"5f7c97a3_ad8c7a35","updated":"2018-05-23 18:17:09.000000000","message":"Done\noriginally there were two tests here, one for clearance, another for manual, i guess that\u0027s why they are separated.","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6cac992632363297f934b50be524cbf0d0e039bf","unresolved":false,"context_lines":[{"line_number":2080,"context_line":"            tear_mock.assert_called_once_with(task.driver.deploy, task)"},{"line_number":2081,"context_line":"            self.assertIsNotNone(task.node.last_error)"},{"line_number":2082,"context_line":"            self.assertIsNotNone(task.node.maintenance_reason)"},{"line_number":2083,"context_line":"            self.assertTrue(task.node.maintenance)"},{"line_number":2084,"context_line":""},{"line_number":2085,"context_line":""},{"line_number":2086,"context_line":"@mgr_utils.mock_record_keepalive"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_edd4b2eb","line":2083,"updated":"2018-05-22 14:28:03.000000000","message":"is fault set here?","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"17cfe0eab983713bb4211121414debdcf2967016","unresolved":false,"context_lines":[{"line_number":2080,"context_line":"            tear_mock.assert_called_once_with(task.driver.deploy, task)"},{"line_number":2081,"context_line":"            self.assertIsNotNone(task.node.last_error)"},{"line_number":2082,"context_line":"            self.assertIsNotNone(task.node.maintenance_reason)"},{"line_number":2083,"context_line":"            self.assertTrue(task.node.maintenance)"},{"line_number":2084,"context_line":""},{"line_number":2085,"context_line":""},{"line_number":2086,"context_line":"@mgr_utils.mock_record_keepalive"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_cfd7584f","line":2083,"in_reply_to":"5f7c97a3_edd4b2eb","updated":"2018-05-23 18:17:09.000000000","message":"Done","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"92fd5673ee2f02e126af2982c4f26aba2e4f125d","unresolved":false,"context_lines":[{"line_number":2080,"context_line":"            tear_mock.assert_called_once_with(task.driver.deploy, task)"},{"line_number":2081,"context_line":"            self.assertIsNotNone(task.node.last_error)"},{"line_number":2082,"context_line":"            self.assertIsNotNone(task.node.maintenance_reason)"},{"line_number":2083,"context_line":"            self.assertTrue(task.node.maintenance)"},{"line_number":2084,"context_line":""},{"line_number":2085,"context_line":""},{"line_number":2086,"context_line":"@mgr_utils.mock_record_keepalive"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_838e2f25","line":2083,"in_reply_to":"5f7c97a3_edd4b2eb","updated":"2018-05-22 16:04:50.000000000","message":"yes, will add an assersion here.","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6cac992632363297f934b50be524cbf0d0e039bf","unresolved":false,"context_lines":[{"line_number":5438,"context_line":"        self.assertFalse(acquire_mock.called)"},{"line_number":5439,"context_line":"        self.assertFalse(self.power.validate.called)"},{"line_number":5440,"context_line":""},{"line_number":5441,"context_line":"    def test_node_locked_on_acquire(self, get_nodeinfo_mock, mapped_mock,"},{"line_number":5442,"context_line":"                                    acquire_mock):"},{"line_number":5443,"context_line":"        get_nodeinfo_mock.return_value \u003d self._get_nodeinfo_list_response()"},{"line_number":5444,"context_line":"        mapped_mock.return_value \u003d True"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_4de9267e","line":5441,"updated":"2018-05-22 14:28:03.000000000","message":"For the tests from here to test_node_disappears_on_acquire() (L5522), I think you could put in a helper function. there is a lot of duplicated code, the only diffs seem to be self.create_task(node_attrs...) \u0026 value of acquire_mock.side_effect.","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"5d3236c888ffaee58b2273d2f82fdee615919204","unresolved":false,"context_lines":[{"line_number":5438,"context_line":"        self.assertFalse(acquire_mock.called)"},{"line_number":5439,"context_line":"        self.assertFalse(self.power.validate.called)"},{"line_number":5440,"context_line":""},{"line_number":5441,"context_line":"    def test_node_locked_on_acquire(self, get_nodeinfo_mock, mapped_mock,"},{"line_number":5442,"context_line":"                                    acquire_mock):"},{"line_number":5443,"context_line":"        get_nodeinfo_mock.return_value \u003d self._get_nodeinfo_list_response()"},{"line_number":5444,"context_line":"        mapped_mock.return_value \u003d True"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_47a6c355","line":5441,"in_reply_to":"5f7c97a3_4de9267e","updated":"2018-05-24 17:12:29.000000000","message":"Have refactored four out of five, the test test_node_disappears_on_acquire is not touched, because acquire_mock needs a task, which is created in the shared code.\n\nI\u0027ll leave it as is if you are ok with it, a step forward could be abstracting some code relate to _create_task.","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6cac992632363297f934b50be524cbf0d0e039bf","unresolved":false,"context_lines":[{"line_number":5559,"context_line":"            purpose\u003d\u0027power failure recovery\u0027)"},{"line_number":5560,"context_line":"        self.assertFalse(self.node.maintenance)"},{"line_number":5561,"context_line":"        self.assertIsNone(self.node.fault)"},{"line_number":5562,"context_line":"        self.assertIsNone(self.node.maintenance_reason)"},{"line_number":5563,"context_line":""},{"line_number":5564,"context_line":"    def test_node_recovery_failed(self, get_nodeinfo_mock,"},{"line_number":5565,"context_line":"                                  mapped_mock, acquire_mock):"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_8d62de15","line":5562,"updated":"2018-05-22 14:28:03.000000000","message":"maybe check that self.node.power_state is POWER_OFF\n\nWhat was the value of .node.power_state before?","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"17cfe0eab983713bb4211121414debdcf2967016","unresolved":false,"context_lines":[{"line_number":5559,"context_line":"            purpose\u003d\u0027power failure recovery\u0027)"},{"line_number":5560,"context_line":"        self.assertFalse(self.node.maintenance)"},{"line_number":5561,"context_line":"        self.assertIsNone(self.node.fault)"},{"line_number":5562,"context_line":"        self.assertIsNone(self.node.maintenance_reason)"},{"line_number":5563,"context_line":""},{"line_number":5564,"context_line":"    def test_node_recovery_failed(self, get_nodeinfo_mock,"},{"line_number":5565,"context_line":"                                  mapped_mock, acquire_mock):"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_2fb84cc6","line":5562,"in_reply_to":"5f7c97a3_8d62de15","updated":"2018-05-23 18:17:09.000000000","message":"Done\ngood point, currently updating power state is not covered","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"}],"ironic/tests/unit/conductor/test_utils.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6cac992632363297f934b50be524cbf0d0e039bf","unresolved":false,"context_lines":[{"line_number":1185,"context_line":"        self.task.process_event.assert_called_once_with(\u0027fail\u0027,"},{"line_number":1186,"context_line":"                                                        target_state\u003dNone)"},{"line_number":1187,"context_line":"        self.assertTrue(self.node.maintenance)"},{"line_number":1188,"context_line":"        self.assertEqual(clean_error, self.node.maintenance_reason)"},{"line_number":1189,"context_line":""},{"line_number":1190,"context_line":"    def test_cleaning_error_handler(self):"},{"line_number":1191,"context_line":"        self.node.provision_state \u003d states.CLEANING"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_2d1f0a71","line":1188,"updated":"2018-05-22 14:28:03.000000000","message":"was node.fault set?","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"17cfe0eab983713bb4211121414debdcf2967016","unresolved":false,"context_lines":[{"line_number":1185,"context_line":"        self.task.process_event.assert_called_once_with(\u0027fail\u0027,"},{"line_number":1186,"context_line":"                                                        target_state\u003dNone)"},{"line_number":1187,"context_line":"        self.assertTrue(self.node.maintenance)"},{"line_number":1188,"context_line":"        self.assertEqual(clean_error, self.node.maintenance_reason)"},{"line_number":1189,"context_line":""},{"line_number":1190,"context_line":"    def test_cleaning_error_handler(self):"},{"line_number":1191,"context_line":"        self.node.provision_state \u003d states.CLEANING"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_1417a953","line":1188,"in_reply_to":"5f7c97a3_2d1f0a71","updated":"2018-05-23 18:17:09.000000000","message":"Done","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6cac992632363297f934b50be524cbf0d0e039bf","unresolved":false,"context_lines":[{"line_number":1242,"context_line":"        conductor_utils.cleaning_error_handler(self.task, msg)"},{"line_number":1243,"context_line":"        self.assertTrue(log_mock.exception.called)"},{"line_number":1244,"context_line":"        self.assertIn(msg, self.node.last_error)"},{"line_number":1245,"context_line":"        self.assertIn(msg, self.node.maintenance_reason)"},{"line_number":1246,"context_line":""},{"line_number":1247,"context_line":"    def test_abort_on_conductor_take_over_cleaning(self):"},{"line_number":1248,"context_line":"        self.node.maintenance \u003d False"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_cd069621","line":1245,"updated":"2018-05-22 14:28:03.000000000","message":"was node.fault set?","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"17cfe0eab983713bb4211121414debdcf2967016","unresolved":false,"context_lines":[{"line_number":1242,"context_line":"        conductor_utils.cleaning_error_handler(self.task, msg)"},{"line_number":1243,"context_line":"        self.assertTrue(log_mock.exception.called)"},{"line_number":1244,"context_line":"        self.assertIn(msg, self.node.last_error)"},{"line_number":1245,"context_line":"        self.assertIn(msg, self.node.maintenance_reason)"},{"line_number":1246,"context_line":""},{"line_number":1247,"context_line":"    def test_abort_on_conductor_take_over_cleaning(self):"},{"line_number":1248,"context_line":"        self.node.maintenance \u003d False"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_2fffec01","line":1245,"in_reply_to":"5f7c97a3_cd069621","updated":"2018-05-23 18:17:09.000000000","message":"Done","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6cac992632363297f934b50be524cbf0d0e039bf","unresolved":false,"context_lines":[{"line_number":1249,"context_line":"        self.node.provision_state \u003d states.CLEANFAIL"},{"line_number":1250,"context_line":"        conductor_utils.abort_on_conductor_take_over(self.task)"},{"line_number":1251,"context_line":"        self.assertTrue(self.node.maintenance)"},{"line_number":1252,"context_line":"        self.assertIn(\u0027take over\u0027, self.node.maintenance_reason)"},{"line_number":1253,"context_line":"        self.assertIn(\u0027take over\u0027, self.node.last_error)"},{"line_number":1254,"context_line":"        self.task.driver.deploy.tear_down_cleaning.assert_called_once_with("},{"line_number":1255,"context_line":"            self.task)"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_280db834","line":1252,"updated":"2018-05-22 14:28:03.000000000","message":"ditto","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"17cfe0eab983713bb4211121414debdcf2967016","unresolved":false,"context_lines":[{"line_number":1249,"context_line":"        self.node.provision_state \u003d states.CLEANFAIL"},{"line_number":1250,"context_line":"        conductor_utils.abort_on_conductor_take_over(self.task)"},{"line_number":1251,"context_line":"        self.assertTrue(self.node.maintenance)"},{"line_number":1252,"context_line":"        self.assertIn(\u0027take over\u0027, self.node.maintenance_reason)"},{"line_number":1253,"context_line":"        self.assertIn(\u0027take over\u0027, self.node.last_error)"},{"line_number":1254,"context_line":"        self.task.driver.deploy.tear_down_cleaning.assert_called_once_with("},{"line_number":1255,"context_line":"            self.task)"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_ef081429","line":1252,"in_reply_to":"5f7c97a3_280db834","updated":"2018-05-23 18:17:09.000000000","message":"Done","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"}],"releasenotes/notes/power-fault-recovery-6e22f0114ceee203.yaml":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6cac992632363297f934b50be524cbf0d0e039bf","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Adds power failure recovery to ironic. For nodes were put into maintenance"},{"line_number":5,"context_line":"    mode due to power failure, ironic periodically checks their power state,"},{"line_number":6,"context_line":"    and moves them out of maintenance mode when power state can be retrieved."},{"line_number":7,"context_line":"    The interval of this check is configured via"}],"source_content_type":"text/x-yaml","patch_set":11,"id":"5f7c97a3_6872d0af","line":4,"updated":"2018-05-22 14:28:03.000000000","message":"s/were put/that ironic had put/","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"17cfe0eab983713bb4211121414debdcf2967016","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Adds power failure recovery to ironic. For nodes were put into maintenance"},{"line_number":5,"context_line":"    mode due to power failure, ironic periodically checks their power state,"},{"line_number":6,"context_line":"    and moves them out of maintenance mode when power state can be retrieved."},{"line_number":7,"context_line":"    The interval of this check is configured via"}],"source_content_type":"text/x-yaml","patch_set":11,"id":"5f7c97a3_347985fb","line":4,"in_reply_to":"5f7c97a3_6872d0af","updated":"2018-05-23 18:17:09.000000000","message":"Done","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6cac992632363297f934b50be524cbf0d0e039bf","unresolved":false,"context_lines":[{"line_number":5,"context_line":"    mode due to power failure, ironic periodically checks their power state,"},{"line_number":6,"context_line":"    and moves them out of maintenance mode when power state can be retrieved."},{"line_number":7,"context_line":"    The interval of this check is configured via"},{"line_number":8,"context_line":"    ``[conductor]power_failure_recovery_interval`` option. Set to 0 to disable"},{"line_number":9,"context_line":"    this behavior."},{"line_number":10,"context_line":"upgrade:"},{"line_number":11,"context_line":"  - |"}],"source_content_type":"text/x-yaml","patch_set":11,"id":"5f7c97a3_a84f8868","line":8,"updated":"2018-05-22 14:28:03.000000000","message":"s/option/configuration option/\n\nWe should mention the default value.","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"17cfe0eab983713bb4211121414debdcf2967016","unresolved":false,"context_lines":[{"line_number":5,"context_line":"    mode due to power failure, ironic periodically checks their power state,"},{"line_number":6,"context_line":"    and moves them out of maintenance mode when power state can be retrieved."},{"line_number":7,"context_line":"    The interval of this check is configured via"},{"line_number":8,"context_line":"    ``[conductor]power_failure_recovery_interval`` option. Set to 0 to disable"},{"line_number":9,"context_line":"    this behavior."},{"line_number":10,"context_line":"upgrade:"},{"line_number":11,"context_line":"  - |"}],"source_content_type":"text/x-yaml","patch_set":11,"id":"5f7c97a3_3462e53f","line":8,"in_reply_to":"5f7c97a3_a84f8868","updated":"2018-05-23 18:17:09.000000000","message":"Done","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6cac992632363297f934b50be524cbf0d0e039bf","unresolved":false,"context_lines":[{"line_number":9,"context_line":"    this behavior."},{"line_number":10,"context_line":"upgrade:"},{"line_number":11,"context_line":"  - |"},{"line_number":12,"context_line":"    Power failure recovery introduces a new option"},{"line_number":13,"context_line":"    ``[conductor]power_failure_recovery_interval``, which is enabled and set"},{"line_number":14,"context_line":"    to 300 seconds by default. In case the default value is not suitable for"},{"line_number":15,"context_line":"    the needs or scale of a deployment, please make adjustment or turn it off"}],"source_content_type":"text/x-yaml","patch_set":11,"id":"5f7c97a3_4856f408","line":12,"updated":"2018-05-22 14:28:03.000000000","message":"s/option/configuration option/","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"17cfe0eab983713bb4211121414debdcf2967016","unresolved":false,"context_lines":[{"line_number":9,"context_line":"    this behavior."},{"line_number":10,"context_line":"upgrade:"},{"line_number":11,"context_line":"  - |"},{"line_number":12,"context_line":"    Power failure recovery introduces a new option"},{"line_number":13,"context_line":"    ``[conductor]power_failure_recovery_interval``, which is enabled and set"},{"line_number":14,"context_line":"    to 300 seconds by default. In case the default value is not suitable for"},{"line_number":15,"context_line":"    the needs or scale of a deployment, please make adjustment or turn it off"}],"source_content_type":"text/x-yaml","patch_set":11,"id":"5f7c97a3_f45b0d84","line":12,"in_reply_to":"5f7c97a3_4856f408","updated":"2018-05-23 18:17:09.000000000","message":"Done","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6cac992632363297f934b50be524cbf0d0e039bf","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":11,"id":"5f7c97a3_0869dcbc","line":17,"updated":"2018-05-22 14:28:03.000000000","message":"I wonder if we should mention here, that it has no effect on nodes that ironic put into maintenance due to power failure, prior to the upgrade.","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"17cfe0eab983713bb4211121414debdcf2967016","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":11,"id":"5f7c97a3_94df39d5","line":17,"in_reply_to":"5f7c97a3_0869dcbc","updated":"2018-05-23 18:17:09.000000000","message":"Done\nthis is a good point","commit_id":"26249b1e2188129d2d4a916a093d69cb2abd2b6d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"9f69e5189076ae1be18ae52006f30a2f61db315b","unresolved":false,"context_lines":[{"line_number":13,"context_line":"    ``[conductor]power_failure_recovery_interval``, which is enabled and set"},{"line_number":14,"context_line":"    to 300 seconds by default. In case the default value is not suitable for"},{"line_number":15,"context_line":"    the needs or scale of a deployment, please make adjustment or turn it off"},{"line_number":16,"context_line":"    during upgrade. The power failure recovery does not apply to nodes were"},{"line_number":17,"context_line":"    in maintenance mode due to power failure before upgrade, they have to be"},{"line_number":18,"context_line":"    manually moved out of maintenance mode."}],"source_content_type":"text/x-yaml","patch_set":12,"id":"5f7c97a3_ee89ec25","line":16,"updated":"2018-05-24 12:37:25.000000000","message":"nit s/were/that were/","commit_id":"6f23ddebea752728c8eb539e2ffcec7c43ee9c5c"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"5d3236c888ffaee58b2273d2f82fdee615919204","unresolved":false,"context_lines":[{"line_number":13,"context_line":"    ``[conductor]power_failure_recovery_interval``, which is enabled and set"},{"line_number":14,"context_line":"    to 300 seconds by default. In case the default value is not suitable for"},{"line_number":15,"context_line":"    the needs or scale of a deployment, please make adjustment or turn it off"},{"line_number":16,"context_line":"    during upgrade. The power failure recovery does not apply to nodes were"},{"line_number":17,"context_line":"    in maintenance mode due to power failure before upgrade, they have to be"},{"line_number":18,"context_line":"    manually moved out of maintenance mode."}],"source_content_type":"text/x-yaml","patch_set":12,"id":"5f7c97a3_ecb7b4d7","line":16,"in_reply_to":"5f7c97a3_ee89ec25","updated":"2018-05-24 17:12:29.000000000","message":"Done","commit_id":"6f23ddebea752728c8eb539e2ffcec7c43ee9c5c"}]}
