)]}'
{"ironic_inspector/firewall.py":[{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"70c6386826045b4865e3bdb27a95bfbea4810c90","unresolved":false,"context_lines":[{"line_number":32,"context_line":"LOCK \u003d semaphore.BoundedSemaphore()"},{"line_number":33,"context_line":"BASE_COMMAND \u003d None"},{"line_number":34,"context_line":"BLACKLIST_CACHE \u003d None"},{"line_number":35,"context_line":"ENABLED \u003d True"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"def _iptables(*args, **kwargs):"}],"source_content_type":"text/x-python","patch_set":1,"id":"1af94dfe_ff5edc43","line":35,"updated":"2016-03-16 11:24:37.000000000","message":"is the flag necessary?","commit_id":"74fbace57ebc098349eadc59acaa26b8e1840520"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ee06b5481efc2b6b344ca562f851e91e8c3c8f9f","unresolved":false,"context_lines":[{"line_number":32,"context_line":"LOCK \u003d semaphore.BoundedSemaphore()"},{"line_number":33,"context_line":"BASE_COMMAND \u003d None"},{"line_number":34,"context_line":"BLACKLIST_CACHE \u003d None"},{"line_number":35,"context_line":"ENABLED \u003d True"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"def _iptables(*args, **kwargs):"}],"source_content_type":"text/x-python","patch_set":1,"id":"1af94dfe_67e36206","line":35,"in_reply_to":"1af94dfe_33e880b4","updated":"2016-03-16 12:40:23.000000000","message":"right, cool","commit_id":"74fbace57ebc098349eadc59acaa26b8e1840520"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"132231defa23b053dc14f8968df8aac6f7c90b68","unresolved":false,"context_lines":[{"line_number":32,"context_line":"LOCK \u003d semaphore.BoundedSemaphore()"},{"line_number":33,"context_line":"BASE_COMMAND \u003d None"},{"line_number":34,"context_line":"BLACKLIST_CACHE \u003d None"},{"line_number":35,"context_line":"ENABLED \u003d True"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"def _iptables(*args, **kwargs):"}],"source_content_type":"text/x-python","patch_set":1,"id":"1af94dfe_33e880b4","line":35,"in_reply_to":"1af94dfe_ff5edc43","updated":"2016-03-16 11:26:33.000000000","message":"It\u0027s done for caching the previous decision, so that we don\u0027t update iptables constantly (BLACKLIST_CACHE is for the same)","commit_id":"74fbace57ebc098349eadc59acaa26b8e1840520"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"70c6386826045b4865e3bdb27a95bfbea4810c90","unresolved":false,"context_lines":[{"line_number":145,"context_line":"              \u0027not set - disabling DHCP\u0027)"},{"line_number":146,"context_line":"    with _temporary_chain(NEW_CHAIN, CHAIN):"},{"line_number":147,"context_line":"        # Blacklist everything"},{"line_number":148,"context_line":"        _iptables(\u0027-A\u0027, NEW_CHAIN, \u0027-j\u0027, \u0027REJECT\u0027)"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"    ENABLED \u003d False"},{"line_number":151,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1af94dfe_33588032","line":148,"updated":"2016-03-16 11:24:37.000000000","message":"consider adding iptables drop logging here so people have more chances to debug","commit_id":"74fbace57ebc098349eadc59acaa26b8e1840520"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"132231defa23b053dc14f8968df8aac6f7c90b68","unresolved":false,"context_lines":[{"line_number":145,"context_line":"              \u0027not set - disabling DHCP\u0027)"},{"line_number":146,"context_line":"    with _temporary_chain(NEW_CHAIN, CHAIN):"},{"line_number":147,"context_line":"        # Blacklist everything"},{"line_number":148,"context_line":"        _iptables(\u0027-A\u0027, NEW_CHAIN, \u0027-j\u0027, \u0027REJECT\u0027)"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"    ENABLED \u003d False"},{"line_number":151,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1af94dfe_f304587f","line":148,"in_reply_to":"1af94dfe_33588032","updated":"2016-03-16 11:26:33.000000000","message":"_iptables function does logging. we also have a log line on #144. anything else to add?","commit_id":"74fbace57ebc098349eadc59acaa26b8e1840520"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0363613abf410f81b65fd75fb7f8c46ead2d2092","unresolved":false,"context_lines":[{"line_number":145,"context_line":"              \u0027not set - disabling DHCP\u0027)"},{"line_number":146,"context_line":"    with _temporary_chain(NEW_CHAIN, CHAIN):"},{"line_number":147,"context_line":"        # Blacklist everything"},{"line_number":148,"context_line":"        _iptables(\u0027-A\u0027, NEW_CHAIN, \u0027-j\u0027, \u0027REJECT\u0027)"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"    ENABLED \u003d False"},{"line_number":151,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1af94dfe_e7665228","line":148,"in_reply_to":"1af94dfe_dc4de99a","updated":"2016-03-16 12:44:04.000000000","message":"Interesting idea, we should do it for all our firewall rules. I\u0027ll propose a separate patch.","commit_id":"74fbace57ebc098349eadc59acaa26b8e1840520"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ee06b5481efc2b6b344ca562f851e91e8c3c8f9f","unresolved":false,"context_lines":[{"line_number":145,"context_line":"              \u0027not set - disabling DHCP\u0027)"},{"line_number":146,"context_line":"    with _temporary_chain(NEW_CHAIN, CHAIN):"},{"line_number":147,"context_line":"        # Blacklist everything"},{"line_number":148,"context_line":"        _iptables(\u0027-A\u0027, NEW_CHAIN, \u0027-j\u0027, \u0027REJECT\u0027)"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"    ENABLED \u003d False"},{"line_number":151,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1af94dfe_dc4de99a","line":148,"in_reply_to":"1af94dfe_f304587f","updated":"2016-03-16 12:40:23.000000000","message":"iptables -A NEW_CHAIN -j LOG --log-prefix \"inspector-dropped: \"\niptables -A NEW_CHAIN -j REJECT","commit_id":"74fbace57ebc098349eadc59acaa26b8e1840520"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"70c6386826045b4865e3bdb27a95bfbea4810c90","unresolved":false,"context_lines":[{"line_number":177,"context_line":"    ironic \u003d ir_utils.get_client() if ironic is None else ironic"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"    with LOCK:"},{"line_number":180,"context_line":"        if not _should_enable_dhcp():"},{"line_number":181,"context_line":"            _disable_dhcp()"},{"line_number":182,"context_line":"            return"},{"line_number":183,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1af94dfe_53926ca0","line":180,"updated":"2016-03-16 11:24:37.000000000","message":"just an (obvious, maybe) note: this will introduce boot delay for introspection depending on the update filters call frequency; maybe worth putting in release notes or commit message","commit_id":"74fbace57ebc098349eadc59acaa26b8e1840520"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ee06b5481efc2b6b344ca562f851e91e8c3c8f9f","unresolved":false,"context_lines":[{"line_number":177,"context_line":"    ironic \u003d ir_utils.get_client() if ironic is None else ironic"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"    with LOCK:"},{"line_number":180,"context_line":"        if not _should_enable_dhcp():"},{"line_number":181,"context_line":"            _disable_dhcp()"},{"line_number":182,"context_line":"            return"},{"line_number":183,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1af94dfe_e7ec922b","line":180,"in_reply_to":"1af94dfe_1302a46f","updated":"2016-03-16 12:40:23.000000000","message":"actually, I\u0027ve just forgotten we call firewall.update_filters so there\u0027s no delay, forget about my comment please ;)","commit_id":"74fbace57ebc098349eadc59acaa26b8e1840520"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"132231defa23b053dc14f8968df8aac6f7c90b68","unresolved":false,"context_lines":[{"line_number":177,"context_line":"    ironic \u003d ir_utils.get_client() if ironic is None else ironic"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"    with LOCK:"},{"line_number":180,"context_line":"        if not _should_enable_dhcp():"},{"line_number":181,"context_line":"            _disable_dhcp()"},{"line_number":182,"context_line":"            return"},{"line_number":183,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1af94dfe_1302a46f","line":180,"in_reply_to":"1af94dfe_53926ca0","updated":"2016-03-16 11:26:33.000000000","message":"we call update_filters when starting introspection. do you envision any problems with that?","commit_id":"74fbace57ebc098349eadc59acaa26b8e1840520"}],"ironic_inspector/node_cache.py":[{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"921016a926700f979e9ed37cf18fb9785bd81d0b","unresolved":false,"context_lines":[{"line_number":420,"context_line":"def introspection_active():"},{"line_number":421,"context_line":"    \"\"\"Check if introspection is active for at least one node.\"\"\""},{"line_number":422,"context_line":"    # FIXME(dtantsur): is there a better way to express it?"},{"line_number":423,"context_line":"    return (db.model_query(db.Node.uuid).filter_by(finished_at\u003dNone).first()"},{"line_number":424,"context_line":"            is not None)"},{"line_number":425,"context_line":""},{"line_number":426,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1af94dfe_9c724148","line":423,"range":{"start_line":423,"start_character":0,"end_line":423,"end_character":76},"updated":"2016-03-16 12:23:13.000000000","message":"I\u0027m wondering, is it possible that failed on IPA side introspection node will have finished_at \u003d None; and dhcp will be enabled?","commit_id":"405c7de1f8671eb5da7eb5dbf996f519b70b32d9"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9ea7ebf7f83db78c242d376ca54259b66b3586d0","unresolved":false,"context_lines":[{"line_number":420,"context_line":"def introspection_active():"},{"line_number":421,"context_line":"    \"\"\"Check if introspection is active for at least one node.\"\"\""},{"line_number":422,"context_line":"    # FIXME(dtantsur): is there a better way to express it?"},{"line_number":423,"context_line":"    return (db.model_query(db.Node.uuid).filter_by(finished_at\u003dNone).first()"},{"line_number":424,"context_line":"            is not None)"},{"line_number":425,"context_line":""},{"line_number":426,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1af94dfe_bc21fdfd","line":423,"range":{"start_line":423,"start_character":0,"end_line":423,"end_character":76},"in_reply_to":"1af94dfe_9c724148","updated":"2016-03-16 12:26:01.000000000","message":"Yes, until they time out. I don\u0027t how to avoid that tbh","commit_id":"405c7de1f8671eb5da7eb5dbf996f519b70b32d9"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"3e850a2c967700f523b1ebcac4d79266ed1d88d2","unresolved":false,"context_lines":[{"line_number":420,"context_line":"def introspection_active():"},{"line_number":421,"context_line":"    \"\"\"Check if introspection is active for at least one node.\"\"\""},{"line_number":422,"context_line":"    # FIXME(dtantsur): is there a better way to express it?"},{"line_number":423,"context_line":"    return (db.model_query(db.Node.uuid).filter_by(finished_at\u003dNone).first()"},{"line_number":424,"context_line":"            is not None)"},{"line_number":425,"context_line":""},{"line_number":426,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1af94dfe_079c1ebf","line":423,"range":{"start_line":423,"start_character":0,"end_line":423,"end_character":76},"in_reply_to":"1af94dfe_bc21fdfd","updated":"2016-03-16 12:31:58.000000000","message":"Yeah, looks like not big deal, as they will be cleaned anyway","commit_id":"405c7de1f8671eb5da7eb5dbf996f519b70b32d9"}]}
