)]}'
{"doc/source/deploy/notifications.rst":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"fba0a8bfe74fa53e91488c9e8e5b196e6e256c41","unresolved":false,"context_lines":[{"line_number":209,"context_line":"------------------------------"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"These notifications are emitted from API service when maintenance mode is"},{"line_number":212,"context_line":"changed via API service. Node maintenance notifications list:"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"* ``baremetal.node.maintenance_set.start``"},{"line_number":215,"context_line":"* ``baremetal.node.maintenance_set.end``"}],"source_content_type":"text/x-rst","patch_set":17,"id":"1a6eadb0_92c09fe2","line":212,"updated":"2016-12-19 19:32:59.000000000","message":"nit, if you do another revision (no big deal).\n\n\u0027List of maintenance notifications for a node:\u0027","commit_id":"59a7a46e76075f1b50ffb2747c4a7eeaab228ca3"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"45a0177beaca2d9a25b836de3c361d7d3c9ee3aa","unresolved":false,"context_lines":[{"line_number":209,"context_line":"------------------------------"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"These notifications are emitted from API service when maintenance mode is"},{"line_number":212,"context_line":"changed via API service. Node maintenance notifications list:"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"* ``baremetal.node.maintenance_set.start``"},{"line_number":215,"context_line":"* ``baremetal.node.maintenance_set.end``"}],"source_content_type":"text/x-rst","patch_set":17,"id":"1a6eadb0_29610ca9","line":212,"in_reply_to":"1a6eadb0_92c09fe2","updated":"2016-12-20 08:04:30.000000000","message":"Done","commit_id":"59a7a46e76075f1b50ffb2747c4a7eeaab228ca3"}],"ironic/api/controllers/v1/node.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"329b77507a0e0364b8544af73156948946183f7e","unresolved":false,"context_lines":[{"line_number":1021,"context_line":"            new_node \u003d pecan.request.rpcapi.update_node(pecan.request.context,"},{"line_number":1022,"context_line":"                                                        rpc_node, topic\u003dtopic)"},{"line_number":1023,"context_line":"        notify.emit_end_notification(pecan.request.context, new_node,"},{"line_number":1024,"context_line":"                                     \u0027maintenance_set\u0027)"},{"line_number":1025,"context_line":""},{"line_number":1026,"context_line":"    @METRICS.timer(\u0027NodeMaintenanceController.put\u0027)"},{"line_number":1027,"context_line":"    @expose.expose(None, types.uuid_or_name, wtypes.text,"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a6eadb0_2f367952","line":1024,"updated":"2016-12-13 19:03:30.000000000","message":"we\u0027ve done this before, and i guess this is ok, but my preference is for this string to be in one place only (to avoid eg typos) but that\u0027s just me.","commit_id":"f2e3695c161de6958169c56eb7215ee5d9efc82a"}],"ironic/api/controllers/v1/notification_utils.py":[{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"d242f395851b89e2c08c74550072c632efeb1e2f","unresolved":false,"context_lines":[{"line_number":135,"context_line":"    :param action: Action string to go in the EventType."},{"line_number":136,"context_line":"    :param **kwargs: kwargs to use when creating the notification payload."},{"line_number":137,"context_line":"    \"\"\""},{"line_number":138,"context_line":"    emit_api_crud_notification(obj, context, action,"},{"line_number":139,"context_line":"                               fields.NotificationLevel.INFO,"},{"line_number":140,"context_line":"                               fields.NotificationStatus.START,"},{"line_number":141,"context_line":"                               **kwargs)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a77a97e_794b23b1","line":138,"range":{"start_line":138,"start_character":4,"end_line":138,"end_character":30},"updated":"2016-11-14 18:46:03.000000000","message":"nit: it may be good to change this function name, since CRUD notifications are separate from what\u0027s contained in this patch","commit_id":"6c9887b52df5dd81eb27f6f2ccc6c15306ccb186"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"9b3d1d3a330c67d9b4cd01f984f4583845ee8470","unresolved":false,"context_lines":[{"line_number":135,"context_line":"    :param action: Action string to go in the EventType."},{"line_number":136,"context_line":"    :param **kwargs: kwargs to use when creating the notification payload."},{"line_number":137,"context_line":"    \"\"\""},{"line_number":138,"context_line":"    emit_api_crud_notification(obj, context, action,"},{"line_number":139,"context_line":"                               fields.NotificationLevel.INFO,"},{"line_number":140,"context_line":"                               fields.NotificationStatus.START,"},{"line_number":141,"context_line":"                               **kwargs)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a77a97e_d4a3f89c","line":138,"range":{"start_line":138,"start_character":4,"end_line":138,"end_character":30},"in_reply_to":"7a77a97e_794b23b1","updated":"2016-11-15 13:54:16.000000000","message":"Make sense, done.","commit_id":"6c9887b52df5dd81eb27f6f2ccc6c15306ccb186"},{"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":"65962c6b83368e33b431f638c8b45c991620973a","unresolved":false,"context_lines":[{"line_number":148,"context_line":"                                  fields.NotificationStatus.ERROR,"},{"line_number":149,"context_line":"                                  **kwargs)"},{"line_number":150,"context_line":"    # a new resource should be used for update"},{"line_number":151,"context_line":"    if action !\u003d \u0027update\u0027:"},{"line_number":152,"context_line":"        emit_api_notification(obj, context, action,"},{"line_number":153,"context_line":"                              fields.NotificationLevel.INFO,"},{"line_number":154,"context_line":"                              fields.NotificationStatus.END,"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a77a97e_b2991b71","line":151,"updated":"2016-11-15 19:21:49.000000000","message":"I\u0027m not sure I understand why this is changing?","commit_id":"705317d43c5558bb0f289b309e8bacd5ee3fc434"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"d403e9d566897bc527ee6b9b9fdf9c62c1d50e81","unresolved":false,"context_lines":[{"line_number":148,"context_line":"                                  fields.NotificationStatus.ERROR,"},{"line_number":149,"context_line":"                                  **kwargs)"},{"line_number":150,"context_line":"    # a new resource should be used for update"},{"line_number":151,"context_line":"    if action !\u003d \u0027update\u0027:"},{"line_number":152,"context_line":"        emit_api_notification(obj, context, action,"},{"line_number":153,"context_line":"                              fields.NotificationLevel.INFO,"},{"line_number":154,"context_line":"                              fields.NotificationStatus.END,"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a77a97e_657eb4af","line":151,"in_reply_to":"7a77a97e_20c5988d","updated":"2016-11-16 14:32:21.000000000","message":"Thanks Jay, Lucas. This can be improved because we use the same rpc method update_node() for update and set maintenance and returned node object from conductor can be used for create payload. destroy_node() does not return anything, and notification can be emitted at l152.","commit_id":"705317d43c5558bb0f289b309e8bacd5ee3fc434"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"2d87efe33668e11a7407bcdf0d9d2768e6c34f01","unresolved":false,"context_lines":[{"line_number":148,"context_line":"                                  fields.NotificationStatus.ERROR,"},{"line_number":149,"context_line":"                                  **kwargs)"},{"line_number":150,"context_line":"    # a new resource should be used for update"},{"line_number":151,"context_line":"    if action !\u003d \u0027update\u0027:"},{"line_number":152,"context_line":"        emit_api_notification(obj, context, action,"},{"line_number":153,"context_line":"                              fields.NotificationLevel.INFO,"},{"line_number":154,"context_line":"                              fields.NotificationStatus.END,"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a77a97e_20c5988d","line":151,"in_reply_to":"7a77a97e_b2991b71","updated":"2016-11-16 10:02:29.000000000","message":"It\u0027s because the action for setting maintaince is \"maintaince_set\" and not \"update\" (see node.py).\n\nBut, here\u0027s a question. Should setting maintenance be considered an update ? It kinda is...\n\nI\u0027m ok with both, just wondering if \"update\" would be more appropriated.","commit_id":"705317d43c5558bb0f289b309e8bacd5ee3fc434"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"329b77507a0e0364b8544af73156948946183f7e","unresolved":false,"context_lines":[{"line_number":70,"context_line":"                raise KeyError(_(\"Unsupported resource: %s\") % resource)"},{"line_number":71,"context_line":"            else:"},{"line_number":72,"context_line":"                notification_method \u003d CRUD_NOTIFICATIONS[resource]"},{"line_number":73,"context_line":"                payload_method \u003d CRUD_PAYLOADS[resource]"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"            notification_name \u003d notification_method.__name__"},{"line_number":76,"context_line":"            payload_name \u003d payload_method.__name__"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a6eadb0_cf7d05b3","line":73,"updated":"2016-12-13 19:03:30.000000000","message":"what do you think about modifying CRUD_NOTIFICATIONS \u0026 CRUD_PAYLOADS to be eg API_NOTIFICATIONS/PAYLOADS, and key on action or resource. If not there, then raise KeyError.\n\nCould even combine both to be one dict.","commit_id":"f2e3695c161de6958169c56eb7215ee5d9efc82a"}],"ironic/tests/unit/api/v1/test_nodes.py":[{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"d242f395851b89e2c08c74550072c632efeb1e2f","unresolved":false,"context_lines":[{"line_number":2980,"context_line":"                                     mock.call(mock.ANY, mock.ANY,"},{"line_number":2981,"context_line":"                                               \u0027maintenance_set\u0027,"},{"line_number":2982,"context_line":"                                     obj_fields.NotificationLevel.INFO,"},{"line_number":2983,"context_line":"                                     obj_fields.NotificationStatus.END)])"},{"line_number":2984,"context_line":""},{"line_number":2985,"context_line":"    @mock.patch.object(objects.Node, \u0027get_by_uuid\u0027)"},{"line_number":2986,"context_line":"    @mock.patch.object(rpcapi.ConductorAPI, \u0027update_node\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a77a97e_7c1a3170","line":2983,"updated":"2016-11-14 18:46:03.000000000","message":"nit: you may want to set the config to enable notifications, and also test that emit() was called.","commit_id":"6c9887b52df5dd81eb27f6f2ccc6c15306ccb186"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"9b3d1d3a330c67d9b4cd01f984f4583845ee8470","unresolved":false,"context_lines":[{"line_number":2980,"context_line":"                                     mock.call(mock.ANY, mock.ANY,"},{"line_number":2981,"context_line":"                                               \u0027maintenance_set\u0027,"},{"line_number":2982,"context_line":"                                     obj_fields.NotificationLevel.INFO,"},{"line_number":2983,"context_line":"                                     obj_fields.NotificationStatus.END)])"},{"line_number":2984,"context_line":""},{"line_number":2985,"context_line":"    @mock.patch.object(objects.Node, \u0027get_by_uuid\u0027)"},{"line_number":2986,"context_line":"    @mock.patch.object(rpcapi.ConductorAPI, \u0027update_node\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a77a97e_646d0f04","line":2983,"in_reply_to":"7a77a97e_7c1a3170","updated":"2016-11-15 13:54:16.000000000","message":"Added to test_notification_utils","commit_id":"6c9887b52df5dd81eb27f6f2ccc6c15306ccb186"}],"ironic/tests/unit/api/v1/test_notification_utils.py":[{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"d242f395851b89e2c08c74550072c632efeb1e2f","unresolved":false,"context_lines":[{"line_number":159,"context_line":"        event_type \u003d init_kwargs[\u0027event_type\u0027]"},{"line_number":160,"context_line":"        self.assertEqual(\u0027node\u0027, event_type.object)"},{"line_number":161,"context_line":"        self.assertEqual(node.uuid, payload.uuid)"},{"line_number":162,"context_line":"        self.assertEqual(True, payload.maintenance)"},{"line_number":163,"context_line":"        self.assertEqual(\u0027test reason\u0027, payload.maintenance_reason)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a77a97e_bc2a097d","line":162,"updated":"2016-11-14 18:46:03.000000000","message":"self.assertTrue(payload.maintenance)","commit_id":"6c9887b52df5dd81eb27f6f2ccc6c15306ccb186"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"adac9dbdf6f4c7bb1dedb28861d27758511d4656","unresolved":false,"context_lines":[{"line_number":159,"context_line":"        event_type \u003d init_kwargs[\u0027event_type\u0027]"},{"line_number":160,"context_line":"        self.assertEqual(\u0027node\u0027, event_type.object)"},{"line_number":161,"context_line":"        self.assertEqual(node.uuid, payload.uuid)"},{"line_number":162,"context_line":"        self.assertEqual(True, payload.maintenance)"},{"line_number":163,"context_line":"        self.assertEqual(\u0027test reason\u0027, payload.maintenance_reason)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a77a97e_f058f958","line":162,"in_reply_to":"7a77a97e_2195c9e3","updated":"2016-11-15 15:14:17.000000000","message":"Got it. Thanks","commit_id":"6c9887b52df5dd81eb27f6f2ccc6c15306ccb186"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"9b3d1d3a330c67d9b4cd01f984f4583845ee8470","unresolved":false,"context_lines":[{"line_number":159,"context_line":"        event_type \u003d init_kwargs[\u0027event_type\u0027]"},{"line_number":160,"context_line":"        self.assertEqual(\u0027node\u0027, event_type.object)"},{"line_number":161,"context_line":"        self.assertEqual(node.uuid, payload.uuid)"},{"line_number":162,"context_line":"        self.assertEqual(True, payload.maintenance)"},{"line_number":163,"context_line":"        self.assertEqual(\u0027test reason\u0027, payload.maintenance_reason)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a77a97e_2195c9e3","line":162,"in_reply_to":"7a77a97e_bc2a097d","updated":"2016-11-15 13:54:16.000000000","message":"This is not the same as assertTrue(). assertTrue(\u0027foo\u0027) do not fails for example.","commit_id":"6c9887b52df5dd81eb27f6f2ccc6c15306ccb186"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1f012bc1e5772f132562a683bcdea52f9281a03b","unresolved":false,"context_lines":[{"line_number":154,"context_line":"        event_type \u003d init_kwargs[\u0027event_type\u0027]"},{"line_number":155,"context_line":"        self.assertEqual(\u0027node\u0027, event_type.object)"},{"line_number":156,"context_line":"        self.assertEqual(node.uuid, payload.uuid)"},{"line_number":157,"context_line":"        self.assertEqual(True, payload.maintenance)"},{"line_number":158,"context_line":"        self.assertEqual(\u0027test reason\u0027, payload.maintenance_reason)"},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    @mock.patch.object(notification.NotificationBase, \u0027emit\u0027)"}],"source_content_type":"text/x-python","patch_set":7,"id":"5a74a57a_13927ef6","line":157,"range":{"start_line":157,"start_character":19,"end_line":157,"end_character":25},"updated":"2016-11-25 19:21:50.000000000","message":"nit: self.assertTrue would make a little more sense here.","commit_id":"bead7dbb16107e165b0601895fa1453150141bc6"}],"releasenotes/notes/node-maintenance-notifications-43c150efe41b8517.yaml":[{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"d242f395851b89e2c08c74550072c632efeb1e2f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Add notifications for node maitenance. Event types are"},{"line_number":4,"context_line":"    \"baremetal.node.maintenance_set.{start, end, error}\""},{"line_number":5,"context_line":"    For more details, see the developer documentation."}],"source_content_type":"text/x-yaml","patch_set":1,"id":"7a77a97e_5c3495dd","line":3,"range":{"start_line":3,"start_character":31,"end_line":3,"end_character":41},"updated":"2016-11-14 18:46:03.000000000","message":"s/maitenance/maintenance","commit_id":"6c9887b52df5dd81eb27f6f2ccc6c15306ccb186"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"9b3d1d3a330c67d9b4cd01f984f4583845ee8470","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Add notifications for node maitenance. Event types are"},{"line_number":4,"context_line":"    \"baremetal.node.maintenance_set.{start, end, error}\""},{"line_number":5,"context_line":"    For more details, see the developer documentation."}],"source_content_type":"text/x-yaml","patch_set":1,"id":"7a77a97e_211229b5","line":3,"range":{"start_line":3,"start_character":31,"end_line":3,"end_character":41},"in_reply_to":"7a77a97e_5c3495dd","updated":"2016-11-15 13:54:16.000000000","message":"Done","commit_id":"6c9887b52df5dd81eb27f6f2ccc6c15306ccb186"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"329b77507a0e0364b8544af73156948946183f7e","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":15,"id":"1a6eadb0_eaff0fff","line":6,"updated":"2016-12-13 19:03:30.000000000","message":"We could combine with the CRUD notifications. (I suspect jroll might do that at the end but would make it easier if we just updated that one.)","commit_id":"f2e3695c161de6958169c56eb7215ee5d9efc82a"}]}
