)]}'
{"ironic/conductor/manager.py":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"b6822e85b556beacfac5042ddc059cbf9e79abad","unresolved":false,"context_lines":[{"line_number":1207,"context_line":"        :param context: request context."},{"line_number":1208,"context_line":"        \"\"\""},{"line_number":1209,"context_line":"        callback_timeout \u003d CONF.conductor.deploy_callback_timeout"},{"line_number":1210,"context_line":"        if not callback_timeout:"},{"line_number":1211,"context_line":"            return"},{"line_number":1212,"context_line":""},{"line_number":1213,"context_line":"        filters \u003d {\u0027reserved\u0027: False,"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba5201f7_a155611e","side":"PARENT","line":1210,"updated":"2016-12-29 17:15:50.000000000","message":"This saved one unnecessary query, why remove it? Maybe instead it should be made\n\n if callback_timeout \u003e 0:\n\n?","commit_id":"e95f29e1bc8ee64b7cae5207446ed8aaf47ddb9b"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"7dbfa6b4cd42f262b6a8d7d65526ad91a9ee8fc6","unresolved":false,"context_lines":[{"line_number":1207,"context_line":"        :param context: request context."},{"line_number":1208,"context_line":"        \"\"\""},{"line_number":1209,"context_line":"        callback_timeout \u003d CONF.conductor.deploy_callback_timeout"},{"line_number":1210,"context_line":"        if not callback_timeout:"},{"line_number":1211,"context_line":"            return"},{"line_number":1212,"context_line":""},{"line_number":1213,"context_line":"        filters \u003d {\u0027reserved\u0027: False,"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba5201f7_fc93874d","side":"PARENT","line":1210,"in_reply_to":"ba5201f7_110cb493","updated":"2016-12-30 07:39:43.000000000","message":"Oh, right, a silly mistake by me :)","commit_id":"e95f29e1bc8ee64b7cae5207446ed8aaf47ddb9b"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"5d7fb069ad0d9d60e3b4f0144ab7dc70da81c2d3","unresolved":false,"context_lines":[{"line_number":1207,"context_line":"        :param context: request context."},{"line_number":1208,"context_line":"        \"\"\""},{"line_number":1209,"context_line":"        callback_timeout \u003d CONF.conductor.deploy_callback_timeout"},{"line_number":1210,"context_line":"        if not callback_timeout:"},{"line_number":1211,"context_line":"            return"},{"line_number":1212,"context_line":""},{"line_number":1213,"context_line":"        filters \u003d {\u0027reserved\u0027: False,"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba5201f7_110cb493","side":"PARENT","line":1210,"in_reply_to":"ba5201f7_a155611e","updated":"2016-12-30 06:32:36.000000000","message":"Please see previous patch. Disabled periodic task not added to executor.","commit_id":"e95f29e1bc8ee64b7cae5207446ed8aaf47ddb9b"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"33e35a94ef0a2c9941a5456041744a5fb9619b3b","unresolved":false,"context_lines":[{"line_number":2037,"context_line":"        return driver.get_properties()"},{"line_number":2038,"context_line":""},{"line_number":2039,"context_line":"    @METRICS.timer(\u0027ConductorManager._send_sensor_data\u0027)"},{"line_number":2040,"context_line":"    @periodics.periodic(spacing\u003dCONF.conductor.send_sensor_data_interval,"},{"line_number":2041,"context_line":"                        enabled\u003dCONF.conductor.send_sensor_data)"},{"line_number":2042,"context_line":"    def _send_sensor_data(self, context):"},{"line_number":2043,"context_line":"        \"\"\"Periodically sends sensor data to Ceilometer.\"\"\""}],"source_content_type":"text/x-python","patch_set":4,"id":"ba5201f7_2f4a2984","line":2040,"updated":"2016-12-30 21:12:52.000000000","message":"nit: it\u0027d be possible to use utils.periodic here also, for consistency","commit_id":"862a58da6251e5c0a67bcdb6346641d3f2b1c2cf"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"33e35a94ef0a2c9941a5456041744a5fb9619b3b","unresolved":false,"context_lines":[{"line_number":2509,"context_line":"        # NOTE(lucasagomes): No reason to use a different timeout than"},{"line_number":2510,"context_line":"        # the one used for deploying the node"},{"line_number":2511,"context_line":"        timeout \u003d CONF.conductor.deploy_callback_timeout"},{"line_number":2512,"context_line":"        timeout \u003d (timeout if timeout \u003e 0 else"},{"line_number":2513,"context_line":"                   utils.get_default_opt_value(\u0027deploy_callback_timeout\u0027))"},{"line_number":2514,"context_line":"        container \u003d CONF.conductor.configdrive_swift_container"},{"line_number":2515,"context_line":"        object_name \u003d _get_configdrive_obj_name(node)"}],"source_content_type":"text/x-python","patch_set":4,"id":"ba5201f7_8f49558e","line":2512,"updated":"2016-12-30 21:12:52.000000000","message":"nit: this can all be in the same expression (L2511 isn\u0027t needed)","commit_id":"862a58da6251e5c0a67bcdb6346641d3f2b1c2cf"}],"ironic/conductor/utils.py":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"b6822e85b556beacfac5042ddc059cbf9e79abad","unresolved":false,"context_lines":[{"line_number":493,"context_line":""},{"line_number":494,"context_line":""},{"line_number":495,"context_line":"def get_default_opt_value(opt_name):"},{"line_number":496,"context_line":"    \"\"\"Get default value of config option from conductor group.\"\"\""},{"line_number":497,"context_line":"    for opt in conductor_opts.opts:"},{"line_number":498,"context_line":"        if opt_name \u003d\u003d opt.name:"},{"line_number":499,"context_line":"            return opt.default"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba5201f7_a1a7214e","line":496,"updated":"2016-12-29 17:15:50.000000000","message":"Can we generalize it please to accept the module name from conf folder?","commit_id":"9971a7a1b826b2e587c7b855c7bb1f89a13d64a0"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"a4b59a8f1130b97d73c6f5f7bd5e491ec74f87cb","unresolved":false,"context_lines":[{"line_number":493,"context_line":""},{"line_number":494,"context_line":""},{"line_number":495,"context_line":"def get_default_opt_value(opt_name):"},{"line_number":496,"context_line":"    \"\"\"Get default value of config option from conductor group.\"\"\""},{"line_number":497,"context_line":"    for opt in conductor_opts.opts:"},{"line_number":498,"context_line":"        if opt_name \u003d\u003d opt.name:"},{"line_number":499,"context_line":"            return opt.default"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba5201f7_fded3e8f","line":496,"in_reply_to":"ba5201f7_9177c401","updated":"2016-12-30 12:19:40.000000000","message":"This requires some kind of hack for \"default\" group.","commit_id":"9971a7a1b826b2e587c7b855c7bb1f89a13d64a0"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"5d7fb069ad0d9d60e3b4f0144ab7dc70da81c2d3","unresolved":false,"context_lines":[{"line_number":493,"context_line":""},{"line_number":494,"context_line":""},{"line_number":495,"context_line":"def get_default_opt_value(opt_name):"},{"line_number":496,"context_line":"    \"\"\"Get default value of config option from conductor group.\"\"\""},{"line_number":497,"context_line":"    for opt in conductor_opts.opts:"},{"line_number":498,"context_line":"        if opt_name \u003d\u003d opt.name:"},{"line_number":499,"context_line":"            return opt.default"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba5201f7_9177c401","line":496,"in_reply_to":"ba5201f7_a1a7214e","updated":"2016-12-30 06:32:36.000000000","message":"I\u0027m not sure, this is used only for one conductor config value now.","commit_id":"9971a7a1b826b2e587c7b855c7bb1f89a13d64a0"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"33e35a94ef0a2c9941a5456041744a5fb9619b3b","unresolved":false,"context_lines":[{"line_number":492,"context_line":"    return wrapper"},{"line_number":493,"context_line":""},{"line_number":494,"context_line":""},{"line_number":495,"context_line":"def get_default_opt_value(opt_name):"},{"line_number":496,"context_line":"    \"\"\"Get default value of config option from conductor group.\"\"\""},{"line_number":497,"context_line":"    for opt in conductor_opts.opts:"},{"line_number":498,"context_line":"        if opt_name \u003d\u003d opt.name:"}],"source_content_type":"text/x-python","patch_set":4,"id":"ba5201f7_af5e1943","line":495,"updated":"2016-12-30 21:12:52.000000000","message":"nit: I think this fits better in ironic/conf/conductor.py. It could even be a basic function shared across all modules.","commit_id":"862a58da6251e5c0a67bcdb6346641d3f2b1c2cf"}],"ironic/conf/conductor.py":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"b6822e85b556beacfac5042ddc059cbf9e79abad","unresolved":false,"context_lines":[{"line_number":42,"context_line":"    cfg.IntOpt(\u0027sync_power_state_interval\u0027,"},{"line_number":43,"context_line":"               default\u003d60,"},{"line_number":44,"context_line":"               help\u003d_(\u0027Interval between syncing the node power state to the \u0027"},{"line_number":45,"context_line":"                      \u0027database, in seconds.\u0027)),"},{"line_number":46,"context_line":"    cfg.IntOpt(\u0027check_provision_state_interval\u0027,"},{"line_number":47,"context_line":"               default\u003d60,"},{"line_number":48,"context_line":"               help\u003d_(\u0027Interval between checks of provision timeouts, \u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba5201f7_21409156","line":45,"updated":"2016-12-29 17:15:50.000000000","message":"Set to 0 or less to disable timeout :)","commit_id":"9971a7a1b826b2e587c7b855c7bb1f89a13d64a0"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"5d7fb069ad0d9d60e3b4f0144ab7dc70da81c2d3","unresolved":false,"context_lines":[{"line_number":42,"context_line":"    cfg.IntOpt(\u0027sync_power_state_interval\u0027,"},{"line_number":43,"context_line":"               default\u003d60,"},{"line_number":44,"context_line":"               help\u003d_(\u0027Interval between syncing the node power state to the \u0027"},{"line_number":45,"context_line":"                      \u0027database, in seconds.\u0027)),"},{"line_number":46,"context_line":"    cfg.IntOpt(\u0027check_provision_state_interval\u0027,"},{"line_number":47,"context_line":"               default\u003d60,"},{"line_number":48,"context_line":"               help\u003d_(\u0027Interval between checks of provision timeouts, \u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba5201f7_d15f8c73","line":45,"in_reply_to":"ba5201f7_21409156","updated":"2016-12-30 06:32:36.000000000","message":"Good point.","commit_id":"9971a7a1b826b2e587c7b855c7bb1f89a13d64a0"}],"ironic/tests/unit/conductor/test_utils.py":[{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"33e35a94ef0a2c9941a5456041744a5fb9619b3b","unresolved":false,"context_lines":[{"line_number":947,"context_line":""},{"line_number":948,"context_line":""},{"line_number":949,"context_line":"@mock.patch.object(conductor_opts, \u0027opts\u0027, new\u003dTEST_OPTS)"},{"line_number":950,"context_line":"class GetDefaultOptValueTestCase(tests_base.TestCase):"},{"line_number":951,"context_line":"    def test_default_found(self):"},{"line_number":952,"context_line":"        val \u003d conductor_utils.get_default_opt_value(\u0027deploy_callback_timeout\u0027)"},{"line_number":953,"context_line":"        self.assertEqual(555, val)"}],"source_content_type":"text/x-python","patch_set":4,"id":"ba5201f7_2f31490c","line":950,"updated":"2016-12-30 21:12:52.000000000","message":"It might be also good to have a test case that the default value is returned when you have set the config value to something other than the default.","commit_id":"862a58da6251e5c0a67bcdb6346641d3f2b1c2cf"}],"releasenotes/notes/invalid-swift-timeout-51c870aadb749342.yaml":[{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"33e35a94ef0a2c9941a5456041744a5fb9619b3b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Fix invalid zero timeout value for Swift temp URL in the conductor if"},{"line_number":4,"context_line":"    _check_deploy_timeouts periodical task disabled via zero value of"},{"line_number":5,"context_line":"    conductor.deploy_callback_timeout config option. Default value of"},{"line_number":6,"context_line":"    conductor.deploy_callback_timeout will be used in this case."}],"source_content_type":"text/x-yaml","patch_set":4,"id":"ba5201f7_4f368d04","line":4,"range":{"start_line":4,"start_character":27,"end_line":4,"end_character":37},"updated":"2016-12-30 21:12:52.000000000","message":"nit: s/periodical/periodic","commit_id":"862a58da6251e5c0a67bcdb6346641d3f2b1c2cf"}]}
