)]}'
{"ironic_python_agent/errors.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"48cbe8407736b31981066f6de8dd7b5fe8412a58","unresolved":false,"context_lines":[{"line_number":298,"context_line":""},{"line_number":299,"context_line":"    message \u003d \u0027Error in NUMA node data format\u0027"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"    def __init__(self, details):"},{"line_number":302,"context_line":"        super(IncompatibleNumaFormatError, self).__init__(details)"},{"line_number":303,"context_line":""},{"line_number":304,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"5ff73747_caa9f690","line":301,"updated":"2017-05-03 12:34:45.000000000","message":"redundant method","commit_id":"5033441bba31e482c33074b5ba743a8a9a17a80e"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"f2451a7a729dd0a760ec923c5d777a9229049cea","unresolved":false,"context_lines":[{"line_number":298,"context_line":""},{"line_number":299,"context_line":"    message \u003d \u0027Error in NUMA node data format\u0027"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"    def __init__(self, details):"},{"line_number":302,"context_line":"        super(IncompatibleNumaFormatError, self).__init__(details)"},{"line_number":303,"context_line":""},{"line_number":304,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"3f044301_bdc60916","line":301,"in_reply_to":"5ff73747_caa9f690","updated":"2017-05-04 11:08:19.000000000","message":"Done","commit_id":"5033441bba31e482c33074b5ba743a8a9a17a80e"}],"ironic_python_agent/inspector.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e30bbb406a7ff21a085fa4bc3255fee1f5dd55ff","unresolved":false,"context_lines":[{"line_number":358,"context_line":"        try:"},{"line_number":359,"context_line":"            with open(os.path.join(numa_node_path, numa_node_dir,"},{"line_number":360,"context_line":"                      \u0027meminfo\u0027)) as meminfo_file:"},{"line_number":361,"context_line":"                meminfo_lines \u003d meminfo_file.read().split(\u0027\\n\u0027)"},{"line_number":362,"context_line":"                for line in meminfo_lines:"},{"line_number":363,"context_line":"                    if \"MemTotal:\" in line:"},{"line_number":364,"context_line":"                        memory_info \u003d line.split(\":\")[1].strip()"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_e85e0b75","line":361,"updated":"2017-02-13 11:53:23.000000000","message":"everything after this line should be moved out of both \u0027with\u0027 and \u0027try\u0027 blocks","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"c53e41db4a3e0e08a651738bf6ca133ae91871fc","unresolved":false,"context_lines":[{"line_number":358,"context_line":"        try:"},{"line_number":359,"context_line":"            with open(os.path.join(numa_node_path, numa_node_dir,"},{"line_number":360,"context_line":"                      \u0027meminfo\u0027)) as meminfo_file:"},{"line_number":361,"context_line":"                meminfo_lines \u003d meminfo_file.read().split(\u0027\\n\u0027)"},{"line_number":362,"context_line":"                for line in meminfo_lines:"},{"line_number":363,"context_line":"                    if \"MemTotal:\" in line:"},{"line_number":364,"context_line":"                        memory_info \u003d line.split(\":\")[1].strip()"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_521f93b6","line":361,"in_reply_to":"fa31d9ce_e85e0b75","updated":"2017-02-14 10:11:07.000000000","message":"Done","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e30bbb406a7ff21a085fa4bc3255fee1f5dd55ff","unresolved":false,"context_lines":[{"line_number":362,"context_line":"                for line in meminfo_lines:"},{"line_number":363,"context_line":"                    if \"MemTotal:\" in line:"},{"line_number":364,"context_line":"                        memory_info \u003d line.split(\":\")[1].strip()"},{"line_number":365,"context_line":"                        memory_kb \u003d int(memory_info.split(\" \")[0].strip())"},{"line_number":366,"context_line":"                        break"},{"line_number":367,"context_line":"                numa_node_memory[\u0027numa_node\u0027] \u003d int(numa_node_dir[4:])"},{"line_number":368,"context_line":"                numa_node_memory[\u0027size_kb\u0027] \u003d memory_kb"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_0856ff5b","line":365,"updated":"2017-02-13 11:53:23.000000000","message":"this assumes that memory is always in KiB, right? We\u0027ve faced problems with this kind of assumptions already. How does this line look like? something like \"1024 kb\"? If so, please process the unit as well, there are examples in hardware.py.","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"c53e41db4a3e0e08a651738bf6ca133ae91871fc","unresolved":false,"context_lines":[{"line_number":362,"context_line":"                for line in meminfo_lines:"},{"line_number":363,"context_line":"                    if \"MemTotal:\" in line:"},{"line_number":364,"context_line":"                        memory_info \u003d line.split(\":\")[1].strip()"},{"line_number":365,"context_line":"                        memory_kb \u003d int(memory_info.split(\" \")[0].strip())"},{"line_number":366,"context_line":"                        break"},{"line_number":367,"context_line":"                numa_node_memory[\u0027numa_node\u0027] \u003d int(numa_node_dir[4:])"},{"line_number":368,"context_line":"                numa_node_memory[\u0027size_kb\u0027] \u003d memory_kb"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_721c97c1","line":365,"in_reply_to":"fa31d9ce_0856ff5b","updated":"2017-02-14 10:11:07.000000000","message":"Done","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e30bbb406a7ff21a085fa4bc3255fee1f5dd55ff","unresolved":false,"context_lines":[{"line_number":374,"context_line":""},{"line_number":375,"context_line":""},{"line_number":376,"context_line":"def get_numa_nodes_cores_info(numa_node_path, numa_node_dirs):"},{"line_number":377,"context_line":"    cpus \u003d []"},{"line_number":378,"context_line":"    for numa_node_dir in numa_node_dirs:"},{"line_number":379,"context_line":"        if (not os.path.isdir(os.path.join(numa_node_path, numa_node_dir))"},{"line_number":380,"context_line":"            or not numa_node_dir.startswith(\"node\")):"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_28510363","line":377,"updated":"2017-02-13 11:53:23.000000000","message":"as you have to look up cpu_id later, I suggest you start with a dict cpu_id -\u003e cpu_item. then you can just return list(cpus.values())","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"c53e41db4a3e0e08a651738bf6ca133ae91871fc","unresolved":false,"context_lines":[{"line_number":374,"context_line":""},{"line_number":375,"context_line":""},{"line_number":376,"context_line":"def get_numa_nodes_cores_info(numa_node_path, numa_node_dirs):"},{"line_number":377,"context_line":"    cpus \u003d []"},{"line_number":378,"context_line":"    for numa_node_dir in numa_node_dirs:"},{"line_number":379,"context_line":"        if (not os.path.isdir(os.path.join(numa_node_path, numa_node_dir))"},{"line_number":380,"context_line":"            or not numa_node_dir.startswith(\"node\")):"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_927bcbf4","line":377,"in_reply_to":"fa31d9ce_28510363","updated":"2017-02-14 10:11:07.000000000","message":"Done","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e30bbb406a7ff21a085fa4bc3255fee1f5dd55ff","unresolved":false,"context_lines":[{"line_number":392,"context_line":"                not thread_dir.startswith(\"cpu\")):"},{"line_number":393,"context_line":"                continue"},{"line_number":394,"context_line":"            try:"},{"line_number":395,"context_line":"                is_cpu_id_exists \u003d False"},{"line_number":396,"context_line":"                thread_id \u003d int(thread_dir[3:])"},{"line_number":397,"context_line":"                numa_node_id \u003d int(numa_node_dir[4:])"},{"line_number":398,"context_line":"                with open(os.path.join(numa_node_path, numa_node_dir,"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_4850f75d","line":395,"updated":"2017-02-13 11:53:23.000000000","message":"nit: \"is exists\" is not right, just leave cpu_id_exists","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"c53e41db4a3e0e08a651738bf6ca133ae91871fc","unresolved":false,"context_lines":[{"line_number":392,"context_line":"                not thread_dir.startswith(\"cpu\")):"},{"line_number":393,"context_line":"                continue"},{"line_number":394,"context_line":"            try:"},{"line_number":395,"context_line":"                is_cpu_id_exists \u003d False"},{"line_number":396,"context_line":"                thread_id \u003d int(thread_dir[3:])"},{"line_number":397,"context_line":"                numa_node_id \u003d int(numa_node_dir[4:])"},{"line_number":398,"context_line":"                with open(os.path.join(numa_node_path, numa_node_dir,"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_b280cfc1","line":395,"in_reply_to":"fa31d9ce_4850f75d","updated":"2017-02-14 10:11:07.000000000","message":"removed is_cpu_id_exists","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e30bbb406a7ff21a085fa4bc3255fee1f5dd55ff","unresolved":false,"context_lines":[{"line_number":394,"context_line":"            try:"},{"line_number":395,"context_line":"                is_cpu_id_exists \u003d False"},{"line_number":396,"context_line":"                thread_id \u003d int(thread_dir[3:])"},{"line_number":397,"context_line":"                numa_node_id \u003d int(numa_node_dir[4:])"},{"line_number":398,"context_line":"                with open(os.path.join(numa_node_path, numa_node_dir,"},{"line_number":399,"context_line":"                          thread_dir, \u0027topology\u0027,"},{"line_number":400,"context_line":"                          \u0027core_id\u0027)) as core_id_file:"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_684bfbb0","line":397,"updated":"2017-02-13 11:53:23.000000000","message":"this does not have to be inside \u0027try\u0027","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"c53e41db4a3e0e08a651738bf6ca133ae91871fc","unresolved":false,"context_lines":[{"line_number":394,"context_line":"            try:"},{"line_number":395,"context_line":"                is_cpu_id_exists \u003d False"},{"line_number":396,"context_line":"                thread_id \u003d int(thread_dir[3:])"},{"line_number":397,"context_line":"                numa_node_id \u003d int(numa_node_dir[4:])"},{"line_number":398,"context_line":"                with open(os.path.join(numa_node_path, numa_node_dir,"},{"line_number":399,"context_line":"                          thread_dir, \u0027topology\u0027,"},{"line_number":400,"context_line":"                          \u0027core_id\u0027)) as core_id_file:"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_5276b306","line":397,"in_reply_to":"fa31d9ce_684bfbb0","updated":"2017-02-14 10:11:07.000000000","message":"Done","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e30bbb406a7ff21a085fa4bc3255fee1f5dd55ff","unresolved":false,"context_lines":[{"line_number":398,"context_line":"                with open(os.path.join(numa_node_path, numa_node_dir,"},{"line_number":399,"context_line":"                          thread_dir, \u0027topology\u0027,"},{"line_number":400,"context_line":"                          \u0027core_id\u0027)) as core_id_file:"},{"line_number":401,"context_line":"                    cpu_id \u003d int(core_id_file.read().strip())"},{"line_number":402,"context_line":"                    if cpus:"},{"line_number":403,"context_line":"                        for c in cpus:"},{"line_number":404,"context_line":"                            if (cpu_id \u003d\u003d c[\u0027cpu\u0027] and"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_88c82f24","line":401,"updated":"2017-02-13 11:53:23.000000000","message":"please move the links after this one outside of both \u0027with\u0027 and \u0027try\u0027","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"c53e41db4a3e0e08a651738bf6ca133ae91871fc","unresolved":false,"context_lines":[{"line_number":398,"context_line":"                with open(os.path.join(numa_node_path, numa_node_dir,"},{"line_number":399,"context_line":"                          thread_dir, \u0027topology\u0027,"},{"line_number":400,"context_line":"                          \u0027core_id\u0027)) as core_id_file:"},{"line_number":401,"context_line":"                    cpu_id \u003d int(core_id_file.read().strip())"},{"line_number":402,"context_line":"                    if cpus:"},{"line_number":403,"context_line":"                        for c in cpus:"},{"line_number":404,"context_line":"                            if (cpu_id \u003d\u003d c[\u0027cpu\u0027] and"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_7273b715","line":401,"in_reply_to":"fa31d9ce_88c82f24","updated":"2017-02-14 10:11:07.000000000","message":"Done","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e30bbb406a7ff21a085fa4bc3255fee1f5dd55ff","unresolved":false,"context_lines":[{"line_number":401,"context_line":"                    cpu_id \u003d int(core_id_file.read().strip())"},{"line_number":402,"context_line":"                    if cpus:"},{"line_number":403,"context_line":"                        for c in cpus:"},{"line_number":404,"context_line":"                            if (cpu_id \u003d\u003d c[\u0027cpu\u0027] and"},{"line_number":405,"context_line":"                                thread_id not in c[\u0027thread_siblings\u0027]):"},{"line_number":406,"context_line":"                                c[\u0027thread_siblings\u0027].append(thread_id)"},{"line_number":407,"context_line":"                                is_cpu_id_exists \u003d True"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_a8cb331d","line":404,"updated":"2017-02-13 11:53:23.000000000","message":"see suggestion in the beginning of the function on how to simplify this lookup","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"c53e41db4a3e0e08a651738bf6ca133ae91871fc","unresolved":false,"context_lines":[{"line_number":401,"context_line":"                    cpu_id \u003d int(core_id_file.read().strip())"},{"line_number":402,"context_line":"                    if cpus:"},{"line_number":403,"context_line":"                        for c in cpus:"},{"line_number":404,"context_line":"                            if (cpu_id \u003d\u003d c[\u0027cpu\u0027] and"},{"line_number":405,"context_line":"                                thread_id not in c[\u0027thread_siblings\u0027]):"},{"line_number":406,"context_line":"                                c[\u0027thread_siblings\u0027].append(thread_id)"},{"line_number":407,"context_line":"                                is_cpu_id_exists \u003d True"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_d258e38c","line":404,"in_reply_to":"fa31d9ce_a8cb331d","updated":"2017-02-14 10:11:07.000000000","message":"Done","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e30bbb406a7ff21a085fa4bc3255fee1f5dd55ff","unresolved":false,"context_lines":[{"line_number":473,"context_line":"                                                          numa_node_dirs)"},{"line_number":474,"context_line":"        numa_topology[\u0027cpus\u0027] \u003d get_numa_nodes_cores_info(numa_node_path,"},{"line_number":475,"context_line":"                                                          numa_node_dirs)"},{"line_number":476,"context_line":"    except OSError as exc:"},{"line_number":477,"context_line":"        msg \u003d \u0027Failed to get list of NUMA nodes: %s\u0027"},{"line_number":478,"context_line":"        failures.add(msg, exc)"},{"line_number":479,"context_line":"        return"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_c8d227d2","line":476,"updated":"2017-02-13 11:53:23.000000000","message":"is this OSError related to listdir? then only leave it inside of try..except, and move everything else out.","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"c53e41db4a3e0e08a651738bf6ca133ae91871fc","unresolved":false,"context_lines":[{"line_number":473,"context_line":"                                                          numa_node_dirs)"},{"line_number":474,"context_line":"        numa_topology[\u0027cpus\u0027] \u003d get_numa_nodes_cores_info(numa_node_path,"},{"line_number":475,"context_line":"                                                          numa_node_dirs)"},{"line_number":476,"context_line":"    except OSError as exc:"},{"line_number":477,"context_line":"        msg \u003d \u0027Failed to get list of NUMA nodes: %s\u0027"},{"line_number":478,"context_line":"        failures.add(msg, exc)"},{"line_number":479,"context_line":"        return"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_3254df51","line":476,"in_reply_to":"fa31d9ce_c8d227d2","updated":"2017-02-14 10:11:07.000000000","message":"Done","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e30bbb406a7ff21a085fa4bc3255fee1f5dd55ff","unresolved":false,"context_lines":[{"line_number":475,"context_line":"                                                          numa_node_dirs)"},{"line_number":476,"context_line":"    except OSError as exc:"},{"line_number":477,"context_line":"        msg \u003d \u0027Failed to get list of NUMA nodes: %s\u0027"},{"line_number":478,"context_line":"        failures.add(msg, exc)"},{"line_number":479,"context_line":"        return"},{"line_number":480,"context_line":"    nic_device_path \u003d \u0027/sys/class/net/\u0027"},{"line_number":481,"context_line":"    try:"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_e8d52bb9","line":478,"updated":"2017-02-13 11:53:23.000000000","message":"this will fail the whole introspection. are you sure this situation is never normal?","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"c53e41db4a3e0e08a651738bf6ca133ae91871fc","unresolved":false,"context_lines":[{"line_number":475,"context_line":"                                                          numa_node_dirs)"},{"line_number":476,"context_line":"    except OSError as exc:"},{"line_number":477,"context_line":"        msg \u003d \u0027Failed to get list of NUMA nodes: %s\u0027"},{"line_number":478,"context_line":"        failures.add(msg, exc)"},{"line_number":479,"context_line":"        return"},{"line_number":480,"context_line":"    nic_device_path \u003d \u0027/sys/class/net/\u0027"},{"line_number":481,"context_line":"    try:"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_f2eb2776","line":478,"in_reply_to":"fa31d9ce_e8d52bb9","updated":"2017-02-14 10:11:07.000000000","message":"removed adding failures","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e30bbb406a7ff21a085fa4bc3255fee1f5dd55ff","unresolved":false,"context_lines":[{"line_number":482,"context_line":"        nic_dirs \u003d os.listdir(nic_device_path)"},{"line_number":483,"context_line":"        numa_topology[\u0027nics\u0027] \u003d get_numa_nodes_nics_info(nic_device_path,"},{"line_number":484,"context_line":"                                                         nic_dirs)"},{"line_number":485,"context_line":"    except OSError as exc:"},{"line_number":486,"context_line":"        msg \u003d \u0027Failed to get list of NICs: %s\u0027"},{"line_number":487,"context_line":"        failures.add(msg, exc)"},{"line_number":488,"context_line":"        return"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_08dd1fe0","line":485,"updated":"2017-02-13 11:53:23.000000000","message":"ditto","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"c53e41db4a3e0e08a651738bf6ca133ae91871fc","unresolved":false,"context_lines":[{"line_number":482,"context_line":"        nic_dirs \u003d os.listdir(nic_device_path)"},{"line_number":483,"context_line":"        numa_topology[\u0027nics\u0027] \u003d get_numa_nodes_nics_info(nic_device_path,"},{"line_number":484,"context_line":"                                                         nic_dirs)"},{"line_number":485,"context_line":"    except OSError as exc:"},{"line_number":486,"context_line":"        msg \u003d \u0027Failed to get list of NICs: %s\u0027"},{"line_number":487,"context_line":"        failures.add(msg, exc)"},{"line_number":488,"context_line":"        return"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_32021f3e","line":485,"in_reply_to":"fa31d9ce_08dd1fe0","updated":"2017-02-14 10:11:07.000000000","message":"Done","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e30bbb406a7ff21a085fa4bc3255fee1f5dd55ff","unresolved":false,"context_lines":[{"line_number":484,"context_line":"                                                         nic_dirs)"},{"line_number":485,"context_line":"    except OSError as exc:"},{"line_number":486,"context_line":"        msg \u003d \u0027Failed to get list of NICs: %s\u0027"},{"line_number":487,"context_line":"        failures.add(msg, exc)"},{"line_number":488,"context_line":"        return"},{"line_number":489,"context_line":"    data[\u0027numa_topology\u0027] \u003d numa_topology"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_28d823ef","line":487,"updated":"2017-02-13 11:53:23.000000000","message":"and ditto","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"c53e41db4a3e0e08a651738bf6ca133ae91871fc","unresolved":false,"context_lines":[{"line_number":484,"context_line":"                                                         nic_dirs)"},{"line_number":485,"context_line":"    except OSError as exc:"},{"line_number":486,"context_line":"        msg \u003d \u0027Failed to get list of NICs: %s\u0027"},{"line_number":487,"context_line":"        failures.add(msg, exc)"},{"line_number":488,"context_line":"        return"},{"line_number":489,"context_line":"    data[\u0027numa_topology\u0027] \u003d numa_topology"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa31d9ce_52fb1347","line":487,"in_reply_to":"fa31d9ce_28d823ef","updated":"2017-02-14 10:11:07.000000000","message":"Done","commit_id":"c76c32cdfab10d7cd9d37291605cd46417b97ca5"},{"author":{"_account_id":20462,"name":"Annie Lezil","email":"annie.lezil@gmail.com","username":"alezil"},"change_message_id":"a52249bb0237654cee6d9807e614663d61802275","unresolved":false,"context_lines":[{"line_number":489,"context_line":"                                                      numa_node_dirs)"},{"line_number":490,"context_line":"    try:"},{"line_number":491,"context_line":"        nic_dirs \u003d os.listdir(nic_device_path)"},{"line_number":492,"context_line":"    except OSError as exc1:"},{"line_number":493,"context_line":"        LOG.warning(\u0027Failed to get list of NICs: %s\u0027, exc1)"},{"line_number":494,"context_line":"        return"},{"line_number":495,"context_line":"    numa_topology[\u0027nics\u0027] \u003d get_numa_nodes_nics_info(nic_device_path,"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa31d9ce_e7b42e36","line":492,"range":{"start_line":492,"start_character":22,"end_line":492,"end_character":26},"updated":"2017-02-14 18:30:46.000000000","message":"exc1 is not a good naming scheme","commit_id":"4319d5107a698b11d2a4c771ef604af951a6ff10"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"7c41c87371d7148a1670f2a3671793722d195a1e","unresolved":false,"context_lines":[{"line_number":489,"context_line":"                                                      numa_node_dirs)"},{"line_number":490,"context_line":"    try:"},{"line_number":491,"context_line":"        nic_dirs \u003d os.listdir(nic_device_path)"},{"line_number":492,"context_line":"    except OSError as exc1:"},{"line_number":493,"context_line":"        LOG.warning(\u0027Failed to get list of NICs: %s\u0027, exc1)"},{"line_number":494,"context_line":"        return"},{"line_number":495,"context_line":"    numa_topology[\u0027nics\u0027] \u003d get_numa_nodes_nics_info(nic_device_path,"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa31d9ce_b73a52e5","line":492,"range":{"start_line":492,"start_character":22,"end_line":492,"end_character":26},"in_reply_to":"fa31d9ce_e7b42e36","updated":"2017-02-15 06:46:39.000000000","message":"Done","commit_id":"4319d5107a698b11d2a4c771ef604af951a6ff10"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"494d8e7cba215840112c4b806084dea7a15d1bae","unresolved":false,"context_lines":[{"line_number":353,"context_line":"                                 \u0027product_id\u0027: device})"},{"line_number":354,"context_line":"    data[\u0027pci_devices\u0027] \u003d pci_devices_info"},{"line_number":355,"context_line":""},{"line_number":356,"context_line":""},{"line_number":357,"context_line":"def get_numa_nodes_memory_info(numa_node_path, numa_node_dirs):"},{"line_number":358,"context_line":"    ram \u003d []"},{"line_number":359,"context_line":"    for numa_node_dir in numa_node_dirs:"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa31d9ce_e4e696af","line":356,"updated":"2017-02-16 10:43:59.000000000","message":"could you please move all your additions to a separate module, e.g. ironic_python_agent.numa_inspection or something like that? This file is growing too much already to my taste.","commit_id":"04f423f0113fcb7c3aa3cae2bc42b5442e031994"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"da4b4fedd3ea61f082158cca7ab1adcf9c00b3d9","unresolved":false,"context_lines":[{"line_number":353,"context_line":"                                 \u0027product_id\u0027: device})"},{"line_number":354,"context_line":"    data[\u0027pci_devices\u0027] \u003d pci_devices_info"},{"line_number":355,"context_line":""},{"line_number":356,"context_line":""},{"line_number":357,"context_line":"def get_numa_nodes_memory_info(numa_node_path, numa_node_dirs):"},{"line_number":358,"context_line":"    ram \u003d []"},{"line_number":359,"context_line":"    for numa_node_dir in numa_node_dirs:"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa31d9ce_6a542cca","line":356,"in_reply_to":"fa31d9ce_e4e696af","updated":"2017-02-16 12:29:57.000000000","message":"Done","commit_id":"04f423f0113fcb7c3aa3cae2bc42b5442e031994"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"494d8e7cba215840112c4b806084dea7a15d1bae","unresolved":false,"context_lines":[{"line_number":361,"context_line":"            or not numa_node_dir.startswith(\"node\")):"},{"line_number":362,"context_line":"            continue"},{"line_number":363,"context_line":"        numa_node_memory \u003d {}"},{"line_number":364,"context_line":"        meminfo_lines \u003d \"\""},{"line_number":365,"context_line":"        memory_kb \u003d 0"},{"line_number":366,"context_line":"        try:"},{"line_number":367,"context_line":"            with open(os.path.join(numa_node_path, numa_node_dir,"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa31d9ce_04ec8a8e","line":364,"updated":"2017-02-16 10:43:59.000000000","message":"nit: this is not needed, you either set it later or fail","commit_id":"04f423f0113fcb7c3aa3cae2bc42b5442e031994"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"da4b4fedd3ea61f082158cca7ab1adcf9c00b3d9","unresolved":false,"context_lines":[{"line_number":361,"context_line":"            or not numa_node_dir.startswith(\"node\")):"},{"line_number":362,"context_line":"            continue"},{"line_number":363,"context_line":"        numa_node_memory \u003d {}"},{"line_number":364,"context_line":"        meminfo_lines \u003d \"\""},{"line_number":365,"context_line":"        memory_kb \u003d 0"},{"line_number":366,"context_line":"        try:"},{"line_number":367,"context_line":"            with open(os.path.join(numa_node_path, numa_node_dir,"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa31d9ce_ea565ccd","line":364,"in_reply_to":"fa31d9ce_04ec8a8e","updated":"2017-02-16 12:29:57.000000000","message":"Done","commit_id":"04f423f0113fcb7c3aa3cae2bc42b5442e031994"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"494d8e7cba215840112c4b806084dea7a15d1bae","unresolved":false,"context_lines":[{"line_number":400,"context_line":"                numa_node_dir, thread_dir)) or"},{"line_number":401,"context_line":"                not thread_dir.startswith(\"cpu\")):"},{"line_number":402,"context_line":"                continue"},{"line_number":403,"context_line":"            cpu_id \u003d 0"},{"line_number":404,"context_line":"            thread_id \u003d int(thread_dir[3:])"},{"line_number":405,"context_line":"            numa_node_id \u003d int(numa_node_dir[4:])"},{"line_number":406,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa31d9ce_24018e3a","line":403,"updated":"2017-02-16 10:43:59.000000000","message":"ditto","commit_id":"04f423f0113fcb7c3aa3cae2bc42b5442e031994"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"da4b4fedd3ea61f082158cca7ab1adcf9c00b3d9","unresolved":false,"context_lines":[{"line_number":400,"context_line":"                numa_node_dir, thread_dir)) or"},{"line_number":401,"context_line":"                not thread_dir.startswith(\"cpu\")):"},{"line_number":402,"context_line":"                continue"},{"line_number":403,"context_line":"            cpu_id \u003d 0"},{"line_number":404,"context_line":"            thread_id \u003d int(thread_dir[3:])"},{"line_number":405,"context_line":"            numa_node_id \u003d int(numa_node_dir[4:])"},{"line_number":406,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa31d9ce_2a715478","line":403,"in_reply_to":"fa31d9ce_24018e3a","updated":"2017-02-16 12:29:57.000000000","message":"Done","commit_id":"04f423f0113fcb7c3aa3cae2bc42b5442e031994"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"494d8e7cba215840112c4b806084dea7a15d1bae","unresolved":false,"context_lines":[{"line_number":413,"context_line":"                            \u0027%s numa_node %s: %s\u0027, thread_dir,"},{"line_number":414,"context_line":"                            numa_node_dir, exc)"},{"line_number":415,"context_line":"                continue"},{"line_number":416,"context_line":"            dict_key \u003d cpu_id"},{"line_number":417,"context_line":"            if dict_key in dict_cpus.keys():"},{"line_number":418,"context_line":"                if thread_id not in dict_cpus[dict_key][\u0027thread_siblings\u0027]:"},{"line_number":419,"context_line":"                    dict_cpus[dict_key][\u0027thread_siblings\u0027].append(thread_id)"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa31d9ce_44fe8239","line":416,"updated":"2017-02-16 10:43:59.000000000","message":"this variable is redundant, just use cpu_id","commit_id":"04f423f0113fcb7c3aa3cae2bc42b5442e031994"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"da4b4fedd3ea61f082158cca7ab1adcf9c00b3d9","unresolved":false,"context_lines":[{"line_number":413,"context_line":"                            \u0027%s numa_node %s: %s\u0027, thread_dir,"},{"line_number":414,"context_line":"                            numa_node_dir, exc)"},{"line_number":415,"context_line":"                continue"},{"line_number":416,"context_line":"            dict_key \u003d cpu_id"},{"line_number":417,"context_line":"            if dict_key in dict_cpus.keys():"},{"line_number":418,"context_line":"                if thread_id not in dict_cpus[dict_key][\u0027thread_siblings\u0027]:"},{"line_number":419,"context_line":"                    dict_cpus[dict_key][\u0027thread_siblings\u0027].append(thread_id)"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa31d9ce_6a6b4c86","line":416,"in_reply_to":"fa31d9ce_44fe8239","updated":"2017-02-16 12:29:57.000000000","message":"Done","commit_id":"04f423f0113fcb7c3aa3cae2bc42b5442e031994"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"494d8e7cba215840112c4b806084dea7a15d1bae","unresolved":false,"context_lines":[{"line_number":414,"context_line":"                            numa_node_dir, exc)"},{"line_number":415,"context_line":"                continue"},{"line_number":416,"context_line":"            dict_key \u003d cpu_id"},{"line_number":417,"context_line":"            if dict_key in dict_cpus.keys():"},{"line_number":418,"context_line":"                if thread_id not in dict_cpus[dict_key][\u0027thread_siblings\u0027]:"},{"line_number":419,"context_line":"                    dict_cpus[dict_key][\u0027thread_siblings\u0027].append(thread_id)"},{"line_number":420,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa31d9ce_64fb8648","line":417,"updated":"2017-02-16 10:43:59.000000000","message":".keys() is not needed","commit_id":"04f423f0113fcb7c3aa3cae2bc42b5442e031994"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"da4b4fedd3ea61f082158cca7ab1adcf9c00b3d9","unresolved":false,"context_lines":[{"line_number":414,"context_line":"                            numa_node_dir, exc)"},{"line_number":415,"context_line":"                continue"},{"line_number":416,"context_line":"            dict_key \u003d cpu_id"},{"line_number":417,"context_line":"            if dict_key in dict_cpus.keys():"},{"line_number":418,"context_line":"                if thread_id not in dict_cpus[dict_key][\u0027thread_siblings\u0027]:"},{"line_number":419,"context_line":"                    dict_cpus[dict_key][\u0027thread_siblings\u0027].append(thread_id)"},{"line_number":420,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa31d9ce_8a688089","line":417,"in_reply_to":"fa31d9ce_64fb8648","updated":"2017-02-16 12:29:57.000000000","message":"Done","commit_id":"04f423f0113fcb7c3aa3cae2bc42b5442e031994"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"494d8e7cba215840112c4b806084dea7a15d1bae","unresolved":false,"context_lines":[{"line_number":431,"context_line":"    for nic_dir in nic_dirs:"},{"line_number":432,"context_line":"        if not os.path.isdir(os.path.join(nic_device_path, nic_dir, \u0027device\u0027)):"},{"line_number":433,"context_line":"            continue"},{"line_number":434,"context_line":"        numa_node_id \u003d 0"},{"line_number":435,"context_line":"        try:"},{"line_number":436,"context_line":"            with open(os.path.join(nic_device_path, nic_dir, \u0027device\u0027,"},{"line_number":437,"context_line":"                                   \u0027numa_node\u0027)) as nicsinfo_file:"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa31d9ce_84f87a4b","line":434,"updated":"2017-02-16 10:43:59.000000000","message":"nit: redundant","commit_id":"04f423f0113fcb7c3aa3cae2bc42b5442e031994"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"da4b4fedd3ea61f082158cca7ab1adcf9c00b3d9","unresolved":false,"context_lines":[{"line_number":431,"context_line":"    for nic_dir in nic_dirs:"},{"line_number":432,"context_line":"        if not os.path.isdir(os.path.join(nic_device_path, nic_dir, \u0027device\u0027)):"},{"line_number":433,"context_line":"            continue"},{"line_number":434,"context_line":"        numa_node_id \u003d 0"},{"line_number":435,"context_line":"        try:"},{"line_number":436,"context_line":"            with open(os.path.join(nic_device_path, nic_dir, \u0027device\u0027,"},{"line_number":437,"context_line":"                                   \u0027numa_node\u0027)) as nicsinfo_file:"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa31d9ce_ca08b8dc","line":434,"in_reply_to":"fa31d9ce_84f87a4b","updated":"2017-02-16 12:29:57.000000000","message":"Done","commit_id":"04f423f0113fcb7c3aa3cae2bc42b5442e031994"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"494d8e7cba215840112c4b806084dea7a15d1bae","unresolved":false,"context_lines":[{"line_number":444,"context_line":"        numa_node_nics[\u0027name\u0027] \u003d nic_dir"},{"line_number":445,"context_line":"        numa_node_nics[\u0027numa_node\u0027] \u003d numa_node_id"},{"line_number":446,"context_line":"        LOG.debug(\u0027Found a NIC %s in NUMA node %d\u0027, nic_dir,"},{"line_number":447,"context_line":"                  numa_node_id)"},{"line_number":448,"context_line":"        nics.append(numa_node_nics)"},{"line_number":449,"context_line":"    return nics"},{"line_number":450,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"fa31d9ce_a493beff","line":447,"updated":"2017-02-16 10:43:59.000000000","message":"I wonder why you don\u0027t do similar logging in other functions (for CPU and for memory)","commit_id":"04f423f0113fcb7c3aa3cae2bc42b5442e031994"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"da4b4fedd3ea61f082158cca7ab1adcf9c00b3d9","unresolved":false,"context_lines":[{"line_number":444,"context_line":"        numa_node_nics[\u0027name\u0027] \u003d nic_dir"},{"line_number":445,"context_line":"        numa_node_nics[\u0027numa_node\u0027] \u003d numa_node_id"},{"line_number":446,"context_line":"        LOG.debug(\u0027Found a NIC %s in NUMA node %d\u0027, nic_dir,"},{"line_number":447,"context_line":"                  numa_node_id)"},{"line_number":448,"context_line":"        nics.append(numa_node_nics)"},{"line_number":449,"context_line":"    return nics"},{"line_number":450,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"fa31d9ce_ea0d7ce9","line":447,"in_reply_to":"fa31d9ce_a493beff","updated":"2017-02-16 12:29:57.000000000","message":"Done","commit_id":"04f423f0113fcb7c3aa3cae2bc42b5442e031994"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"b00080b6f202283d1ac08c72415d0d9a4c828c2e","unresolved":false,"context_lines":[{"line_number":378,"context_line":"    nic_device_path \u003d \u0027/sys/class/net/\u0027"},{"line_number":379,"context_line":"    numa_info \u003d {}"},{"line_number":380,"context_line":"    try:"},{"line_number":381,"context_line":"        numa_node_dirs \u003d os.listdir(numa_node_path)"},{"line_number":382,"context_line":"    except OSError as exc:"},{"line_number":383,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes: %s\u0027, exc)"},{"line_number":384,"context_line":"        return"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba2be162_5d9f375f","line":381,"range":{"start_line":381,"start_character":8,"end_line":381,"end_character":22},"updated":"2017-03-01 09:41:23.000000000","message":"nit: you could get only nodes paths here to avoid code duplication in getting info methods, like:\n\nnuma_nodes_dirs \u003d [\nos.path.join(numa_node_path, p) for p in os.listdir(numa_node_path) if os.path.isdir(os.path.join(numa_node_path, p)) and p.startswith(\"node\")]\n\nor even:\n\nnuma_nodes_dirs \u003d  [\nos.path.join(numa_node_path, p) for p in os.walk(numa_node_path).next()[1] if p.startswith(\"node\")]","commit_id":"c8d011b2d6da55d9700d5aad1f3029953e5c2af7"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"4396ad91b1ed2d14ac5e6f595797c9ddf8cde0d3","unresolved":false,"context_lines":[{"line_number":378,"context_line":"    nic_device_path \u003d \u0027/sys/class/net/\u0027"},{"line_number":379,"context_line":"    numa_info \u003d {}"},{"line_number":380,"context_line":"    try:"},{"line_number":381,"context_line":"        numa_node_dirs \u003d os.listdir(numa_node_path)"},{"line_number":382,"context_line":"    except OSError as exc:"},{"line_number":383,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes: %s\u0027, exc)"},{"line_number":384,"context_line":"        return"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba2be162_3a1d0274","line":381,"range":{"start_line":381,"start_character":8,"end_line":381,"end_character":22},"in_reply_to":"ba2be162_5d9f375f","updated":"2017-03-01 10:58:44.000000000","message":"updated and return only dir name instead of full path.\nneed to get numa_node_id using dir name.","commit_id":"c8d011b2d6da55d9700d5aad1f3029953e5c2af7"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"b00080b6f202283d1ac08c72415d0d9a4c828c2e","unresolved":false,"context_lines":[{"line_number":382,"context_line":"    except OSError as exc:"},{"line_number":383,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes: %s\u0027, exc)"},{"line_number":384,"context_line":"        return"},{"line_number":385,"context_line":"    numa_info[\u0027ram\u0027] \u003d numa_inspector.get_nodes_memory_info(numa_node_path,"},{"line_number":386,"context_line":"                                                            numa_node_dirs)"},{"line_number":387,"context_line":"    numa_info[\u0027cpus\u0027] \u003d numa_inspector.get_nodes_cores_info(numa_node_path,"},{"line_number":388,"context_line":"                                                            numa_node_dirs)"},{"line_number":389,"context_line":"    try:"},{"line_number":390,"context_line":"        nic_dirs \u003d os.listdir(nic_device_path)"},{"line_number":391,"context_line":"    except OSError as exc:"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba2be162_4f105e4f","line":388,"range":{"start_line":385,"start_character":0,"end_line":388,"end_character":75},"updated":"2017-03-01 09:41:23.000000000","message":"if ram or cpus would be empty, are we fine with malformed numa info?","commit_id":"c8d011b2d6da55d9700d5aad1f3029953e5c2af7"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"4396ad91b1ed2d14ac5e6f595797c9ddf8cde0d3","unresolved":false,"context_lines":[{"line_number":382,"context_line":"    except OSError as exc:"},{"line_number":383,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes: %s\u0027, exc)"},{"line_number":384,"context_line":"        return"},{"line_number":385,"context_line":"    numa_info[\u0027ram\u0027] \u003d numa_inspector.get_nodes_memory_info(numa_node_path,"},{"line_number":386,"context_line":"                                                            numa_node_dirs)"},{"line_number":387,"context_line":"    numa_info[\u0027cpus\u0027] \u003d numa_inspector.get_nodes_cores_info(numa_node_path,"},{"line_number":388,"context_line":"                                                            numa_node_dirs)"},{"line_number":389,"context_line":"    try:"},{"line_number":390,"context_line":"        nic_dirs \u003d os.listdir(nic_device_path)"},{"line_number":391,"context_line":"    except OSError as exc:"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba2be162_35043314","line":388,"range":{"start_line":385,"start_character":0,"end_line":388,"end_character":75},"in_reply_to":"ba2be162_4f105e4f","updated":"2017-03-01 10:58:44.000000000","message":"fine, ram or cpus can be empty.","commit_id":"c8d011b2d6da55d9700d5aad1f3029953e5c2af7"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"2ce29a1afb00222b54fd3951d708ce10cb9652b5","unresolved":false,"context_lines":[{"line_number":379,"context_line":"    numa_info \u003d {}"},{"line_number":380,"context_line":"    numa_node_dirs \u003d []"},{"line_number":381,"context_line":"    try:"},{"line_number":382,"context_line":"        for numa_node_dir in os.listdir(numa_node_path):"},{"line_number":383,"context_line":"            if (os.path.isdir(os.path.join(numa_node_path, numa_node_dir))"},{"line_number":384,"context_line":"                and numa_node_dir.startswith(\"node\")):"},{"line_number":385,"context_line":"                numa_node_dirs.append(numa_node_dir)"},{"line_number":386,"context_line":"    except OSError as exc:"},{"line_number":387,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes: %s\u0027, exc)"},{"line_number":388,"context_line":"        return"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba2be162_76675925","line":385,"range":{"start_line":382,"start_character":0,"end_line":385,"end_character":52},"updated":"2017-03-02 11:20:00.000000000","message":"nit: you will need to join node path and name anyway for open file, so there are no need to pass both values as args, also joins will be not needed.\n\nanyway this nit imo","commit_id":"b74cfa032699acf8f20f7d0f717a2be4b46c7bc1"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a7c68240381c8e242aa14b1b7602a2ae9f3e0a64","unresolved":false,"context_lines":[{"line_number":379,"context_line":"    numa_info \u003d {}"},{"line_number":380,"context_line":"    numa_node_dirs \u003d []"},{"line_number":381,"context_line":"    try:"},{"line_number":382,"context_line":"        for numa_node_dir in os.listdir(numa_node_path):"},{"line_number":383,"context_line":"            if (os.path.isdir(os.path.join(numa_node_path, numa_node_dir))"},{"line_number":384,"context_line":"                and numa_node_dir.startswith(\"node\")):"},{"line_number":385,"context_line":"                numa_node_dirs.append(numa_node_dir)"},{"line_number":386,"context_line":"    except OSError as exc:"},{"line_number":387,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes: %s\u0027, exc)"},{"line_number":388,"context_line":"        return"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba2be162_3e9cd3bf","line":385,"range":{"start_line":382,"start_character":0,"end_line":385,"end_character":52},"in_reply_to":"ba2be162_76675925","updated":"2017-03-02 12:35:47.000000000","message":"Done","commit_id":"b74cfa032699acf8f20f7d0f717a2be4b46c7bc1"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ee540c96c3524071253564091228cded6c6ecc6d","unresolved":false,"context_lines":[{"line_number":386,"context_line":"                numa_node_dirs.append(numa_node_dir_path)"},{"line_number":387,"context_line":"    except OSError as exc:"},{"line_number":388,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes: %s\u0027, exc)"},{"line_number":389,"context_line":"        return"},{"line_number":390,"context_line":"    numa_info[\u0027ram\u0027] \u003d numa_inspector.get_nodes_memory_info(numa_node_dirs)"},{"line_number":391,"context_line":"    numa_info[\u0027cpus\u0027] \u003d numa_inspector.get_nodes_cores_info(numa_node_dirs)"},{"line_number":392,"context_line":"    try:"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_3133dd63","line":389,"range":{"start_line":389,"start_character":8,"end_line":389,"end_character":14},"updated":"2017-03-10 15:04:15.000000000","message":"this doesn\u0027t accumulate the failures just exits w/ first issue, not sure that\u0027s the expected thing to do","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"36cfe53817ca15f91222505d671eee9994814305","unresolved":false,"context_lines":[{"line_number":386,"context_line":"                numa_node_dirs.append(numa_node_dir_path)"},{"line_number":387,"context_line":"    except OSError as exc:"},{"line_number":388,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes: %s\u0027, exc)"},{"line_number":389,"context_line":"        return"},{"line_number":390,"context_line":"    numa_info[\u0027ram\u0027] \u003d numa_inspector.get_nodes_memory_info(numa_node_dirs)"},{"line_number":391,"context_line":"    numa_info[\u0027cpus\u0027] \u003d numa_inspector.get_nodes_cores_info(numa_node_dirs)"},{"line_number":392,"context_line":"    try:"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_cec71c94","line":389,"range":{"start_line":389,"start_character":8,"end_line":389,"end_character":14},"in_reply_to":"9a30ddce_3133dd63","updated":"2017-03-12 13:56:08.000000000","message":"Done","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ee540c96c3524071253564091228cded6c6ecc6d","unresolved":false,"context_lines":[{"line_number":387,"context_line":"    except OSError as exc:"},{"line_number":388,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes: %s\u0027, exc)"},{"line_number":389,"context_line":"        return"},{"line_number":390,"context_line":"    numa_info[\u0027ram\u0027] \u003d numa_inspector.get_nodes_memory_info(numa_node_dirs)"},{"line_number":391,"context_line":"    numa_info[\u0027cpus\u0027] \u003d numa_inspector.get_nodes_cores_info(numa_node_dirs)"},{"line_number":392,"context_line":"    try:"},{"line_number":393,"context_line":"        nic_dirs \u003d os.listdir(nic_device_path)"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_9125690a","line":390,"range":{"start_line":390,"start_character":38,"end_line":390,"end_character":75},"updated":"2017-03-10 15:04:15.000000000","message":"how about accumulating failures from this call?","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"36cfe53817ca15f91222505d671eee9994814305","unresolved":false,"context_lines":[{"line_number":387,"context_line":"    except OSError as exc:"},{"line_number":388,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes: %s\u0027, exc)"},{"line_number":389,"context_line":"        return"},{"line_number":390,"context_line":"    numa_info[\u0027ram\u0027] \u003d numa_inspector.get_nodes_memory_info(numa_node_dirs)"},{"line_number":391,"context_line":"    numa_info[\u0027cpus\u0027] \u003d numa_inspector.get_nodes_cores_info(numa_node_dirs)"},{"line_number":392,"context_line":"    try:"},{"line_number":393,"context_line":"        nic_dirs \u003d os.listdir(nic_device_path)"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_eec22084","line":390,"range":{"start_line":390,"start_character":38,"end_line":390,"end_character":75},"in_reply_to":"9a30ddce_9125690a","updated":"2017-03-12 13:56:08.000000000","message":"Done","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ee540c96c3524071253564091228cded6c6ecc6d","unresolved":false,"context_lines":[{"line_number":388,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes: %s\u0027, exc)"},{"line_number":389,"context_line":"        return"},{"line_number":390,"context_line":"    numa_info[\u0027ram\u0027] \u003d numa_inspector.get_nodes_memory_info(numa_node_dirs)"},{"line_number":391,"context_line":"    numa_info[\u0027cpus\u0027] \u003d numa_inspector.get_nodes_cores_info(numa_node_dirs)"},{"line_number":392,"context_line":"    try:"},{"line_number":393,"context_line":"        nic_dirs \u003d os.listdir(nic_device_path)"},{"line_number":394,"context_line":"    except OSError as exc:"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_118099bf","line":391,"range":{"start_line":391,"start_character":39,"end_line":391,"end_character":75},"updated":"2017-03-10 15:04:15.000000000","message":"ditto","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"36cfe53817ca15f91222505d671eee9994814305","unresolved":false,"context_lines":[{"line_number":388,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes: %s\u0027, exc)"},{"line_number":389,"context_line":"        return"},{"line_number":390,"context_line":"    numa_info[\u0027ram\u0027] \u003d numa_inspector.get_nodes_memory_info(numa_node_dirs)"},{"line_number":391,"context_line":"    numa_info[\u0027cpus\u0027] \u003d numa_inspector.get_nodes_cores_info(numa_node_dirs)"},{"line_number":392,"context_line":"    try:"},{"line_number":393,"context_line":"        nic_dirs \u003d os.listdir(nic_device_path)"},{"line_number":394,"context_line":"    except OSError as exc:"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_0ebe94fe","line":391,"range":{"start_line":391,"start_character":39,"end_line":391,"end_character":75},"in_reply_to":"9a30ddce_118099bf","updated":"2017-03-12 13:56:08.000000000","message":"Done","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ee540c96c3524071253564091228cded6c6ecc6d","unresolved":false,"context_lines":[{"line_number":393,"context_line":"        nic_dirs \u003d os.listdir(nic_device_path)"},{"line_number":394,"context_line":"    except OSError as exc:"},{"line_number":395,"context_line":"        LOG.warning(\u0027Failed to get list of NICs: %s\u0027, exc)"},{"line_number":396,"context_line":"        return"},{"line_number":397,"context_line":"    numa_info[\u0027nics\u0027] \u003d numa_inspector.get_nodes_nics_info(nic_device_path,"},{"line_number":398,"context_line":"                                                           nic_dirs)"},{"line_number":399,"context_line":"    data[\u0027numa_topology\u0027] \u003d numa_info"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_b147cdba","line":396,"range":{"start_line":396,"start_character":8,"end_line":396,"end_character":14},"updated":"2017-03-10 15:04:15.000000000","message":"ditto","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"36cfe53817ca15f91222505d671eee9994814305","unresolved":false,"context_lines":[{"line_number":393,"context_line":"        nic_dirs \u003d os.listdir(nic_device_path)"},{"line_number":394,"context_line":"    except OSError as exc:"},{"line_number":395,"context_line":"        LOG.warning(\u0027Failed to get list of NICs: %s\u0027, exc)"},{"line_number":396,"context_line":"        return"},{"line_number":397,"context_line":"    numa_info[\u0027nics\u0027] \u003d numa_inspector.get_nodes_nics_info(nic_device_path,"},{"line_number":398,"context_line":"                                                           nic_dirs)"},{"line_number":399,"context_line":"    data[\u0027numa_topology\u0027] \u003d numa_info"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_2eb99815","line":396,"range":{"start_line":396,"start_character":8,"end_line":396,"end_character":14},"in_reply_to":"9a30ddce_b147cdba","updated":"2017-03-12 13:56:08.000000000","message":"Done","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ee540c96c3524071253564091228cded6c6ecc6d","unresolved":false,"context_lines":[{"line_number":394,"context_line":"    except OSError as exc:"},{"line_number":395,"context_line":"        LOG.warning(\u0027Failed to get list of NICs: %s\u0027, exc)"},{"line_number":396,"context_line":"        return"},{"line_number":397,"context_line":"    numa_info[\u0027nics\u0027] \u003d numa_inspector.get_nodes_nics_info(nic_device_path,"},{"line_number":398,"context_line":"                                                           nic_dirs)"},{"line_number":399,"context_line":"    data[\u0027numa_topology\u0027] \u003d numa_info"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_916c8936","line":398,"range":{"start_line":397,"start_character":39,"end_line":398,"end_character":68},"updated":"2017-03-10 15:04:15.000000000","message":"ditto w/ call failures accumulating","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"36cfe53817ca15f91222505d671eee9994814305","unresolved":false,"context_lines":[{"line_number":394,"context_line":"    except OSError as exc:"},{"line_number":395,"context_line":"        LOG.warning(\u0027Failed to get list of NICs: %s\u0027, exc)"},{"line_number":396,"context_line":"        return"},{"line_number":397,"context_line":"    numa_info[\u0027nics\u0027] \u003d numa_inspector.get_nodes_nics_info(nic_device_path,"},{"line_number":398,"context_line":"                                                           nic_dirs)"},{"line_number":399,"context_line":"    data[\u0027numa_topology\u0027] \u003d numa_info"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_4e3a4c9a","line":398,"range":{"start_line":397,"start_character":39,"end_line":398,"end_character":68},"in_reply_to":"9a30ddce_916c8936","updated":"2017-03-12 13:56:08.000000000","message":"Done","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e2a003153b19a28751d4d84482f018a7f83d907c","unresolved":false,"context_lines":[{"line_number":348,"context_line":"    data[\u0027pci_devices\u0027] \u003d pci_devices_info"},{"line_number":349,"context_line":""},{"line_number":350,"context_line":""},{"line_number":351,"context_line":"def collect_numa_topology_info(data, failures):"},{"line_number":352,"context_line":"    \"\"\"Collect the NUMA topology information."},{"line_number":353,"context_line":""},{"line_number":354,"context_line":"    {"}],"source_content_type":"text/x-python","patch_set":18,"id":"1a1ced50_4675be61","line":351,"updated":"2017-03-23 12:21:08.000000000","message":"please move this to numa_inspector.py","commit_id":"d529abfc364ad36c7c109163c7023a7862e8ca27"},{"author":{"_account_id":18904,"name":"Karthik S","email":"ksundara@redhat.com","username":"karthiks"},"change_message_id":"f599d36e7225a66ed559b558c2ee325e49344c28","unresolved":false,"context_lines":[{"line_number":348,"context_line":"    data[\u0027pci_devices\u0027] \u003d pci_devices_info"},{"line_number":349,"context_line":""},{"line_number":350,"context_line":""},{"line_number":351,"context_line":"def collect_numa_topology_info(data, failures):"},{"line_number":352,"context_line":"    \"\"\"Collect the NUMA topology information."},{"line_number":353,"context_line":""},{"line_number":354,"context_line":"    {"}],"source_content_type":"text/x-python","patch_set":18,"id":"1a1ced50_6948c6cc","line":351,"in_reply_to":"1a1ced50_4675be61","updated":"2017-03-23 14:52:39.000000000","message":"Done","commit_id":"d529abfc364ad36c7c109163c7023a7862e8ca27"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e2a003153b19a28751d4d84482f018a7f83d907c","unresolved":false,"context_lines":[{"line_number":379,"context_line":"    numa_info \u003d {}"},{"line_number":380,"context_line":"    numa_info[\u0027ram\u0027] \u003d []"},{"line_number":381,"context_line":"    numa_info[\u0027cpus\u0027] \u003d []"},{"line_number":382,"context_line":"    numa_info[\u0027nics\u0027] \u003d []"},{"line_number":383,"context_line":"    numa_node_dirs \u003d []"},{"line_number":384,"context_line":"    numa_nodes_failure \u003d False"},{"line_number":385,"context_line":"    numa_nics_failure \u003d False"}],"source_content_type":"text/x-python","patch_set":18,"id":"1a1ced50_6670fa72","line":382,"updated":"2017-03-23 12:21:08.000000000","message":"nit: \n\n numa_info \u003d {\u0027ram\u0027: [], \u0027cpus\u0027: [], \u0027nics\u0027: []}","commit_id":"d529abfc364ad36c7c109163c7023a7862e8ca27"},{"author":{"_account_id":18904,"name":"Karthik S","email":"ksundara@redhat.com","username":"karthiks"},"change_message_id":"f599d36e7225a66ed559b558c2ee325e49344c28","unresolved":false,"context_lines":[{"line_number":379,"context_line":"    numa_info \u003d {}"},{"line_number":380,"context_line":"    numa_info[\u0027ram\u0027] \u003d []"},{"line_number":381,"context_line":"    numa_info[\u0027cpus\u0027] \u003d []"},{"line_number":382,"context_line":"    numa_info[\u0027nics\u0027] \u003d []"},{"line_number":383,"context_line":"    numa_node_dirs \u003d []"},{"line_number":384,"context_line":"    numa_nodes_failure \u003d False"},{"line_number":385,"context_line":"    numa_nics_failure \u003d False"}],"source_content_type":"text/x-python","patch_set":18,"id":"1a1ced50_e9a3d6fd","line":382,"in_reply_to":"1a1ced50_6670fa72","updated":"2017-03-23 14:52:39.000000000","message":"Done","commit_id":"d529abfc364ad36c7c109163c7023a7862e8ca27"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e2a003153b19a28751d4d84482f018a7f83d907c","unresolved":false,"context_lines":[{"line_number":391,"context_line":"                numa_node_dirs.append(numa_node_dir_path)"},{"line_number":392,"context_line":"    except OSError as exc:"},{"line_number":393,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes: %s\u0027, exc)"},{"line_number":394,"context_line":"        numa_nodes_failure \u003d True"},{"line_number":395,"context_line":"    try:"},{"line_number":396,"context_line":"        nic_dirs \u003d os.listdir(nic_device_path)"},{"line_number":397,"context_line":"    except OSError as exc:"}],"source_content_type":"text/x-python","patch_set":18,"id":"1a1ced50_866b3684","line":394,"updated":"2017-03-23 12:21:08.000000000","message":"please use \"else\" branch instead of an explicit flag","commit_id":"d529abfc364ad36c7c109163c7023a7862e8ca27"},{"author":{"_account_id":18904,"name":"Karthik S","email":"ksundara@redhat.com","username":"karthiks"},"change_message_id":"f599d36e7225a66ed559b558c2ee325e49344c28","unresolved":false,"context_lines":[{"line_number":391,"context_line":"                numa_node_dirs.append(numa_node_dir_path)"},{"line_number":392,"context_line":"    except OSError as exc:"},{"line_number":393,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes: %s\u0027, exc)"},{"line_number":394,"context_line":"        numa_nodes_failure \u003d True"},{"line_number":395,"context_line":"    try:"},{"line_number":396,"context_line":"        nic_dirs \u003d os.listdir(nic_device_path)"},{"line_number":397,"context_line":"    except OSError as exc:"}],"source_content_type":"text/x-python","patch_set":18,"id":"1a1ced50_29e08e28","line":394,"in_reply_to":"1a1ced50_866b3684","updated":"2017-03-23 14:52:39.000000000","message":"Done","commit_id":"d529abfc364ad36c7c109163c7023a7862e8ca27"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e2a003153b19a28751d4d84482f018a7f83d907c","unresolved":false,"context_lines":[{"line_number":396,"context_line":"        nic_dirs \u003d os.listdir(nic_device_path)"},{"line_number":397,"context_line":"    except OSError as exc:"},{"line_number":398,"context_line":"        LOG.warning(\u0027Failed to get list of NICs: %s\u0027, exc)"},{"line_number":399,"context_line":"        numa_nics_failure \u003d True"},{"line_number":400,"context_line":"    if not numa_nodes_failure:"},{"line_number":401,"context_line":"        try:"},{"line_number":402,"context_line":"            numa_info[\u0027ram\u0027] \u003d numa_insp.get_nodes_memory_info(numa_node_dirs)"}],"source_content_type":"text/x-python","patch_set":18,"id":"1a1ced50_a66672b8","line":399,"updated":"2017-03-23 12:21:08.000000000","message":"ditto","commit_id":"d529abfc364ad36c7c109163c7023a7862e8ca27"},{"author":{"_account_id":18904,"name":"Karthik S","email":"ksundara@redhat.com","username":"karthiks"},"change_message_id":"f599d36e7225a66ed559b558c2ee325e49344c28","unresolved":false,"context_lines":[{"line_number":396,"context_line":"        nic_dirs \u003d os.listdir(nic_device_path)"},{"line_number":397,"context_line":"    except OSError as exc:"},{"line_number":398,"context_line":"        LOG.warning(\u0027Failed to get list of NICs: %s\u0027, exc)"},{"line_number":399,"context_line":"        numa_nics_failure \u003d True"},{"line_number":400,"context_line":"    if not numa_nodes_failure:"},{"line_number":401,"context_line":"        try:"},{"line_number":402,"context_line":"            numa_info[\u0027ram\u0027] \u003d numa_insp.get_nodes_memory_info(numa_node_dirs)"}],"source_content_type":"text/x-python","patch_set":18,"id":"1a1ced50_49db0a7c","line":399,"in_reply_to":"1a1ced50_a66672b8","updated":"2017-03-23 14:52:39.000000000","message":"Done","commit_id":"d529abfc364ad36c7c109163c7023a7862e8ca27"}],"ironic_python_agent/numa_inspector.py":[{"author":{"_account_id":20462,"name":"Annie Lezil","email":"annie.lezil@gmail.com","username":"alezil"},"change_message_id":"2f9b00984b0582a9dbf70052ac7c8f7876b787fd","unresolved":false,"context_lines":[{"line_number":122,"context_line":"    return nics"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"def collect_numa_topology_info(data, failures):"},{"line_number":126,"context_line":"    \"\"\"Collect the NUMA topology information."},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    {"}],"source_content_type":"text/x-python","patch_set":11,"id":"da36d5c6_52c6ef49","line":125,"updated":"2017-02-21 22:55:50.000000000","message":"I prefer having \"collect_numa_topology_info\" in inpector.py and the rest of the functions in separate file.","commit_id":"901b4f99d44646e89ce5e06906abb0f1da8fcabe"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"3651701712fb29a11d009802cc9222094a36c7fe","unresolved":false,"context_lines":[{"line_number":122,"context_line":"    return nics"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"def collect_numa_topology_info(data, failures):"},{"line_number":126,"context_line":"    \"\"\"Collect the NUMA topology information."},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    {"}],"source_content_type":"text/x-python","patch_set":11,"id":"da36d5c6_827accef","line":125,"in_reply_to":"da36d5c6_52c6ef49","updated":"2017-02-22 06:57:51.000000000","message":"Done","commit_id":"901b4f99d44646e89ce5e06906abb0f1da8fcabe"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"b00080b6f202283d1ac08c72415d0d9a4c828c2e","unresolved":false,"context_lines":[{"line_number":110,"context_line":"                                   \u0027numa_node\u0027)) as nicsinfo_file:"},{"line_number":111,"context_line":"                numa_node_id \u003d int(nicsinfo_file.read().strip())"},{"line_number":112,"context_line":"        except IOError as exc:"},{"line_number":113,"context_line":"            LOG.warning(\u0027Failed to gather NUMA node for NICs %s: %s\u0027,"},{"line_number":114,"context_line":"                        nic_dir, exc)"},{"line_number":115,"context_line":"            continue"},{"line_number":116,"context_line":"        numa_node_nics \u003d {}"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba2be162_ef11125f","line":113,"range":{"start_line":113,"start_character":56,"end_line":113,"end_character":60},"updated":"2017-03-01 09:41:23.000000000","message":"nit: s/NICs/NIC","commit_id":"c8d011b2d6da55d9700d5aad1f3029953e5c2af7"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"4396ad91b1ed2d14ac5e6f595797c9ddf8cde0d3","unresolved":false,"context_lines":[{"line_number":110,"context_line":"                                   \u0027numa_node\u0027)) as nicsinfo_file:"},{"line_number":111,"context_line":"                numa_node_id \u003d int(nicsinfo_file.read().strip())"},{"line_number":112,"context_line":"        except IOError as exc:"},{"line_number":113,"context_line":"            LOG.warning(\u0027Failed to gather NUMA node for NICs %s: %s\u0027,"},{"line_number":114,"context_line":"                        nic_dir, exc)"},{"line_number":115,"context_line":"            continue"},{"line_number":116,"context_line":"        numa_node_nics \u003d {}"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba2be162_b5aca3ee","line":113,"range":{"start_line":113,"start_character":56,"end_line":113,"end_character":60},"in_reply_to":"ba2be162_ef11125f","updated":"2017-03-01 10:58:44.000000000","message":"Done","commit_id":"c8d011b2d6da55d9700d5aad1f3029953e5c2af7"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"ba43e6c9ffe20ae5511361667c54417f74b5747d","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                value \u003d line.split(\":\")[1].strip()"},{"line_number":45,"context_line":"                memory_kb \u003d int(UNIT_CONVERTER(value).to_base_units())"},{"line_number":46,"context_line":"                break"},{"line_number":47,"context_line":"        numa_node_id \u003d int(numa_node_dir[(numa_node_dir.rindex(\"node\") + 4):])"},{"line_number":48,"context_line":"        numa_node_memory[\u0027numa_node\u0027] \u003d numa_node_id"},{"line_number":49,"context_line":"        numa_node_memory[\u0027size_kb\u0027] \u003d memory_kb"},{"line_number":50,"context_line":"        LOG.debug(\u0027Found memory available %d KB in NUMA node %d\u0027,"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba2be162_d46a7dec","line":47,"range":{"start_line":47,"start_character":27,"end_line":47,"end_character":76},"updated":"2017-03-03 12:28:17.000000000","message":"nit: os.path.basename(numa_node_dirs)[4:]","commit_id":"50a51a710bf4d5708856836ce0a01b7e57457b29"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"9a5999721e42b4d3907d7fa6de0774c632df7ea5","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                value \u003d line.split(\":\")[1].strip()"},{"line_number":45,"context_line":"                memory_kb \u003d int(UNIT_CONVERTER(value).to_base_units())"},{"line_number":46,"context_line":"                break"},{"line_number":47,"context_line":"        numa_node_id \u003d int(numa_node_dir[(numa_node_dir.rindex(\"node\") + 4):])"},{"line_number":48,"context_line":"        numa_node_memory[\u0027numa_node\u0027] \u003d numa_node_id"},{"line_number":49,"context_line":"        numa_node_memory[\u0027size_kb\u0027] \u003d memory_kb"},{"line_number":50,"context_line":"        LOG.debug(\u0027Found memory available %d KB in NUMA node %d\u0027,"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba2be162_3c7010dc","line":47,"range":{"start_line":47,"start_character":27,"end_line":47,"end_character":76},"in_reply_to":"ba2be162_d46a7dec","updated":"2017-03-03 18:30:05.000000000","message":"Done","commit_id":"50a51a710bf4d5708856836ce0a01b7e57457b29"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ee540c96c3524071253564091228cded6c6ecc6d","unresolved":false,"context_lines":[{"line_number":41,"context_line":"            continue"},{"line_number":42,"context_line":"        for line in meminfo_lines:"},{"line_number":43,"context_line":"            if \"MemTotal:\" in line:"},{"line_number":44,"context_line":"                value \u003d line.split(\":\")[1].strip()"},{"line_number":45,"context_line":"                memory_kb \u003d int(UNIT_CONVERTER(value).to_base_units())"},{"line_number":46,"context_line":"                break"},{"line_number":47,"context_line":"        numa_node_id \u003d int(os.path.basename(numa_node_dir)[4:])"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_c4d641f0","line":44,"range":{"start_line":44,"start_character":16,"end_line":44,"end_character":50},"updated":"2017-03-10 15:04:15.000000000","message":"maybe not very likely but could cause an index error in case unexpected format\nMaybe have an IncompatibleNumaFormatError exception to address this?","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"36cfe53817ca15f91222505d671eee9994814305","unresolved":false,"context_lines":[{"line_number":41,"context_line":"            continue"},{"line_number":42,"context_line":"        for line in meminfo_lines:"},{"line_number":43,"context_line":"            if \"MemTotal:\" in line:"},{"line_number":44,"context_line":"                value \u003d line.split(\":\")[1].strip()"},{"line_number":45,"context_line":"                memory_kb \u003d int(UNIT_CONVERTER(value).to_base_units())"},{"line_number":46,"context_line":"                break"},{"line_number":47,"context_line":"        numa_node_id \u003d int(os.path.basename(numa_node_dir)[4:])"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_6e3d508e","line":44,"range":{"start_line":44,"start_character":16,"end_line":44,"end_character":50},"in_reply_to":"9a30ddce_c4d641f0","updated":"2017-03-12 13:56:08.000000000","message":"Done","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ee540c96c3524071253564091228cded6c6ecc6d","unresolved":false,"context_lines":[{"line_number":42,"context_line":"        for line in meminfo_lines:"},{"line_number":43,"context_line":"            if \"MemTotal:\" in line:"},{"line_number":44,"context_line":"                value \u003d line.split(\":\")[1].strip()"},{"line_number":45,"context_line":"                memory_kb \u003d int(UNIT_CONVERTER(value).to_base_units())"},{"line_number":46,"context_line":"                break"},{"line_number":47,"context_line":"        numa_node_id \u003d int(os.path.basename(numa_node_dir)[4:])"},{"line_number":48,"context_line":"        numa_node_memory[\u0027numa_node\u0027] \u003d numa_node_id"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_4438913d","line":45,"range":{"start_line":45,"start_character":28,"end_line":45,"end_character":70},"updated":"2017-03-10 15:04:15.000000000","message":"ditto but value error (if there were three semicolons)","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"36cfe53817ca15f91222505d671eee9994814305","unresolved":false,"context_lines":[{"line_number":42,"context_line":"        for line in meminfo_lines:"},{"line_number":43,"context_line":"            if \"MemTotal:\" in line:"},{"line_number":44,"context_line":"                value \u003d line.split(\":\")[1].strip()"},{"line_number":45,"context_line":"                memory_kb \u003d int(UNIT_CONVERTER(value).to_base_units())"},{"line_number":46,"context_line":"                break"},{"line_number":47,"context_line":"        numa_node_id \u003d int(os.path.basename(numa_node_dir)[4:])"},{"line_number":48,"context_line":"        numa_node_memory[\u0027numa_node\u0027] \u003d numa_node_id"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_8e40c408","line":45,"range":{"start_line":45,"start_character":28,"end_line":45,"end_character":70},"in_reply_to":"9a30ddce_4438913d","updated":"2017-03-12 13:56:08.000000000","message":"Done","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ee540c96c3524071253564091228cded6c6ecc6d","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                value \u003d line.split(\":\")[1].strip()"},{"line_number":45,"context_line":"                memory_kb \u003d int(UNIT_CONVERTER(value).to_base_units())"},{"line_number":46,"context_line":"                break"},{"line_number":47,"context_line":"        numa_node_id \u003d int(os.path.basename(numa_node_dir)[4:])"},{"line_number":48,"context_line":"        numa_node_memory[\u0027numa_node\u0027] \u003d numa_node_id"},{"line_number":49,"context_line":"        numa_node_memory[\u0027size_kb\u0027] \u003d memory_kb"},{"line_number":50,"context_line":"        LOG.debug(\u0027Found memory available %d KB in NUMA node %d\u0027,"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_a41eadb8","line":47,"range":{"start_line":47,"start_character":23,"end_line":47,"end_character":63},"updated":"2017-03-10 15:04:15.000000000","message":"ditto value/index errors","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"36cfe53817ca15f91222505d671eee9994814305","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                value \u003d line.split(\":\")[1].strip()"},{"line_number":45,"context_line":"                memory_kb \u003d int(UNIT_CONVERTER(value).to_base_units())"},{"line_number":46,"context_line":"                break"},{"line_number":47,"context_line":"        numa_node_id \u003d int(os.path.basename(numa_node_dir)[4:])"},{"line_number":48,"context_line":"        numa_node_memory[\u0027numa_node\u0027] \u003d numa_node_id"},{"line_number":49,"context_line":"        numa_node_memory[\u0027size_kb\u0027] \u003d memory_kb"},{"line_number":50,"context_line":"        LOG.debug(\u0027Found memory available %d KB in NUMA node %d\u0027,"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_ae43c811","line":47,"range":{"start_line":47,"start_character":23,"end_line":47,"end_character":63},"in_reply_to":"9a30ddce_a41eadb8","updated":"2017-03-12 13:56:08.000000000","message":"Done","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ee540c96c3524071253564091228cded6c6ecc6d","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    return ram"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"def get_nodes_cores_info(numa_node_dirs):"},{"line_number":57,"context_line":"    dict_cpus \u003d {}"},{"line_number":58,"context_line":"    for numa_node_dir in numa_node_dirs:"},{"line_number":59,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_e75fc7e2","line":56,"range":{"start_line":56,"start_character":4,"end_line":56,"end_character":24},"updated":"2017-03-10 15:04:15.000000000","message":"would be nice to have a docstring showing the path that is examined by these functions:\n\n   /sys/devices/system/node/node\u003cnode_id\u003e/\n      cpu\u003ccpu_id\u003e\n      cpu\u003ccpu_id\u003e/topology/core_id","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"36cfe53817ca15f91222505d671eee9994814305","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    return ram"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"def get_nodes_cores_info(numa_node_dirs):"},{"line_number":57,"context_line":"    dict_cpus \u003d {}"},{"line_number":58,"context_line":"    for numa_node_dir in numa_node_dirs:"},{"line_number":59,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_ee494032","line":56,"range":{"start_line":56,"start_character":4,"end_line":56,"end_character":24},"in_reply_to":"9a30ddce_e75fc7e2","updated":"2017-03-12 13:56:08.000000000","message":"Done","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ee540c96c3524071253564091228cded6c6ecc6d","unresolved":false,"context_lines":[{"line_number":66,"context_line":"            if (not os.path.isdir(os.path.join(numa_node_dir, thread_dir))"},{"line_number":67,"context_line":"                or not thread_dir.startswith(\"cpu\")):"},{"line_number":68,"context_line":"                continue"},{"line_number":69,"context_line":"            thread_id \u003d int(thread_dir[3:])"},{"line_number":70,"context_line":"            numa_node_id \u003d int(os.path.basename(numa_node_dir)[4:])"},{"line_number":71,"context_line":"            try:"},{"line_number":72,"context_line":"                with open(os.path.join(numa_node_dir, thread_dir, \u0027topology\u0027,"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_e44b4585","line":69,"range":{"start_line":69,"start_character":12,"end_line":69,"end_character":43},"updated":"2017-03-10 15:04:15.000000000","message":"ditto w/ index/value errors","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"36cfe53817ca15f91222505d671eee9994814305","unresolved":false,"context_lines":[{"line_number":66,"context_line":"            if (not os.path.isdir(os.path.join(numa_node_dir, thread_dir))"},{"line_number":67,"context_line":"                or not thread_dir.startswith(\"cpu\")):"},{"line_number":68,"context_line":"                continue"},{"line_number":69,"context_line":"            thread_id \u003d int(thread_dir[3:])"},{"line_number":70,"context_line":"            numa_node_id \u003d int(os.path.basename(numa_node_dir)[4:])"},{"line_number":71,"context_line":"            try:"},{"line_number":72,"context_line":"                with open(os.path.join(numa_node_dir, thread_dir, \u0027topology\u0027,"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_0e55b4c4","line":69,"range":{"start_line":69,"start_character":12,"end_line":69,"end_character":43},"in_reply_to":"9a30ddce_e44b4585","updated":"2017-03-12 13:56:08.000000000","message":"Done","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ee540c96c3524071253564091228cded6c6ecc6d","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                or not thread_dir.startswith(\"cpu\")):"},{"line_number":68,"context_line":"                continue"},{"line_number":69,"context_line":"            thread_id \u003d int(thread_dir[3:])"},{"line_number":70,"context_line":"            numa_node_id \u003d int(os.path.basename(numa_node_dir)[4:])"},{"line_number":71,"context_line":"            try:"},{"line_number":72,"context_line":"                with open(os.path.join(numa_node_dir, thread_dir, \u0027topology\u0027,"},{"line_number":73,"context_line":"                          \u0027core_id\u0027)) as core_id_file:"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_677e771a","line":70,"range":{"start_line":70,"start_character":12,"end_line":70,"end_character":67},"updated":"2017-03-10 15:04:15.000000000","message":"should be one loop up as it doesn\u0027t change in this loop","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"ea2a8e777fda7cd8e73d687dfc59f5c2017e8a86","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                or not thread_dir.startswith(\"cpu\")):"},{"line_number":68,"context_line":"                continue"},{"line_number":69,"context_line":"            thread_id \u003d int(thread_dir[3:])"},{"line_number":70,"context_line":"            numa_node_id \u003d int(os.path.basename(numa_node_dir)[4:])"},{"line_number":71,"context_line":"            try:"},{"line_number":72,"context_line":"                with open(os.path.join(numa_node_dir, thread_dir, \u0027topology\u0027,"},{"line_number":73,"context_line":"                          \u0027core_id\u0027)) as core_id_file:"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_4e088cda","line":70,"range":{"start_line":70,"start_character":12,"end_line":70,"end_character":67},"in_reply_to":"9a30ddce_677e771a","updated":"2017-03-12 13:57:12.000000000","message":"Done","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"1ce442a207d91b0bbe1cd86e9ca6d029a4786e63","unresolved":false,"context_lines":[{"line_number":32,"context_line":"def get_nodes_memory_info(numa_node_dirs):"},{"line_number":33,"context_line":"    \"\"\"Collect the NUMA nodes memory information."},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"       \"ram\": [{\"numa_node\": \u003cnuma_node_id\u003e, \"size_kb\": \u003cmemory_in_kb\u003e}, ...]"},{"line_number":36,"context_line":"    \"\"\""},{"line_number":37,"context_line":"    ram \u003d []"},{"line_number":38,"context_line":"    for numa_node_dir in numa_node_dirs:"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_98e34906","line":35,"updated":"2017-03-24 15:37:02.000000000","message":"misses parameter and return value description","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"3acad757742e30a0959b89b49b9e8d080a7448fe","unresolved":false,"context_lines":[{"line_number":32,"context_line":"def get_nodes_memory_info(numa_node_dirs):"},{"line_number":33,"context_line":"    \"\"\"Collect the NUMA nodes memory information."},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"       \"ram\": [{\"numa_node\": \u003cnuma_node_id\u003e, \"size_kb\": \u003cmemory_in_kb\u003e}, ...]"},{"line_number":36,"context_line":"    \"\"\""},{"line_number":37,"context_line":"    ram \u003d []"},{"line_number":38,"context_line":"    for numa_node_dir in numa_node_dirs:"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_3154e1fe","line":35,"in_reply_to":"ffe62b97_98e34906","updated":"2017-03-28 11:09:34.000000000","message":"Done","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"1ce442a207d91b0bbe1cd86e9ca6d029a4786e63","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        try:"},{"line_number":41,"context_line":"            with open(os.path.join(numa_node_dir,"},{"line_number":42,"context_line":"                      \u0027meminfo\u0027)) as meminfo_file:"},{"line_number":43,"context_line":"                meminfo_lines \u003d meminfo_file.read().split(\u0027\\n\u0027)"},{"line_number":44,"context_line":"        except IOError as exc:"},{"line_number":45,"context_line":"            msg \u003d (\u0027Failed to get memory information \u0027"},{"line_number":46,"context_line":"                   \u0027for %(node)s: %(error)s\u0027 %"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_f36cb609","line":43,"range":{"start_line":43,"start_character":11,"end_line":43,"end_character":63},"updated":"2017-03-24 15:37:02.000000000","message":"not idiomatic python, please, replace w/\n\n    with open(\u0027...\u0027) as meminfo_file:\n        for line in iter(meminfo_file.readline, \u0027\u0027):\n            if \u0027MemTotal\u0027 in line:\n                break\n\n    if not line:\n        raise IncompatibleNumaFormatError(...)","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"3acad757742e30a0959b89b49b9e8d080a7448fe","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        try:"},{"line_number":41,"context_line":"            with open(os.path.join(numa_node_dir,"},{"line_number":42,"context_line":"                      \u0027meminfo\u0027)) as meminfo_file:"},{"line_number":43,"context_line":"                meminfo_lines \u003d meminfo_file.read().split(\u0027\\n\u0027)"},{"line_number":44,"context_line":"        except IOError as exc:"},{"line_number":45,"context_line":"            msg \u003d (\u0027Failed to get memory information \u0027"},{"line_number":46,"context_line":"                   \u0027for %(node)s: %(error)s\u0027 %"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_11555dfa","line":43,"range":{"start_line":43,"start_character":11,"end_line":43,"end_character":63},"in_reply_to":"ffe62b97_f36cb609","updated":"2017-03-28 11:09:34.000000000","message":"Done","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"1ce442a207d91b0bbe1cd86e9ca6d029a4786e63","unresolved":false,"context_lines":[{"line_number":45,"context_line":"            msg \u003d (\u0027Failed to get memory information \u0027"},{"line_number":46,"context_line":"                   \u0027for %(node)s: %(error)s\u0027 %"},{"line_number":47,"context_line":"                   {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"},{"line_number":48,"context_line":"            raise IOError(msg)"},{"line_number":49,"context_line":"        for line in meminfo_lines:"},{"line_number":50,"context_line":"            if \"MemTotal:\" in line:"},{"line_number":51,"context_line":"                meminfo_line \u003d line"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_18a619c3","line":48,"range":{"start_line":48,"start_character":12,"end_line":48,"end_character":30},"updated":"2017-03-24 15:37:02.000000000","message":"shouldn\u0027t this be translated to the incompatible numa format error?","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"3acad757742e30a0959b89b49b9e8d080a7448fe","unresolved":false,"context_lines":[{"line_number":45,"context_line":"            msg \u003d (\u0027Failed to get memory information \u0027"},{"line_number":46,"context_line":"                   \u0027for %(node)s: %(error)s\u0027 %"},{"line_number":47,"context_line":"                   {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"},{"line_number":48,"context_line":"            raise IOError(msg)"},{"line_number":49,"context_line":"        for line in meminfo_lines:"},{"line_number":50,"context_line":"            if \"MemTotal:\" in line:"},{"line_number":51,"context_line":"                meminfo_line \u003d line"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_116e7dc8","line":48,"range":{"start_line":48,"start_character":12,"end_line":48,"end_character":30},"in_reply_to":"ffe62b97_18a619c3","updated":"2017-03-28 11:09:34.000000000","message":"Done","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"1ce442a207d91b0bbe1cd86e9ca6d029a4786e63","unresolved":false,"context_lines":[{"line_number":51,"context_line":"                meminfo_line \u003d line"},{"line_number":52,"context_line":"                break"},{"line_number":53,"context_line":"        try:"},{"line_number":54,"context_line":"            value \u003d meminfo_line.split(\":\")[1].strip()"},{"line_number":55,"context_line":"            memory_kb \u003d int(UNIT_CONVERTER(value).to_base_units())"},{"line_number":56,"context_line":"            numa_node_id \u003d int(os.path.basename(numa_node_dir)[4:])"},{"line_number":57,"context_line":"        except Exception as exc:"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_0528ed83","line":54,"range":{"start_line":54,"start_character":11,"end_line":54,"end_character":54},"updated":"2017-03-24 15:37:02.000000000","message":"please, add a comment w/ example line content; just guessing here:\n\n    # MemTotal: 1024\n    value \u003d meminfo_line.split(\":\")[1].strip()","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"3acad757742e30a0959b89b49b9e8d080a7448fe","unresolved":false,"context_lines":[{"line_number":51,"context_line":"                meminfo_line \u003d line"},{"line_number":52,"context_line":"                break"},{"line_number":53,"context_line":"        try:"},{"line_number":54,"context_line":"            value \u003d meminfo_line.split(\":\")[1].strip()"},{"line_number":55,"context_line":"            memory_kb \u003d int(UNIT_CONVERTER(value).to_base_units())"},{"line_number":56,"context_line":"            numa_node_id \u003d int(os.path.basename(numa_node_dir)[4:])"},{"line_number":57,"context_line":"        except Exception as exc:"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_f159d934","line":54,"range":{"start_line":54,"start_character":11,"end_line":54,"end_character":54},"in_reply_to":"ffe62b97_0528ed83","updated":"2017-03-28 11:09:34.000000000","message":"Done","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"1ce442a207d91b0bbe1cd86e9ca6d029a4786e63","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        try:"},{"line_number":54,"context_line":"            value \u003d meminfo_line.split(\":\")[1].strip()"},{"line_number":55,"context_line":"            memory_kb \u003d int(UNIT_CONVERTER(value).to_base_units())"},{"line_number":56,"context_line":"            numa_node_id \u003d int(os.path.basename(numa_node_dir)[4:])"},{"line_number":57,"context_line":"        except Exception as exc:"},{"line_number":58,"context_line":"            msg \u003d (\u0027Failed to get memory information for %(node)s: \u0027"},{"line_number":59,"context_line":"                   \u0027%(error)s\u0027 % {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_0537cdb2","line":56,"range":{"start_line":56,"start_character":12,"end_line":56,"end_character":67},"updated":"2017-03-24 15:37:02.000000000","message":"please, make this a function and reuse below too","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"3acad757742e30a0959b89b49b9e8d080a7448fe","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        try:"},{"line_number":54,"context_line":"            value \u003d meminfo_line.split(\":\")[1].strip()"},{"line_number":55,"context_line":"            memory_kb \u003d int(UNIT_CONVERTER(value).to_base_units())"},{"line_number":56,"context_line":"            numa_node_id \u003d int(os.path.basename(numa_node_dir)[4:])"},{"line_number":57,"context_line":"        except Exception as exc:"},{"line_number":58,"context_line":"            msg \u003d (\u0027Failed to get memory information for %(node)s: \u0027"},{"line_number":59,"context_line":"                   \u0027%(error)s\u0027 % {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_d142553e","line":56,"range":{"start_line":56,"start_character":12,"end_line":56,"end_character":67},"in_reply_to":"ffe62b97_0537cdb2","updated":"2017-03-28 11:09:34.000000000","message":"Done","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"1ce442a207d91b0bbe1cd86e9ca6d029a4786e63","unresolved":false,"context_lines":[{"line_number":54,"context_line":"            value \u003d meminfo_line.split(\":\")[1].strip()"},{"line_number":55,"context_line":"            memory_kb \u003d int(UNIT_CONVERTER(value).to_base_units())"},{"line_number":56,"context_line":"            numa_node_id \u003d int(os.path.basename(numa_node_dir)[4:])"},{"line_number":57,"context_line":"        except Exception as exc:"},{"line_number":58,"context_line":"            msg \u003d (\u0027Failed to get memory information for %(node)s: \u0027"},{"line_number":59,"context_line":"                   \u0027%(error)s\u0027 % {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"},{"line_number":60,"context_line":"            raise errors.IncompatibleNumaFormatError(msg)"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_983b4937","line":57,"range":{"start_line":57,"start_character":15,"end_line":57,"end_character":24},"updated":"2017-03-24 15:37:02.000000000","message":"very generic error; maybe (IOError, ValueError,IndexError)?","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"3acad757742e30a0959b89b49b9e8d080a7448fe","unresolved":false,"context_lines":[{"line_number":54,"context_line":"            value \u003d meminfo_line.split(\":\")[1].strip()"},{"line_number":55,"context_line":"            memory_kb \u003d int(UNIT_CONVERTER(value).to_base_units())"},{"line_number":56,"context_line":"            numa_node_id \u003d int(os.path.basename(numa_node_dir)[4:])"},{"line_number":57,"context_line":"        except Exception as exc:"},{"line_number":58,"context_line":"            msg \u003d (\u0027Failed to get memory information for %(node)s: \u0027"},{"line_number":59,"context_line":"                   \u0027%(error)s\u0027 % {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"},{"line_number":60,"context_line":"            raise errors.IncompatibleNumaFormatError(msg)"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_b13fd1b2","line":57,"range":{"start_line":57,"start_character":15,"end_line":57,"end_character":24},"in_reply_to":"ffe62b97_983b4937","updated":"2017-03-28 11:09:34.000000000","message":"Done","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"1ce442a207d91b0bbe1cd86e9ca6d029a4786e63","unresolved":false,"context_lines":[{"line_number":81,"context_line":"    Thread dirs path: /sys/devices/system/node/node\u003cnode_id\u003e/cpu\u003cthread_id\u003e"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    CPU id file path: /sys/devices/system/node/node\u003cnode_id\u003e/cpu\u003cthread_id\u003e/"},{"line_number":84,"context_line":"                      topology/core_id"},{"line_number":85,"context_line":"    \"\"\""},{"line_number":86,"context_line":"    dict_cpus \u003d {}"},{"line_number":87,"context_line":"    for numa_node_dir in numa_node_dirs:"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_f8e6d5e8","line":84,"updated":"2017-03-24 15:37:02.000000000","message":"ditto w/ parameter\u0026return","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"3acad757742e30a0959b89b49b9e8d080a7448fe","unresolved":false,"context_lines":[{"line_number":81,"context_line":"    Thread dirs path: /sys/devices/system/node/node\u003cnode_id\u003e/cpu\u003cthread_id\u003e"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    CPU id file path: /sys/devices/system/node/node\u003cnode_id\u003e/cpu\u003cthread_id\u003e/"},{"line_number":84,"context_line":"                      topology/core_id"},{"line_number":85,"context_line":"    \"\"\""},{"line_number":86,"context_line":"    dict_cpus \u003d {}"},{"line_number":87,"context_line":"    for numa_node_dir in numa_node_dirs:"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_91616dd6","line":84,"in_reply_to":"ffe62b97_f8e6d5e8","updated":"2017-03-28 11:09:34.000000000","message":"Done","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"1ce442a207d91b0bbe1cd86e9ca6d029a4786e63","unresolved":false,"context_lines":[{"line_number":93,"context_line":"            raise OSError(msg)"},{"line_number":94,"context_line":"        try:"},{"line_number":95,"context_line":"            numa_node_id \u003d int(os.path.basename(numa_node_dir)[4:])"},{"line_number":96,"context_line":"        except Exception as exc:"},{"line_number":97,"context_line":"            msg \u003d (\u0027Failed to get cores information for \u0027"},{"line_number":98,"context_line":"                   \u0027%(node)s: %(error)s\u0027 %"},{"line_number":99,"context_line":"                   {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_651e990d","line":96,"range":{"start_line":96,"start_character":15,"end_line":96,"end_character":24},"updated":"2017-03-24 15:37:02.000000000","message":"too generic exception","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"eb19adc16cef7cf59b8832158fbb9a874d37b075","unresolved":false,"context_lines":[{"line_number":93,"context_line":"            raise OSError(msg)"},{"line_number":94,"context_line":"        try:"},{"line_number":95,"context_line":"            numa_node_id \u003d int(os.path.basename(numa_node_dir)[4:])"},{"line_number":96,"context_line":"        except Exception as exc:"},{"line_number":97,"context_line":"            msg \u003d (\u0027Failed to get cores information for \u0027"},{"line_number":98,"context_line":"                   \u0027%(node)s: %(error)s\u0027 %"},{"line_number":99,"context_line":"                   {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_f111d905","line":96,"range":{"start_line":96,"start_character":15,"end_line":96,"end_character":24},"in_reply_to":"ffe62b97_651e990d","updated":"2017-03-28 11:12:37.000000000","message":"Done","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"1ce442a207d91b0bbe1cd86e9ca6d029a4786e63","unresolved":false,"context_lines":[{"line_number":104,"context_line":"                continue"},{"line_number":105,"context_line":"            try:"},{"line_number":106,"context_line":"                thread_id \u003d int(thread_dir[3:])"},{"line_number":107,"context_line":"            except Exception as exc:"},{"line_number":108,"context_line":"                msg \u003d (\u0027Failed to get cores information for \u0027"},{"line_number":109,"context_line":"                       \u0027%(node)s: %(error)s\u0027 %"},{"line_number":110,"context_line":"                       {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_65f579cb","line":107,"range":{"start_line":107,"start_character":19,"end_line":107,"end_character":28},"updated":"2017-03-24 15:37:02.000000000","message":"too generic exception","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"3acad757742e30a0959b89b49b9e8d080a7448fe","unresolved":false,"context_lines":[{"line_number":104,"context_line":"                continue"},{"line_number":105,"context_line":"            try:"},{"line_number":106,"context_line":"                thread_id \u003d int(thread_dir[3:])"},{"line_number":107,"context_line":"            except Exception as exc:"},{"line_number":108,"context_line":"                msg \u003d (\u0027Failed to get cores information for \u0027"},{"line_number":109,"context_line":"                       \u0027%(node)s: %(error)s\u0027 %"},{"line_number":110,"context_line":"                       {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_519d25ba","line":107,"range":{"start_line":107,"start_character":19,"end_line":107,"end_character":28},"in_reply_to":"ffe62b97_65f579cb","updated":"2017-03-28 11:09:34.000000000","message":"Done","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"1ce442a207d91b0bbe1cd86e9ca6d029a4786e63","unresolved":false,"context_lines":[{"line_number":113,"context_line":"                with open(os.path.join(numa_node_dir, thread_dir, \u0027topology\u0027,"},{"line_number":114,"context_line":"                          \u0027core_id\u0027)) as core_id_file:"},{"line_number":115,"context_line":"                    cpu_id \u003d int(core_id_file.read().strip())"},{"line_number":116,"context_line":"            except IOError as exc:"},{"line_number":117,"context_line":"                msg \u003d (\u0027Failed to gather cpu_id for thread\u0027"},{"line_number":118,"context_line":"                       \u0027%(thread)s NUMA node %(node)s: %(error)s\u0027 %"},{"line_number":119,"context_line":"                       {\u0027thread\u0027: thread_dir, \u0027node\u0027: numa_node_dir,"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_c5ffa565","line":116,"range":{"start_line":116,"start_character":19,"end_line":116,"end_character":26},"updated":"2017-03-24 15:37:02.000000000","message":"misses ValueError for int conversion","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"3acad757742e30a0959b89b49b9e8d080a7448fe","unresolved":false,"context_lines":[{"line_number":113,"context_line":"                with open(os.path.join(numa_node_dir, thread_dir, \u0027topology\u0027,"},{"line_number":114,"context_line":"                          \u0027core_id\u0027)) as core_id_file:"},{"line_number":115,"context_line":"                    cpu_id \u003d int(core_id_file.read().strip())"},{"line_number":116,"context_line":"            except IOError as exc:"},{"line_number":117,"context_line":"                msg \u003d (\u0027Failed to gather cpu_id for thread\u0027"},{"line_number":118,"context_line":"                       \u0027%(thread)s NUMA node %(node)s: %(error)s\u0027 %"},{"line_number":119,"context_line":"                       {\u0027thread\u0027: thread_dir, \u0027node\u0027: numa_node_dir,"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_11a31d02","line":116,"range":{"start_line":116,"start_character":19,"end_line":116,"end_character":26},"in_reply_to":"ffe62b97_c5ffa565","updated":"2017-03-28 11:09:34.000000000","message":"Done","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"1ce442a207d91b0bbe1cd86e9ca6d029a4786e63","unresolved":false,"context_lines":[{"line_number":118,"context_line":"                       \u0027%(thread)s NUMA node %(node)s: %(error)s\u0027 %"},{"line_number":119,"context_line":"                       {\u0027thread\u0027: thread_dir, \u0027node\u0027: numa_node_dir,"},{"line_number":120,"context_line":"                        \u0027error\u0027: exc})"},{"line_number":121,"context_line":"                raise IOError(msg)"},{"line_number":122,"context_line":"            if cpu_id in dict_cpus:"},{"line_number":123,"context_line":"                if thread_id not in dict_cpus[cpu_id][\u0027thread_siblings\u0027]:"},{"line_number":124,"context_line":"                    dict_cpus[cpu_id][\u0027thread_siblings\u0027].append(thread_id)"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_251e51ba","line":121,"range":{"start_line":121,"start_character":22,"end_line":121,"end_character":34},"updated":"2017-03-24 15:37:02.000000000","message":"ditto about IncompatibleNumaFormat error conversion","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"3acad757742e30a0959b89b49b9e8d080a7448fe","unresolved":false,"context_lines":[{"line_number":118,"context_line":"                       \u0027%(thread)s NUMA node %(node)s: %(error)s\u0027 %"},{"line_number":119,"context_line":"                       {\u0027thread\u0027: thread_dir, \u0027node\u0027: numa_node_dir,"},{"line_number":120,"context_line":"                        \u0027error\u0027: exc})"},{"line_number":121,"context_line":"                raise IOError(msg)"},{"line_number":122,"context_line":"            if cpu_id in dict_cpus:"},{"line_number":123,"context_line":"                if thread_id not in dict_cpus[cpu_id][\u0027thread_siblings\u0027]:"},{"line_number":124,"context_line":"                    dict_cpus[cpu_id][\u0027thread_siblings\u0027].append(thread_id)"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_f1a7990a","line":121,"range":{"start_line":121,"start_character":22,"end_line":121,"end_character":34},"in_reply_to":"ffe62b97_251e51ba","updated":"2017-03-28 11:09:34.000000000","message":"Done","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"1ce442a207d91b0bbe1cd86e9ca6d029a4786e63","unresolved":false,"context_lines":[{"line_number":139,"context_line":"    \"nics\": ["},{"line_number":140,"context_line":"          {\"name\": \"\u003cnetwork interface name\u003e\", \"numa_node\": \u003cnuma_node_id\u003e},"},{"line_number":141,"context_line":"          ...,"},{"line_number":142,"context_line":"        ]"},{"line_number":143,"context_line":"    \"\"\""},{"line_number":144,"context_line":"    nics \u003d []"},{"line_number":145,"context_line":"    for nic_dir in nic_dirs:"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_a5b6e1d8","line":142,"updated":"2017-03-24 15:37:02.000000000","message":"misses param\u0026return description","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"3acad757742e30a0959b89b49b9e8d080a7448fe","unresolved":false,"context_lines":[{"line_number":139,"context_line":"    \"nics\": ["},{"line_number":140,"context_line":"          {\"name\": \"\u003cnetwork interface name\u003e\", \"numa_node\": \u003cnuma_node_id\u003e},"},{"line_number":141,"context_line":"          ...,"},{"line_number":142,"context_line":"        ]"},{"line_number":143,"context_line":"    \"\"\""},{"line_number":144,"context_line":"    nics \u003d []"},{"line_number":145,"context_line":"    for nic_dir in nic_dirs:"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_51864568","line":142,"in_reply_to":"ffe62b97_a5b6e1d8","updated":"2017-03-28 11:09:34.000000000","message":"Done","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"1ce442a207d91b0bbe1cd86e9ca6d029a4786e63","unresolved":false,"context_lines":[{"line_number":149,"context_line":"            with open(os.path.join(nic_device_path, nic_dir, \u0027device\u0027,"},{"line_number":150,"context_line":"                                   \u0027numa_node\u0027)) as nicsinfo_file:"},{"line_number":151,"context_line":"                numa_node_id \u003d int(nicsinfo_file.read().strip())"},{"line_number":152,"context_line":"        except IOError as exc:"},{"line_number":153,"context_line":"            msg \u003d (\u0027Failed to gather NIC\\\u0027s for NUMA node %(node)s: \u0027"},{"line_number":154,"context_line":"                   \u0027%(error)s\u0027 % {\u0027node\u0027: nic_dir, \u0027error\u0027: exc})"},{"line_number":155,"context_line":"            raise IOError(msg)"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_05c7cd14","line":152,"range":{"start_line":152,"start_character":15,"end_line":152,"end_character":22},"updated":"2017-03-24 15:37:02.000000000","message":"ditto w/ ValueError","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"3acad757742e30a0959b89b49b9e8d080a7448fe","unresolved":false,"context_lines":[{"line_number":149,"context_line":"            with open(os.path.join(nic_device_path, nic_dir, \u0027device\u0027,"},{"line_number":150,"context_line":"                                   \u0027numa_node\u0027)) as nicsinfo_file:"},{"line_number":151,"context_line":"                numa_node_id \u003d int(nicsinfo_file.read().strip())"},{"line_number":152,"context_line":"        except IOError as exc:"},{"line_number":153,"context_line":"            msg \u003d (\u0027Failed to gather NIC\\\u0027s for NUMA node %(node)s: \u0027"},{"line_number":154,"context_line":"                   \u0027%(error)s\u0027 % {\u0027node\u0027: nic_dir, \u0027error\u0027: exc})"},{"line_number":155,"context_line":"            raise IOError(msg)"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_318bc16e","line":152,"range":{"start_line":152,"start_character":15,"end_line":152,"end_character":22},"in_reply_to":"ffe62b97_05c7cd14","updated":"2017-03-28 11:09:34.000000000","message":"Done","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"1ce442a207d91b0bbe1cd86e9ca6d029a4786e63","unresolved":false,"context_lines":[{"line_number":152,"context_line":"        except IOError as exc:"},{"line_number":153,"context_line":"            msg \u003d (\u0027Failed to gather NIC\\\u0027s for NUMA node %(node)s: \u0027"},{"line_number":154,"context_line":"                   \u0027%(error)s\u0027 % {\u0027node\u0027: nic_dir, \u0027error\u0027: exc})"},{"line_number":155,"context_line":"            raise IOError(msg)"},{"line_number":156,"context_line":"        numa_node_nics \u003d {}"},{"line_number":157,"context_line":"        numa_node_nics[\u0027name\u0027] \u003d nic_dir"},{"line_number":158,"context_line":"        numa_node_nics[\u0027numa_node\u0027] \u003d numa_node_id"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_25c65169","line":155,"range":{"start_line":155,"start_character":18,"end_line":155,"end_character":25},"updated":"2017-03-24 15:37:02.000000000","message":"ditto w/ incompatibleNumaFormat translation","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"3acad757742e30a0959b89b49b9e8d080a7448fe","unresolved":false,"context_lines":[{"line_number":152,"context_line":"        except IOError as exc:"},{"line_number":153,"context_line":"            msg \u003d (\u0027Failed to gather NIC\\\u0027s for NUMA node %(node)s: \u0027"},{"line_number":154,"context_line":"                   \u0027%(error)s\u0027 % {\u0027node\u0027: nic_dir, \u0027error\u0027: exc})"},{"line_number":155,"context_line":"            raise IOError(msg)"},{"line_number":156,"context_line":"        numa_node_nics \u003d {}"},{"line_number":157,"context_line":"        numa_node_nics[\u0027name\u0027] \u003d nic_dir"},{"line_number":158,"context_line":"        numa_node_nics[\u0027numa_node\u0027] \u003d numa_node_id"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_d19935c4","line":155,"range":{"start_line":155,"start_character":18,"end_line":155,"end_character":25},"in_reply_to":"ffe62b97_25c65169","updated":"2017-03-28 11:09:34.000000000","message":"Done","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"1ce442a207d91b0bbe1cd86e9ca6d029a4786e63","unresolved":false,"context_lines":[{"line_number":186,"context_line":"    /sys/class/net/ directories."},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"    :param data: mutable data that we\u0027ll send to inspector"},{"line_number":189,"context_line":"    :param failures: AccumulatedFailures object"},{"line_number":190,"context_line":"    \"\"\""},{"line_number":191,"context_line":"    numa_node_path \u003d \u0027/sys/devices/system/node/\u0027"},{"line_number":192,"context_line":"    nic_device_path \u003d \u0027/sys/class/net/\u0027"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_05b8edc5","line":189,"range":{"start_line":189,"start_character":10,"end_line":189,"end_character":11},"updated":"2017-03-24 15:37:02.000000000","message":"misses return","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"3acad757742e30a0959b89b49b9e8d080a7448fe","unresolved":false,"context_lines":[{"line_number":186,"context_line":"    /sys/class/net/ directories."},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"    :param data: mutable data that we\u0027ll send to inspector"},{"line_number":189,"context_line":"    :param failures: AccumulatedFailures object"},{"line_number":190,"context_line":"    \"\"\""},{"line_number":191,"context_line":"    numa_node_path \u003d \u0027/sys/devices/system/node/\u0027"},{"line_number":192,"context_line":"    nic_device_path \u003d \u0027/sys/class/net/\u0027"}],"source_content_type":"text/x-python","patch_set":21,"id":"ffe62b97_718ca97e","line":189,"range":{"start_line":189,"start_character":10,"end_line":189,"end_character":11},"in_reply_to":"ffe62b97_05b8edc5","updated":"2017-03-28 11:09:34.000000000","message":"Done","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"7e13c46cfec21fa9f540480584f53ba02e0700c1","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    \"ram\": [{\"numa_node\": \u003cnuma_node_id\u003e, \"size_kb\": \u003cmemory_in_kb\u003e}, ...]"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    :param numa_node_dirs: A list of NUMA node directories"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    :return: A list of memory information with NUMA node id"},{"line_number":50,"context_line":"    \"\"\""},{"line_number":51,"context_line":"    ram \u003d []"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_72491db5","line":48,"updated":"2017-04-11 17:10:38.000000000","message":"please, add :raises: IncompatibleNumaFormatError","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a8e24ab4fdb4a5fed6a980a6d34ccac3aba616e7","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    \"ram\": [{\"numa_node\": \u003cnuma_node_id\u003e, \"size_kb\": \u003cmemory_in_kb\u003e}, ...]"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    :param numa_node_dirs: A list of NUMA node directories"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    :return: A list of memory information with NUMA node id"},{"line_number":50,"context_line":"    \"\"\""},{"line_number":51,"context_line":"    ram \u003d []"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_cb413aa8","line":48,"in_reply_to":"bff0334d_72491db5","updated":"2017-04-12 11:40:30.000000000","message":"Done","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"7e13c46cfec21fa9f540480584f53ba02e0700c1","unresolved":false,"context_lines":[{"line_number":62,"context_line":"                   \u0027for %(node)s: %(error)s\u0027 %"},{"line_number":63,"context_line":"                   {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"},{"line_number":64,"context_line":"            raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":65,"context_line":"        else:"},{"line_number":66,"context_line":"            try:"},{"line_number":67,"context_line":"                if not line:"},{"line_number":68,"context_line":"                    msg \u003d (\u0027Memory information is not available for \u0027"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_cf62860a","line":65,"range":{"start_line":65,"start_character":8,"end_line":65,"end_character":13},"updated":"2017-04-11 17:10:38.000000000","message":"not necessary, please, remove and dedent the block","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a8e24ab4fdb4a5fed6a980a6d34ccac3aba616e7","unresolved":false,"context_lines":[{"line_number":62,"context_line":"                   \u0027for %(node)s: %(error)s\u0027 %"},{"line_number":63,"context_line":"                   {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"},{"line_number":64,"context_line":"            raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":65,"context_line":"        else:"},{"line_number":66,"context_line":"            try:"},{"line_number":67,"context_line":"                if not line:"},{"line_number":68,"context_line":"                    msg \u003d (\u0027Memory information is not available for \u0027"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_ab16f6a6","line":65,"range":{"start_line":65,"start_character":8,"end_line":65,"end_character":13},"in_reply_to":"bff0334d_cf62860a","updated":"2017-04-12 11:40:30.000000000","message":"Done","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"7e13c46cfec21fa9f540480584f53ba02e0700c1","unresolved":false,"context_lines":[{"line_number":64,"context_line":"            raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":65,"context_line":"        else:"},{"line_number":66,"context_line":"            try:"},{"line_number":67,"context_line":"                if not line:"},{"line_number":68,"context_line":"                    msg \u003d (\u0027Memory information is not available for \u0027"},{"line_number":69,"context_line":"                           \u0027%(node)s\u0027 % {\u0027node\u0027: numa_node_dir})"},{"line_number":70,"context_line":"                    raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":71,"context_line":"                # To get memory size with unit from memory info line"},{"line_number":72,"context_line":"                # Memory info sample line format \u0027Node 0 MemTotal: 1560000 kB\u0027"},{"line_number":73,"context_line":"                value \u003d line.split(\":\")[1].strip()"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_0f3aaee5","line":70,"range":{"start_line":67,"start_character":16,"end_line":70,"end_character":65},"updated":"2017-04-11 17:10:38.000000000","message":"please, bump in front of the try: except block","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a8e24ab4fdb4a5fed6a980a6d34ccac3aba616e7","unresolved":false,"context_lines":[{"line_number":64,"context_line":"            raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":65,"context_line":"        else:"},{"line_number":66,"context_line":"            try:"},{"line_number":67,"context_line":"                if not line:"},{"line_number":68,"context_line":"                    msg \u003d (\u0027Memory information is not available for \u0027"},{"line_number":69,"context_line":"                           \u0027%(node)s\u0027 % {\u0027node\u0027: numa_node_dir})"},{"line_number":70,"context_line":"                    raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":71,"context_line":"                # To get memory size with unit from memory info line"},{"line_number":72,"context_line":"                # Memory info sample line format \u0027Node 0 MemTotal: 1560000 kB\u0027"},{"line_number":73,"context_line":"                value \u003d line.split(\":\")[1].strip()"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_6b0c6e93","line":70,"range":{"start_line":67,"start_character":16,"end_line":70,"end_character":65},"in_reply_to":"bff0334d_0f3aaee5","updated":"2017-04-12 11:40:30.000000000","message":"Done","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"7e13c46cfec21fa9f540480584f53ba02e0700c1","unresolved":false,"context_lines":[{"line_number":72,"context_line":"                # Memory info sample line format \u0027Node 0 MemTotal: 1560000 kB\u0027"},{"line_number":73,"context_line":"                value \u003d line.split(\":\")[1].strip()"},{"line_number":74,"context_line":"                memory_kb \u003d int(UNIT_CONVERTER(value).to_base_units())"},{"line_number":75,"context_line":"                numa_node_id \u003d get_numa_node_id(numa_node_dir)"},{"line_number":76,"context_line":"            except (IOError, ValueError, IndexError) as exc:"},{"line_number":77,"context_line":"                msg \u003d (\u0027Failed to get memory information for %(node)s: \u0027"},{"line_number":78,"context_line":"                       \u0027%(error)s\u0027 % {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_f271ada9","line":75,"range":{"start_line":75,"start_character":0,"end_line":75,"end_character":62},"updated":"2017-04-11 17:10:38.000000000","message":"bump in front of the try block","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a8e24ab4fdb4a5fed6a980a6d34ccac3aba616e7","unresolved":false,"context_lines":[{"line_number":72,"context_line":"                # Memory info sample line format \u0027Node 0 MemTotal: 1560000 kB\u0027"},{"line_number":73,"context_line":"                value \u003d line.split(\":\")[1].strip()"},{"line_number":74,"context_line":"                memory_kb \u003d int(UNIT_CONVERTER(value).to_base_units())"},{"line_number":75,"context_line":"                numa_node_id \u003d get_numa_node_id(numa_node_dir)"},{"line_number":76,"context_line":"            except (IOError, ValueError, IndexError) as exc:"},{"line_number":77,"context_line":"                msg \u003d (\u0027Failed to get memory information for %(node)s: \u0027"},{"line_number":78,"context_line":"                       \u0027%(error)s\u0027 % {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_4b0f6a87","line":75,"range":{"start_line":75,"start_character":0,"end_line":75,"end_character":62},"in_reply_to":"bff0334d_f271ada9","updated":"2017-04-12 11:40:30.000000000","message":"Done","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"7e13c46cfec21fa9f540480584f53ba02e0700c1","unresolved":false,"context_lines":[{"line_number":73,"context_line":"                value \u003d line.split(\":\")[1].strip()"},{"line_number":74,"context_line":"                memory_kb \u003d int(UNIT_CONVERTER(value).to_base_units())"},{"line_number":75,"context_line":"                numa_node_id \u003d get_numa_node_id(numa_node_dir)"},{"line_number":76,"context_line":"            except (IOError, ValueError, IndexError) as exc:"},{"line_number":77,"context_line":"                msg \u003d (\u0027Failed to get memory information for %(node)s: \u0027"},{"line_number":78,"context_line":"                       \u0027%(error)s\u0027 % {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"},{"line_number":79,"context_line":"                raise errors.IncompatibleNumaFormatError(msg)"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_72b23d4b","line":76,"range":{"start_line":76,"start_character":20,"end_line":76,"end_character":27},"updated":"2017-04-11 17:10:38.000000000","message":"not necessary (as the get_numa_node_id will be bumped and handle that exception itself if necessary)","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a8e24ab4fdb4a5fed6a980a6d34ccac3aba616e7","unresolved":false,"context_lines":[{"line_number":73,"context_line":"                value \u003d line.split(\":\")[1].strip()"},{"line_number":74,"context_line":"                memory_kb \u003d int(UNIT_CONVERTER(value).to_base_units())"},{"line_number":75,"context_line":"                numa_node_id \u003d get_numa_node_id(numa_node_dir)"},{"line_number":76,"context_line":"            except (IOError, ValueError, IndexError) as exc:"},{"line_number":77,"context_line":"                msg \u003d (\u0027Failed to get memory information for %(node)s: \u0027"},{"line_number":78,"context_line":"                       \u0027%(error)s\u0027 % {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"},{"line_number":79,"context_line":"                raise errors.IncompatibleNumaFormatError(msg)"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_2b2ae6d9","line":76,"range":{"start_line":76,"start_character":20,"end_line":76,"end_character":27},"in_reply_to":"bff0334d_72b23d4b","updated":"2017-04-12 11:40:30.000000000","message":"Done","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"7e13c46cfec21fa9f540480584f53ba02e0700c1","unresolved":false,"context_lines":[{"line_number":77,"context_line":"                msg \u003d (\u0027Failed to get memory information for %(node)s: \u0027"},{"line_number":78,"context_line":"                       \u0027%(error)s\u0027 % {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"},{"line_number":79,"context_line":"                raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":80,"context_line":"            else:"},{"line_number":81,"context_line":"                numa_node_memory[\u0027numa_node\u0027] \u003d numa_node_id"},{"line_number":82,"context_line":"                numa_node_memory[\u0027size_kb\u0027] \u003d memory_kb"},{"line_number":83,"context_line":"                LOG.debug(\u0027Found memory available %d KB in NUMA node %d\u0027,"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_52ecd928","line":80,"range":{"start_line":80,"start_character":12,"end_line":80,"end_character":16},"updated":"2017-04-11 17:10:38.000000000","message":"not necessary, please, remove and dedent the block","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a8e24ab4fdb4a5fed6a980a6d34ccac3aba616e7","unresolved":false,"context_lines":[{"line_number":77,"context_line":"                msg \u003d (\u0027Failed to get memory information for %(node)s: \u0027"},{"line_number":78,"context_line":"                       \u0027%(error)s\u0027 % {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"},{"line_number":79,"context_line":"                raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":80,"context_line":"            else:"},{"line_number":81,"context_line":"                numa_node_memory[\u0027numa_node\u0027] \u003d numa_node_id"},{"line_number":82,"context_line":"                numa_node_memory[\u0027size_kb\u0027] \u003d memory_kb"},{"line_number":83,"context_line":"                LOG.debug(\u0027Found memory available %d KB in NUMA node %d\u0027,"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_0b25e208","line":80,"range":{"start_line":80,"start_character":12,"end_line":80,"end_character":16},"in_reply_to":"bff0334d_52ecd928","updated":"2017-04-12 11:40:30.000000000","message":"Done","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"7e13c46cfec21fa9f540480584f53ba02e0700c1","unresolved":false,"context_lines":[{"line_number":104,"context_line":"                      topology/core_id"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    :param numa_node_dirs: A list of NUMA node directories"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    :return: A list of cpu information with NUMA node id and thread siblings"},{"line_number":109,"context_line":"    \"\"\""},{"line_number":110,"context_line":"    dict_cpus \u003d {}"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_12d091c8","line":107,"updated":"2017-04-11 17:10:38.000000000","message":"ditto about the :raises:","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a8e24ab4fdb4a5fed6a980a6d34ccac3aba616e7","unresolved":false,"context_lines":[{"line_number":104,"context_line":"                      topology/core_id"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    :param numa_node_dirs: A list of NUMA node directories"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    :return: A list of cpu information with NUMA node id and thread siblings"},{"line_number":109,"context_line":"    \"\"\""},{"line_number":110,"context_line":"    dict_cpus \u003d {}"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_ab7b96f2","line":107,"in_reply_to":"bff0334d_12d091c8","updated":"2017-04-12 11:40:30.000000000","message":"Done","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"7e13c46cfec21fa9f540480584f53ba02e0700c1","unresolved":false,"context_lines":[{"line_number":115,"context_line":"            msg \u003d (\u0027Failed to get list of threads for %(node)s: \u0027"},{"line_number":116,"context_line":"                   \u0027%(error)s\u0027 % {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"},{"line_number":117,"context_line":"            raise OSError(msg)"},{"line_number":118,"context_line":"        try:"},{"line_number":119,"context_line":"            numa_node_id \u003d get_numa_node_id(numa_node_dir)"},{"line_number":120,"context_line":"        except (ValueError, IndexError) as exc:"},{"line_number":121,"context_line":"            msg \u003d (\u0027Failed to get cores information for \u0027"},{"line_number":122,"context_line":"                   \u0027%(node)s: %(error)s\u0027 %"},{"line_number":123,"context_line":"                   {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"},{"line_number":124,"context_line":"            raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":125,"context_line":"        for thread_dir in thread_dirs:"},{"line_number":126,"context_line":"            if (not os.path.isdir(os.path.join(numa_node_dir, thread_dir))"},{"line_number":127,"context_line":"                or not thread_dir.startswith(\"cpu\")):"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_b210c54f","line":124,"range":{"start_line":118,"start_character":8,"end_line":124,"end_character":57},"updated":"2017-04-11 17:10:38.000000000","message":"please, move the try: except handling inside of the get_numa_node_id function, including the raise statement","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a8e24ab4fdb4a5fed6a980a6d34ccac3aba616e7","unresolved":false,"context_lines":[{"line_number":115,"context_line":"            msg \u003d (\u0027Failed to get list of threads for %(node)s: \u0027"},{"line_number":116,"context_line":"                   \u0027%(error)s\u0027 % {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"},{"line_number":117,"context_line":"            raise OSError(msg)"},{"line_number":118,"context_line":"        try:"},{"line_number":119,"context_line":"            numa_node_id \u003d get_numa_node_id(numa_node_dir)"},{"line_number":120,"context_line":"        except (ValueError, IndexError) as exc:"},{"line_number":121,"context_line":"            msg \u003d (\u0027Failed to get cores information for \u0027"},{"line_number":122,"context_line":"                   \u0027%(node)s: %(error)s\u0027 %"},{"line_number":123,"context_line":"                   {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"},{"line_number":124,"context_line":"            raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":125,"context_line":"        for thread_dir in thread_dirs:"},{"line_number":126,"context_line":"            if (not os.path.isdir(os.path.join(numa_node_dir, thread_dir))"},{"line_number":127,"context_line":"                or not thread_dir.startswith(\"cpu\")):"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_8b7e92e1","line":124,"range":{"start_line":118,"start_character":8,"end_line":124,"end_character":57},"in_reply_to":"bff0334d_b210c54f","updated":"2017-04-12 11:40:30.000000000","message":"Done","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"7e13c46cfec21fa9f540480584f53ba02e0700c1","unresolved":false,"context_lines":[{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    :param nic_device_path: nic device directory path"},{"line_number":169,"context_line":"    :param nic_dirs: A list of nics directories"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"    :return: A list of nics information with NUMA node id"},{"line_number":172,"context_line":"    \"\"\""},{"line_number":173,"context_line":"    nics \u003d []"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_f2ebed74","line":170,"updated":"2017-04-11 17:10:38.000000000","message":"ditto about the :raises:","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a8e24ab4fdb4a5fed6a980a6d34ccac3aba616e7","unresolved":false,"context_lines":[{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    :param nic_device_path: nic device directory path"},{"line_number":169,"context_line":"    :param nic_dirs: A list of nics directories"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"    :return: A list of nics information with NUMA node id"},{"line_number":172,"context_line":"    \"\"\""},{"line_number":173,"context_line":"    nics \u003d []"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_4b840ad3","line":170,"in_reply_to":"bff0334d_f2ebed74","updated":"2017-04-12 11:40:30.000000000","message":"Done","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"7e13c46cfec21fa9f540480584f53ba02e0700c1","unresolved":false,"context_lines":[{"line_number":221,"context_line":"    \"\"\""},{"line_number":222,"context_line":"    numa_node_path \u003d \u0027/sys/devices/system/node/\u0027"},{"line_number":223,"context_line":"    nic_device_path \u003d \u0027/sys/class/net/\u0027"},{"line_number":224,"context_line":"    numa_info \u003d {\u0027ram\u0027: [], \u0027cpus\u0027: [], \u0027nics\u0027: []}"},{"line_number":225,"context_line":"    numa_node_dirs \u003d []"},{"line_number":226,"context_line":"    try:"},{"line_number":227,"context_line":"        for numa_node_dir in os.listdir(numa_node_path):"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_a5ac01ed","line":224,"range":{"start_line":224,"start_character":16,"end_line":224,"end_character":51},"updated":"2017-04-11 17:10:38.000000000","message":"replace w/ numa_info \u003d {} as the items are overridden below anyway","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a8e24ab4fdb4a5fed6a980a6d34ccac3aba616e7","unresolved":false,"context_lines":[{"line_number":221,"context_line":"    \"\"\""},{"line_number":222,"context_line":"    numa_node_path \u003d \u0027/sys/devices/system/node/\u0027"},{"line_number":223,"context_line":"    nic_device_path \u003d \u0027/sys/class/net/\u0027"},{"line_number":224,"context_line":"    numa_info \u003d {\u0027ram\u0027: [], \u0027cpus\u0027: [], \u0027nics\u0027: []}"},{"line_number":225,"context_line":"    numa_node_dirs \u003d []"},{"line_number":226,"context_line":"    try:"},{"line_number":227,"context_line":"        for numa_node_dir in os.listdir(numa_node_path):"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_2b6f862b","line":224,"range":{"start_line":224,"start_character":16,"end_line":224,"end_character":51},"in_reply_to":"bff0334d_a5ac01ed","updated":"2017-04-12 11:40:30.000000000","message":"Done","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"7e13c46cfec21fa9f540480584f53ba02e0700c1","unresolved":false,"context_lines":[{"line_number":223,"context_line":"    nic_device_path \u003d \u0027/sys/class/net/\u0027"},{"line_number":224,"context_line":"    numa_info \u003d {\u0027ram\u0027: [], \u0027cpus\u0027: [], \u0027nics\u0027: []}"},{"line_number":225,"context_line":"    numa_node_dirs \u003d []"},{"line_number":226,"context_line":"    try:"},{"line_number":227,"context_line":"        for numa_node_dir in os.listdir(numa_node_path):"},{"line_number":228,"context_line":"            numa_node_dir_path \u003d os.path.join(numa_node_path, numa_node_dir)"},{"line_number":229,"context_line":"            if (os.path.isdir(numa_node_dir_path)"},{"line_number":230,"context_line":"                and numa_node_dir.startswith(\"node\")):"},{"line_number":231,"context_line":"                numa_node_dirs.append(numa_node_dir_path)"},{"line_number":232,"context_line":"    except OSError as exc:"},{"line_number":233,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes: %s\u0027, exc)"},{"line_number":234,"context_line":"    else:"},{"line_number":235,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_9276e13d","line":232,"range":{"start_line":226,"start_character":4,"end_line":232,"end_character":26},"updated":"2017-04-11 17:10:38.000000000","message":"try block not necessary, only potential OSError thrower here is os.listdir();\nplease, refactor:\n\n    if not os.path.isdir(numa_node_path):\n        LOG.warning(...)\n        return\n\n    for numa_node_dir in os.listdir(numa_node_path):\n        ...","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a8e24ab4fdb4a5fed6a980a6d34ccac3aba616e7","unresolved":false,"context_lines":[{"line_number":223,"context_line":"    nic_device_path \u003d \u0027/sys/class/net/\u0027"},{"line_number":224,"context_line":"    numa_info \u003d {\u0027ram\u0027: [], \u0027cpus\u0027: [], \u0027nics\u0027: []}"},{"line_number":225,"context_line":"    numa_node_dirs \u003d []"},{"line_number":226,"context_line":"    try:"},{"line_number":227,"context_line":"        for numa_node_dir in os.listdir(numa_node_path):"},{"line_number":228,"context_line":"            numa_node_dir_path \u003d os.path.join(numa_node_path, numa_node_dir)"},{"line_number":229,"context_line":"            if (os.path.isdir(numa_node_dir_path)"},{"line_number":230,"context_line":"                and numa_node_dir.startswith(\"node\")):"},{"line_number":231,"context_line":"                numa_node_dirs.append(numa_node_dir_path)"},{"line_number":232,"context_line":"    except OSError as exc:"},{"line_number":233,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes: %s\u0027, exc)"},{"line_number":234,"context_line":"    else:"},{"line_number":235,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_0b6a8218","line":232,"range":{"start_line":226,"start_character":4,"end_line":232,"end_character":26},"in_reply_to":"bff0334d_9276e13d","updated":"2017-04-12 11:40:30.000000000","message":"Done","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"7e13c46cfec21fa9f540480584f53ba02e0700c1","unresolved":false,"context_lines":[{"line_number":231,"context_line":"                numa_node_dirs.append(numa_node_dir_path)"},{"line_number":232,"context_line":"    except OSError as exc:"},{"line_number":233,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes: %s\u0027, exc)"},{"line_number":234,"context_line":"    else:"},{"line_number":235,"context_line":"        try:"},{"line_number":236,"context_line":"            numa_info[\u0027ram\u0027] \u003d get_nodes_memory_info(numa_node_dirs)"},{"line_number":237,"context_line":"        except Exception as exc:"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_3295d533","line":234,"range":{"start_line":234,"start_character":4,"end_line":234,"end_character":8},"updated":"2017-04-11 17:10:38.000000000","message":"remove please and dedent the block below","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a8e24ab4fdb4a5fed6a980a6d34ccac3aba616e7","unresolved":false,"context_lines":[{"line_number":231,"context_line":"                numa_node_dirs.append(numa_node_dir_path)"},{"line_number":232,"context_line":"    except OSError as exc:"},{"line_number":233,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes: %s\u0027, exc)"},{"line_number":234,"context_line":"    else:"},{"line_number":235,"context_line":"        try:"},{"line_number":236,"context_line":"            numa_info[\u0027ram\u0027] \u003d get_nodes_memory_info(numa_node_dirs)"},{"line_number":237,"context_line":"        except Exception as exc:"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_eb74feff","line":234,"range":{"start_line":234,"start_character":4,"end_line":234,"end_character":8},"in_reply_to":"bff0334d_3295d533","updated":"2017-04-12 11:40:30.000000000","message":"Done","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"7e13c46cfec21fa9f540480584f53ba02e0700c1","unresolved":false,"context_lines":[{"line_number":234,"context_line":"    else:"},{"line_number":235,"context_line":"        try:"},{"line_number":236,"context_line":"            numa_info[\u0027ram\u0027] \u003d get_nodes_memory_info(numa_node_dirs)"},{"line_number":237,"context_line":"        except Exception as exc:"},{"line_number":238,"context_line":"            LOG.warning(\u0027Failed to get memory information \u0027"},{"line_number":239,"context_line":"                        \u0027for NUMA nodes: %s\u0027, exc)"},{"line_number":240,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_72423dad","line":237,"range":{"start_line":237,"start_character":15,"end_line":237,"end_character":24},"updated":"2017-04-11 17:10:38.000000000","message":"too wide except, should be IncompatibleNumaFormat","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a8e24ab4fdb4a5fed6a980a6d34ccac3aba616e7","unresolved":false,"context_lines":[{"line_number":234,"context_line":"    else:"},{"line_number":235,"context_line":"        try:"},{"line_number":236,"context_line":"            numa_info[\u0027ram\u0027] \u003d get_nodes_memory_info(numa_node_dirs)"},{"line_number":237,"context_line":"        except Exception as exc:"},{"line_number":238,"context_line":"            LOG.warning(\u0027Failed to get memory information \u0027"},{"line_number":239,"context_line":"                        \u0027for NUMA nodes: %s\u0027, exc)"},{"line_number":240,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_cb6ffa25","line":237,"range":{"start_line":237,"start_character":15,"end_line":237,"end_character":24},"in_reply_to":"bff0334d_72423dad","updated":"2017-04-12 11:40:30.000000000","message":"Done","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"7e13c46cfec21fa9f540480584f53ba02e0700c1","unresolved":false,"context_lines":[{"line_number":239,"context_line":"                        \u0027for NUMA nodes: %s\u0027, exc)"},{"line_number":240,"context_line":"        try:"},{"line_number":241,"context_line":"            numa_info[\u0027cpus\u0027] \u003d get_nodes_cores_info(numa_node_dirs)"},{"line_number":242,"context_line":"        except Exception as exc:"},{"line_number":243,"context_line":"            LOG.warning(\u0027Failed to get cores information \u0027"},{"line_number":244,"context_line":"                        \u0027for NUMA nodes: %s\u0027, exc)"},{"line_number":245,"context_line":"    try:"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_b225650b","line":242,"range":{"start_line":242,"start_character":15,"end_line":242,"end_character":24},"updated":"2017-04-11 17:10:38.000000000","message":"ditto","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a8e24ab4fdb4a5fed6a980a6d34ccac3aba616e7","unresolved":false,"context_lines":[{"line_number":239,"context_line":"                        \u0027for NUMA nodes: %s\u0027, exc)"},{"line_number":240,"context_line":"        try:"},{"line_number":241,"context_line":"            numa_info[\u0027cpus\u0027] \u003d get_nodes_cores_info(numa_node_dirs)"},{"line_number":242,"context_line":"        except Exception as exc:"},{"line_number":243,"context_line":"            LOG.warning(\u0027Failed to get cores information \u0027"},{"line_number":244,"context_line":"                        \u0027for NUMA nodes: %s\u0027, exc)"},{"line_number":245,"context_line":"    try:"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_ab64b64a","line":242,"range":{"start_line":242,"start_character":15,"end_line":242,"end_character":24},"in_reply_to":"bff0334d_b225650b","updated":"2017-04-12 11:40:30.000000000","message":"Done","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"7e13c46cfec21fa9f540480584f53ba02e0700c1","unresolved":false,"context_lines":[{"line_number":232,"context_line":"    except OSError as exc:"},{"line_number":233,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes: %s\u0027, exc)"},{"line_number":234,"context_line":"    else:"},{"line_number":235,"context_line":"        try:"},{"line_number":236,"context_line":"            numa_info[\u0027ram\u0027] \u003d get_nodes_memory_info(numa_node_dirs)"},{"line_number":237,"context_line":"        except Exception as exc:"},{"line_number":238,"context_line":"            LOG.warning(\u0027Failed to get memory information \u0027"},{"line_number":239,"context_line":"                        \u0027for NUMA nodes: %s\u0027, exc)"},{"line_number":240,"context_line":"        try:"},{"line_number":241,"context_line":"            numa_info[\u0027cpus\u0027] \u003d get_nodes_cores_info(numa_node_dirs)"},{"line_number":242,"context_line":"        except Exception as exc:"},{"line_number":243,"context_line":"            LOG.warning(\u0027Failed to get cores information \u0027"},{"line_number":244,"context_line":"                        \u0027for NUMA nodes: %s\u0027, exc)"},{"line_number":245,"context_line":"    try:"},{"line_number":246,"context_line":"        nic_dirs \u003d os.listdir(nic_device_path)"},{"line_number":247,"context_line":"    except OSError as exc:"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_25535119","line":244,"range":{"start_line":235,"start_character":1,"end_line":244,"end_character":26},"updated":"2017-04-11 17:10:38.000000000","message":"please, merge handling:\n\n    try:\n       numa_info[\u0027ram\u0027] \u003d get_nodes_memory_info(..)\n       numa_info[\u0027cpus\u0027] \u003d get_nodes_cores_info(...)\n       numa_info[\u0027nics\u0027] \u003d get_nodes_nics_info(...)\n    except IncompatibleNumaFormatError as exc:\n       LOG.warning(\"Failed to get some NUMA information (%s)\", exc)\n       return","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a8e24ab4fdb4a5fed6a980a6d34ccac3aba616e7","unresolved":false,"context_lines":[{"line_number":232,"context_line":"    except OSError as exc:"},{"line_number":233,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes: %s\u0027, exc)"},{"line_number":234,"context_line":"    else:"},{"line_number":235,"context_line":"        try:"},{"line_number":236,"context_line":"            numa_info[\u0027ram\u0027] \u003d get_nodes_memory_info(numa_node_dirs)"},{"line_number":237,"context_line":"        except Exception as exc:"},{"line_number":238,"context_line":"            LOG.warning(\u0027Failed to get memory information \u0027"},{"line_number":239,"context_line":"                        \u0027for NUMA nodes: %s\u0027, exc)"},{"line_number":240,"context_line":"        try:"},{"line_number":241,"context_line":"            numa_info[\u0027cpus\u0027] \u003d get_nodes_cores_info(numa_node_dirs)"},{"line_number":242,"context_line":"        except Exception as exc:"},{"line_number":243,"context_line":"            LOG.warning(\u0027Failed to get cores information \u0027"},{"line_number":244,"context_line":"                        \u0027for NUMA nodes: %s\u0027, exc)"},{"line_number":245,"context_line":"    try:"},{"line_number":246,"context_line":"        nic_dirs \u003d os.listdir(nic_device_path)"},{"line_number":247,"context_line":"    except OSError as exc:"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_8b67b24d","line":244,"range":{"start_line":235,"start_character":1,"end_line":244,"end_character":26},"in_reply_to":"bff0334d_25535119","updated":"2017-04-12 11:40:30.000000000","message":"Done","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"7e13c46cfec21fa9f540480584f53ba02e0700c1","unresolved":false,"context_lines":[{"line_number":242,"context_line":"        except Exception as exc:"},{"line_number":243,"context_line":"            LOG.warning(\u0027Failed to get cores information \u0027"},{"line_number":244,"context_line":"                        \u0027for NUMA nodes: %s\u0027, exc)"},{"line_number":245,"context_line":"    try:"},{"line_number":246,"context_line":"        nic_dirs \u003d os.listdir(nic_device_path)"},{"line_number":247,"context_line":"    except OSError as exc:"},{"line_number":248,"context_line":"        LOG.warning(\u0027Failed to get list of NICs: %s\u0027, exc)"},{"line_number":249,"context_line":"    else:"},{"line_number":250,"context_line":"        try:"},{"line_number":251,"context_line":"            numa_info[\u0027nics\u0027] \u003d get_nodes_nics_info(nic_device_path, nic_dirs)"},{"line_number":252,"context_line":"        except Exception as exc:"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_929141f4","line":249,"range":{"start_line":245,"start_character":4,"end_line":249,"end_character":9},"updated":"2017-04-11 17:10:38.000000000","message":"this should go inside the get_nodes_nics_info","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a8e24ab4fdb4a5fed6a980a6d34ccac3aba616e7","unresolved":false,"context_lines":[{"line_number":242,"context_line":"        except Exception as exc:"},{"line_number":243,"context_line":"            LOG.warning(\u0027Failed to get cores information \u0027"},{"line_number":244,"context_line":"                        \u0027for NUMA nodes: %s\u0027, exc)"},{"line_number":245,"context_line":"    try:"},{"line_number":246,"context_line":"        nic_dirs \u003d os.listdir(nic_device_path)"},{"line_number":247,"context_line":"    except OSError as exc:"},{"line_number":248,"context_line":"        LOG.warning(\u0027Failed to get list of NICs: %s\u0027, exc)"},{"line_number":249,"context_line":"    else:"},{"line_number":250,"context_line":"        try:"},{"line_number":251,"context_line":"            numa_info[\u0027nics\u0027] \u003d get_nodes_nics_info(nic_device_path, nic_dirs)"},{"line_number":252,"context_line":"        except Exception as exc:"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_6b5a2e83","line":249,"range":{"start_line":245,"start_character":4,"end_line":249,"end_character":9},"in_reply_to":"bff0334d_929141f4","updated":"2017-04-12 11:40:30.000000000","message":"Done","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"7e13c46cfec21fa9f540480584f53ba02e0700c1","unresolved":false,"context_lines":[{"line_number":252,"context_line":"        except Exception as exc:"},{"line_number":253,"context_line":"            LOG.warning(\u0027Failed to get nics information \u0027"},{"line_number":254,"context_line":"                        \u0027for NUMA nodes: %s\u0027, exc)"},{"line_number":255,"context_line":"    data[\u0027numa_topology\u0027] \u003d numa_info"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_e5f449f3","line":255,"range":{"start_line":255,"start_character":0,"end_line":255,"end_character":37},"updated":"2017-04-11 17:10:38.000000000","message":"please, move to line 225","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a8e24ab4fdb4a5fed6a980a6d34ccac3aba616e7","unresolved":false,"context_lines":[{"line_number":252,"context_line":"        except Exception as exc:"},{"line_number":253,"context_line":"            LOG.warning(\u0027Failed to get nics information \u0027"},{"line_number":254,"context_line":"                        \u0027for NUMA nodes: %s\u0027, exc)"},{"line_number":255,"context_line":"    data[\u0027numa_topology\u0027] \u003d numa_info"}],"source_content_type":"text/x-python","patch_set":22,"id":"bff0334d_4b5d2a77","line":255,"range":{"start_line":255,"start_character":0,"end_line":255,"end_character":37},"in_reply_to":"bff0334d_e5f449f3","updated":"2017-04-12 11:40:30.000000000","message":"Done","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"c77680ff4f36859edf344871a213cde1fdfa6f05","unresolved":false,"context_lines":[{"line_number":124,"context_line":"        except OSError as exc:"},{"line_number":125,"context_line":"            msg \u003d (\u0027Failed to get list of threads for %(node)s: \u0027"},{"line_number":126,"context_line":"                   \u0027%(error)s\u0027 % {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"},{"line_number":127,"context_line":"            raise OSError(msg)"},{"line_number":128,"context_line":"        for thread_dir in thread_dirs:"},{"line_number":129,"context_line":"            if (not os.path.isdir(os.path.join(numa_node_dir, thread_dir))"},{"line_number":130,"context_line":"                or not thread_dir.startswith(\"cpu\")):"}],"source_content_type":"text/x-python","patch_set":23,"id":"bff0334d_b562cbac","line":127,"range":{"start_line":127,"start_character":18,"end_line":127,"end_character":30},"updated":"2017-04-12 14:04:28.000000000","message":"this should be IncompatibleNumaFormatError too","commit_id":"cc83efdd7a2546f097b21b91dda33cb2515e79ad"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a56b9a84b0520057aa1416bfcc26f09b0d5d58b9","unresolved":false,"context_lines":[{"line_number":124,"context_line":"        except OSError as exc:"},{"line_number":125,"context_line":"            msg \u003d (\u0027Failed to get list of threads for %(node)s: \u0027"},{"line_number":126,"context_line":"                   \u0027%(error)s\u0027 % {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"},{"line_number":127,"context_line":"            raise OSError(msg)"},{"line_number":128,"context_line":"        for thread_dir in thread_dirs:"},{"line_number":129,"context_line":"            if (not os.path.isdir(os.path.join(numa_node_dir, thread_dir))"},{"line_number":130,"context_line":"                or not thread_dir.startswith(\"cpu\")):"}],"source_content_type":"text/x-python","patch_set":23,"id":"bff0334d_397115a9","line":127,"range":{"start_line":127,"start_character":18,"end_line":127,"end_character":30},"in_reply_to":"bff0334d_b562cbac","updated":"2017-04-12 14:53:34.000000000","message":"Done","commit_id":"cc83efdd7a2546f097b21b91dda33cb2515e79ad"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"c77680ff4f36859edf344871a213cde1fdfa6f05","unresolved":false,"context_lines":[{"line_number":247,"context_line":"        numa_info[\u0027nics\u0027] \u003d get_nodes_nics_info(nic_device_path)"},{"line_number":248,"context_line":"    except errors.IncompatibleNumaFormatError as exc:"},{"line_number":249,"context_line":"        LOG.warning(\u0027Failed to get some NUMA information (%s)\u0027, exc)"},{"line_number":250,"context_line":"        return"}],"source_content_type":"text/x-python","patch_set":23,"id":"bff0334d_35d23b29","line":250,"range":{"start_line":250,"start_character":8,"end_line":250,"end_character":14},"updated":"2017-04-12 14:04:28.000000000","message":"s/return/del(data[\u0027numa_topology\u0027]) as I don\u0027t think there\u0027s point in keeping a potentially damaged record","commit_id":"cc83efdd7a2546f097b21b91dda33cb2515e79ad"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a56b9a84b0520057aa1416bfcc26f09b0d5d58b9","unresolved":false,"context_lines":[{"line_number":247,"context_line":"        numa_info[\u0027nics\u0027] \u003d get_nodes_nics_info(nic_device_path)"},{"line_number":248,"context_line":"    except errors.IncompatibleNumaFormatError as exc:"},{"line_number":249,"context_line":"        LOG.warning(\u0027Failed to get some NUMA information (%s)\u0027, exc)"},{"line_number":250,"context_line":"        return"}],"source_content_type":"text/x-python","patch_set":23,"id":"bff0334d_b9b1a546","line":250,"range":{"start_line":250,"start_character":8,"end_line":250,"end_character":14},"in_reply_to":"bff0334d_35d23b29","updated":"2017-04-12 14:53:34.000000000","message":"Added numa_topology in data when only no errors","commit_id":"cc83efdd7a2546f097b21b91dda33cb2515e79ad"},{"author":{"_account_id":21909,"name":"Bob Fournier","email":"bfournie@redhat.com","username":"bfournie"},"change_message_id":"b6e9cff8f7461edaf5e3c694f62a344e7a1de260","unresolved":false,"context_lines":[{"line_number":32,"context_line":"def get_numa_node_id(numa_node_dir):"},{"line_number":33,"context_line":"    \"\"\"Provides the NUMA node id from NUMA node directory"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    :param numa_node_dir: NUMA node directoryi"},{"line_number":36,"context_line":"    :raises: IncompatibleNumaFormatError: when unexpected format data"},{"line_number":37,"context_line":"             in NUMA node dir"},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"5ff73747_d959d2fe","line":35,"range":{"start_line":35,"start_character":36,"end_line":35,"end_character":46},"updated":"2017-04-24 21:16:58.000000000","message":"Nit - typo","commit_id":"3edf0396ce556390c9b65b1aa32604c9dc98084f"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"276e089fbfa46006f69cbc5b3c68e68decf12d62","unresolved":false,"context_lines":[{"line_number":32,"context_line":"def get_numa_node_id(numa_node_dir):"},{"line_number":33,"context_line":"    \"\"\"Provides the NUMA node id from NUMA node directory"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    :param numa_node_dir: NUMA node directoryi"},{"line_number":36,"context_line":"    :raises: IncompatibleNumaFormatError: when unexpected format data"},{"line_number":37,"context_line":"             in NUMA node dir"},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"5ff73747_2733dfad","line":35,"range":{"start_line":35,"start_character":36,"end_line":35,"end_character":46},"in_reply_to":"5ff73747_d959d2fe","updated":"2017-04-25 09:33:52.000000000","message":"Done","commit_id":"3edf0396ce556390c9b65b1aa32604c9dc98084f"},{"author":{"_account_id":21909,"name":"Bob Fournier","email":"bfournie@redhat.com","username":"bfournie"},"change_message_id":"b6e9cff8f7461edaf5e3c694f62a344e7a1de260","unresolved":false,"context_lines":[{"line_number":145,"context_line":"                       \u0027%(thread)s NUMA node %(node)s: %(error)s\u0027 %"},{"line_number":146,"context_line":"                       {\u0027thread\u0027: thread_dir, \u0027node\u0027: numa_node_dir,"},{"line_number":147,"context_line":"                        \u0027error\u0027: exc})"},{"line_number":148,"context_line":"                raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":149,"context_line":"            if cpu_id in dict_cpus:"},{"line_number":150,"context_line":"                if thread_id not in dict_cpus[cpu_id][\u0027thread_siblings\u0027]:"},{"line_number":151,"context_line":"                    dict_cpus[cpu_id][\u0027thread_siblings\u0027].append(thread_id)"},{"line_number":152,"context_line":"            else:"},{"line_number":153,"context_line":"                cpu_item \u003d {}"},{"line_number":154,"context_line":"                cpu_item[\u0027thread_siblings\u0027] \u003d [thread_id]"}],"source_content_type":"text/x-python","patch_set":24,"id":"5ff73747_19285a84","line":151,"range":{"start_line":148,"start_character":1,"end_line":151,"end_character":74},"updated":"2017-04-24 21:16:58.000000000","message":"Just a question - from the spec it states that that cpu and numa_node form a unique value, so that you can have this for example:       \n \"cpus\": [\n          {\"cpu\": 0, \"numa_node\": 0, \"thread_siblings\": [0,1]},\n          {\"cpu\": 1, \"numa_node\": 0, \"thread_siblings\": [2,3]},\n          ...,\n          {\"cpu\": 0, \"numa_node\": 1, \"thread_siblings\": [16,17]},\n          {\"cpu\": 1, \"numa_node\": 1, \"thread_siblings\": [18,19]},\n          ...,\n\nBut it looks like the way this is implemented that once a cpu is added you won\u0027t add a separate numa_node, so you\u0027d end up just with this, for example:         \n         {\"cpu\": 0, \"numa_node\": 0, \"thread_siblings\": [0,1]},\n         {\"cpu\": 1, \"numa_node\": 0, \"thread_siblings\": [2,3]},\n\nAm I missing something?","commit_id":"3edf0396ce556390c9b65b1aa32604c9dc98084f"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ca64483815efc541de27804b0d91a056eee33af0","unresolved":false,"context_lines":[{"line_number":145,"context_line":"                       \u0027%(thread)s NUMA node %(node)s: %(error)s\u0027 %"},{"line_number":146,"context_line":"                       {\u0027thread\u0027: thread_dir, \u0027node\u0027: numa_node_dir,"},{"line_number":147,"context_line":"                        \u0027error\u0027: exc})"},{"line_number":148,"context_line":"                raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":149,"context_line":"            if cpu_id in dict_cpus:"},{"line_number":150,"context_line":"                if thread_id not in dict_cpus[cpu_id][\u0027thread_siblings\u0027]:"},{"line_number":151,"context_line":"                    dict_cpus[cpu_id][\u0027thread_siblings\u0027].append(thread_id)"},{"line_number":152,"context_line":"            else:"},{"line_number":153,"context_line":"                cpu_item \u003d {}"},{"line_number":154,"context_line":"                cpu_item[\u0027thread_siblings\u0027] \u003d [thread_id]"}],"source_content_type":"text/x-python","patch_set":24,"id":"5ff73747_22660353","line":151,"range":{"start_line":148,"start_character":1,"end_line":151,"end_character":74},"in_reply_to":"5ff73747_19285a84","updated":"2017-04-26 10:56:33.000000000","message":"+1, excellent catch!","commit_id":"3edf0396ce556390c9b65b1aa32604c9dc98084f"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"276e089fbfa46006f69cbc5b3c68e68decf12d62","unresolved":false,"context_lines":[{"line_number":145,"context_line":"                       \u0027%(thread)s NUMA node %(node)s: %(error)s\u0027 %"},{"line_number":146,"context_line":"                       {\u0027thread\u0027: thread_dir, \u0027node\u0027: numa_node_dir,"},{"line_number":147,"context_line":"                        \u0027error\u0027: exc})"},{"line_number":148,"context_line":"                raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":149,"context_line":"            if cpu_id in dict_cpus:"},{"line_number":150,"context_line":"                if thread_id not in dict_cpus[cpu_id][\u0027thread_siblings\u0027]:"},{"line_number":151,"context_line":"                    dict_cpus[cpu_id][\u0027thread_siblings\u0027].append(thread_id)"},{"line_number":152,"context_line":"            else:"},{"line_number":153,"context_line":"                cpu_item \u003d {}"},{"line_number":154,"context_line":"                cpu_item[\u0027thread_siblings\u0027] \u003d [thread_id]"}],"source_content_type":"text/x-python","patch_set":24,"id":"5ff73747_07dd8341","line":151,"range":{"start_line":148,"start_character":1,"end_line":151,"end_character":74},"in_reply_to":"5ff73747_19285a84","updated":"2017-04-25 09:33:52.000000000","message":"Updated the code as mentioned in spec","commit_id":"3edf0396ce556390c9b65b1aa32604c9dc98084f"},{"author":{"_account_id":21909,"name":"Bob Fournier","email":"bfournie@redhat.com","username":"bfournie"},"change_message_id":"f20943102711cdf44644dad338649f3dfb81e8bb","unresolved":false,"context_lines":[{"line_number":81,"context_line":"            # Memory info sample line format \u0027Node 0 MemTotal: 1560000 kB\u0027"},{"line_number":82,"context_line":"            value \u003d line.split(\":\")[1].strip()"},{"line_number":83,"context_line":"            memory_kb \u003d int(UNIT_CONVERTER(value).to_base_units())"},{"line_number":84,"context_line":"        except (ValueError, IndexError) as exc:"},{"line_number":85,"context_line":"            msg \u003d (\u0027Failed to get memory information for %(node)s: \u0027"},{"line_number":86,"context_line":"                   \u0027%(error)s\u0027 % {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"},{"line_number":87,"context_line":"            raise errors.IncompatibleNumaFormatError(msg)"}],"source_content_type":"text/x-python","patch_set":25,"id":"5ff73747_f2e6c016","line":84,"range":{"start_line":84,"start_character":2,"end_line":84,"end_character":47},"updated":"2017-04-25 19:49:34.000000000","message":"I think you also need to handle UndefinedUnitError here to resolve the Jenkins failure.","commit_id":"ed5c003126cebb52a0d8cf223d28d680d303dfe5"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"4503d5070e27b0177275548eddc334241936de8f","unresolved":false,"context_lines":[{"line_number":81,"context_line":"            # Memory info sample line format \u0027Node 0 MemTotal: 1560000 kB\u0027"},{"line_number":82,"context_line":"            value \u003d line.split(\":\")[1].strip()"},{"line_number":83,"context_line":"            memory_kb \u003d int(UNIT_CONVERTER(value).to_base_units())"},{"line_number":84,"context_line":"        except (ValueError, IndexError) as exc:"},{"line_number":85,"context_line":"            msg \u003d (\u0027Failed to get memory information for %(node)s: \u0027"},{"line_number":86,"context_line":"                   \u0027%(error)s\u0027 % {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"},{"line_number":87,"context_line":"            raise errors.IncompatibleNumaFormatError(msg)"}],"source_content_type":"text/x-python","patch_set":25,"id":"5ff73747_1c85b508","line":84,"range":{"start_line":84,"start_character":2,"end_line":84,"end_character":47},"in_reply_to":"5ff73747_f2e6c016","updated":"2017-04-26 05:10:24.000000000","message":"Done","commit_id":"ed5c003126cebb52a0d8cf223d28d680d303dfe5"},{"author":{"_account_id":21909,"name":"Bob Fournier","email":"bfournie@redhat.com","username":"bfournie"},"change_message_id":"0c4bb056879ddb7b950c7892cafcc38666104991","unresolved":false,"context_lines":[{"line_number":146,"context_line":"                       {\u0027thread\u0027: thread_dir, \u0027node\u0027: numa_node_dir,"},{"line_number":147,"context_line":"                        \u0027error\u0027: exc})"},{"line_number":148,"context_line":"                raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":149,"context_line":"            dict_key \u003d \u0027node:\u0027 + str(numa_node_id) + \u0027_cpuid:\u0027 + str(cpu_id)"},{"line_number":150,"context_line":"            if dict_key in dict_cpus:"},{"line_number":151,"context_line":"                if thread_id not in dict_cpus[dict_key][\u0027thread_siblings\u0027]:"},{"line_number":152,"context_line":"                    dict_cpus[dict_key][\u0027thread_siblings\u0027].append(thread_id)"}],"source_content_type":"text/x-python","patch_set":25,"id":"5ff73747_0cf911c7","line":149,"range":{"start_line":149,"start_character":1,"end_line":149,"end_character":76},"updated":"2017-04-25 18:52:26.000000000","message":"A comment would be useful here as the use of _cpuid is confusing.","commit_id":"ed5c003126cebb52a0d8cf223d28d680d303dfe5"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"4503d5070e27b0177275548eddc334241936de8f","unresolved":false,"context_lines":[{"line_number":146,"context_line":"                       {\u0027thread\u0027: thread_dir, \u0027node\u0027: numa_node_dir,"},{"line_number":147,"context_line":"                        \u0027error\u0027: exc})"},{"line_number":148,"context_line":"                raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":149,"context_line":"            dict_key \u003d \u0027node:\u0027 + str(numa_node_id) + \u0027_cpuid:\u0027 + str(cpu_id)"},{"line_number":150,"context_line":"            if dict_key in dict_cpus:"},{"line_number":151,"context_line":"                if thread_id not in dict_cpus[dict_key][\u0027thread_siblings\u0027]:"},{"line_number":152,"context_line":"                    dict_cpus[dict_key][\u0027thread_siblings\u0027].append(thread_id)"}],"source_content_type":"text/x-python","patch_set":25,"id":"5ff73747_bc792130","line":149,"range":{"start_line":149,"start_character":1,"end_line":149,"end_character":76},"in_reply_to":"5ff73747_0cf911c7","updated":"2017-04-26 05:10:24.000000000","message":"Done","commit_id":"ed5c003126cebb52a0d8cf223d28d680d303dfe5"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"910e152780557d97103b1fd65fbdf8fc7f68a8db","unresolved":false,"context_lines":[{"line_number":149,"context_line":"            # CPU and NUMA node together forms a unique value, as cpu_id is"},{"line_number":150,"context_line":"            # specific to a NUMA node"},{"line_number":151,"context_line":"            # Combined NUMA node id and cpu id string is used for unique key"},{"line_number":152,"context_line":"            dict_key \u003d \u0027node:\u0027 + str(numa_node_id) + \u0027_cpuid:\u0027 + str(cpu_id)"},{"line_number":153,"context_line":"            if dict_key in dict_cpus:"},{"line_number":154,"context_line":"                if thread_id not in dict_cpus[dict_key][\u0027thread_siblings\u0027]:"},{"line_number":155,"context_line":"                    dict_cpus[dict_key][\u0027thread_siblings\u0027].append(thread_id)"}],"source_content_type":"text/x-python","patch_set":26,"id":"5ff73747_c2951f42","line":152,"range":{"start_line":152,"start_character":23,"end_line":152,"end_character":76},"updated":"2017-04-26 10:17:10.000000000","message":"s/numa_node_id, cpu_id/","commit_id":"78f72c0f116c42a7a07285894246579a947a5aea"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"cffc9ac17883c6af1df73fbae6d2f97074d5e50f","unresolved":false,"context_lines":[{"line_number":149,"context_line":"            # CPU and NUMA node together forms a unique value, as cpu_id is"},{"line_number":150,"context_line":"            # specific to a NUMA node"},{"line_number":151,"context_line":"            # Combined NUMA node id and cpu id string is used for unique key"},{"line_number":152,"context_line":"            dict_key \u003d \u0027node:\u0027 + str(numa_node_id) + \u0027_cpuid:\u0027 + str(cpu_id)"},{"line_number":153,"context_line":"            if dict_key in dict_cpus:"},{"line_number":154,"context_line":"                if thread_id not in dict_cpus[dict_key][\u0027thread_siblings\u0027]:"},{"line_number":155,"context_line":"                    dict_cpus[dict_key][\u0027thread_siblings\u0027].append(thread_id)"}],"source_content_type":"text/x-python","patch_set":26,"id":"5ff73747_782f1ca1","line":152,"range":{"start_line":152,"start_character":23,"end_line":152,"end_character":76},"in_reply_to":"5ff73747_c2951f42","updated":"2017-04-26 11:18:37.000000000","message":"Done","commit_id":"78f72c0f116c42a7a07285894246579a947a5aea"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"48cbe8407736b31981066f6de8dd7b5fe8412a58","unresolved":false,"context_lines":[{"line_number":64,"context_line":"        try:"},{"line_number":65,"context_line":"            with open(os.path.join(numa_node_dir,"},{"line_number":66,"context_line":"                      \u0027meminfo\u0027)) as meminfo_file:"},{"line_number":67,"context_line":"                for line in iter(meminfo_file.readline, \u0027\u0027):"},{"line_number":68,"context_line":"                    if \u0027MemTotal\u0027 in line:"},{"line_number":69,"context_line":"                        break"},{"line_number":70,"context_line":"        except IOError as exc:"}],"source_content_type":"text/x-python","patch_set":27,"id":"5ff73747_aaaeaa95","line":67,"updated":"2017-05-03 12:34:45.000000000","message":"for line in meminfo_file","commit_id":"5033441bba31e482c33074b5ba743a8a9a17a80e"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"f2451a7a729dd0a760ec923c5d777a9229049cea","unresolved":false,"context_lines":[{"line_number":64,"context_line":"        try:"},{"line_number":65,"context_line":"            with open(os.path.join(numa_node_dir,"},{"line_number":66,"context_line":"                      \u0027meminfo\u0027)) as meminfo_file:"},{"line_number":67,"context_line":"                for line in iter(meminfo_file.readline, \u0027\u0027):"},{"line_number":68,"context_line":"                    if \u0027MemTotal\u0027 in line:"},{"line_number":69,"context_line":"                        break"},{"line_number":70,"context_line":"        except IOError as exc:"}],"source_content_type":"text/x-python","patch_set":27,"id":"3f044301_dd72f511","line":67,"in_reply_to":"5ff73747_aaaeaa95","updated":"2017-05-04 11:08:19.000000000","message":"Done","commit_id":"5033441bba31e482c33074b5ba743a8a9a17a80e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"48cbe8407736b31981066f6de8dd7b5fe8412a58","unresolved":false,"context_lines":[{"line_number":72,"context_line":"                   \u0027for %(node)s: %(error)s\u0027 %"},{"line_number":73,"context_line":"                   {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"},{"line_number":74,"context_line":"            raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":75,"context_line":"        if not line:"},{"line_number":76,"context_line":"            msg \u003d (\u0027Memory information is not available for \u0027"},{"line_number":77,"context_line":"                   \u0027%(node)s\u0027 % {\u0027node\u0027: numa_node_dir})"},{"line_number":78,"context_line":"            raise errors.IncompatibleNumaFormatError(msg)"}],"source_content_type":"text/x-python","patch_set":27,"id":"5ff73747_8a93ee5c","line":75,"updated":"2017-05-03 12:34:45.000000000","message":"this is a quite confusing way to check that we did not break out of loop. Please better use \"else\" branch of the \"for\" loop above.","commit_id":"5033441bba31e482c33074b5ba743a8a9a17a80e"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"f2451a7a729dd0a760ec923c5d777a9229049cea","unresolved":false,"context_lines":[{"line_number":72,"context_line":"                   \u0027for %(node)s: %(error)s\u0027 %"},{"line_number":73,"context_line":"                   {\u0027node\u0027: numa_node_dir, \u0027error\u0027: exc})"},{"line_number":74,"context_line":"            raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":75,"context_line":"        if not line:"},{"line_number":76,"context_line":"            msg \u003d (\u0027Memory information is not available for \u0027"},{"line_number":77,"context_line":"                   \u0027%(node)s\u0027 % {\u0027node\u0027: numa_node_dir})"},{"line_number":78,"context_line":"            raise errors.IncompatibleNumaFormatError(msg)"}],"source_content_type":"text/x-python","patch_set":27,"id":"3f044301_bd61693c","line":75,"in_reply_to":"5ff73747_8a93ee5c","updated":"2017-05-04 11:08:19.000000000","message":"Done","commit_id":"5033441bba31e482c33074b5ba743a8a9a17a80e"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"8e7acf13e0ba856b3298c53ff4077ccbcc179661","unresolved":false,"context_lines":[{"line_number":149,"context_line":"            # CPU and NUMA node together forms a unique value, as cpu_id is"},{"line_number":150,"context_line":"            # specific to a NUMA node"},{"line_number":151,"context_line":"            # NUMA node id and cpu id tuple is used for unique key"},{"line_number":152,"context_line":"            dict_key \u003d (numa_node_id, cpu_id)"},{"line_number":153,"context_line":"            if dict_key in dict_cpus:"},{"line_number":154,"context_line":"                if thread_id not in dict_cpus[dict_key][\u0027thread_siblings\u0027]:"},{"line_number":155,"context_line":"                    dict_cpus[dict_key][\u0027thread_siblings\u0027].append(thread_id)"}],"source_content_type":"text/x-python","patch_set":27,"id":"5ff73747_eca24a4b","line":152,"range":{"start_line":152,"start_character":23,"end_line":152,"end_character":24},"updated":"2017-04-26 13:11:32.000000000","message":"nit: ( not needed","commit_id":"5033441bba31e482c33074b5ba743a8a9a17a80e"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"f2451a7a729dd0a760ec923c5d777a9229049cea","unresolved":false,"context_lines":[{"line_number":149,"context_line":"            # CPU and NUMA node together forms a unique value, as cpu_id is"},{"line_number":150,"context_line":"            # specific to a NUMA node"},{"line_number":151,"context_line":"            # NUMA node id and cpu id tuple is used for unique key"},{"line_number":152,"context_line":"            dict_key \u003d (numa_node_id, cpu_id)"},{"line_number":153,"context_line":"            if dict_key in dict_cpus:"},{"line_number":154,"context_line":"                if thread_id not in dict_cpus[dict_key][\u0027thread_siblings\u0027]:"},{"line_number":155,"context_line":"                    dict_cpus[dict_key][\u0027thread_siblings\u0027].append(thread_id)"}],"source_content_type":"text/x-python","patch_set":27,"id":"3f044301_9d66ad51","line":152,"range":{"start_line":152,"start_character":23,"end_line":152,"end_character":24},"in_reply_to":"5ff73747_eca24a4b","updated":"2017-05-04 11:08:19.000000000","message":"Done","commit_id":"5033441bba31e482c33074b5ba743a8a9a17a80e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"48cbe8407736b31981066f6de8dd7b5fe8412a58","unresolved":false,"context_lines":[{"line_number":181,"context_line":"    nics \u003d []"},{"line_number":182,"context_line":"    if not os.path.isdir(nic_device_path):"},{"line_number":183,"context_line":"        msg \u003d (\u0027Failed to get list of NIC\\\u0027s, NIC device path \u0027"},{"line_number":184,"context_line":"               \u0027is not exist: %s\u0027, nic_device_path)"},{"line_number":185,"context_line":"        raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":186,"context_line":"    for nic_dir in os.listdir(nic_device_path):"},{"line_number":187,"context_line":"        if not os.path.isdir(os.path.join(nic_device_path, nic_dir, \u0027device\u0027)):"}],"source_content_type":"text/x-python","patch_set":27,"id":"5ff73747_6a90a24f","line":184,"updated":"2017-05-03 12:34:45.000000000","message":", -\u003e % (this is not logging)","commit_id":"5033441bba31e482c33074b5ba743a8a9a17a80e"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"f2451a7a729dd0a760ec923c5d777a9229049cea","unresolved":false,"context_lines":[{"line_number":181,"context_line":"    nics \u003d []"},{"line_number":182,"context_line":"    if not os.path.isdir(nic_device_path):"},{"line_number":183,"context_line":"        msg \u003d (\u0027Failed to get list of NIC\\\u0027s, NIC device path \u0027"},{"line_number":184,"context_line":"               \u0027is not exist: %s\u0027, nic_device_path)"},{"line_number":185,"context_line":"        raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":186,"context_line":"    for nic_dir in os.listdir(nic_device_path):"},{"line_number":187,"context_line":"        if not os.path.isdir(os.path.join(nic_device_path, nic_dir, \u0027device\u0027)):"}],"source_content_type":"text/x-python","patch_set":27,"id":"3f044301_7d5be186","line":184,"in_reply_to":"5ff73747_6a90a24f","updated":"2017-05-04 11:08:19.000000000","message":"Done","commit_id":"5033441bba31e482c33074b5ba743a8a9a17a80e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"48cbe8407736b31981066f6de8dd7b5fe8412a58","unresolved":false,"context_lines":[{"line_number":237,"context_line":"    numa_node_dirs \u003d []"},{"line_number":238,"context_line":"    if not os.path.isdir(numa_node_path):"},{"line_number":239,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes, NUMA node path \u0027"},{"line_number":240,"context_line":"                    \u0027is not exist: %s\u0027, numa_node_path)"},{"line_number":241,"context_line":"        return"},{"line_number":242,"context_line":"    for numa_node_dir in os.listdir(numa_node_path):"},{"line_number":243,"context_line":"        numa_node_dir_path \u003d os.path.join(numa_node_path, numa_node_dir)"}],"source_content_type":"text/x-python","patch_set":27,"id":"5ff73747_4a9de664","line":240,"updated":"2017-05-03 12:34:45.000000000","message":"s/is/does/","commit_id":"5033441bba31e482c33074b5ba743a8a9a17a80e"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"f2451a7a729dd0a760ec923c5d777a9229049cea","unresolved":false,"context_lines":[{"line_number":237,"context_line":"    numa_node_dirs \u003d []"},{"line_number":238,"context_line":"    if not os.path.isdir(numa_node_path):"},{"line_number":239,"context_line":"        LOG.warning(\u0027Failed to get list of NUMA nodes, NUMA node path \u0027"},{"line_number":240,"context_line":"                    \u0027is not exist: %s\u0027, numa_node_path)"},{"line_number":241,"context_line":"        return"},{"line_number":242,"context_line":"    for numa_node_dir in os.listdir(numa_node_path):"},{"line_number":243,"context_line":"        numa_node_dir_path \u003d os.path.join(numa_node_path, numa_node_dir)"}],"source_content_type":"text/x-python","patch_set":27,"id":"3f044301_5d602533","line":240,"in_reply_to":"5ff73747_4a9de664","updated":"2017-05-04 11:08:19.000000000","message":"Done","commit_id":"5033441bba31e482c33074b5ba743a8a9a17a80e"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"52e9240ca8e6756c7377fe1fd3f93e532bc4dcac","unresolved":false,"context_lines":[{"line_number":147,"context_line":"                        \u0027error\u0027: exc})"},{"line_number":148,"context_line":"                raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":149,"context_line":"            # CPU and NUMA node together forms a unique value, as cpu_id is"},{"line_number":150,"context_line":"            # specific to a NUMA node"},{"line_number":151,"context_line":"            # NUMA node id and cpu id tuple is used for unique key"},{"line_number":152,"context_line":"            dict_key \u003d numa_node_id, cpu_id"},{"line_number":153,"context_line":"            if dict_key in dict_cpus:"}],"source_content_type":"text/x-python","patch_set":32,"id":"ff0f0b1f_b0e490e1","line":150,"range":{"start_line":150,"start_character":28,"end_line":150,"end_character":32},"updated":"2017-05-22 12:21:21.000000000","message":"nit: technically this is incorrect. \nthe core id reported in cat /sys/bus/cpu/devices/cpu\u003cx\u003e/topology/core_id is unique per processor package/ socket not per numa node. each socket can have multiple numa nodes and the core id is not going to be repeated within 2 numa node on the same socket.\n\nif you are unfamilar with cluster on die more info is availabel here\nhttps://software.intel.com/en-us/articles/intel-xeon-processor-e5-2600-v4-product-family-technical-overview\n\nsearch for \"Cluster on Die Mode\"","commit_id":"cc9e05da504693af6ceafff64527200bcbe4bb7d"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"52e9240ca8e6756c7377fe1fd3f93e532bc4dcac","unresolved":false,"context_lines":[{"line_number":148,"context_line":"                raise errors.IncompatibleNumaFormatError(msg)"},{"line_number":149,"context_line":"            # CPU and NUMA node together forms a unique value, as cpu_id is"},{"line_number":150,"context_line":"            # specific to a NUMA node"},{"line_number":151,"context_line":"            # NUMA node id and cpu id tuple is used for unique key"},{"line_number":152,"context_line":"            dict_key \u003d numa_node_id, cpu_id"},{"line_number":153,"context_line":"            if dict_key in dict_cpus:"},{"line_number":154,"context_line":"                if thread_id not in dict_cpus[dict_key][\u0027thread_siblings\u0027]:"}],"source_content_type":"text/x-python","patch_set":32,"id":"ff0f0b1f_702958e4","line":151,"range":{"start_line":151,"start_character":14,"end_line":151,"end_character":37},"updated":"2017-05-22 12:21:21.000000000","message":"nit: strictly speaking the physical_package_id would be more correct though the numa node will also provide uniqueness in this case.\n\nit would be good to also track the physical_package_id of a cpu core for completeness. NUMA info is granular enough for most usecases though it is still preferable in a multi numa case to localize workloads to numa nodes of the same physical socket where possible before spanning the workload to the second physical socket.","commit_id":"cc9e05da504693af6ceafff64527200bcbe4bb7d"}],"ironic_python_agent/tests/unit/test_inspector.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"494d8e7cba215840112c4b806084dea7a15d1bae","unresolved":false,"context_lines":[{"line_number":419,"context_line":"        self.assertListEqual(expected_pci_devices, self.data[\u0027pci_devices\u0027])"},{"line_number":420,"context_line":""},{"line_number":421,"context_line":""},{"line_number":422,"context_line":"class TestCollectNumaTopologyInfo(test_base.BaseTestCase):"},{"line_number":423,"context_line":"    def setUp(self):"},{"line_number":424,"context_line":"        super(TestCollectNumaTopologyInfo, self).setUp()"},{"line_number":425,"context_line":"        self.data \u003d {}"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa31d9ce_c4f1926c","line":422,"updated":"2017-02-16 10:43:59.000000000","message":"ditto about moving this to a separate module","commit_id":"04f423f0113fcb7c3aa3cae2bc42b5442e031994"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"da4b4fedd3ea61f082158cca7ab1adcf9c00b3d9","unresolved":false,"context_lines":[{"line_number":419,"context_line":"        self.assertListEqual(expected_pci_devices, self.data[\u0027pci_devices\u0027])"},{"line_number":420,"context_line":""},{"line_number":421,"context_line":""},{"line_number":422,"context_line":"class TestCollectNumaTopologyInfo(test_base.BaseTestCase):"},{"line_number":423,"context_line":"    def setUp(self):"},{"line_number":424,"context_line":"        super(TestCollectNumaTopologyInfo, self).setUp()"},{"line_number":425,"context_line":"        self.data \u003d {}"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa31d9ce_6a026cb6","line":422,"in_reply_to":"fa31d9ce_c4f1926c","updated":"2017-02-16 12:29:57.000000000","message":"Done","commit_id":"04f423f0113fcb7c3aa3cae2bc42b5442e031994"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ee540c96c3524071253564091228cded6c6ecc6d","unresolved":false,"context_lines":[{"line_number":483,"context_line":"        mock_nics_info.side_effect \u003d OSError()"},{"line_number":484,"context_line":"        inspector.collect_numa_topology_info(self.data, self.failures)"},{"line_number":485,"context_line":"        self.assertNotIn(\"numa_topology\", self.data)"},{"line_number":486,"context_line":""},{"line_number":487,"context_line":""},{"line_number":488,"context_line":"@mock.patch.object(utils, \u0027get_agent_params\u0027, lambda: {\u0027BOOTIF\u0027: \u002701-cdef\u0027})"},{"line_number":489,"context_line":"@mock.patch.object(hardware, \u0027dispatch_to_managers\u0027, autospec\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_a7f06f92","line":486,"updated":"2017-03-10 15:04:15.000000000","message":"there are no tests simulating failures of the get_nodes_[core_info, memory_info, nic_info] respectively.","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"36cfe53817ca15f91222505d671eee9994814305","unresolved":false,"context_lines":[{"line_number":483,"context_line":"        mock_nics_info.side_effect \u003d OSError()"},{"line_number":484,"context_line":"        inspector.collect_numa_topology_info(self.data, self.failures)"},{"line_number":485,"context_line":"        self.assertNotIn(\"numa_topology\", self.data)"},{"line_number":486,"context_line":""},{"line_number":487,"context_line":""},{"line_number":488,"context_line":"@mock.patch.object(utils, \u0027get_agent_params\u0027, lambda: {\u0027BOOTIF\u0027: \u002701-cdef\u0027})"},{"line_number":489,"context_line":"@mock.patch.object(hardware, \u0027dispatch_to_managers\u0027, autospec\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a30ddce_ae5ae8ef","line":486,"in_reply_to":"9a30ddce_a7f06f92","updated":"2017-03-12 13:56:08.000000000","message":"Done","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"}],"ironic_python_agent/tests/unit/test_numa_inspector.py":[{"author":{"_account_id":21909,"name":"Bob Fournier","email":"bfournie@redhat.com","username":"bfournie"},"change_message_id":"b6e9cff8f7461edaf5e3c694f62a344e7a1de260","unresolved":false,"context_lines":[{"line_number":49,"context_line":"                                       {\u0027name\u0027: \u0027enp0s02\u0027, \u0027numa_node\u0027: 1}]"},{"line_number":50,"context_line":"        expected_numa_info \u003d {\"ram\": [{\u0027numa_node\u0027: 0, \u0027size_kb\u0027: 1560000},"},{"line_number":51,"context_line":"                                      {\u0027numa_node\u0027: 1, \u0027size_kb\u0027: 1200000}],"},{"line_number":52,"context_line":"                              \"cpus\": [{\u0027cpu\u0027: 0, \u0027numa_node\u0027: 0,"},{"line_number":53,"context_line":"                                        \u0027thread_siblings\u0027: [0, 1, 2, 3]},"},{"line_number":54,"context_line":"                                       {\u0027cpu\u0027: 1, \u0027numa_node\u0027: 1,"},{"line_number":55,"context_line":"                                        \u0027thread_siblings\u0027: [4, 5, 6]}],"},{"line_number":56,"context_line":"                              \"nics\": [{\u0027name\u0027: \u0027enp0s01\u0027, \u0027numa_node\u0027: 0},"},{"line_number":57,"context_line":"                                       {\u0027name\u0027: \u0027enp0s02\u0027, \u0027numa_node\u0027: 1}]}"},{"line_number":58,"context_line":"        mock_open \u003d mock.mock_open()"}],"source_content_type":"text/x-python","patch_set":24,"id":"5ff73747_19d29a5d","line":55,"range":{"start_line":52,"start_character":1,"end_line":55,"end_character":71},"updated":"2017-04-24 21:16:58.000000000","message":"Would be useful to add a test for multiple numa nodes per cpu, e.g. per the spec:      \n          {\"cpu\": 0, \"numa_node\": 0, \"thread_siblings\": [0,1]},\n          {\"cpu\": 1, \"numa_node\": 0, \"thread_siblings\": [2,3]},\n          ...,\n          {\"cpu\": 0, \"numa_node\": 1, \"thread_siblings\": [16,17]},\n          {\"cpu\": 1, \"numa_node\": 1, \"thread_siblings\": [18,19]},","commit_id":"3edf0396ce556390c9b65b1aa32604c9dc98084f"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"276e089fbfa46006f69cbc5b3c68e68decf12d62","unresolved":false,"context_lines":[{"line_number":49,"context_line":"                                       {\u0027name\u0027: \u0027enp0s02\u0027, \u0027numa_node\u0027: 1}]"},{"line_number":50,"context_line":"        expected_numa_info \u003d {\"ram\": [{\u0027numa_node\u0027: 0, \u0027size_kb\u0027: 1560000},"},{"line_number":51,"context_line":"                                      {\u0027numa_node\u0027: 1, \u0027size_kb\u0027: 1200000}],"},{"line_number":52,"context_line":"                              \"cpus\": [{\u0027cpu\u0027: 0, \u0027numa_node\u0027: 0,"},{"line_number":53,"context_line":"                                        \u0027thread_siblings\u0027: [0, 1, 2, 3]},"},{"line_number":54,"context_line":"                                       {\u0027cpu\u0027: 1, \u0027numa_node\u0027: 1,"},{"line_number":55,"context_line":"                                        \u0027thread_siblings\u0027: [4, 5, 6]}],"},{"line_number":56,"context_line":"                              \"nics\": [{\u0027name\u0027: \u0027enp0s01\u0027, \u0027numa_node\u0027: 0},"},{"line_number":57,"context_line":"                                       {\u0027name\u0027: \u0027enp0s02\u0027, \u0027numa_node\u0027: 1}]}"},{"line_number":58,"context_line":"        mock_open \u003d mock.mock_open()"}],"source_content_type":"text/x-python","patch_set":24,"id":"5ff73747_a7cc8f89","line":55,"range":{"start_line":52,"start_character":1,"end_line":55,"end_character":71},"in_reply_to":"5ff73747_19d29a5d","updated":"2017-04-25 09:33:52.000000000","message":"Updated tests for multiple numa nodes with duplicate cpu info.","commit_id":"3edf0396ce556390c9b65b1aa32604c9dc98084f"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"3594e93cf7718c3e0bfbacbdc89aa19409a706d8","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        mock_memory_info.side_effect \u003d errors.IncompatibleNumaFormatError(\"\")"},{"line_number":111,"context_line":"        mock_cores_info.side_effect \u003d errors.IncompatibleNumaFormatError(\"\")"},{"line_number":112,"context_line":"        mock_nics_info.side_effect \u003d errors.IncompatibleNumaFormatError(\"\")"},{"line_number":113,"context_line":"        numa_insp.collect_numa_topology_info(self.data, self.failures)"},{"line_number":114,"context_line":"        self.assertNotIn(\"numa_topology\", self.data)"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"5ff73747_aa8abdbb","line":113,"range":{"start_line":113,"start_character":56,"end_line":113,"end_character":69},"updated":"2017-04-27 12:44:24.000000000","message":"nit: I\u0027d also assert that failures is empty","commit_id":"5033441bba31e482c33074b5ba743a8a9a17a80e"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"f2451a7a729dd0a760ec923c5d777a9229049cea","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        mock_memory_info.side_effect \u003d errors.IncompatibleNumaFormatError(\"\")"},{"line_number":111,"context_line":"        mock_cores_info.side_effect \u003d errors.IncompatibleNumaFormatError(\"\")"},{"line_number":112,"context_line":"        mock_nics_info.side_effect \u003d errors.IncompatibleNumaFormatError(\"\")"},{"line_number":113,"context_line":"        numa_insp.collect_numa_topology_info(self.data, self.failures)"},{"line_number":114,"context_line":"        self.assertNotIn(\"numa_topology\", self.data)"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"3f044301_1d529d68","line":113,"range":{"start_line":113,"start_character":56,"end_line":113,"end_character":69},"in_reply_to":"5ff73747_aa8abdbb","updated":"2017-05-04 11:08:19.000000000","message":"Done","commit_id":"5033441bba31e482c33074b5ba743a8a9a17a80e"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"5eaaef98da15a5a85e07ce5590edc79383ecaaa2","unresolved":false,"context_lines":[{"line_number":126,"context_line":"        numa_node_dirs \u003d [\u0027/sys/devices/system/node/node0\u0027,"},{"line_number":127,"context_line":"                          \u0027/sys/devices/system/node/node1\u0027]"},{"line_number":128,"context_line":"        mock_isdir.return_value \u003d True"},{"line_number":129,"context_line":"        reads \u003d [[\u0027Node 0 MemTotal: 1560000 kB\u0027],"},{"line_number":130,"context_line":"                 [\u0027Node 1 MemTotal: 1200000 kB\u0027]]"},{"line_number":131,"context_line":"        expected_meminfo \u003d [{\u0027numa_node\u0027: 0, \u0027size_kb\u0027: 1560000},"},{"line_number":132,"context_line":"                            {\u0027numa_node\u0027: 1, \u0027size_kb\u0027: 1200000}]"},{"line_number":133,"context_line":"        mock_open \u003d mock.mock_open()"}],"source_content_type":"text/x-python","patch_set":28,"id":"3f044301_7ae19cfe","line":130,"range":{"start_line":129,"start_character":8,"end_line":130,"end_character":49},"updated":"2017-05-04 15:33:54.000000000","message":"I guess this should also contain some ignored content:\n\n  [[\u0027Node 0 Ignored Line\u0027,\n    \u0027Node 0 MemTotal: 1560000 kB\u0027],\n   [\u0027Node 1 MemTolta: 1200000 kB\u0027,\n    \u0027Node 1 Ignored Line\u0027]]","commit_id":"bf1f50651b13357f3f9e0c1416758a2754675653"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"1de7d4de13cb63823b31ec200130f99a11049724","unresolved":false,"context_lines":[{"line_number":126,"context_line":"        numa_node_dirs \u003d [\u0027/sys/devices/system/node/node0\u0027,"},{"line_number":127,"context_line":"                          \u0027/sys/devices/system/node/node1\u0027]"},{"line_number":128,"context_line":"        mock_isdir.return_value \u003d True"},{"line_number":129,"context_line":"        reads \u003d [[\u0027Node 0 MemTotal: 1560000 kB\u0027],"},{"line_number":130,"context_line":"                 [\u0027Node 1 MemTotal: 1200000 kB\u0027]]"},{"line_number":131,"context_line":"        expected_meminfo \u003d [{\u0027numa_node\u0027: 0, \u0027size_kb\u0027: 1560000},"},{"line_number":132,"context_line":"                            {\u0027numa_node\u0027: 1, \u0027size_kb\u0027: 1200000}]"},{"line_number":133,"context_line":"        mock_open \u003d mock.mock_open()"}],"source_content_type":"text/x-python","patch_set":28,"id":"3f044301_c082f7c8","line":130,"range":{"start_line":129,"start_character":8,"end_line":130,"end_character":49},"in_reply_to":"3f044301_7ae19cfe","updated":"2017-05-04 21:29:48.000000000","message":"Done","commit_id":"bf1f50651b13357f3f9e0c1416758a2754675653"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"b4f1e588b7d46f9bd5b9a39efc0670af885ba992","unresolved":false,"context_lines":[{"line_number":188,"context_line":"                              numa_node_dirs)"},{"line_number":189,"context_line":""},{"line_number":190,"context_line":"    @mock.patch.object(os.path, \u0027isdir\u0027, autospec\u003dTrue)"},{"line_number":191,"context_line":"    def test_nodes_invalid_nodedir_format_memory_info(self, mock_isdir):"},{"line_number":192,"context_line":"        numa_node_dirs \u003d [\u0027/sys/devices/system/node/node-*0\u0027,"},{"line_number":193,"context_line":"                          \u0027/sys/devices/system/node/node1\u0027]"},{"line_number":194,"context_line":"        mock_isdir.return_value \u003d True"}],"source_content_type":"text/x-python","patch_set":29,"id":"3f044301_f37c4f84","line":191,"range":{"start_line":191,"start_character":13,"end_line":191,"end_character":53},"updated":"2017-05-10 10:59:42.000000000","message":"I guess this might be better named  test_get_numa_node_id_invalid_format as the name is confusing.\nAlso I think that memory_info tests should mock this function actually and leave testing of get_numa_node_id up to specific test methods.","commit_id":"e5be70fe4cd24149b2dbf65560d700bd128b162c"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"b87822c10b56b9c1052a58a566869d9fbebde2de","unresolved":false,"context_lines":[{"line_number":188,"context_line":"                              numa_node_dirs)"},{"line_number":189,"context_line":""},{"line_number":190,"context_line":"    @mock.patch.object(os.path, \u0027isdir\u0027, autospec\u003dTrue)"},{"line_number":191,"context_line":"    def test_nodes_invalid_nodedir_format_memory_info(self, mock_isdir):"},{"line_number":192,"context_line":"        numa_node_dirs \u003d [\u0027/sys/devices/system/node/node-*0\u0027,"},{"line_number":193,"context_line":"                          \u0027/sys/devices/system/node/node1\u0027]"},{"line_number":194,"context_line":"        mock_isdir.return_value \u003d True"}],"source_content_type":"text/x-python","patch_set":29,"id":"3f044301_af02c83b","line":191,"range":{"start_line":191,"start_character":13,"end_line":191,"end_character":53},"in_reply_to":"3f044301_f37c4f84","updated":"2017-05-11 09:47:41.000000000","message":"Done","commit_id":"e5be70fe4cd24149b2dbf65560d700bd128b162c"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"b4f1e588b7d46f9bd5b9a39efc0670af885ba992","unresolved":false,"context_lines":[{"line_number":246,"context_line":""},{"line_number":247,"context_line":"    @mock.patch.object(os.path, \u0027isdir\u0027, autospec\u003dTrue)"},{"line_number":248,"context_line":"    @mock.patch.object(os, \u0027listdir\u0027, autospec\u003dTrue)"},{"line_number":249,"context_line":"    def test_nodes_invalid_nodedir_format_cores_info(self, mock_listdir,"},{"line_number":250,"context_line":"                                                     mock_isdir):"},{"line_number":251,"context_line":"        numa_node_dirs \u003d [\u0027/sys/devices/system/node/nodeid0\u0027]"},{"line_number":252,"context_line":"        thread_dirs \u003d [\u0027cpu0\u0027, \u0027cpu1\u0027, \u0027cpu2\u0027, \u0027cpu3\u0027, \u0027cpu4\u0027, \u0027cpu5\u0027]"}],"source_content_type":"text/x-python","patch_set":29,"id":"3f044301_93c74b97","line":249,"range":{"start_line":249,"start_character":8,"end_line":249,"end_character":52},"updated":"2017-05-10 10:59:42.000000000","message":"ditto","commit_id":"e5be70fe4cd24149b2dbf65560d700bd128b162c"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"b87822c10b56b9c1052a58a566869d9fbebde2de","unresolved":false,"context_lines":[{"line_number":246,"context_line":""},{"line_number":247,"context_line":"    @mock.patch.object(os.path, \u0027isdir\u0027, autospec\u003dTrue)"},{"line_number":248,"context_line":"    @mock.patch.object(os, \u0027listdir\u0027, autospec\u003dTrue)"},{"line_number":249,"context_line":"    def test_nodes_invalid_nodedir_format_cores_info(self, mock_listdir,"},{"line_number":250,"context_line":"                                                     mock_isdir):"},{"line_number":251,"context_line":"        numa_node_dirs \u003d [\u0027/sys/devices/system/node/nodeid0\u0027]"},{"line_number":252,"context_line":"        thread_dirs \u003d [\u0027cpu0\u0027, \u0027cpu1\u0027, \u0027cpu2\u0027, \u0027cpu3\u0027, \u0027cpu4\u0027, \u0027cpu5\u0027]"}],"source_content_type":"text/x-python","patch_set":29,"id":"3f044301_8ffb8c45","line":249,"range":{"start_line":249,"start_character":8,"end_line":249,"end_character":52},"in_reply_to":"3f044301_93c74b97","updated":"2017-05-11 09:47:41.000000000","message":"Done","commit_id":"e5be70fe4cd24149b2dbf65560d700bd128b162c"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"b4f1e588b7d46f9bd5b9a39efc0670af885ba992","unresolved":false,"context_lines":[{"line_number":254,"context_line":"        mock_isdir.return_value \u003d True"},{"line_number":255,"context_line":"        reads \u003d [\u00270\u0027, \u00270\u0027, \u00271\u0027, \u00271\u0027, \u00271\u0027, \u00272\u0027]"},{"line_number":256,"context_line":"        mock_open \u003d mock.mock_open()"},{"line_number":257,"context_line":"        with mock.patch(\u0027six.moves.builtins.open\u0027, mock_open):"},{"line_number":258,"context_line":"            mock_core_id_file \u003d mock_open.return_value.read"},{"line_number":259,"context_line":"            mock_core_id_file.side_effect \u003d reads"},{"line_number":260,"context_line":"            self.assertRaises(errors.IncompatibleNumaFormatError,"},{"line_number":261,"context_line":"                              numa_insp.get_nodes_cores_info,"},{"line_number":262,"context_line":"                              numa_node_dirs)"}],"source_content_type":"text/x-python","patch_set":29,"id":"3f044301_5352e3df","line":259,"range":{"start_line":257,"start_character":7,"end_line":259,"end_character":49},"updated":"2017-05-10 10:59:42.000000000","message":"not needed I guess (per your update on line 191)","commit_id":"e5be70fe4cd24149b2dbf65560d700bd128b162c"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"b87822c10b56b9c1052a58a566869d9fbebde2de","unresolved":false,"context_lines":[{"line_number":254,"context_line":"        mock_isdir.return_value \u003d True"},{"line_number":255,"context_line":"        reads \u003d [\u00270\u0027, \u00270\u0027, \u00271\u0027, \u00271\u0027, \u00271\u0027, \u00272\u0027]"},{"line_number":256,"context_line":"        mock_open \u003d mock.mock_open()"},{"line_number":257,"context_line":"        with mock.patch(\u0027six.moves.builtins.open\u0027, mock_open):"},{"line_number":258,"context_line":"            mock_core_id_file \u003d mock_open.return_value.read"},{"line_number":259,"context_line":"            mock_core_id_file.side_effect \u003d reads"},{"line_number":260,"context_line":"            self.assertRaises(errors.IncompatibleNumaFormatError,"},{"line_number":261,"context_line":"                              numa_insp.get_nodes_cores_info,"},{"line_number":262,"context_line":"                              numa_node_dirs)"}],"source_content_type":"text/x-python","patch_set":29,"id":"3f044301_4fc0e4e1","line":259,"range":{"start_line":257,"start_character":7,"end_line":259,"end_character":49},"in_reply_to":"3f044301_5352e3df","updated":"2017-05-11 09:47:41.000000000","message":"Done","commit_id":"e5be70fe4cd24149b2dbf65560d700bd128b162c"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"8266f2e35ab236e74ddf862f668f9440bb5a7923","unresolved":false,"context_lines":[{"line_number":143,"context_line":"        numa_node_dirs \u003d [\u0027/sys/devices/system/node/node0\u0027,"},{"line_number":144,"context_line":"                          \u0027/sys/devices/system/node/node1\u0027]"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        def side_effect_node_id(arg):"},{"line_number":147,"context_line":"            numa_node_id_list \u003d [0, 1]"},{"line_number":148,"context_line":"            if arg \u003d\u003d \u0027/sys/devices/system/node/node0\u0027:"},{"line_number":149,"context_line":"                return numa_node_id_list[0]"},{"line_number":150,"context_line":"            else:"},{"line_number":151,"context_line":"                return numa_node_id_list[1]"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"        mock_node_id.side_effect \u003d side_effect_node_id"},{"line_number":154,"context_line":"        reads \u003d [[\u0027Node 0 Ignored Line\u0027,"},{"line_number":155,"context_line":"                  \u0027Node 0 MemTotal: 1560000 kB\u0027],"},{"line_number":156,"context_line":"                 [\u0027Node 1 MemTotal: 1200000 kB\u0027,"}],"source_content_type":"text/x-python","patch_set":30,"id":"3f044301_1978e3c1","line":153,"range":{"start_line":146,"start_character":9,"end_line":153,"end_character":54},"updated":"2017-05-11 13:28:05.000000000","message":"nit: better maybe, relying on the order of numa_node_dirs:\n\n    mock_node_id.side_effect \u003d [0, 1]","commit_id":"a0f50cfa3eb779e16661c475599d693009f117b2"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"8266f2e35ab236e74ddf862f668f9440bb5a7923","unresolved":false,"context_lines":[{"line_number":150,"context_line":"            else:"},{"line_number":151,"context_line":"                return numa_node_id_list[1]"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"        mock_node_id.side_effect \u003d side_effect_node_id"},{"line_number":154,"context_line":"        reads \u003d [[\u0027Node 0 Ignored Line\u0027,"},{"line_number":155,"context_line":"                  \u0027Node 0 MemTotal: 1560000 kB\u0027],"},{"line_number":156,"context_line":"                 [\u0027Node 1 MemTotal: 1200000 kB\u0027,"}],"source_content_type":"text/x-python","patch_set":30,"id":"3f044301_99bf5360","line":153,"range":{"start_line":153,"start_character":8,"end_line":153,"end_character":20},"updated":"2017-05-11 13:28:05.000000000","message":"nit: mock_node_id never checked for actual calls","commit_id":"a0f50cfa3eb779e16661c475599d693009f117b2"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"f8c619b1ba4e8135489a037bf0d45060041b0c09","unresolved":false,"context_lines":[{"line_number":143,"context_line":"        numa_node_dirs \u003d [\u0027/sys/devices/system/node/node0\u0027,"},{"line_number":144,"context_line":"                          \u0027/sys/devices/system/node/node1\u0027]"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        def side_effect_node_id(arg):"},{"line_number":147,"context_line":"            numa_node_id_list \u003d [0, 1]"},{"line_number":148,"context_line":"            if arg \u003d\u003d \u0027/sys/devices/system/node/node0\u0027:"},{"line_number":149,"context_line":"                return numa_node_id_list[0]"},{"line_number":150,"context_line":"            else:"},{"line_number":151,"context_line":"                return numa_node_id_list[1]"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"        mock_node_id.side_effect \u003d side_effect_node_id"},{"line_number":154,"context_line":"        reads \u003d [[\u0027Node 0 Ignored Line\u0027,"},{"line_number":155,"context_line":"                  \u0027Node 0 MemTotal: 1560000 kB\u0027],"},{"line_number":156,"context_line":"                 [\u0027Node 1 MemTotal: 1200000 kB\u0027,"}],"source_content_type":"text/x-python","patch_set":30,"id":"3f044301_3f101fa8","line":153,"range":{"start_line":146,"start_character":9,"end_line":153,"end_character":54},"in_reply_to":"3f044301_1978e3c1","updated":"2017-05-11 14:47:35.000000000","message":"Done","commit_id":"a0f50cfa3eb779e16661c475599d693009f117b2"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"f8c619b1ba4e8135489a037bf0d45060041b0c09","unresolved":false,"context_lines":[{"line_number":150,"context_line":"            else:"},{"line_number":151,"context_line":"                return numa_node_id_list[1]"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"        mock_node_id.side_effect \u003d side_effect_node_id"},{"line_number":154,"context_line":"        reads \u003d [[\u0027Node 0 Ignored Line\u0027,"},{"line_number":155,"context_line":"                  \u0027Node 0 MemTotal: 1560000 kB\u0027],"},{"line_number":156,"context_line":"                 [\u0027Node 1 MemTotal: 1200000 kB\u0027,"}],"source_content_type":"text/x-python","patch_set":30,"id":"3f044301_ff25170a","line":153,"range":{"start_line":153,"start_character":8,"end_line":153,"end_character":20},"in_reply_to":"3f044301_99bf5360","updated":"2017-05-11 14:47:35.000000000","message":"Done","commit_id":"a0f50cfa3eb779e16661c475599d693009f117b2"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"e15c4edfbd48e2a18b8a9a3a8e4de531de6d8f15","unresolved":false,"context_lines":[{"line_number":222,"context_line":"        numa_node_dirs \u003d [\u0027/sys/devices/system/node/node0\u0027,"},{"line_number":223,"context_line":"                          \u0027/sys/devices/system/node/node1\u0027]"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"        def side_effect_thread_dirs(arg):"},{"line_number":226,"context_line":"            thread_dirs \u003d [[\u0027cpu0\u0027, \u0027cpu1\u0027, \u0027cpu2\u0027, \u0027cpu3\u0027, \u0027cpu4\u0027],"},{"line_number":227,"context_line":"                           [\u0027cpu5\u0027, \u0027cpu6\u0027, \u0027cpu7\u0027]]"},{"line_number":228,"context_line":"            if arg \u003d\u003d \u0027/sys/devices/system/node/node0\u0027:"},{"line_number":229,"context_line":"                return thread_dirs[0]"},{"line_number":230,"context_line":"            else:"},{"line_number":231,"context_line":"                return thread_dirs[1]"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"        mock_node_id.side_effect \u003d [0, 1]"},{"line_number":234,"context_line":"        mock_listdir.side_effect \u003d side_effect_thread_dirs"}],"source_content_type":"text/x-python","patch_set":31,"id":"1f013ff3_736acd80","line":231,"range":{"start_line":225,"start_character":0,"end_line":231,"end_character":37},"updated":"2017-05-16 09:51:53.000000000","message":"nit: could be reduced to:\n\n  mock_listdir.side_effect \u003d [\n      [\u0027cpu0\u0027, \u0027cpu1\u0027, \u0027cpu2\u0027, \u0027cpu3\u0027, \u0027cpu4\u0027],\n      [\u0027cpu5\u0027, \u0027cpu6\u0027, \u0027cpu7\u0027]\n  ]","commit_id":"cf371a3064352c7ff004224453700226e27809cd"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"9fb400fa7ecfd5effd6ca0959c49d4f5817fdbef","unresolved":false,"context_lines":[{"line_number":222,"context_line":"        numa_node_dirs \u003d [\u0027/sys/devices/system/node/node0\u0027,"},{"line_number":223,"context_line":"                          \u0027/sys/devices/system/node/node1\u0027]"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"        def side_effect_thread_dirs(arg):"},{"line_number":226,"context_line":"            thread_dirs \u003d [[\u0027cpu0\u0027, \u0027cpu1\u0027, \u0027cpu2\u0027, \u0027cpu3\u0027, \u0027cpu4\u0027],"},{"line_number":227,"context_line":"                           [\u0027cpu5\u0027, \u0027cpu6\u0027, \u0027cpu7\u0027]]"},{"line_number":228,"context_line":"            if arg \u003d\u003d \u0027/sys/devices/system/node/node0\u0027:"},{"line_number":229,"context_line":"                return thread_dirs[0]"},{"line_number":230,"context_line":"            else:"},{"line_number":231,"context_line":"                return thread_dirs[1]"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"        mock_node_id.side_effect \u003d [0, 1]"},{"line_number":234,"context_line":"        mock_listdir.side_effect \u003d side_effect_thread_dirs"}],"source_content_type":"text/x-python","patch_set":31,"id":"1f013ff3_bfaed4e4","line":231,"range":{"start_line":225,"start_character":0,"end_line":231,"end_character":37},"in_reply_to":"1f013ff3_736acd80","updated":"2017-05-16 12:07:38.000000000","message":"Done","commit_id":"cf371a3064352c7ff004224453700226e27809cd"}],"releasenotes/notes/add-numa-topology-info-8c253fd9e56169f1.yaml":[{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ee540c96c3524071253564091228cded6c6ecc6d","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Added new optional NUMA topology collector named \"numa_topology\""},{"line_number":4,"context_line":"    to inspector module."},{"line_number":5,"context_line":"    Collected data is stored under \"numa_topology\" key as a dictionary"},{"line_number":6,"context_line":"    containing \"ram\", \"cpus\" and \"nics\" keys. \"ram\" key is mapping memory"}],"source_content_type":"text/x-yaml","patch_set":15,"id":"9a30ddce_3d380c3d","line":3,"range":{"start_line":3,"start_character":53,"end_line":3,"end_character":54},"updated":"2017-03-10 15:04:15.000000000","message":"to format as code use backticks ``","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"36cfe53817ca15f91222505d671eee9994814305","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Added new optional NUMA topology collector named \"numa_topology\""},{"line_number":4,"context_line":"    to inspector module."},{"line_number":5,"context_line":"    Collected data is stored under \"numa_topology\" key as a dictionary"},{"line_number":6,"context_line":"    containing \"ram\", \"cpus\" and \"nics\" keys. \"ram\" key is mapping memory"}],"source_content_type":"text/x-yaml","patch_set":15,"id":"9a30ddce_ce755c64","line":3,"range":{"start_line":3,"start_character":53,"end_line":3,"end_character":54},"in_reply_to":"9a30ddce_3d380c3d","updated":"2017-03-12 13:56:08.000000000","message":"Done","commit_id":"16d09181feb46339705279ec1e46fa66919f7b09"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"1ce442a207d91b0bbe1cd86e9ca6d029a4786e63","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Added new optional NUMA topology collector named ``numa_topology``"},{"line_number":4,"context_line":"    to inspector module."},{"line_number":5,"context_line":"    Collected data is stored under \"numa_topology\" key as a dictionary"},{"line_number":6,"context_line":"    containing \"ram\", \"cpus\" and \"nics\" keys. \"ram\" key is mapping memory"},{"line_number":7,"context_line":"    available for each NUMA node, \"cpus\" key is mapping physical CPU ID and a"},{"line_number":8,"context_line":"    list of sibling threads for each NUMA node and \"nics\" key is mapping NIC"}],"source_content_type":"text/x-yaml","patch_set":21,"id":"ffe62b97_c5132566","line":5,"range":{"start_line":5,"start_character":34,"end_line":5,"end_character":36},"updated":"2017-03-24 15:37:02.000000000","message":"backticks here and below please","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"eb19adc16cef7cf59b8832158fbb9a874d37b075","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Added new optional NUMA topology collector named ``numa_topology``"},{"line_number":4,"context_line":"    to inspector module."},{"line_number":5,"context_line":"    Collected data is stored under \"numa_topology\" key as a dictionary"},{"line_number":6,"context_line":"    containing \"ram\", \"cpus\" and \"nics\" keys. \"ram\" key is mapping memory"},{"line_number":7,"context_line":"    available for each NUMA node, \"cpus\" key is mapping physical CPU ID and a"},{"line_number":8,"context_line":"    list of sibling threads for each NUMA node and \"nics\" key is mapping NIC"}],"source_content_type":"text/x-yaml","patch_set":21,"id":"ffe62b97_316741c0","line":5,"range":{"start_line":5,"start_character":34,"end_line":5,"end_character":36},"in_reply_to":"ffe62b97_c5132566","updated":"2017-03-28 11:12:37.000000000","message":"Done","commit_id":"c2f04158ab497184851f34abbe342cbdb48944ab"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"7e13c46cfec21fa9f540480584f53ba02e0700c1","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Added new optional NUMA topology collector named ``numa_topology``"},{"line_number":4,"context_line":"    to inspector module."},{"line_number":5,"context_line":"    Collected data is stored under ``numa_topology`` key as a dictionary"},{"line_number":6,"context_line":"    containing ``ram``, ``cpus`` and ``nics`` keys. ``ram`` key is mapping memory"},{"line_number":7,"context_line":"    available for each NUMA node, ``cpus`` key is mapping physical CPU ID and a"},{"line_number":8,"context_line":"    list of sibling threads for each NUMA node and ``nics`` key is mapping NIC"},{"line_number":9,"context_line":"    name to each NUMA node. NUMA topology data becomes necessary to configure"},{"line_number":10,"context_line":"    the nodes for better performance, selection of CPUs."}],"source_content_type":"text/x-yaml","patch_set":22,"id":"bff0334d_05dccd43","line":10,"range":{"start_line":5,"start_character":4,"end_line":10,"end_character":56},"updated":"2017-04-11 17:10:38.000000000","message":"not sure this is needed, should be documented elsewhere imo","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"a8e24ab4fdb4a5fed6a980a6d34ccac3aba616e7","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Added new optional NUMA topology collector named ``numa_topology``"},{"line_number":4,"context_line":"    to inspector module."},{"line_number":5,"context_line":"    Collected data is stored under ``numa_topology`` key as a dictionary"},{"line_number":6,"context_line":"    containing ``ram``, ``cpus`` and ``nics`` keys. ``ram`` key is mapping memory"},{"line_number":7,"context_line":"    available for each NUMA node, ``cpus`` key is mapping physical CPU ID and a"},{"line_number":8,"context_line":"    list of sibling threads for each NUMA node and ``nics`` key is mapping NIC"},{"line_number":9,"context_line":"    name to each NUMA node. NUMA topology data becomes necessary to configure"},{"line_number":10,"context_line":"    the nodes for better performance, selection of CPUs."}],"source_content_type":"text/x-yaml","patch_set":22,"id":"bff0334d_eb4d1ec4","line":10,"range":{"start_line":5,"start_character":4,"end_line":10,"end_character":56},"in_reply_to":"bff0334d_05dccd43","updated":"2017-04-12 11:40:30.000000000","message":"Done","commit_id":"eb5f44fde1dedd6e02722b2979d72963562c3923"},{"author":{"_account_id":21909,"name":"Bob Fournier","email":"bfournie@redhat.com","username":"bfournie"},"change_message_id":"b6e9cff8f7461edaf5e3c694f62a344e7a1de260","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Added new optional NUMA topology collector named ``numa_topology``"},{"line_number":4,"context_line":"    to inspector module."},{"line_number":5,"context_line":"    It contains NUMA specific RAM, CPU\u0027s and NIC\u0027s information."}],"source_content_type":"text/x-yaml","patch_set":24,"id":"5ff73747_39ed56ef","line":5,"range":{"start_line":5,"start_character":30,"end_line":5,"end_character":62},"updated":"2017-04-24 21:16:58.000000000","message":"should be \"RAM, CPU, and NIC information\"","commit_id":"3edf0396ce556390c9b65b1aa32604c9dc98084f"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"276e089fbfa46006f69cbc5b3c68e68decf12d62","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Added new optional NUMA topology collector named ``numa_topology``"},{"line_number":4,"context_line":"    to inspector module."},{"line_number":5,"context_line":"    It contains NUMA specific RAM, CPU\u0027s and NIC\u0027s information."}],"source_content_type":"text/x-yaml","patch_set":24,"id":"5ff73747_8702b3b3","line":5,"range":{"start_line":5,"start_character":30,"end_line":5,"end_character":62},"in_reply_to":"5ff73747_39ed56ef","updated":"2017-04-25 09:33:52.000000000","message":"Done","commit_id":"3edf0396ce556390c9b65b1aa32604c9dc98084f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"48cbe8407736b31981066f6de8dd7b5fe8412a58","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Added new optional NUMA topology collector named ``numa_topology``"},{"line_number":4,"context_line":"    to inspector module."},{"line_number":5,"context_line":"    It contains NUMA specific RAM, CPU and NIC information."}],"source_content_type":"text/x-yaml","patch_set":27,"id":"5ff73747_0aa0fea4","line":4,"updated":"2017-05-03 12:34:45.000000000","message":"s/to inspector module// (it\u0027s an implementation detail, which is no longer true)","commit_id":"5033441bba31e482c33074b5ba743a8a9a17a80e"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"f2451a7a729dd0a760ec923c5d777a9229049cea","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Added new optional NUMA topology collector named ``numa_topology``"},{"line_number":4,"context_line":"    to inspector module."},{"line_number":5,"context_line":"    It contains NUMA specific RAM, CPU and NIC information."}],"source_content_type":"text/x-yaml","patch_set":27,"id":"3f044301_7d82c1ca","line":4,"in_reply_to":"5ff73747_0aa0fea4","updated":"2017-05-04 11:08:19.000000000","message":"Done","commit_id":"5033441bba31e482c33074b5ba743a8a9a17a80e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"48cbe8407736b31981066f6de8dd7b5fe8412a58","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Added new optional NUMA topology collector named ``numa_topology``"},{"line_number":4,"context_line":"    to inspector module."},{"line_number":5,"context_line":"    It contains NUMA specific RAM, CPU and NIC information."}],"source_content_type":"text/x-yaml","patch_set":27,"id":"5ff73747_eaa4b2bb","line":5,"updated":"2017-05-03 12:34:45.000000000","message":"s/contains/collects/","commit_id":"5033441bba31e482c33074b5ba743a8a9a17a80e"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"f2451a7a729dd0a760ec923c5d777a9229049cea","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Added new optional NUMA topology collector named ``numa_topology``"},{"line_number":4,"context_line":"    to inspector module."},{"line_number":5,"context_line":"    It contains NUMA specific RAM, CPU and NIC information."}],"source_content_type":"text/x-yaml","patch_set":27,"id":"3f044301_5d8705d9","line":5,"in_reply_to":"5ff73747_eaa4b2bb","updated":"2017-05-04 11:08:19.000000000","message":"Done","commit_id":"5033441bba31e482c33074b5ba743a8a9a17a80e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b2129c35cb0bd8333d402b10b087d9406be25d4b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Added new optional NUMA topology collector named ``numa_topology``."},{"line_number":4,"context_line":"    It collects NUMA specific RAM, CPU and NIC information."}],"source_content_type":"text/x-yaml","patch_set":31,"id":"1f013ff3_b073abe7","line":3,"updated":"2017-05-16 09:38:03.000000000","message":"s/Added/Adds/ (we tend to use present tense)","commit_id":"cf371a3064352c7ff004224453700226e27809cd"},{"author":{"_account_id":22865,"name":"Jaganathan Palanisamy","email":"jpalanis@redhat.com","username":"jaganathancse"},"change_message_id":"9fb400fa7ecfd5effd6ca0959c49d4f5817fdbef","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Added new optional NUMA topology collector named ``numa_topology``."},{"line_number":4,"context_line":"    It collects NUMA specific RAM, CPU and NIC information."}],"source_content_type":"text/x-yaml","patch_set":31,"id":"1f013ff3_1fa028f4","line":3,"in_reply_to":"1f013ff3_b073abe7","updated":"2017-05-16 12:07:38.000000000","message":"Done","commit_id":"cf371a3064352c7ff004224453700226e27809cd"}]}
