)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"f921a33fabc3c976d87ad8aae97de3c6be674e05","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Pavlo Shchelokovskyy \u003cshchelokovskyy@gmail.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2016-11-16 21:05:42 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add RPC API to get iPXE template and options"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch adds a new `get_ipxe_template` RPC method."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Depending on node state, it collects iPXE boot config template name and"},{"line_number":12,"context_line":"options to render it with from boot (and deploy) node\u0027s driver"},{"line_number":13,"context_line":"interfaces and returns them in the form of a dictionary."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I0981892f478a494abccc0d55fedb88f265777dde"},{"line_number":16,"context_line":"Partial-Bug: #1526275"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"7a77a97e_a5f7d6f3","line":13,"range":{"start_line":7,"start_character":0,"end_line":13,"end_character":56},"updated":"2016-11-16 20:26:14.000000000","message":"needs to be rewritten as now whole rendered config is returned (not template path and options)","commit_id":"f668e49f5afe1b238bec2c27d28776964ea69e00"}],"ironic/conductor/manager.py":[{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"f921a33fabc3c976d87ad8aae97de3c6be674e05","unresolved":false,"context_lines":[{"line_number":2305,"context_line":"        :returns: complete boot config rendered from template as a string"},{"line_number":2306,"context_line":"        \"\"\""},{"line_number":2307,"context_line":""},{"line_number":2308,"context_line":"        LOG.debug(\u0027RPC get_ipxe_config called for node %s\u0027 % node_id)"},{"line_number":2309,"context_line":"        lock_purpose \u003d \u0027generate ipxe boot config\u0027"},{"line_number":2310,"context_line":"        with task_manager.acquire(context, node_id, shared\u003dTrue,"},{"line_number":2311,"context_line":"                                  purpose\u003dlock_purpose) as task:"}],"source_content_type":"text/x-python","patch_set":5,"id":"7a77a97e_05924a9e","line":2308,"range":{"start_line":2308,"start_character":58,"end_line":2308,"end_character":61},"updated":"2016-11-16 20:26:14.000000000","message":"pep8 not happy","commit_id":"f668e49f5afe1b238bec2c27d28776964ea69e00"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"adf5b6068c0b4bab2c2a41e40ef81cea32aa89e1","unresolved":false,"context_lines":[{"line_number":2300,"context_line":"    def get_ipxe_config(self, context, node_id):"},{"line_number":2301,"context_line":"        \"\"\"Return iPXE boot config."},{"line_number":2302,"context_line":""},{"line_number":2303,"context_line":"        :param context: The context within which to perform the backport"},{"line_number":2304,"context_line":"        :param node_id: node id or uuid."},{"line_number":2305,"context_line":"        :returns: complete boot config rendered from template as a string"},{"line_number":2306,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":7,"id":"7a77a97e_e2339d11","line":2303,"range":{"start_line":2303,"start_character":64,"end_line":2303,"end_character":72},"updated":"2016-11-22 19:37:32.000000000","message":"?? copy-paste","commit_id":"04035eac30a5b97e5cf89b34d5902a8ad3a2c509"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"adf5b6068c0b4bab2c2a41e40ef81cea32aa89e1","unresolved":false,"context_lines":[{"line_number":2302,"context_line":""},{"line_number":2303,"context_line":"        :param context: The context within which to perform the backport"},{"line_number":2304,"context_line":"        :param node_id: node id or uuid."},{"line_number":2305,"context_line":"        :returns: complete boot config rendered from template as a string"},{"line_number":2306,"context_line":"        \"\"\""},{"line_number":2307,"context_line":""},{"line_number":2308,"context_line":"        LOG.debug(\u0027RPC get_ipxe_config called for node %s\u0027, node_id)"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a77a97e_22159548","line":2305,"range":{"start_line":2305,"start_character":39,"end_line":2305,"end_character":73},"updated":"2016-11-22 19:37:32.000000000","message":"ready to be served to node","commit_id":"04035eac30a5b97e5cf89b34d5902a8ad3a2c509"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"95959cdf8dac7c8af79c5cb540ccc8d3a1cccbdb","unresolved":false,"context_lines":[{"line_number":2477,"context_line":"        \"\"\""},{"line_number":2478,"context_line":""},{"line_number":2479,"context_line":"        LOG.debug(\u0027RPC get_boot_config called for node %s\u0027, node_id)"},{"line_number":2480,"context_line":"        lock_purpose \u003d \u0027generate boot config\u0027"},{"line_number":2481,"context_line":"        with task_manager.acquire(context, node_id, shared\u003dTrue,"},{"line_number":2482,"context_line":"                                  purpose\u003dlock_purpose) as task:"},{"line_number":2483,"context_line":"            deploy_opts \u003d task.driver.deploy.get_boot_config_options(task)"}],"source_content_type":"text/x-python","patch_set":13,"id":"3a71b18c_71847d5d","line":2480,"updated":"2016-12-05 15:03:15.000000000","message":"I think the word \"generate\" is a legacy after previous implementation. Maybe:\n\u0027getting boot config\u0027\nwould better fit the action? (and would be compliant with other lock purposes in this file)","commit_id":"9953ecc93f3ce6b453ef9248f6cbbe0e0c4ae29d"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"4d70ec00285271d922b86f2122f910d86e458d3e","unresolved":false,"context_lines":[{"line_number":2477,"context_line":"        \"\"\""},{"line_number":2478,"context_line":""},{"line_number":2479,"context_line":"        LOG.debug(\u0027RPC get_boot_config called for node %s\u0027, node_id)"},{"line_number":2480,"context_line":"        lock_purpose \u003d \u0027generate boot config\u0027"},{"line_number":2481,"context_line":"        with task_manager.acquire(context, node_id, shared\u003dTrue,"},{"line_number":2482,"context_line":"                                  purpose\u003dlock_purpose) as task:"},{"line_number":2483,"context_line":"            deploy_opts \u003d task.driver.deploy.get_boot_config_options(task)"}],"source_content_type":"text/x-python","patch_set":13,"id":"3a71b18c_62602da6","line":2480,"in_reply_to":"3a71b18c_71847d5d","updated":"2016-12-05 16:15:04.000000000","message":"well, it really generates it from scratch (and in previous implementations it was \"boot config _options_\", which I changed), so I\u0027d rather make it \"generating\".\nbut I could change that to \u0027getting\u0027 too\n\nbtw, from 6 \"lock_purpose \u003d \u0027..\u0027\" in this file, 4 are using \"*ing\" (1x \u0027listing\u0027 and 3x \u0027getting\u0027), 1 is using a verb (\u0027update\u0027) and 1 is using a noun (\u0027validation\u0027), so there isn\u0027t that much consistency any way :)","commit_id":"9953ecc93f3ce6b453ef9248f6cbbe0e0c4ae29d"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"95959cdf8dac7c8af79c5cb540ccc8d3a1cccbdb","unresolved":false,"context_lines":[{"line_number":2480,"context_line":"        lock_purpose \u003d \u0027generate boot config\u0027"},{"line_number":2481,"context_line":"        with task_manager.acquire(context, node_id, shared\u003dTrue,"},{"line_number":2482,"context_line":"                                  purpose\u003dlock_purpose) as task:"},{"line_number":2483,"context_line":"            deploy_opts \u003d task.driver.deploy.get_boot_config_options(task)"},{"line_number":2484,"context_line":"            try:"},{"line_number":2485,"context_line":"                config \u003d task.driver.boot.get_boot_config(task, deploy_opts)"},{"line_number":2486,"context_line":"            except NotImplementedError:"}],"source_content_type":"text/x-python","patch_set":13,"id":"3a71b18c_71df1d0d","line":2483,"updated":"2016-12-05 15:03:15.000000000","message":"I can\u0027t find this function, where is the implementation located?\nDoes it raise any exceptions?","commit_id":"9953ecc93f3ce6b453ef9248f6cbbe0e0c4ae29d"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"4d70ec00285271d922b86f2122f910d86e458d3e","unresolved":false,"context_lines":[{"line_number":2480,"context_line":"        lock_purpose \u003d \u0027generate boot config\u0027"},{"line_number":2481,"context_line":"        with task_manager.acquire(context, node_id, shared\u003dTrue,"},{"line_number":2482,"context_line":"                                  purpose\u003dlock_purpose) as task:"},{"line_number":2483,"context_line":"            deploy_opts \u003d task.driver.deploy.get_boot_config_options(task)"},{"line_number":2484,"context_line":"            try:"},{"line_number":2485,"context_line":"                config \u003d task.driver.boot.get_boot_config(task, deploy_opts)"},{"line_number":2486,"context_line":"            except NotImplementedError:"}],"source_content_type":"text/x-python","patch_set":13,"id":"3a71b18c_c201016c","line":2483,"in_reply_to":"3a71b18c_71df1d0d","updated":"2016-12-05 16:15:04.000000000","message":"as Dmitry suggested in the spec review, this is introduced in the previous change (Implement Driver API..) as base deploy interface method which now is always there and returns empty dict by default.\n\ngenerally it should return a dict, possibly discriminating for node states, so I am not sure it can raise any \"expected\" error, any error raised should be bubbled up as unexpected/500 error IMO.","commit_id":"9953ecc93f3ce6b453ef9248f6cbbe0e0c4ae29d"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"95959cdf8dac7c8af79c5cb540ccc8d3a1cccbdb","unresolved":false,"context_lines":[{"line_number":2485,"context_line":"                config \u003d task.driver.boot.get_boot_config(task, deploy_opts)"},{"line_number":2486,"context_line":"            except NotImplementedError:"},{"line_number":2487,"context_line":"                raise exception.UnsupportedDriverExtension("},{"line_number":2488,"context_line":"                    driver\u003dtask.node.driver,"},{"line_number":2489,"context_line":"                    extension\u003d\u0027boot.get_boot_config\u0027)"},{"line_number":2490,"context_line":"            return config"},{"line_number":2491,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"3a71b18c_913e798a","line":2488,"updated":"2016-12-05 15:03:15.000000000","message":"in try section, driver directly from task is used (task.driver), whereas here, the one from node is passed to create exception message. \nUsing the same one seems more consistent to me","commit_id":"9953ecc93f3ce6b453ef9248f6cbbe0e0c4ae29d"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"4d70ec00285271d922b86f2122f910d86e458d3e","unresolved":false,"context_lines":[{"line_number":2485,"context_line":"                config \u003d task.driver.boot.get_boot_config(task, deploy_opts)"},{"line_number":2486,"context_line":"            except NotImplementedError:"},{"line_number":2487,"context_line":"                raise exception.UnsupportedDriverExtension("},{"line_number":2488,"context_line":"                    driver\u003dtask.node.driver,"},{"line_number":2489,"context_line":"                    extension\u003d\u0027boot.get_boot_config\u0027)"},{"line_number":2490,"context_line":"            return config"},{"line_number":2491,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"3a71b18c_e2b27d93","line":2488,"in_reply_to":"3a71b18c_913e798a","updated":"2016-12-05 16:15:04.000000000","message":"AFAIU task.driver is actually the driver object, with proper interfaces and such, while task.node.driver is just a name (string) required in exception constructor [0]\n\nthis is common way all RPC methods work in this module, for example [1]\n\n[0] https://github.com/openstack/ironic/blob/master/ironic/common/exception.py#L455\n[1] https://github.com/openstack/ironic/blob/master/ironic/conductor/manager.py#L2196-L2203","commit_id":"9953ecc93f3ce6b453ef9248f6cbbe0e0c4ae29d"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"0897b628a0c038a39d77a54c7badeb4a9fec3a7d","unresolved":false,"context_lines":[{"line_number":1359,"context_line":"        task.driver.deploy.take_over(task)"},{"line_number":1360,"context_line":"        # NOTE(zhenguo): If console enabled, take over the console session"},{"line_number":1361,"context_line":"        # as well."},{"line_number":1362,"context_line":"        console_error \u003d None"},{"line_number":1363,"context_line":"        if task.node.console_enabled:"},{"line_number":1364,"context_line":"            notify_utils.emit_console_notification("},{"line_number":1365,"context_line":"                task, \u0027console_restore\u0027, fields.NotificationStatus.START)"}],"source_content_type":"text/x-python","patch_set":17,"id":"7a3c09a3_599d14bb","line":1362,"updated":"2017-01-17 00:30:54.000000000","message":"putting this assignment here spoils the comment (comment should be right above the line it describes)","commit_id":"8a0ebbc08fd57abdd6eecbf5f6161a319fb4715a"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"0897b628a0c038a39d77a54c7badeb4a9fec3a7d","unresolved":false,"context_lines":[{"line_number":1374,"context_line":"                # back to False and set node\u0027s last error."},{"line_number":1375,"context_line":"                task.node.last_error \u003d msg"},{"line_number":1376,"context_line":"                task.node.console_enabled \u003d False"},{"line_number":1377,"context_line":"                console_error \u003d True"},{"line_number":1378,"context_line":"            else:"},{"line_number":1379,"context_line":"                notify_utils.emit_console_notification("},{"line_number":1380,"context_line":"                    task, \u0027console_restore\u0027, fields.NotificationStatus.END)"}],"source_content_type":"text/x-python","patch_set":17,"id":"7a3c09a3_5984345d","line":1377,"updated":"2017-01-17 00:30:54.000000000","message":"I don\u0027t really like the idea of declaring variable as None and then treating it as boolean; it should either have the specific error assigned, or be declared as False initially","commit_id":"8a0ebbc08fd57abdd6eecbf5f6161a319fb4715a"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"0897b628a0c038a39d77a54c7badeb4a9fec3a7d","unresolved":false,"context_lines":[{"line_number":1491,"context_line":"                            exception.UnsupportedDriverExtension) as e:"},{"line_number":1492,"context_line":"                        result \u003d False"},{"line_number":1493,"context_line":"                        reason \u003d str(e)"},{"line_number":1494,"context_line":"                    except Exception as e:"},{"line_number":1495,"context_line":"                        result \u003d False"},{"line_number":1496,"context_line":"                        reason \u003d (_(\u0027Unexpected exception, traceback saved \u0027"},{"line_number":1497,"context_line":"                                    \u0027into log by ironic conductor service \u0027"}],"source_content_type":"text/x-python","patch_set":17,"id":"7a3c09a3_f9dc0075","line":1494,"updated":"2017-01-17 00:30:54.000000000","message":"just a question here: does this have to be the top level Exception class? It\u0027s not very graceful, however if that\u0027s the only option I\u0027m totally fine with that","commit_id":"8a0ebbc08fd57abdd6eecbf5f6161a319fb4715a"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"eec124f16fabf94fbf977723b204710180a81921","unresolved":false,"context_lines":[{"line_number":2200,"context_line":"                    driver\u003dnode.driver, extension\u003d\u0027management\u0027)"},{"line_number":2201,"context_line":"            task.driver.management.validate(task)"},{"line_number":2202,"context_line":""},{"line_number":2203,"context_line":"            task.driver.management.inject_nmi(task)"},{"line_number":2204,"context_line":""},{"line_number":2205,"context_line":"    @METRICS.timer(\u0027ConductorManager.get_supported_boot_devices\u0027)"},{"line_number":2206,"context_line":"    @messaging.expected_exceptions(exception.NodeLocked,"}],"source_content_type":"text/x-python","patch_set":18,"id":"3a461143_dee25fd4","line":2203,"range":{"start_line":2203,"start_character":12,"end_line":2203,"end_character":51},"updated":"2017-02-01 05:47:54.000000000","message":"[2] reference from L.2596.","commit_id":"c594b27d348c6f646b52afcb1e9adfb98fb99601"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"eec124f16fabf94fbf977723b204710180a81921","unresolved":false,"context_lines":[{"line_number":2593,"context_line":"            deploy_opts \u003d task.driver.deploy.get_boot_config_options(task)"},{"line_number":2594,"context_line":"            try:"},{"line_number":2595,"context_line":"                config \u003d task.driver.boot.get_boot_config(task, deploy_opts)"},{"line_number":2596,"context_line":"            except NotImplementedError:"},{"line_number":2597,"context_line":"                raise exception.UnsupportedDriverExtension("},{"line_number":2598,"context_line":"                    driver\u003dtask.node.driver,"},{"line_number":2599,"context_line":"                    extension\u003d\u0027boot.get_boot_config\u0027)"},{"line_number":2600,"context_line":"            return config"},{"line_number":2601,"context_line":""},{"line_number":2602,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"3a461143_debb3fc2","line":2599,"range":{"start_line":2596,"start_character":0,"end_line":2599,"end_character":53},"updated":"2017-02-01 05:47:54.000000000","message":"Wouldn\u0027t it better to raise UnsupportedDriverExtension in the base class [1]?\nThis is a feedback from inject_nmi implementation at L.2203 [2].\n\n [1] https://review.openstack.org/#/c/394398/15/ironic/drivers/base.py@518","commit_id":"c594b27d348c6f646b52afcb1e9adfb98fb99601"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"9b906d3000a339428893e8d9cfbfca786b73fc03","unresolved":false,"context_lines":[{"line_number":2593,"context_line":"            deploy_opts \u003d task.driver.deploy.get_boot_config_options(task)"},{"line_number":2594,"context_line":"            try:"},{"line_number":2595,"context_line":"                config \u003d task.driver.boot.get_boot_config(task, deploy_opts)"},{"line_number":2596,"context_line":"            except NotImplementedError:"},{"line_number":2597,"context_line":"                raise exception.UnsupportedDriverExtension("},{"line_number":2598,"context_line":"                    driver\u003dtask.node.driver,"},{"line_number":2599,"context_line":"                    extension\u003d\u0027boot.get_boot_config\u0027)"},{"line_number":2600,"context_line":"            return config"},{"line_number":2601,"context_line":""},{"line_number":2602,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"1a430d35_1bce0c82","line":2599,"range":{"start_line":2596,"start_character":0,"end_line":2599,"end_character":53},"in_reply_to":"3a461143_debb3fc2","updated":"2017-02-07 17:13:33.000000000","message":"Done","commit_id":"c594b27d348c6f646b52afcb1e9adfb98fb99601"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"70377ff9bc9f14e3f16c7d46269da74a813b9612","unresolved":false,"context_lines":[{"line_number":350,"context_line":"    @messaging.expected_exceptions(exception.NoFreeConductorWorker,"},{"line_number":351,"context_line":"                                   exception.InvalidParameterValue,"},{"line_number":352,"context_line":"                                   exception.UnsupportedDriverExtension,"},{"line_number":353,"context_line":"                                   exception.DriverNotFound,"},{"line_number":354,"context_line":"                                   exception.NoValidDefaultForInterface,"},{"line_number":355,"context_line":"                                   exception.InterfaceNotFoundInEntrypoint)"},{"line_number":356,"context_line":"    def driver_vendor_passthru(self, context, driver_name, driver_method,"}],"source_content_type":"text/x-python","patch_set":20,"id":"da36d5c6_d808992b","line":353,"updated":"2017-02-17 22:56:23.000000000","message":"shouldn\u0027t the same exception cleanup happen here? (As in lines 99 and 129)","commit_id":"a7b746102c19f12d2d26d5bf2e784a2244adb7e0"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"70377ff9bc9f14e3f16c7d46269da74a813b9612","unresolved":false,"context_lines":[{"line_number":500,"context_line":"                driver, \u0027vendor\u0027, driver_name\u003ddriver_name)"},{"line_number":501,"context_line":"            vendor \u003d driver_factory.get_interface(driver, \u0027vendor\u0027,"},{"line_number":502,"context_line":"                                                  vendor_name)"},{"line_number":503,"context_line":"        else:"},{"line_number":504,"context_line":"            vendor \u003d getattr(driver, \u0027vendor\u0027, None)"},{"line_number":505,"context_line":"            if not vendor:"},{"line_number":506,"context_line":"                raise exception.UnsupportedDriverExtension("}],"source_content_type":"text/x-python","patch_set":20,"id":"da36d5c6_b89f65b3","line":503,"updated":"2017-02-17 22:56:23.000000000","message":"I see this code section being used 3 times in this file. Maybe it\u0027s worth extracting it to a helper function?","commit_id":"a7b746102c19f12d2d26d5bf2e784a2244adb7e0"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"dbfc8b673eb5cca22d12c5a17f7284560bdd9db1","unresolved":false,"context_lines":[{"line_number":2681,"context_line":"        \"\"\"Return boot config."},{"line_number":2682,"context_line":""},{"line_number":2683,"context_line":"        :param context: request context."},{"line_number":2684,"context_line":"        :param node_id: node id or uuid."},{"line_number":2685,"context_line":"        :returns: complete boot config ready to be served to node"},{"line_number":2686,"context_line":"        \"\"\""},{"line_number":2687,"context_line":""}],"source_content_type":"text/x-python","patch_set":25,"id":"bff0334d_62954f40","line":2684,"updated":"2017-04-06 22:41:13.000000000","message":"nit:\ns/id/ID/\ns/uuid/UUID/","commit_id":"167b3610021db7685684e29cad9a3f3a8e25e639"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"4d7eac879d3943d07a2c561064a04d6bf448320b","unresolved":false,"context_lines":[{"line_number":2681,"context_line":"        \"\"\"Return boot config."},{"line_number":2682,"context_line":""},{"line_number":2683,"context_line":"        :param context: request context."},{"line_number":2684,"context_line":"        :param node_id: node id or uuid."},{"line_number":2685,"context_line":"        :returns: complete boot config ready to be served to node"},{"line_number":2686,"context_line":"        \"\"\""},{"line_number":2687,"context_line":""}],"source_content_type":"text/x-python","patch_set":25,"id":"bff0334d_2013ad5e","line":2684,"in_reply_to":"bff0334d_62954f40","updated":"2017-04-07 09:55:58.000000000","message":"Done","commit_id":"167b3610021db7685684e29cad9a3f3a8e25e639"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"dbfc8b673eb5cca22d12c5a17f7284560bdd9db1","unresolved":false,"context_lines":[{"line_number":2690,"context_line":"        with task_manager.acquire(context, node_id, shared\u003dTrue,"},{"line_number":2691,"context_line":"                                  purpose\u003dlock_purpose) as task:"},{"line_number":2692,"context_line":"            deploy_opts \u003d task.driver.deploy.get_boot_config_options(task)"},{"line_number":2693,"context_line":"            # NOTE(pas-ha) next line can raise UnsupportedDriverExtension"},{"line_number":2694,"context_line":"            config \u003d task.driver.boot.get_boot_config(task, deploy_opts)"},{"line_number":2695,"context_line":"            return config"},{"line_number":2696,"context_line":""}],"source_content_type":"text/x-python","patch_set":25,"id":"bff0334d_8238533d","line":2693,"updated":"2017-04-06 22:41:13.000000000","message":"I think it would be better if it was mentioned in docstring (:raises: UnsupportedDriverExtension: if ... get_boot_config ...).","commit_id":"167b3610021db7685684e29cad9a3f3a8e25e639"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"4d7eac879d3943d07a2c561064a04d6bf448320b","unresolved":false,"context_lines":[{"line_number":2690,"context_line":"        with task_manager.acquire(context, node_id, shared\u003dTrue,"},{"line_number":2691,"context_line":"                                  purpose\u003dlock_purpose) as task:"},{"line_number":2692,"context_line":"            deploy_opts \u003d task.driver.deploy.get_boot_config_options(task)"},{"line_number":2693,"context_line":"            # NOTE(pas-ha) next line can raise UnsupportedDriverExtension"},{"line_number":2694,"context_line":"            config \u003d task.driver.boot.get_boot_config(task, deploy_opts)"},{"line_number":2695,"context_line":"            return config"},{"line_number":2696,"context_line":""}],"source_content_type":"text/x-python","patch_set":25,"id":"bff0334d_000e6931","line":2693,"in_reply_to":"bff0334d_8238533d","updated":"2017-04-07 09:55:58.000000000","message":"Done","commit_id":"167b3610021db7685684e29cad9a3f3a8e25e639"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"29c8151e39e2100f42496ddf96e736299c45302e","unresolved":false,"context_lines":[{"line_number":2693,"context_line":"        with task_manager.acquire(context, node_id, shared\u003dTrue,"},{"line_number":2694,"context_line":"                                  purpose\u003dlock_purpose) as task:"},{"line_number":2695,"context_line":"            deploy_opts \u003d task.driver.deploy.get_boot_config_options(task)"},{"line_number":2696,"context_line":"            # NOTE(pas-ha) next line can raise UnsupportedDriverExtension"},{"line_number":2697,"context_line":"            config \u003d task.driver.boot.get_boot_config(task, deploy_opts)"},{"line_number":2698,"context_line":"            return config"},{"line_number":2699,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"bff0334d_eccc8dbd","line":2696,"updated":"2017-04-07 18:57:07.000000000","message":"nit: this comment seems redundant now","commit_id":"31ad912ec8116c53fb814396a17a3f2410273080"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"78b6360550b53fd3128198067a8e0de223476999","unresolved":false,"context_lines":[{"line_number":2693,"context_line":"        with task_manager.acquire(context, node_id, shared\u003dTrue,"},{"line_number":2694,"context_line":"                                  purpose\u003dlock_purpose) as task:"},{"line_number":2695,"context_line":"            deploy_opts \u003d task.driver.deploy.get_boot_config_options(task)"},{"line_number":2696,"context_line":"            # NOTE(pas-ha) next line can raise UnsupportedDriverExtension"},{"line_number":2697,"context_line":"            config \u003d task.driver.boot.get_boot_config(task, deploy_opts)"},{"line_number":2698,"context_line":"            return config"},{"line_number":2699,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"bff0334d_0d917df1","line":2696,"in_reply_to":"bff0334d_eccc8dbd","updated":"2017-04-12 09:33:54.000000000","message":"will do","commit_id":"31ad912ec8116c53fb814396a17a3f2410273080"}],"ironic/conductor/rpcapi.py":[{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"adf5b6068c0b4bab2c2a41e40ef81cea32aa89e1","unresolved":false,"context_lines":[{"line_number":738,"context_line":"                          object_versions\u003dobject_versions)"},{"line_number":739,"context_line":""},{"line_number":740,"context_line":"    def get_ipxe_config(self, context, node_id, topic\u003dNone):"},{"line_number":741,"context_line":"        \"\"\"Collect iPXE boot config options to render template."},{"line_number":742,"context_line":""},{"line_number":743,"context_line":"        :param context: request context."},{"line_number":744,"context_line":"        :param node_id: node ID or UUID."}],"source_content_type":"text/x-python","patch_set":7,"id":"7a77a97e_a2536538","line":741,"range":{"start_line":741,"start_character":37,"end_line":741,"end_character":62},"updated":"2016-11-22 19:37:32.000000000","message":"remove, leftpver from old implementation","commit_id":"04035eac30a5b97e5cf89b34d5902a8ad3a2c509"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"dbfc8b673eb5cca22d12c5a17f7284560bdd9db1","unresolved":false,"context_lines":[{"line_number":947,"context_line":""},{"line_number":948,"context_line":"        :param context: request context."},{"line_number":949,"context_line":"        :param node_id: node ID or UUID."},{"line_number":950,"context_line":"        :param topic: RPC topic. Defaults to self.topic."},{"line_number":951,"context_line":"        \"\"\""},{"line_number":952,"context_line":"        cctxt \u003d self.client.prepare(topic\u003dtopic or self.topic, version\u003d\u00271.41\u0027)"},{"line_number":953,"context_line":"        return cctxt.call(context, \u0027get_boot_config\u0027, node_id\u003dnode_id)"}],"source_content_type":"text/x-python","patch_set":25,"id":"bff0334d_2222a701","line":950,"updated":"2017-04-06 22:41:13.000000000","message":"please add info about raised exception","commit_id":"167b3610021db7685684e29cad9a3f3a8e25e639"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"4d7eac879d3943d07a2c561064a04d6bf448320b","unresolved":false,"context_lines":[{"line_number":947,"context_line":""},{"line_number":948,"context_line":"        :param context: request context."},{"line_number":949,"context_line":"        :param node_id: node ID or UUID."},{"line_number":950,"context_line":"        :param topic: RPC topic. Defaults to self.topic."},{"line_number":951,"context_line":"        \"\"\""},{"line_number":952,"context_line":"        cctxt \u003d self.client.prepare(topic\u003dtopic or self.topic, version\u003d\u00271.41\u0027)"},{"line_number":953,"context_line":"        return cctxt.call(context, \u0027get_boot_config\u0027, node_id\u003dnode_id)"}],"source_content_type":"text/x-python","patch_set":25,"id":"bff0334d_20af2de4","line":950,"in_reply_to":"bff0334d_2222a701","updated":"2017-04-07 09:55:58.000000000","message":"Done","commit_id":"167b3610021db7685684e29cad9a3f3a8e25e639"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"2e60a30096bd866abfda6ca86d09caf4aec7bac0","unresolved":false,"context_lines":[{"line_number":943,"context_line":"        return cctxt.call(context, \u0027vif_list\u0027, node_id\u003dnode_id)"},{"line_number":944,"context_line":""},{"line_number":945,"context_line":"    def get_boot_config(self, context, node_id, topic\u003dNone):"},{"line_number":946,"context_line":"        \"\"\"Get iPXE boot config as fully rendered template."},{"line_number":947,"context_line":""},{"line_number":948,"context_line":"        :param context: request context."},{"line_number":949,"context_line":"        :param node_id: node ID or UUID."}],"source_content_type":"text/x-python","patch_set":27,"id":"bff0334d_3ac4ce5e","line":946,"range":{"start_line":946,"start_character":15,"end_line":946,"end_character":19},"updated":"2017-04-10 03:53:40.000000000","message":"nit: iPXE can be removed from here as this call is a generic one.","commit_id":"31ad912ec8116c53fb814396a17a3f2410273080"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"78b6360550b53fd3128198067a8e0de223476999","unresolved":false,"context_lines":[{"line_number":943,"context_line":"        return cctxt.call(context, \u0027vif_list\u0027, node_id\u003dnode_id)"},{"line_number":944,"context_line":""},{"line_number":945,"context_line":"    def get_boot_config(self, context, node_id, topic\u003dNone):"},{"line_number":946,"context_line":"        \"\"\"Get iPXE boot config as fully rendered template."},{"line_number":947,"context_line":""},{"line_number":948,"context_line":"        :param context: request context."},{"line_number":949,"context_line":"        :param node_id: node ID or UUID."}],"source_content_type":"text/x-python","patch_set":27,"id":"bff0334d_4ddd45de","line":946,"range":{"start_line":946,"start_character":15,"end_line":946,"end_character":19},"in_reply_to":"bff0334d_3ac4ce5e","updated":"2017-04-12 09:33:54.000000000","message":"will do","commit_id":"31ad912ec8116c53fb814396a17a3f2410273080"},{"author":{"_account_id":24597,"name":"lee","email":"yuan.liang@zte.com.cn","username":"yuan"},"change_message_id":"bc0e299a382b469c6a2436df9d4026d556f4c400","unresolved":false,"context_lines":[{"line_number":953,"context_line":"        :raises: NodeLocked when the node is locked for other action."},{"line_number":954,"context_line":"        :returns: fully rendered boot config for the node as string"},{"line_number":955,"context_line":"        \"\"\""},{"line_number":956,"context_line":"        cctxt \u003d self.client.prepare(topic\u003dtopic or self.topic, version\u003d\u00271.41\u0027)"},{"line_number":957,"context_line":"        return cctxt.call(context, \u0027get_boot_config\u0027, node_id\u003dnode_id)"}],"source_content_type":"text/x-python","patch_set":27,"id":"bff0334d_c66d1d05","line":956,"range":{"start_line":956,"start_character":72,"end_line":956,"end_character":76},"updated":"2017-04-08 03:10:57.000000000","message":"you can replace 1.41 with RPC_API_VERSION that pre-defined.","commit_id":"31ad912ec8116c53fb814396a17a3f2410273080"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"78b6360550b53fd3128198067a8e0de223476999","unresolved":false,"context_lines":[{"line_number":953,"context_line":"        :raises: NodeLocked when the node is locked for other action."},{"line_number":954,"context_line":"        :returns: fully rendered boot config for the node as string"},{"line_number":955,"context_line":"        \"\"\""},{"line_number":956,"context_line":"        cctxt \u003d self.client.prepare(topic\u003dtopic or self.topic, version\u003d\u00271.41\u0027)"},{"line_number":957,"context_line":"        return cctxt.call(context, \u0027get_boot_config\u0027, node_id\u003dnode_id)"}],"source_content_type":"text/x-python","patch_set":27,"id":"bff0334d_8d9d8d0b","line":956,"range":{"start_line":956,"start_character":72,"end_line":956,"end_character":76},"in_reply_to":"bff0334d_c66d1d05","updated":"2017-04-12 09:33:54.000000000","message":"no. this is exactly the reason why rpc pinning is needed - look in the all above methods.","commit_id":"31ad912ec8116c53fb814396a17a3f2410273080"}],"ironic/drivers/modules/fake.py":[{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"c56b13f3e26b53d191a78374216f0ee186c8d670","unresolved":false,"context_lines":[{"line_number":91,"context_line":"    def clean_up_instance(self, task):"},{"line_number":92,"context_line":"        pass"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"    def get_ipxe_config(self, task, ramdisk_params):"},{"line_number":95,"context_line":"        return \u0027fake_boot_config\u0027"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":""}],"source_content_type":"text/x-python","patch_set":21,"id":"9a30ddce_75e7ab40","line":94,"range":{"start_line":94,"start_character":8,"end_line":94,"end_character":23},"updated":"2017-03-07 06:47:19.000000000","message":"It needs to be get_boot_config()?","commit_id":"8b5bef730a3a3784e3eee2340f4a513e9f0a0c40"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"2c5d0fc933b82defc59abc817b62a990465ec33c","unresolved":false,"context_lines":[{"line_number":91,"context_line":"    def clean_up_instance(self, task):"},{"line_number":92,"context_line":"        pass"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"    def get_ipxe_config(self, task, ramdisk_params):"},{"line_number":95,"context_line":"        return \u0027fake_boot_config\u0027"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":""}],"source_content_type":"text/x-python","patch_set":21,"id":"9a30ddce_062d58a7","line":94,"range":{"start_line":94,"start_character":8,"end_line":94,"end_character":23},"in_reply_to":"9a30ddce_75e7ab40","updated":"2017-03-07 14:05:35.000000000","message":"yep, forgot to rename it after the spec was updated. Done.","commit_id":"8b5bef730a3a3784e3eee2340f4a513e9f0a0c40"}],"ironic/tests/unit/conductor/test_manager.py":[{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"f2977c767bd30d0d57a748f60bd29e157a8f2b24","unresolved":false,"context_lines":[{"line_number":5846,"context_line":"            # Compare true exception hidden by @messaging.expected_exceptions"},{"line_number":5847,"context_line":"            self.assertEqual(exception.UnsupportedDriverExtension,"},{"line_number":5848,"context_line":"                             exc.exc_info[0])"},{"line_number":5849,"context_line":"\u003e\u003e\u003e\u003e\u003e\u003e\u003e f7db77d3... Add RPC API to get the boot config"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a71b18c_8491199c","line":5849,"updated":"2016-12-02 16:28:13.000000000","message":"is that a leftover after merge with conflict?","commit_id":"24249027ef96fa6846bacd811d2ef426459f65eb"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"9eebf5dfb69992330b1239ce799f867877e69150","unresolved":false,"context_lines":[{"line_number":5846,"context_line":"            # Compare true exception hidden by @messaging.expected_exceptions"},{"line_number":5847,"context_line":"            self.assertEqual(exception.UnsupportedDriverExtension,"},{"line_number":5848,"context_line":"                             exc.exc_info[0])"},{"line_number":5849,"context_line":"\u003e\u003e\u003e\u003e\u003e\u003e\u003e f7db77d3... Add RPC API to get the boot config"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a71b18c_86003a03","line":5849,"in_reply_to":"3a71b18c_8491199c","updated":"2016-12-02 17:51:55.000000000","message":"yep :(","commit_id":"24249027ef96fa6846bacd811d2ef426459f65eb"},{"author":{"_account_id":11878,"name":"Rushil Chugh","email":"rushil.chugh@gmail.com","username":"rushil"},"change_message_id":"d8e2abc408751d764cfaae75788dd83505a89839","unresolved":false,"context_lines":[{"line_number":6103,"context_line":"                config \u003d self.service.get_boot_config(self.context, node.uuid)"},{"line_number":6104,"context_line":"                md_if.assert_called_once_with(mock.ANY)"},{"line_number":6105,"context_line":"                mb_if.assert_called_once_with(mock.ANY, {\u0027spam\u0027: \u0027ham\u0027})"},{"line_number":6106,"context_line":""},{"line_number":6107,"context_line":"        self.assertEqual(\u0027fake_rendered_template\u0027, config)"},{"line_number":6108,"context_line":""},{"line_number":6109,"context_line":"    def test_get_ipxe_config_not_supported_in_boot(self):"}],"source_content_type":"text/x-python","patch_set":19,"id":"1a430d35_405a1bf3","line":6106,"updated":"2017-02-09 02:19:34.000000000","message":"Can we also test that LOG.debug has been called with a fake_node_id that you can specify at the beginning of the test?","commit_id":"c2175d1d5ff18b34e7d8af67107959ee3b13bc2d"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"e9e2ae76b5865ff3cdd1979159d8208bf94a1f76","unresolved":false,"context_lines":[{"line_number":6103,"context_line":"                config \u003d self.service.get_boot_config(self.context, node.uuid)"},{"line_number":6104,"context_line":"                md_if.assert_called_once_with(mock.ANY)"},{"line_number":6105,"context_line":"                mb_if.assert_called_once_with(mock.ANY, {\u0027spam\u0027: \u0027ham\u0027})"},{"line_number":6106,"context_line":""},{"line_number":6107,"context_line":"        self.assertEqual(\u0027fake_rendered_template\u0027, config)"},{"line_number":6108,"context_line":""},{"line_number":6109,"context_line":"    def test_get_ipxe_config_not_supported_in_boot(self):"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa31d9ce_65020f0d","line":6106,"in_reply_to":"1a430d35_405a1bf3","updated":"2017-02-14 11:25:01.000000000","message":"Done","commit_id":"c2175d1d5ff18b34e7d8af67107959ee3b13bc2d"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"2e60a30096bd866abfda6ca86d09caf4aec7bac0","unresolved":false,"context_lines":[{"line_number":6143,"context_line":"class GetBootConfigTestCase(mgr_utils.ServiceSetUpMixin,"},{"line_number":6144,"context_line":"                            tests_db_base.DbTestCase):"},{"line_number":6145,"context_line":""},{"line_number":6146,"context_line":"    def test_get_boot_config(self, mock_log):"},{"line_number":6147,"context_line":"        node \u003d obj_utils.create_test_node(self.context, driver\u003d\u0027fake\u0027)"},{"line_number":6148,"context_line":"        d_if \u003d self.driver.deploy"},{"line_number":6149,"context_line":"        b_if \u003d self.driver.boot"}],"source_content_type":"text/x-python","patch_set":27,"id":"bff0334d_1aba2ac0","line":6146,"range":{"start_line":6146,"start_character":8,"end_line":6146,"end_character":28},"updated":"2017-04-10 03:53:40.000000000","message":"Add a mock for get_boot_config_options() and call assert_called_once_with() for the same.","commit_id":"31ad912ec8116c53fb814396a17a3f2410273080"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"78b6360550b53fd3128198067a8e0de223476999","unresolved":false,"context_lines":[{"line_number":6143,"context_line":"class GetBootConfigTestCase(mgr_utils.ServiceSetUpMixin,"},{"line_number":6144,"context_line":"                            tests_db_base.DbTestCase):"},{"line_number":6145,"context_line":""},{"line_number":6146,"context_line":"    def test_get_boot_config(self, mock_log):"},{"line_number":6147,"context_line":"        node \u003d obj_utils.create_test_node(self.context, driver\u003d\u0027fake\u0027)"},{"line_number":6148,"context_line":"        d_if \u003d self.driver.deploy"},{"line_number":6149,"context_line":"        b_if \u003d self.driver.boot"}],"source_content_type":"text/x-python","patch_set":27,"id":"bff0334d_6db369ea","line":6146,"range":{"start_line":6146,"start_character":8,"end_line":6146,"end_character":28},"in_reply_to":"bff0334d_1aba2ac0","updated":"2017-04-12 09:33:54.000000000","message":"this is already done on lines 6151 and 6157:","commit_id":"31ad912ec8116c53fb814396a17a3f2410273080"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"78b6360550b53fd3128198067a8e0de223476999","unresolved":false,"context_lines":[{"line_number":6148,"context_line":"        d_if \u003d self.driver.deploy"},{"line_number":6149,"context_line":"        b_if \u003d self.driver.boot"},{"line_number":6150,"context_line":"        patcher \u003d mock.patch.object"},{"line_number":6151,"context_line":"        with patcher(d_if, \u0027get_boot_config_options\u0027) as md_if:"},{"line_number":6152,"context_line":"            with patcher(b_if, \u0027get_boot_config\u0027) as mb_if:"},{"line_number":6153,"context_line":"                md_if.return_value \u003d {\u0027spam\u0027: \u0027ham\u0027}"},{"line_number":6154,"context_line":"                mb_if.return_value \u003d \u0027fake_rendered_template\u0027"}],"source_content_type":"text/x-python","patch_set":27,"id":"bff0334d_edbe59ac","line":6151,"updated":"2017-04-12 09:33:54.000000000","message":"- here the get_boot_config_options is mocked","commit_id":"31ad912ec8116c53fb814396a17a3f2410273080"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"78b6360550b53fd3128198067a8e0de223476999","unresolved":false,"context_lines":[{"line_number":6154,"context_line":"                mb_if.return_value \u003d \u0027fake_rendered_template\u0027"},{"line_number":6155,"context_line":""},{"line_number":6156,"context_line":"                config \u003d self.service.get_boot_config(self.context, node.uuid)"},{"line_number":6157,"context_line":"                md_if.assert_called_once_with(mock.ANY)"},{"line_number":6158,"context_line":"                mb_if.assert_called_once_with(mock.ANY, {\u0027spam\u0027: \u0027ham\u0027})"},{"line_number":6159,"context_line":""},{"line_number":6160,"context_line":"        self.assertEqual(\u0027fake_rendered_template\u0027, config)"}],"source_content_type":"text/x-python","patch_set":27,"id":"bff0334d_ade291d3","line":6157,"updated":"2017-04-12 09:33:54.000000000","message":"- and here we assert that it was called","commit_id":"31ad912ec8116c53fb814396a17a3f2410273080"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"2e60a30096bd866abfda6ca86d09caf4aec7bac0","unresolved":false,"context_lines":[{"line_number":6158,"context_line":"                mb_if.assert_called_once_with(mock.ANY, {\u0027spam\u0027: \u0027ham\u0027})"},{"line_number":6159,"context_line":""},{"line_number":6160,"context_line":"        self.assertEqual(\u0027fake_rendered_template\u0027, config)"},{"line_number":6161,"context_line":"        mock_log.debug.assert_called_once_with(mock.ANY, node.uuid)"},{"line_number":6162,"context_line":""},{"line_number":6163,"context_line":"    def test_get_ipxe_config_not_supported_in_boot(self, mock_log):"},{"line_number":6164,"context_line":"        node \u003d obj_utils.create_test_node(self.context, driver\u003d\u0027fake\u0027,"}],"source_content_type":"text/x-python","patch_set":27,"id":"bff0334d_1adfca0d","line":6161,"range":{"start_line":6161,"start_character":8,"end_line":6161,"end_character":22},"updated":"2017-04-10 03:53:40.000000000","message":"We do not mock debug logs.","commit_id":"31ad912ec8116c53fb814396a17a3f2410273080"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"78b6360550b53fd3128198067a8e0de223476999","unresolved":false,"context_lines":[{"line_number":6158,"context_line":"                mb_if.assert_called_once_with(mock.ANY, {\u0027spam\u0027: \u0027ham\u0027})"},{"line_number":6159,"context_line":""},{"line_number":6160,"context_line":"        self.assertEqual(\u0027fake_rendered_template\u0027, config)"},{"line_number":6161,"context_line":"        mock_log.debug.assert_called_once_with(mock.ANY, node.uuid)"},{"line_number":6162,"context_line":""},{"line_number":6163,"context_line":"    def test_get_ipxe_config_not_supported_in_boot(self, mock_log):"},{"line_number":6164,"context_line":"        node \u003d obj_utils.create_test_node(self.context, driver\u003d\u0027fake\u0027,"}],"source_content_type":"text/x-python","patch_set":27,"id":"bff0334d_2de4410c","line":6161,"range":{"start_line":6161,"start_character":8,"end_line":6161,"end_character":22},"in_reply_to":"bff0334d_1adfca0d","updated":"2017-04-12 09:33:54.000000000","message":"yes we do - in 5 other places, including ilo driver tests ;)\n\n  $ grep -R \"mock.*debug\" ironic/tests/unit/\n  ironic/tests/unit/dhcp/test_neutron.py:            mock_log.debug.assert_called_once_with(\n  ironic/tests/unit/dhcp/test_neutron.py:            mock_log.debug.assert_not_called()\n  ironic/tests/unit/drivers/modules/test_iscsi_deploy.py:            mock_log.debug.assert_called_once_with(\n  ironic/tests/unit/drivers/modules/test_iscsi_deploy.py:            mock_log.debug.assert_called_once_with(\n  ironic/tests/unit/drivers/modules/ilo/test_deploy.py:    @mock.patch.object(ilo_deploy.LOG, \u0027debug\u0027, spec_set\u003dTrue, autospec\u003dTrue)","commit_id":"31ad912ec8116c53fb814396a17a3f2410273080"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"2e60a30096bd866abfda6ca86d09caf4aec7bac0","unresolved":false,"context_lines":[{"line_number":6160,"context_line":"        self.assertEqual(\u0027fake_rendered_template\u0027, config)"},{"line_number":6161,"context_line":"        mock_log.debug.assert_called_once_with(mock.ANY, node.uuid)"},{"line_number":6162,"context_line":""},{"line_number":6163,"context_line":"    def test_get_ipxe_config_not_supported_in_boot(self, mock_log):"},{"line_number":6164,"context_line":"        node \u003d obj_utils.create_test_node(self.context, driver\u003d\u0027fake\u0027,"},{"line_number":6165,"context_line":"                                          provision_state\u003dstates.ACTIVE)"},{"line_number":6166,"context_line":"        b_if \u003d self.driver.boot"}],"source_content_type":"text/x-python","patch_set":27,"id":"bff0334d_3aa72eaa","line":6163,"range":{"start_line":6163,"start_character":8,"end_line":6163,"end_character":50},"updated":"2017-04-10 03:53:40.000000000","message":"Add a mock for get_boot_config_options() and call assert_called_once_with() for the same.","commit_id":"31ad912ec8116c53fb814396a17a3f2410273080"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"78b6360550b53fd3128198067a8e0de223476999","unresolved":false,"context_lines":[{"line_number":6160,"context_line":"        self.assertEqual(\u0027fake_rendered_template\u0027, config)"},{"line_number":6161,"context_line":"        mock_log.debug.assert_called_once_with(mock.ANY, node.uuid)"},{"line_number":6162,"context_line":""},{"line_number":6163,"context_line":"    def test_get_ipxe_config_not_supported_in_boot(self, mock_log):"},{"line_number":6164,"context_line":"        node \u003d obj_utils.create_test_node(self.context, driver\u003d\u0027fake\u0027,"},{"line_number":6165,"context_line":"                                          provision_state\u003dstates.ACTIVE)"},{"line_number":6166,"context_line":"        b_if \u003d self.driver.boot"}],"source_content_type":"text/x-python","patch_set":27,"id":"bff0334d_4d6f852a","line":6163,"range":{"start_line":6163,"start_character":8,"end_line":6163,"end_character":50},"in_reply_to":"bff0334d_3aa72eaa","updated":"2017-04-12 09:33:54.000000000","message":"and here it is indeed missing. I will add the same as above (and change the method name btw, removing ipxe from it as we kind of try to make it more generic)","commit_id":"31ad912ec8116c53fb814396a17a3f2410273080"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"2e60a30096bd866abfda6ca86d09caf4aec7bac0","unresolved":false,"context_lines":[{"line_number":6174,"context_line":"            # Compare true exception hidden by @messaging.expected_exceptions"},{"line_number":6175,"context_line":"            self.assertEqual(exception.UnsupportedDriverExtension,"},{"line_number":6176,"context_line":"                             exc.exc_info[0])"},{"line_number":6177,"context_line":"        mock_log.debug.assert_called_once_with(mock.ANY, node.uuid)"}],"source_content_type":"text/x-python","patch_set":27,"id":"bff0334d_dae4c2e2","line":6177,"range":{"start_line":6177,"start_character":7,"end_line":6177,"end_character":22},"updated":"2017-04-10 03:53:40.000000000","message":"We do not mock debug logs.","commit_id":"31ad912ec8116c53fb814396a17a3f2410273080"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"78b6360550b53fd3128198067a8e0de223476999","unresolved":false,"context_lines":[{"line_number":6174,"context_line":"            # Compare true exception hidden by @messaging.expected_exceptions"},{"line_number":6175,"context_line":"            self.assertEqual(exception.UnsupportedDriverExtension,"},{"line_number":6176,"context_line":"                             exc.exc_info[0])"},{"line_number":6177,"context_line":"        mock_log.debug.assert_called_once_with(mock.ANY, node.uuid)"}],"source_content_type":"text/x-python","patch_set":27,"id":"bff0334d_cd8cb537","line":6177,"range":{"start_line":6177,"start_character":7,"end_line":6177,"end_character":22},"in_reply_to":"bff0334d_dae4c2e2","updated":"2017-04-12 09:33:54.000000000","message":"see my reply above","commit_id":"31ad912ec8116c53fb814396a17a3f2410273080"}]}
