)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"262db759995e10947e3d85ea2f7a3f9f77648c38","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Correctly count the number of primary partitions"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch is adding a new method called count_msdos_partitions()"},{"line_number":10,"context_line":"responsible for counting the number of primary and logical partitions"},{"line_number":11,"context_line":"in a MBR partition table."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"1a95cdbc_27b77a87","line":9,"range":{"start_line":9,"start_character":41,"end_line":9,"end_character":63},"updated":"2016-10-05 16:53:59.000000000","message":"count_mbr_partitions","commit_id":"63f07a38d6a3f358c731e50487378e3c359e415d"}],"ironic_lib/disk_utils.py":[{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"3fe9a22326356622c8f3147bf929eeaa5aa34a98","unresolved":false,"context_lines":[{"line_number":116,"context_line":"    \"\"\""},{"line_number":117,"context_line":"    # -d do not update the kernel table"},{"line_number":118,"context_line":"    # -s print a summary of the partition table"},{"line_number":119,"context_line":"    output, err \u003d utils.execute(\u0027partprobe\u0027, \u0027-d\u0027, \u0027-s\u0027, device)"},{"line_number":120,"context_line":"    if \u0027msdos\u0027 not in output:"},{"line_number":121,"context_line":"        raise ValueError(\u0027The device %s does not have a valid MBR \u0027"},{"line_number":122,"context_line":"                         \u0027partition table\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a95cdbc_530548c0","line":119,"range":{"start_line":119,"start_character":33,"end_line":119,"end_character":42},"updated":"2016-10-05 07:16:16.000000000","message":"it needs to be executed with run_as_root\u003dTrue, or it raises permission denied error","commit_id":"326b230925d44bca323befce48cbd25e1e6d3b46"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"d4f466e717b697b09ef4dfacd59fa694c3de0527","unresolved":false,"context_lines":[{"line_number":116,"context_line":"    \"\"\""},{"line_number":117,"context_line":"    # -d do not update the kernel table"},{"line_number":118,"context_line":"    # -s print a summary of the partition table"},{"line_number":119,"context_line":"    output, err \u003d utils.execute(\u0027partprobe\u0027, \u0027-d\u0027, \u0027-s\u0027, device)"},{"line_number":120,"context_line":"    if \u0027msdos\u0027 not in output:"},{"line_number":121,"context_line":"        raise ValueError(\u0027The device %s does not have a valid MBR \u0027"},{"line_number":122,"context_line":"                         \u0027partition table\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a95cdbc_b78d8a33","line":119,"range":{"start_line":119,"start_character":33,"end_line":119,"end_character":42},"in_reply_to":"1a95cdbc_530548c0","updated":"2016-10-05 12:23:13.000000000","message":"Urgh, my bad! I will update the patch","commit_id":"326b230925d44bca323befce48cbd25e1e6d3b46"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"96b71fb89d530aebd717f1c1637198b51b77ad2a","unresolved":false,"context_lines":[{"line_number":105,"context_line":"    return result"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"def count_msdos_partitions(device):"},{"line_number":109,"context_line":"    \"\"\"Count the number of primary and logical partitions on a MBR"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"    :param device: The device path."}],"source_content_type":"text/x-python","patch_set":3,"id":"1a95cdbc_da3a3636","line":108,"updated":"2016-10-05 14:13:42.000000000","message":"I guess I don\u0027t like MSDOS. How about?\n\n count_mbr_partitions()\n\nIs that correct? I realize \u0027partprobe\u0027 says msdos. But since we aren\u0027t using msdos...\n\nI\u0027m not sure.","commit_id":"2752f77002334695a69c6cea172c78322cc8e594"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"fde7581d3afc28ca410f22ae9376830a8c8d6d53","unresolved":false,"context_lines":[{"line_number":105,"context_line":"    return result"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"def count_msdos_partitions(device):"},{"line_number":109,"context_line":"    \"\"\"Count the number of primary and logical partitions on a MBR"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"    :param device: The device path."}],"source_content_type":"text/x-python","patch_set":3,"id":"1a95cdbc_50fa8743","line":108,"in_reply_to":"1a95cdbc_da3a3636","updated":"2016-10-05 14:34:24.000000000","message":"Yeah MBR or msdos is the same, I will update the method\u0027s name.","commit_id":"2752f77002334695a69c6cea172c78322cc8e594"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"96b71fb89d530aebd717f1c1637198b51b77ad2a","unresolved":false,"context_lines":[{"line_number":117,"context_line":"    # -d do not update the kernel table"},{"line_number":118,"context_line":"    # -s print a summary of the partition table"},{"line_number":119,"context_line":"    output, err \u003d utils.execute(\u0027partprobe\u0027, \u0027-d\u0027, \u0027-s\u0027, device,"},{"line_number":120,"context_line":"                                run_as_root\u003dTrue)"},{"line_number":121,"context_line":"    if \u0027msdos\u0027 not in output:"},{"line_number":122,"context_line":"        raise ValueError(\u0027The device %s does not have a valid MBR \u0027"},{"line_number":123,"context_line":"                         \u0027partition table\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a95cdbc_7a184285","line":120,"updated":"2016-10-05 14:13:42.000000000","message":"What about:\n\n use_standard_locale\u003dTrue\n\nAny need? Maybe since checking for string \u0027msdos\u0027","commit_id":"2752f77002334695a69c6cea172c78322cc8e594"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"fde7581d3afc28ca410f22ae9376830a8c8d6d53","unresolved":false,"context_lines":[{"line_number":117,"context_line":"    # -d do not update the kernel table"},{"line_number":118,"context_line":"    # -s print a summary of the partition table"},{"line_number":119,"context_line":"    output, err \u003d utils.execute(\u0027partprobe\u0027, \u0027-d\u0027, \u0027-s\u0027, device,"},{"line_number":120,"context_line":"                                run_as_root\u003dTrue)"},{"line_number":121,"context_line":"    if \u0027msdos\u0027 not in output:"},{"line_number":122,"context_line":"        raise ValueError(\u0027The device %s does not have a valid MBR \u0027"},{"line_number":123,"context_line":"                         \u0027partition table\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a95cdbc_90c16fe7","line":120,"in_reply_to":"1a95cdbc_7a184285","updated":"2016-10-05 14:34:24.000000000","message":"++ Yeah, I don\u0027t think it will do any harm to force the standard locally.","commit_id":"2752f77002334695a69c6cea172c78322cc8e594"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f3fffb1dd74dec652b9cf0931bc75dc5c758add3","unresolved":false,"context_lines":[{"line_number":757,"context_line":"            if len(new_part) !\u003d 1:"},{"line_number":758,"context_line":"                raise exception.InstanceDeployFailure("},{"line_number":759,"context_line":"                    _(\u0027Disk partitioning failed on device %(device)s. \u0027"},{"line_number":760,"context_line":"                      \u0027Unable to retrive config drive partition information.\u0027)"},{"line_number":761,"context_line":"                    % {\u0027device\u0027: device})"},{"line_number":762,"context_line":""},{"line_number":763,"context_line":"            if is_iscsi_device(device, node_uuid):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a95cdbc_4739e640","line":760,"range":{"start_line":760,"start_character":33,"end_line":760,"end_character":40},"updated":"2016-10-05 16:49:28.000000000","message":"Any interest in fixing this typo? :)\n\n  retrieve","commit_id":"2752f77002334695a69c6cea172c78322cc8e594"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"7f4022773099e0ff381d8d022e3f16e5bddebdd0","unresolved":false,"context_lines":[{"line_number":119,"context_line":"    output, err \u003d utils.execute(\u0027partprobe\u0027, \u0027-d\u0027, \u0027-s\u0027, device,"},{"line_number":120,"context_line":"                                run_as_root\u003dTrue, use_standard_locale\u003dTrue)"},{"line_number":121,"context_line":"    if \u0027msdos\u0027 not in output:"},{"line_number":122,"context_line":"        raise ValueError(\u0027The device %s does not have a valid MBR \u0027"},{"line_number":123,"context_line":"                         \u0027partition table\u0027)"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"    # Sample output: /dev/vdb: msdos partitions 1 2 3 \u003c5 6 7\u003e"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a95cdbc_6297b090","line":122,"updated":"2016-10-05 16:58:40.000000000","message":"Should the caller catch this and then raise InstanceDeployFailure?","commit_id":"63f07a38d6a3f358c731e50487378e3c359e415d"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"783880131cabeab3c36ac0432422176c0bfd7cce","unresolved":false,"context_lines":[{"line_number":119,"context_line":"    output, err \u003d utils.execute(\u0027partprobe\u0027, \u0027-d\u0027, \u0027-s\u0027, device,"},{"line_number":120,"context_line":"                                run_as_root\u003dTrue, use_standard_locale\u003dTrue)"},{"line_number":121,"context_line":"    if \u0027msdos\u0027 not in output:"},{"line_number":122,"context_line":"        raise ValueError(\u0027The device %s does not have a valid MBR \u0027"},{"line_number":123,"context_line":"                         \u0027partition table\u0027)"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"    # Sample output: /dev/vdb: msdos partitions 1 2 3 \u003c5 6 7\u003e"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a95cdbc_2db599ed","line":122,"in_reply_to":"1a95cdbc_6297b090","updated":"2016-10-05 17:15:35.000000000","message":"I would prefer to raise ValueError because although we currently use this as part of the deployment, this function itself should be generic.","commit_id":"63f07a38d6a3f358c731e50487378e3c359e415d"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"7f4022773099e0ff381d8d022e3f16e5bddebdd0","unresolved":false,"context_lines":[{"line_number":727,"context_line":"                # TODO(stendulker): One can use logical partitions to create"},{"line_number":728,"context_line":"                # a config drive if there are 3 primary partitions."},{"line_number":729,"context_line":"                # https://bugs.launchpad.net/ironic/+bug/1561283"},{"line_number":730,"context_line":"                pp_count, lp_count \u003d count_mbr_partitions(device)"},{"line_number":731,"context_line":"                if pp_count \u003e 3:"},{"line_number":732,"context_line":"                    raise exception.InstanceDeployFailure("},{"line_number":733,"context_line":"                        _(\u0027Config drive cannot be created for node %(node)s. \u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a95cdbc_a2bff8f9","line":730,"updated":"2016-10-05 16:58:40.000000000","message":"Wondering what should happen if a ValueError is raised. Just let it be raised or catch it?","commit_id":"63f07a38d6a3f358c731e50487378e3c359e415d"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"783880131cabeab3c36ac0432422176c0bfd7cce","unresolved":false,"context_lines":[{"line_number":727,"context_line":"                # TODO(stendulker): One can use logical partitions to create"},{"line_number":728,"context_line":"                # a config drive if there are 3 primary partitions."},{"line_number":729,"context_line":"                # https://bugs.launchpad.net/ironic/+bug/1561283"},{"line_number":730,"context_line":"                pp_count, lp_count \u003d count_mbr_partitions(device)"},{"line_number":731,"context_line":"                if pp_count \u003e 3:"},{"line_number":732,"context_line":"                    raise exception.InstanceDeployFailure("},{"line_number":733,"context_line":"                        _(\u0027Config drive cannot be created for node %(node)s. \u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a95cdbc_2dde793f","line":730,"in_reply_to":"1a95cdbc_a2bff8f9","updated":"2016-10-05 17:15:35.000000000","message":"That\u0027s a good point, the list_partitions() code didn\u0027t raise any exceptions and we do now. I will handle it here.","commit_id":"63f07a38d6a3f358c731e50487378e3c359e415d"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"1d49bac7863251c8e28686b3ade7a03cc9561c87","unresolved":false,"context_lines":[{"line_number":740,"context_line":"                        _(\u0027Config drive cannot be created for node %(node)s. \u0027"},{"line_number":741,"context_line":"                          \u0027Disk uses MBR partitioning and already has \u0027"},{"line_number":742,"context_line":"                          \u0027%(parts)d primary partitions.\u0027)"},{"line_number":743,"context_line":"                        % {\u0027node\u0027: node_uuid, \u0027parts\u0027: pp_count})"},{"line_number":744,"context_line":""},{"line_number":745,"context_line":"                # Check if disk size exceeds 2TB msdos limit"},{"line_number":746,"context_line":"                startlimit \u003d \u0027-%dMiB\u0027 % MAX_CONFIG_DRIVE_SIZE_MB"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a95cdbc_08a52bb4","line":743,"updated":"2016-10-05 17:34:31.000000000","message":"I wonder if this should have \u0027dev\u0027 too? Like the new message? What do you think?","commit_id":"69b3d8ed07774dd06e4f414ed52403b018adeae4"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"e67fc48745ce17b74202c4a2f0d4dd1619a9150b","unresolved":false,"context_lines":[{"line_number":740,"context_line":"                        _(\u0027Config drive cannot be created for node %(node)s. \u0027"},{"line_number":741,"context_line":"                          \u0027Disk uses MBR partitioning and already has \u0027"},{"line_number":742,"context_line":"                          \u0027%(parts)d primary partitions.\u0027)"},{"line_number":743,"context_line":"                        % {\u0027node\u0027: node_uuid, \u0027parts\u0027: pp_count})"},{"line_number":744,"context_line":""},{"line_number":745,"context_line":"                # Check if disk size exceeds 2TB msdos limit"},{"line_number":746,"context_line":"                startlimit \u003d \u0027-%dMiB\u0027 % MAX_CONFIG_DRIVE_SIZE_MB"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a95cdbc_08160ba7","line":743,"in_reply_to":"1a95cdbc_08a52bb4","updated":"2016-10-05 17:38:17.000000000","message":"I think it\u0027s important to give as much information as we can on such errors, so I\u0027m +1 for the suggestion here.","commit_id":"69b3d8ed07774dd06e4f414ed52403b018adeae4"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"19d6ce0602b7bf971d28a05fe9d23a365f576cdf","unresolved":false,"context_lines":[{"line_number":111,"context_line":"    :param device: The device path."},{"line_number":112,"context_line":"    :returns: A tuple with the number of primary partitions and logical"},{"line_number":113,"context_line":"              partitions."},{"line_number":114,"context_line":"    :raise: ValueError if the device does not have a valid MBR parititon"},{"line_number":115,"context_line":"            table."},{"line_number":116,"context_line":"    \"\"\""},{"line_number":117,"context_line":"    # -d do not update the kernel table"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a95cdbc_23aadc70","line":114,"updated":"2016-10-06 15:42:29.000000000","message":"nit s/parititon/partition/","commit_id":"17d1b06c13a11f0e5e1388764c2705c3d42fdbf5"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"19d6ce0602b7bf971d28a05fe9d23a365f576cdf","unresolved":false,"context_lines":[{"line_number":120,"context_line":"                                run_as_root\u003dTrue, use_standard_locale\u003dTrue)"},{"line_number":121,"context_line":"    if \u0027msdos\u0027 not in output:"},{"line_number":122,"context_line":"        raise ValueError(\u0027The device %s does not have a valid MBR \u0027"},{"line_number":123,"context_line":"                         \u0027partition table\u0027)"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"    # Sample output: /dev/vdb: msdos partitions 1 2 3 \u003c5 6 7\u003e"},{"line_number":126,"context_line":"    # The partitions with number \u003e 4 (and inside \u003c\u003e) are logical partitions"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a95cdbc_a3b42cd1","line":123,"updated":"2016-10-06 15:42:29.000000000","message":"forgot to add the device to this string","commit_id":"17d1b06c13a11f0e5e1388764c2705c3d42fdbf5"}]}
