)]}'
{"doc/source/deploy/notifications.rst":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"80bf613d5108da7e834032563a13e90d07742631","unresolved":false,"context_lines":[{"line_number":267,"context_line":""},{"line_number":268,"context_line":"These notifications are emitted by the ironic-conductor service when conductor"},{"line_number":269,"context_line":"service starts or stops console for the node. Node console notifications event"},{"line_number":270,"context_line":"types list:"},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"* ``baremetal.node.console_set.start``"},{"line_number":273,"context_line":"* ``baremetal.node.console_set.end``"}],"source_content_type":"text/x-rst","patch_set":15,"id":"1a6eadb0_1222cfb9","line":270,"updated":"2016-12-19 19:52:49.000000000","message":"Maybe \u0027The notification event types for a node console are:\u0027","commit_id":"76336330d36dd9b61932569d0d7e3dab134c7b9a"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"123cbcbe4dbfa31bd003ee839146bd81cf30ef55","unresolved":false,"context_lines":[{"line_number":267,"context_line":""},{"line_number":268,"context_line":"These notifications are emitted by the ironic-conductor service when conductor"},{"line_number":269,"context_line":"service starts or stops console for the node. Node console notifications event"},{"line_number":270,"context_line":"types list:"},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"* ``baremetal.node.console_set.start``"},{"line_number":273,"context_line":"* ``baremetal.node.console_set.end``"}],"source_content_type":"text/x-rst","patch_set":15,"id":"1a6eadb0_a9727ce1","line":270,"in_reply_to":"1a6eadb0_1222cfb9","updated":"2016-12-20 09:17:14.000000000","message":"Done","commit_id":"76336330d36dd9b61932569d0d7e3dab134c7b9a"}],"doc/source/dev/notifications.rst":[{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"1890bddbde07f7f61e6828ed0ec4eba6d8a8e47b","unresolved":false,"context_lines":[{"line_number":385,"context_line":"------------------------------"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":"These notifications are emitted by the ironic-conductor service when conductor"},{"line_number":388,"context_line":"service does start or stop console for the node. Node console notifications"},{"line_number":389,"context_line":"list:"},{"line_number":390,"context_line":""},{"line_number":391,"context_line":"* ``baremetal.node.console_set.start``"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7a77a97e_4e5f0c0e","line":388,"range":{"start_line":388,"start_character":8,"end_line":388,"end_character":26},"updated":"2016-11-16 17:43:20.000000000","message":"nit: s/does start or stop/starts or stops\n\nnit: please also specify that these are the event_types, similar to how it\u0027s done in the other docs above this","commit_id":"0a1b856b2fa6517cd91520f421ef89f83c5d06cb"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"34d372a76b899ed5b2c297db50a6d3e4d9e4eaa0","unresolved":false,"context_lines":[{"line_number":385,"context_line":"------------------------------"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":"These notifications are emitted by the ironic-conductor service when conductor"},{"line_number":388,"context_line":"service does start or stop console for the node. Node console notifications"},{"line_number":389,"context_line":"list:"},{"line_number":390,"context_line":""},{"line_number":391,"context_line":"* ``baremetal.node.console_set.start``"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7a77a97e_45c41b5e","line":388,"range":{"start_line":388,"start_character":8,"end_line":388,"end_character":26},"in_reply_to":"7a77a97e_4e5f0c0e","updated":"2016-11-17 15:50:00.000000000","message":"Done","commit_id":"0a1b856b2fa6517cd91520f421ef89f83c5d06cb"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"1890bddbde07f7f61e6828ed0ec4eba6d8a8e47b","unresolved":false,"context_lines":[{"line_number":397,"context_line":"* ``baremetal.node.console_restore.error``"},{"line_number":398,"context_line":""},{"line_number":399,"context_line":"``console_set`` action is used when start or stop console is initiated via API"},{"line_number":400,"context_line":"request, ``console_restore`` action is used when ``console_enabled`` flag is"},{"line_number":401,"context_line":"already enabled in the DB for node and console restart via driver is required"},{"line_number":402,"context_line":"(due to dead or restarted ironic-conductor process). \"start\" and \"end\""},{"line_number":403,"context_line":"notifications have INFO level, \"error\" has ERROR. Example of node console"},{"line_number":404,"context_line":"notification::"},{"line_number":405,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7a77a97e_aeac20a1","line":402,"range":{"start_line":400,"start_character":7,"end_line":402,"end_character":51},"updated":"2016-11-16 17:43:20.000000000","message":"How about this?\n\nThe ``console_restore`` action is used when the console was already enabled, but a driver must restart the console because an ironic-conductor was restarted. This may also be sent when an ironic-conductor takes over a node that was being managed by another ironic-conductor.","commit_id":"0a1b856b2fa6517cd91520f421ef89f83c5d06cb"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"34d372a76b899ed5b2c297db50a6d3e4d9e4eaa0","unresolved":false,"context_lines":[{"line_number":397,"context_line":"* ``baremetal.node.console_restore.error``"},{"line_number":398,"context_line":""},{"line_number":399,"context_line":"``console_set`` action is used when start or stop console is initiated via API"},{"line_number":400,"context_line":"request, ``console_restore`` action is used when ``console_enabled`` flag is"},{"line_number":401,"context_line":"already enabled in the DB for node and console restart via driver is required"},{"line_number":402,"context_line":"(due to dead or restarted ironic-conductor process). \"start\" and \"end\""},{"line_number":403,"context_line":"notifications have INFO level, \"error\" has ERROR. Example of node console"},{"line_number":404,"context_line":"notification::"},{"line_number":405,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7a77a97e_c5858b07","line":402,"range":{"start_line":400,"start_character":7,"end_line":402,"end_character":51},"in_reply_to":"7a77a97e_aeac20a1","updated":"2016-11-17 15:50:00.000000000","message":"Done, thanks.","commit_id":"0a1b856b2fa6517cd91520f421ef89f83c5d06cb"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"1890bddbde07f7f61e6828ed0ec4eba6d8a8e47b","unresolved":false,"context_lines":[{"line_number":439,"context_line":"            \"uuid\": \"1be26c0b-03f2-4d2e-ae87-c02d7f33c123\","},{"line_number":440,"context_line":"        }"},{"line_number":441,"context_line":"    },"},{"line_number":442,"context_line":"    \"event_type\":\"baremetal.node.console_set.start\","},{"line_number":443,"context_line":"    \"publisher_id\":\"ironic-conductor.hostname01\""},{"line_number":444,"context_line":"   }"},{"line_number":445,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7a77a97e_6ed4c81f","line":442,"updated":"2016-11-16 17:43:20.000000000","message":"I\u0027d be interested in seeing a .end notification, too.\n\nDo you think it\u0027s useful to include console_info, as well? https://github.com/openstack/ironic/blob/5603a215b726ca465eed2867d830821bb24b1a72/doc/source/deploy/console.rst#node-web-console\n\nI know that\u0027s not in the spec, but it might be nice to have if that\u0027s information that doesn\u0027t need special security considerations.","commit_id":"0a1b856b2fa6517cd91520f421ef89f83c5d06cb"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"34d372a76b899ed5b2c297db50a6d3e4d9e4eaa0","unresolved":false,"context_lines":[{"line_number":439,"context_line":"            \"uuid\": \"1be26c0b-03f2-4d2e-ae87-c02d7f33c123\","},{"line_number":440,"context_line":"        }"},{"line_number":441,"context_line":"    },"},{"line_number":442,"context_line":"    \"event_type\":\"baremetal.node.console_set.start\","},{"line_number":443,"context_line":"    \"publisher_id\":\"ironic-conductor.hostname01\""},{"line_number":444,"context_line":"   }"},{"line_number":445,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7a77a97e_659757ec","line":442,"in_reply_to":"7a77a97e_6ed4c81f","updated":"2016-11-17 15:50:00.000000000","message":"1) I changed this example to .end. 2) Interested idea, but I\u0027m not sure about because a) it\u0027s not field of \"node\" api document b) this info is driver-specific and some implementation can return credential-like field.","commit_id":"0a1b856b2fa6517cd91520f421ef89f83c5d06cb"}],"ironic/conductor/base_manager.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"80bf613d5108da7e834032563a13e90d07742631","unresolved":false,"context_lines":[{"line_number":390,"context_line":"                                  {\u0027node\u0027: node_uuid})"},{"line_number":391,"context_line":"                        notify_utils.emit_console_notification("},{"line_number":392,"context_line":"                            task, \u0027console_restore\u0027,"},{"line_number":393,"context_line":"                            obj_fields.NotificationStatus.START)"},{"line_number":394,"context_line":"                        task.driver.console.start_console(task)"},{"line_number":395,"context_line":"                        LOG.info(_LI(\u0027Successfully started console of node \u0027"},{"line_number":396,"context_line":"                                     \u0027%(node)s\u0027), {\u0027node\u0027: node_uuid})"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a6eadb0_55b6f13d","line":393,"updated":"2016-12-19 19:52:49.000000000","message":"just a nit. I was wondering if it might be better to do this before the try (L388). In case this call causes an exception to be raised.","commit_id":"76336330d36dd9b61932569d0d7e3dab134c7b9a"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"123cbcbe4dbfa31bd003ee839146bd81cf30ef55","unresolved":false,"context_lines":[{"line_number":390,"context_line":"                                  {\u0027node\u0027: node_uuid})"},{"line_number":391,"context_line":"                        notify_utils.emit_console_notification("},{"line_number":392,"context_line":"                            task, \u0027console_restore\u0027,"},{"line_number":393,"context_line":"                            obj_fields.NotificationStatus.START)"},{"line_number":394,"context_line":"                        task.driver.console.start_console(task)"},{"line_number":395,"context_line":"                        LOG.info(_LI(\u0027Successfully started console of node \u0027"},{"line_number":396,"context_line":"                                     \u0027%(node)s\u0027), {\u0027node\u0027: node_uuid})"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a6eadb0_6ddb0f1c","line":393,"in_reply_to":"1a6eadb0_55b6f13d","updated":"2016-12-20 09:17:14.000000000","message":"Done","commit_id":"76336330d36dd9b61932569d0d7e3dab134c7b9a"}],"ironic/conductor/manager.py":[{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"321bea626638cea8336e958e6957a02547731d54","unresolved":false,"context_lines":[{"line_number":1650,"context_line":"        else:"},{"line_number":1651,"context_line":"            node.console_enabled \u003d enabled"},{"line_number":1652,"context_line":"            node.last_error \u003d None"},{"line_number":1653,"context_line":"            node.save()"},{"line_number":1654,"context_line":"            notify_utils.emit_console_set_notification("},{"line_number":1655,"context_line":"                task, fields.NotificationStatus.END)"},{"line_number":1656,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a77a97e_b2b03bdf","line":1653,"updated":"2016-11-15 19:23:32.000000000","message":"Why move this out of a finally? Seems unrelated...","commit_id":"22f9b8ace934111be7564dc6042dd5b261a7a45e"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"ebe57208671246af19a649666abac89ce19920a8","unresolved":false,"context_lines":[{"line_number":1650,"context_line":"        else:"},{"line_number":1651,"context_line":"            node.console_enabled \u003d enabled"},{"line_number":1652,"context_line":"            node.last_error \u003d None"},{"line_number":1653,"context_line":"            node.save()"},{"line_number":1654,"context_line":"            notify_utils.emit_console_set_notification("},{"line_number":1655,"context_line":"                task, fields.NotificationStatus.END)"},{"line_number":1656,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a77a97e_f3dc43e6","line":1653,"in_reply_to":"7a77a97e_b2b03bdf","updated":"2016-11-16 17:20:26.000000000","message":"Notifications emitting placed after node.save() for both error/no error cases, DB will be updated before notifications sending.","commit_id":"22f9b8ace934111be7564dc6042dd5b261a7a45e"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"59f29b2942ecf83aa4e4f2bad45402308a511b8f","unresolved":false,"context_lines":[{"line_number":1322,"context_line":"                notify_utils.emit_console_notification("},{"line_number":1323,"context_line":"                    task, \u0027console_restore\u0027, fields.NotificationStatus.ERROR)"},{"line_number":1324,"context_line":"            else:"},{"line_number":1325,"context_line":"                notify_utils.emit_console_notification("},{"line_number":1326,"context_line":"                    task, \u0027console_restore\u0027, fields.NotificationStatus.END)"},{"line_number":1327,"context_line":"        # NOTE(lucasagomes): Set the ID of the new conductor managing"},{"line_number":1328,"context_line":"        #                    this node"},{"line_number":1329,"context_line":"        task.node.conductor_affinity \u003d self.conductor.id"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a74a57a_581974d6","line":1326,"range":{"start_line":1325,"start_character":16,"end_line":1326,"end_character":75},"updated":"2016-11-25 18:02:07.000000000","message":"nit - can be moved right after L1312","commit_id":"045eca604cf72ffc554b70b51c9d61c6ffe3115e"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"59f29b2942ecf83aa4e4f2bad45402308a511b8f","unresolved":false,"context_lines":[{"line_number":1498,"context_line":"                    notify_utils.emit_console_notification("},{"line_number":1499,"context_line":"                        task, \u0027console_set\u0027, fields.NotificationStatus.ERROR)"},{"line_number":1500,"context_line":"                else:"},{"line_number":1501,"context_line":"                    node.console_enabled \u003d False"},{"line_number":1502,"context_line":"                    notify_utils.emit_console_notification("},{"line_number":1503,"context_line":"                        task, \u0027console_set\u0027, fields.NotificationStatus.END)"},{"line_number":1504,"context_line":"            node.destroy()"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a74a57a_588094c0","line":1501,"updated":"2016-11-25 18:02:07.000000000","message":"ditto","commit_id":"045eca604cf72ffc554b70b51c9d61c6ffe3115e"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"80bf613d5108da7e834032563a13e90d07742631","unresolved":false,"context_lines":[{"line_number":1351,"context_line":"                task.node.last_error \u003d msg"},{"line_number":1352,"context_line":"                task.node.console_enabled \u003d False"},{"line_number":1353,"context_line":"                notify_utils.emit_console_notification("},{"line_number":1354,"context_line":"                    task, \u0027console_restore\u0027, fields.NotificationStatus.ERROR)"},{"line_number":1355,"context_line":"            else:"},{"line_number":1356,"context_line":"                notify_utils.emit_console_notification("},{"line_number":1357,"context_line":"                    task, \u0027console_restore\u0027, fields.NotificationStatus.END)"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a6eadb0_f5f8ddc6","line":1354,"updated":"2016-12-19 19:52:49.000000000","message":"just to confirm. task.node.save() isn\u0027t done until below. Does this need the node to be saved, or will it use task.node\u0027s contents?","commit_id":"76336330d36dd9b61932569d0d7e3dab134c7b9a"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"123cbcbe4dbfa31bd003ee839146bd81cf30ef55","unresolved":false,"context_lines":[{"line_number":1351,"context_line":"                task.node.last_error \u003d msg"},{"line_number":1352,"context_line":"                task.node.console_enabled \u003d False"},{"line_number":1353,"context_line":"                notify_utils.emit_console_notification("},{"line_number":1354,"context_line":"                    task, \u0027console_restore\u0027, fields.NotificationStatus.ERROR)"},{"line_number":1355,"context_line":"            else:"},{"line_number":1356,"context_line":"                notify_utils.emit_console_notification("},{"line_number":1357,"context_line":"                    task, \u0027console_restore\u0027, fields.NotificationStatus.END)"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a6eadb0_b3874611","line":1354,"in_reply_to":"1a6eadb0_f5f8ddc6","updated":"2016-12-20 09:17:14.000000000","message":"Done","commit_id":"76336330d36dd9b61932569d0d7e3dab134c7b9a"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"80bf613d5108da7e834032563a13e90d07742631","unresolved":false,"context_lines":[{"line_number":1716,"context_line":"        \"\"\"Internal method to set console mode on a node.\"\"\""},{"line_number":1717,"context_line":"        node \u003d task.node"},{"line_number":1718,"context_line":"        notify_utils.emit_console_notification("},{"line_number":1719,"context_line":"            task, \u0027console_set\u0027, fields.NotificationStatus.START)"},{"line_number":1720,"context_line":"        try:"},{"line_number":1721,"context_line":"            if enabled:"},{"line_number":1722,"context_line":"                task.driver.console.start_console(task)"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a6eadb0_55aa7171","line":1719,"updated":"2016-12-19 19:52:49.000000000","message":"how do you know, when you get this notification, what the console setting is going to be?\n\nI looked at power set [1], and it has added a \u0027to_power\u0027 to the notification payload.\n\n[1] http://docs.openstack.org/developer/ironic/deploy/notifications.html#baremetal-node-power-set","commit_id":"76336330d36dd9b61932569d0d7e3dab134c7b9a"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"123cbcbe4dbfa31bd003ee839146bd81cf30ef55","unresolved":false,"context_lines":[{"line_number":1716,"context_line":"        \"\"\"Internal method to set console mode on a node.\"\"\""},{"line_number":1717,"context_line":"        node \u003d task.node"},{"line_number":1718,"context_line":"        notify_utils.emit_console_notification("},{"line_number":1719,"context_line":"            task, \u0027console_set\u0027, fields.NotificationStatus.START)"},{"line_number":1720,"context_line":"        try:"},{"line_number":1721,"context_line":"            if enabled:"},{"line_number":1722,"context_line":"                task.driver.console.start_console(task)"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a6eadb0_2de75713","line":1719,"in_reply_to":"1a6eadb0_55aa7171","updated":"2016-12-20 09:17:14.000000000","message":"\"console_enabled\" field is a boolean value, included in payload. If we emit START with False goal is True, and vice versa. \"to_console\" will be only not(console_enabled) for START and ERROR and console_enabled for END.","commit_id":"76336330d36dd9b61932569d0d7e3dab134c7b9a"}],"ironic/conductor/notification_utils.py":[{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"1890bddbde07f7f61e6828ed0ec4eba6d8a8e47b","unresolved":false,"context_lines":[{"line_number":154,"context_line":"    )"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"def emit_console_set_notification(task, action, status):"},{"line_number":158,"context_line":"    \"\"\"Helper for conductor sending a set console state notification."},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    :param task: a TaskManager instance."}],"source_content_type":"text/x-python","patch_set":2,"id":"7a77a97e_8e676424","line":157,"updated":"2016-11-16 17:43:20.000000000","message":"This might be better if it was named \"emit_console_notification\", since you emit both console_set and console_restore notifications using this function","commit_id":"0a1b856b2fa6517cd91520f421ef89f83c5d06cb"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"34d372a76b899ed5b2c297db50a6d3e4d9e4eaa0","unresolved":false,"context_lines":[{"line_number":154,"context_line":"    )"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"def emit_console_set_notification(task, action, status):"},{"line_number":158,"context_line":"    \"\"\"Helper for conductor sending a set console state notification."},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    :param task: a TaskManager instance."}],"source_content_type":"text/x-python","patch_set":2,"id":"7a77a97e_80c1c156","line":157,"in_reply_to":"7a77a97e_8e676424","updated":"2016-11-17 15:50:00.000000000","message":"Makes sense, done.","commit_id":"0a1b856b2fa6517cd91520f421ef89f83c5d06cb"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"1890bddbde07f7f61e6828ed0ec4eba6d8a8e47b","unresolved":false,"context_lines":[{"line_number":158,"context_line":"    \"\"\"Helper for conductor sending a set console state notification."},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    :param task: a TaskManager instance."},{"line_number":161,"context_line":"    :param action: Action string to go in the EventType."},{"line_number":162,"context_line":"    :param status: One of `ironic.objects.fields.NotificationStatus.START`,"},{"line_number":163,"context_line":"                   END or ERROR."},{"line_number":164,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a77a97e_ce023c6f","line":161,"updated":"2016-11-16 17:43:20.000000000","message":"You can also add \"Must be either \u0027console_set\u0027 or \u0027console_restore\u0027.\"","commit_id":"0a1b856b2fa6517cd91520f421ef89f83c5d06cb"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"34d372a76b899ed5b2c297db50a6d3e4d9e4eaa0","unresolved":false,"context_lines":[{"line_number":158,"context_line":"    \"\"\"Helper for conductor sending a set console state notification."},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    :param task: a TaskManager instance."},{"line_number":161,"context_line":"    :param action: Action string to go in the EventType."},{"line_number":162,"context_line":"    :param status: One of `ironic.objects.fields.NotificationStatus.START`,"},{"line_number":163,"context_line":"                   END or ERROR."},{"line_number":164,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a77a97e_a0cf9d27","line":161,"in_reply_to":"7a77a97e_ce023c6f","updated":"2016-11-17 15:50:00.000000000","message":"Done","commit_id":"0a1b856b2fa6517cd91520f421ef89f83c5d06cb"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"59f29b2942ecf83aa4e4f2bad45402308a511b8f","unresolved":false,"context_lines":[{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    :param task: a TaskManager instance."},{"line_number":161,"context_line":"    :param action: Action string to go in the EventType. Must be either"},{"line_number":162,"context_line":"                   \u0027console_set\u0027 or \u0027console_restore."},{"line_number":163,"context_line":"    :param status: One of `ironic.objects.fields.NotificationStatus.START`,"},{"line_number":164,"context_line":"                   END or ERROR."},{"line_number":165,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":5,"id":"5a74a57a_38c91827","line":162,"range":{"start_line":162,"start_character":37,"end_line":162,"end_character":52},"updated":"2016-11-25 18:02:07.000000000","message":"missing closing quote.","commit_id":"045eca604cf72ffc554b70b51c9d61c6ffe3115e"},{"author":{"_account_id":8125,"name":"Michael Davies","email":"michael@the-davies.net","username":"mrda"},"change_message_id":"f57bf230a1db5f214f4fdebed7e2fa601251bf36","unresolved":false,"context_lines":[{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    :param task: a TaskManager instance."},{"line_number":161,"context_line":"    :param action: Action string to go in the EventType. Must be either"},{"line_number":162,"context_line":"                   \u0027console_set\u0027 or \u0027console_restore."},{"line_number":163,"context_line":"    :param status: One of `ironic.objects.fields.NotificationStatus.START`,"},{"line_number":164,"context_line":"                   END or ERROR."},{"line_number":165,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":5,"id":"5a74a57a_1dcd17b7","line":162,"range":{"start_line":162,"start_character":37,"end_line":162,"end_character":52},"in_reply_to":"5a74a57a_38c91827","updated":"2016-11-28 00:47:27.000000000","message":"Since this is a docstring, I\u0027d be great to see this fixed.","commit_id":"045eca604cf72ffc554b70b51c9d61c6ffe3115e"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"80bf613d5108da7e834032563a13e90d07742631","unresolved":false,"context_lines":[{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    :param task: a TaskManager instance."},{"line_number":161,"context_line":"    :param action: Action string to go in the EventType. Must be either"},{"line_number":162,"context_line":"                   \u0027console_set\u0027 or \u0027console_restore."},{"line_number":163,"context_line":"    :param status: One of `ironic.objects.fields.NotificationStatus.START`,"},{"line_number":164,"context_line":"                   END or ERROR."},{"line_number":165,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":15,"id":"1a6eadb0_d51041ab","line":162,"updated":"2016-12-19 19:52:49.000000000","message":"nit, s/\u0027console_restore/\u0027console_restore\u0027/","commit_id":"76336330d36dd9b61932569d0d7e3dab134c7b9a"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"123cbcbe4dbfa31bd003ee839146bd81cf30ef55","unresolved":false,"context_lines":[{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    :param task: a TaskManager instance."},{"line_number":161,"context_line":"    :param action: Action string to go in the EventType. Must be either"},{"line_number":162,"context_line":"                   \u0027console_set\u0027 or \u0027console_restore."},{"line_number":163,"context_line":"    :param status: One of `ironic.objects.fields.NotificationStatus.START`,"},{"line_number":164,"context_line":"                   END or ERROR."},{"line_number":165,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":15,"id":"1a6eadb0_09bc506b","line":162,"in_reply_to":"1a6eadb0_d51041ab","updated":"2016-12-20 09:17:14.000000000","message":"Done","commit_id":"76336330d36dd9b61932569d0d7e3dab134c7b9a"}],"ironic/tests/unit/conductor/test_base_manager.py":[{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"5a87e3e098f25896bf29dfe04ffbeb0c41a1b257","unresolved":false,"context_lines":[{"line_number":250,"context_line":"                 mock.call(mock.ANY, \u0027console_restore\u0027,"},{"line_number":251,"context_line":"                           fields.NotificationStatus.END)])"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"    def test__start_consoles_no_console_enabled(self):"},{"line_number":254,"context_line":"        obj_utils.create_test_node(self.context,"},{"line_number":255,"context_line":"                                   driver\u003d\u0027fake\u0027,"},{"line_number":256,"context_line":"                                   console_enabled\u003dFalse)"}],"source_content_type":"text/x-python","patch_set":16,"id":"1a6eadb0_cb7154aa","line":253,"updated":"2016-12-20 19:33:07.000000000","message":"It could be good to update this test to have a negative test for notifications (assert that no console notifications were sent)","commit_id":"e36d7d28872feff1cb4e44ccb42047905231061a"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"a50e8ee1aaabd32d3701afe689feea99fd9533d9","unresolved":false,"context_lines":[{"line_number":250,"context_line":"                 mock.call(mock.ANY, \u0027console_restore\u0027,"},{"line_number":251,"context_line":"                           fields.NotificationStatus.END)])"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"    def test__start_consoles_no_console_enabled(self):"},{"line_number":254,"context_line":"        obj_utils.create_test_node(self.context,"},{"line_number":255,"context_line":"                                   driver\u003d\u0027fake\u0027,"},{"line_number":256,"context_line":"                                   console_enabled\u003dFalse)"}],"source_content_type":"text/x-python","patch_set":16,"id":"1a6eadb0_9ebccabc","line":253,"in_reply_to":"1a6eadb0_cb7154aa","updated":"2016-12-21 13:49:42.000000000","message":"Done","commit_id":"e36d7d28872feff1cb4e44ccb42047905231061a"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"e56ce9b75cc0f19759f1dc7ddbe6d9c21231cfc0","unresolved":false,"context_lines":[{"line_number":294,"context_line":"            test_node.refresh()"},{"line_number":295,"context_line":"            self.assertTrue(test_node.console_enabled)"},{"line_number":296,"context_line":"            self.assertIsNone(test_node.last_error)"},{"line_number":297,"context_line":"            self.assertTrue(log_mock.warning.called)"},{"line_number":298,"context_line":""},{"line_number":299,"context_line":"    @mock.patch.object(base_manager, \u0027LOG\u0027)"},{"line_number":300,"context_line":"    def test__start_consoles_node_not_found(self, log_mock):"}],"source_content_type":"text/x-python","patch_set":16,"id":"1a6eadb0_ab15eb49","line":297,"updated":"2016-12-20 21:24:59.000000000","message":"for this test and the one below, you could show that notifications were not emitted.","commit_id":"e36d7d28872feff1cb4e44ccb42047905231061a"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"a50e8ee1aaabd32d3701afe689feea99fd9533d9","unresolved":false,"context_lines":[{"line_number":294,"context_line":"            test_node.refresh()"},{"line_number":295,"context_line":"            self.assertTrue(test_node.console_enabled)"},{"line_number":296,"context_line":"            self.assertIsNone(test_node.last_error)"},{"line_number":297,"context_line":"            self.assertTrue(log_mock.warning.called)"},{"line_number":298,"context_line":""},{"line_number":299,"context_line":"    @mock.patch.object(base_manager, \u0027LOG\u0027)"},{"line_number":300,"context_line":"    def test__start_consoles_node_not_found(self, log_mock):"}],"source_content_type":"text/x-python","patch_set":16,"id":"1a6eadb0_3ef01691","line":297,"in_reply_to":"1a6eadb0_ab15eb49","updated":"2016-12-21 13:49:42.000000000","message":"Done","commit_id":"e36d7d28872feff1cb4e44ccb42047905231061a"}],"ironic/tests/unit/conductor/test_manager.py":[{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"1890bddbde07f7f61e6828ed0ec4eba6d8a8e47b","unresolved":false,"context_lines":[{"line_number":2631,"context_line":"             mock.call(mock.ANY, \u0027console_set\u0027,"},{"line_number":2632,"context_line":"                       obj_fields.NotificationStatus.END)])"},{"line_number":2633,"context_line":""},{"line_number":2634,"context_line":"    def test_set_console_mode_disabled(self):"},{"line_number":2635,"context_line":"        node \u003d obj_utils.create_test_node(self.context, driver\u003d\u0027fake\u0027)"},{"line_number":2636,"context_line":"        self._start_service()"},{"line_number":2637,"context_line":"        self.service.set_console_mode(self.context, node.uuid, False)"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a77a97e_4ee2aca0","line":2634,"updated":"2016-11-16 17:43:20.000000000","message":"Can you also test that start/end notifications are emitted here?","commit_id":"0a1b856b2fa6517cd91520f421ef89f83c5d06cb"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"34d372a76b899ed5b2c297db50a6d3e4d9e4eaa0","unresolved":false,"context_lines":[{"line_number":2631,"context_line":"             mock.call(mock.ANY, \u0027console_set\u0027,"},{"line_number":2632,"context_line":"                       obj_fields.NotificationStatus.END)])"},{"line_number":2633,"context_line":""},{"line_number":2634,"context_line":"    def test_set_console_mode_disabled(self):"},{"line_number":2635,"context_line":"        node \u003d obj_utils.create_test_node(self.context, driver\u003d\u0027fake\u0027)"},{"line_number":2636,"context_line":"        self._start_service()"},{"line_number":2637,"context_line":"        self.service.set_console_mode(self.context, node.uuid, False)"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a77a97e_6033c514","line":2634,"in_reply_to":"7a77a97e_4ee2aca0","updated":"2016-11-17 15:50:00.000000000","message":"Done, and this test fixed.","commit_id":"0a1b856b2fa6517cd91520f421ef89f83c5d06cb"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"e56ce9b75cc0f19759f1dc7ddbe6d9c21231cfc0","unresolved":false,"context_lines":[{"line_number":2741,"context_line":"            self._stop_service()"},{"line_number":2742,"context_line":"            mock_sc.assert_called_once_with(mock.ANY)"},{"line_number":2743,"context_line":"            node.refresh()"},{"line_number":2744,"context_line":"            self.assertIsNotNone(node.last_error)"},{"line_number":2745,"context_line":""},{"line_number":2746,"context_line":"    def test_enable_console_already_enabled(self):"},{"line_number":2747,"context_line":"        node \u003d obj_utils.create_test_node(self.context, driver\u003d\u0027fake\u0027,"}],"source_content_type":"text/x-python","patch_set":16,"id":"1a6eadb0_8b9f4f02","line":2744,"updated":"2016-12-20 21:24:59.000000000","message":"do we want to show that emit_console_notification was called for .start \u0026 .error?","commit_id":"e36d7d28872feff1cb4e44ccb42047905231061a"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"a50e8ee1aaabd32d3701afe689feea99fd9533d9","unresolved":false,"context_lines":[{"line_number":2741,"context_line":"            self._stop_service()"},{"line_number":2742,"context_line":"            mock_sc.assert_called_once_with(mock.ANY)"},{"line_number":2743,"context_line":"            node.refresh()"},{"line_number":2744,"context_line":"            self.assertIsNotNone(node.last_error)"},{"line_number":2745,"context_line":""},{"line_number":2746,"context_line":"    def test_enable_console_already_enabled(self):"},{"line_number":2747,"context_line":"        node \u003d obj_utils.create_test_node(self.context, driver\u003d\u0027fake\u0027,"}],"source_content_type":"text/x-python","patch_set":16,"id":"1a6eadb0_9e504a34","line":2744,"in_reply_to":"1a6eadb0_8b9f4f02","updated":"2016-12-21 13:49:42.000000000","message":"Done","commit_id":"e36d7d28872feff1cb4e44ccb42047905231061a"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"e56ce9b75cc0f19759f1dc7ddbe6d9c21231cfc0","unresolved":false,"context_lines":[{"line_number":2751,"context_line":"                               \u0027start_console\u0027) as mock_sc:"},{"line_number":2752,"context_line":"            self.service.set_console_mode(self.context, node.uuid, True)"},{"line_number":2753,"context_line":"            self._stop_service()"},{"line_number":2754,"context_line":"            self.assertFalse(mock_sc.called)"},{"line_number":2755,"context_line":""},{"line_number":2756,"context_line":"    def test_disable_console_already_disabled(self):"},{"line_number":2757,"context_line":"        node \u003d obj_utils.create_test_node(self.context, driver\u003d\u0027fake\u0027,"}],"source_content_type":"text/x-python","patch_set":16,"id":"1a6eadb0_cb8947cc","line":2754,"updated":"2016-12-20 21:24:59.000000000","message":"could show that emit_console_notification was not called at all","commit_id":"e36d7d28872feff1cb4e44ccb42047905231061a"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"a50e8ee1aaabd32d3701afe689feea99fd9533d9","unresolved":false,"context_lines":[{"line_number":2751,"context_line":"                               \u0027start_console\u0027) as mock_sc:"},{"line_number":2752,"context_line":"            self.service.set_console_mode(self.context, node.uuid, True)"},{"line_number":2753,"context_line":"            self._stop_service()"},{"line_number":2754,"context_line":"            self.assertFalse(mock_sc.called)"},{"line_number":2755,"context_line":""},{"line_number":2756,"context_line":"    def test_disable_console_already_disabled(self):"},{"line_number":2757,"context_line":"        node \u003d obj_utils.create_test_node(self.context, driver\u003d\u0027fake\u0027,"}],"source_content_type":"text/x-python","patch_set":16,"id":"1a6eadb0_3e049616","line":2754,"in_reply_to":"1a6eadb0_cb8947cc","updated":"2016-12-21 13:49:42.000000000","message":"Done","commit_id":"e36d7d28872feff1cb4e44ccb42047905231061a"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"e56ce9b75cc0f19759f1dc7ddbe6d9c21231cfc0","unresolved":false,"context_lines":[{"line_number":2761,"context_line":"                               \u0027stop_console\u0027) as mock_sc:"},{"line_number":2762,"context_line":"            self.service.set_console_mode(self.context, node.uuid, False)"},{"line_number":2763,"context_line":"            self._stop_service()"},{"line_number":2764,"context_line":"            self.assertFalse(mock_sc.called)"},{"line_number":2765,"context_line":""},{"line_number":2766,"context_line":"    def test_get_console(self):"},{"line_number":2767,"context_line":"        node \u003d obj_utils.create_test_node(self.context, driver\u003d\u0027fake\u0027,"}],"source_content_type":"text/x-python","patch_set":16,"id":"1a6eadb0_cbb0678e","line":2764,"updated":"2016-12-20 21:24:59.000000000","message":"ditto, although it is probably sufficient to do it for the above test.","commit_id":"e36d7d28872feff1cb4e44ccb42047905231061a"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"a50e8ee1aaabd32d3701afe689feea99fd9533d9","unresolved":false,"context_lines":[{"line_number":2761,"context_line":"                               \u0027stop_console\u0027) as mock_sc:"},{"line_number":2762,"context_line":"            self.service.set_console_mode(self.context, node.uuid, False)"},{"line_number":2763,"context_line":"            self._stop_service()"},{"line_number":2764,"context_line":"            self.assertFalse(mock_sc.called)"},{"line_number":2765,"context_line":""},{"line_number":2766,"context_line":"    def test_get_console(self):"},{"line_number":2767,"context_line":"        node \u003d obj_utils.create_test_node(self.context, driver\u003d\u0027fake\u0027,"}],"source_content_type":"text/x-python","patch_set":16,"id":"1a6eadb0_5e015205","line":2764,"in_reply_to":"1a6eadb0_cbb0678e","updated":"2016-12-21 13:49:42.000000000","message":"Done","commit_id":"e36d7d28872feff1cb4e44ccb42047905231061a"}],"ironic/tests/unit/objects/test_objects.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"1497ef0720f47ffc634ca92c67450e6ed9c97dd4","unresolved":false,"context_lines":[{"line_number":428,"context_line":"    \u0027NodeCRUDNotification\u0027: \u00271.0-59acc533c11d306f149846f922739c15\u0027,"},{"line_number":429,"context_line":"    \u0027NodeCRUDPayload\u0027: \u00271.0-37bb4cdd2c84b59fd6ad0547dbf713a0\u0027,"},{"line_number":430,"context_line":"    \u0027PortCRUDNotification\u0027: \u00271.0-59acc533c11d306f149846f922739c15\u0027,"},{"line_number":431,"context_line":""},{"line_number":432,"context_line":"    \u0027PortCRUDPayload\u0027: \u00271.0-88acd98c9b08b4c8810e77793152057b\u0027,"},{"line_number":433,"context_line":"    \u0027NodeMaintenanceNotification\u0027: \u00271.0-59acc533c11d306f149846f922739c15\u0027,"},{"line_number":434,"context_line":"    \u0027NodeConsoleNotification\u0027: \u00271.0-59acc533c11d306f149846f922739c15\u0027"}],"source_content_type":"text/x-python","patch_set":17,"id":"da4df55a_74f9864d","line":431,"updated":"2016-12-21 19:59:28.000000000","message":"did you accidentally add this blank line?","commit_id":"7cd4d1c4e187717d5f9fc4bff2c15d5f3c58054d"}]}
