)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"1f9325180f2a8a55529877a6438a52a18c29cbaa","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently local boot in uefi mode for partition images using fedora"},{"line_number":10,"context_line":"doesn\u0027t boot the user image. grub-install fails though it does not"},{"line_number":11,"context_line":"report any error.This issue is fixed by using the existing boot loader."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: Ia2569244c228ee6b7584db9c7350dd9b301b4715"},{"line_number":14,"context_line":"Closes-bug: #1565619"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1a122d0e_2f03100f","line":11,"updated":"2016-04-22 08:58:09.000000000","message":"What do you mean by \"existing boot loader\"? where do you expect it to exist?","commit_id":"b3b28746211fddffce7354479a361866bb797e3b"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"d4da47c81ec6794f0ed7692a1d6df6f52d9feede","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently local boot in uefi mode for partition images using fedora"},{"line_number":10,"context_line":"doesn\u0027t boot the user image. grub-install fails though it does not"},{"line_number":11,"context_line":"report any error.This issue is fixed by using the existing boot loader."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: Ia2569244c228ee6b7584db9c7350dd9b301b4715"},{"line_number":14,"context_line":"Closes-bug: #1565619"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1a122d0e_8ad052cb","line":11,"in_reply_to":"1a122d0e_2f03100f","updated":"2016-04-22 10:10:09.000000000","message":"The boot loader grub2 exists and is included with fedora element or it\u0027s dependent elements(redhat-common).We use this boot loader.","commit_id":"b3b28746211fddffce7354479a361866bb797e3b"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"90cda6fff5e6d52384e8eb4227bf1859d9d4086c","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix local boot issue with fedora in uefi mode"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently local boot in uefi mode for partition images using fedora"},{"line_number":10,"context_line":"doesn\u0027t boot the user image. grub-install fails though it does not"},{"line_number":11,"context_line":"report any error.This issue is fixed by using the existing boot loader."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"1a122d0e_0450cd09","line":9,"range":{"start_line":9,"start_character":61,"end_line":9,"end_character":67},"updated":"2016-05-02 11:32:21.000000000","message":"Has this always been the case?  Can we have the commit message updated with what version(s) this issue has been observed in for greater context.","commit_id":"ad4a13df0a22d646433ded265bcae936d898890e"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"f15b94bca22b90e9177b5f26a3d57e6e31153b16","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix local boot issue with fedora in uefi mode"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently local boot in uefi mode for partition images using fedora"},{"line_number":10,"context_line":"doesn\u0027t boot the user image. grub-install fails though it does not"},{"line_number":11,"context_line":"report any error.This issue is fixed by using the existing boot loader."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"1a122d0e_f2d8d381","line":9,"range":{"start_line":9,"start_character":61,"end_line":9,"end_character":67},"in_reply_to":"1a122d0e_0450cd09","updated":"2016-05-03 11:54:01.000000000","message":"Yes. This issue is for all versions of fedora and it is mentioned here https://fedoraproject.org/wiki/GRUB_2?rd\u003dGrub2","commit_id":"ad4a13df0a22d646433ded265bcae936d898890e"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"90cda6fff5e6d52384e8eb4227bf1859d9d4086c","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Fix local boot issue with fedora in uefi mode"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently local boot in uefi mode for partition images using fedora"},{"line_number":10,"context_line":"doesn\u0027t boot the user image. grub-install fails though it does not"},{"line_number":11,"context_line":"report any error.This issue is fixed by using the existing boot loader."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: Ia2569244c228ee6b7584db9c7350dd9b301b4715"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"1a122d0e_445ac52b","line":10,"range":{"start_line":10,"start_character":4,"end_line":10,"end_character":7},"updated":"2016-05-02 11:32:21.000000000","message":"nit: This may read better if the contraction is not used.","commit_id":"ad4a13df0a22d646433ded265bcae936d898890e"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"90cda6fff5e6d52384e8eb4227bf1859d9d4086c","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Fix local boot issue with fedora in uefi mode"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently local boot in uefi mode for partition images using fedora"},{"line_number":10,"context_line":"doesn\u0027t boot the user image. grub-install fails though it does not"},{"line_number":11,"context_line":"report any error.This issue is fixed by using the existing boot loader."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: Ia2569244c228ee6b7584db9c7350dd9b301b4715"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"1a122d0e_e4495162","line":10,"range":{"start_line":10,"start_character":8,"end_line":10,"end_character":12},"updated":"2016-05-02 11:32:21.000000000","message":"s/boot/properly configure the bootloader for/","commit_id":"ad4a13df0a22d646433ded265bcae936d898890e"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"f15b94bca22b90e9177b5f26a3d57e6e31153b16","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Fix local boot issue with fedora in uefi mode"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently local boot in uefi mode for partition images using fedora"},{"line_number":10,"context_line":"doesn\u0027t boot the user image. grub-install fails though it does not"},{"line_number":11,"context_line":"report any error.This issue is fixed by using the existing boot loader."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: Ia2569244c228ee6b7584db9c7350dd9b301b4715"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"1a122d0e_d2c837ab","line":10,"range":{"start_line":10,"start_character":4,"end_line":10,"end_character":7},"in_reply_to":"1a122d0e_445ac52b","updated":"2016-05-03 11:54:01.000000000","message":"Done","commit_id":"ad4a13df0a22d646433ded265bcae936d898890e"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"f15b94bca22b90e9177b5f26a3d57e6e31153b16","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Fix local boot issue with fedora in uefi mode"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently local boot in uefi mode for partition images using fedora"},{"line_number":10,"context_line":"doesn\u0027t boot the user image. grub-install fails though it does not"},{"line_number":11,"context_line":"report any error.This issue is fixed by using the existing boot loader."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: Ia2569244c228ee6b7584db9c7350dd9b301b4715"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"1a122d0e_92035fbe","line":10,"range":{"start_line":10,"start_character":8,"end_line":10,"end_character":12},"in_reply_to":"1a122d0e_e4495162","updated":"2016-05-03 11:54:01.000000000","message":"Done","commit_id":"ad4a13df0a22d646433ded265bcae936d898890e"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"90cda6fff5e6d52384e8eb4227bf1859d9d4086c","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently local boot in uefi mode for partition images using fedora"},{"line_number":10,"context_line":"doesn\u0027t boot the user image. grub-install fails though it does not"},{"line_number":11,"context_line":"report any error.This issue is fixed by using the existing boot loader."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: Ia2569244c228ee6b7584db9c7350dd9b301b4715"},{"line_number":14,"context_line":"Closes-bug: #1565619"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"1a122d0e_2424e9b0","line":11,"updated":"2016-05-02 11:32:21.000000000","message":"Nit: Space needs to be inserted between \"error.\" and \"This\"","commit_id":"ad4a13df0a22d646433ded265bcae936d898890e"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"f15b94bca22b90e9177b5f26a3d57e6e31153b16","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently local boot in uefi mode for partition images using fedora"},{"line_number":10,"context_line":"doesn\u0027t boot the user image. grub-install fails though it does not"},{"line_number":11,"context_line":"report any error.This issue is fixed by using the existing boot loader."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: Ia2569244c228ee6b7584db9c7350dd9b301b4715"},{"line_number":14,"context_line":"Closes-bug: #1565619"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"1a122d0e_b212db07","line":11,"in_reply_to":"1a122d0e_2424e9b0","updated":"2016-05-03 11:54:01.000000000","message":"Done","commit_id":"ad4a13df0a22d646433ded265bcae936d898890e"}],"ironic_python_agent/extensions/image.py":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"9ebf4ea5d343d537e162d92f3034f16690a51ef7","unresolved":false,"context_lines":[{"line_number":90,"context_line":"            result_pattern \u003d re.search(FEDORA_PATTERN, contents)"},{"line_number":91,"context_line":"            if result_pattern:"},{"line_number":92,"context_line":"                is_fedora \u003d True"},{"line_number":93,"context_line":"    return is_fedora"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"def _install_grub2(device, root_uuid, efi_system_part_uuid\u003dNone):"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a18252c_f79aaac4","line":93,"updated":"2016-04-12 10:02:26.000000000","message":"I think you should check the /etc/redhat-release file instead (and avoid the regex as well, we can just force lower case the string)","commit_id":"cdf4adb6d4f86cb813c9616fe8d67673dc59303d"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"32ea2c8e91a0b99e1a944bcd3b9b57f1f3c50892","unresolved":false,"context_lines":[{"line_number":90,"context_line":"            result_pattern \u003d re.search(FEDORA_PATTERN, contents)"},{"line_number":91,"context_line":"            if result_pattern:"},{"line_number":92,"context_line":"                is_fedora \u003d True"},{"line_number":93,"context_line":"    return is_fedora"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"def _install_grub2(device, root_uuid, efi_system_part_uuid\u003dNone):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a122d0e_9ce077ce","line":93,"in_reply_to":"5a18252c_f79aaac4","updated":"2016-04-18 14:41:32.000000000","message":"Done","commit_id":"cdf4adb6d4f86cb813c9616fe8d67673dc59303d"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"9ebf4ea5d343d537e162d92f3034f16690a51ef7","unresolved":false,"context_lines":[{"line_number":117,"context_line":""},{"line_number":118,"context_line":"        # NOTE(vmud213):grub2-install doesn\u0027t work for fedora efi mode though"},{"line_number":119,"context_line":"        # it doesn\u0027t complain about any errors. So we avoid using"},{"line_number":120,"context_line":"        # grub2-install for fedora and use existing bootloader instead."},{"line_number":121,"context_line":"        if is_fedora and efi_partition:"},{"line_number":122,"context_line":"            home_variable \u003d os.environ.get(\u0027HOME\u0027, \u0027\u0027)"},{"line_number":123,"context_line":"            grub_path \u003d path + \u0027/boot/efi/EFI\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a18252c_17b926ea","line":120,"updated":"2016-04-12 10:02:26.000000000","message":"Does it only affects fedora? Have you tried with RHEL ?","commit_id":"cdf4adb6d4f86cb813c9616fe8d67673dc59303d"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"32ea2c8e91a0b99e1a944bcd3b9b57f1f3c50892","unresolved":false,"context_lines":[{"line_number":117,"context_line":""},{"line_number":118,"context_line":"        # NOTE(vmud213):grub2-install doesn\u0027t work for fedora efi mode though"},{"line_number":119,"context_line":"        # it doesn\u0027t complain about any errors. So we avoid using"},{"line_number":120,"context_line":"        # grub2-install for fedora and use existing bootloader instead."},{"line_number":121,"context_line":"        if is_fedora and efi_partition:"},{"line_number":122,"context_line":"            home_variable \u003d os.environ.get(\u0027HOME\u0027, \u0027\u0027)"},{"line_number":123,"context_line":"            grub_path \u003d path + \u0027/boot/efi/EFI\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a122d0e_3c27a313","line":120,"in_reply_to":"5a18252c_17b926ea","updated":"2016-04-18 14:41:32.000000000","message":"I have not tried RHEL as it requires license key. I would be interested if some one can provide deploy image built with DIB.","commit_id":"cdf4adb6d4f86cb813c9616fe8d67673dc59303d"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"9ebf4ea5d343d537e162d92f3034f16690a51ef7","unresolved":false,"context_lines":[{"line_number":172,"context_line":"        # For fedora efi to work, copy over grub.conf to the location where"},{"line_number":173,"context_line":"        # grubx64.efi looks for by default"},{"line_number":174,"context_line":"        if is_fedora and efi_partition:"},{"line_number":175,"context_line":"            if os.path.exists(path + grub_conf_path):"},{"line_number":176,"context_line":"                shutil.copy(path + grub_conf_path, path + efi_grub_conf_path)"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"        LOG.info(\"GRUB2 successfully installed on %s\", device)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a18252c_97eed6ea","line":175,"updated":"2016-04-12 10:02:26.000000000","message":"you can set the efi_grub_config_path variable here instead of L149 right? This is the only place it\u0027s being used","commit_id":"cdf4adb6d4f86cb813c9616fe8d67673dc59303d"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"32ea2c8e91a0b99e1a944bcd3b9b57f1f3c50892","unresolved":false,"context_lines":[{"line_number":172,"context_line":"        # For fedora efi to work, copy over grub.conf to the location where"},{"line_number":173,"context_line":"        # grubx64.efi looks for by default"},{"line_number":174,"context_line":"        if is_fedora and efi_partition:"},{"line_number":175,"context_line":"            if os.path.exists(path + grub_conf_path):"},{"line_number":176,"context_line":"                shutil.copy(path + grub_conf_path, path + efi_grub_conf_path)"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"        LOG.info(\"GRUB2 successfully installed on %s\", device)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a122d0e_5c1c1fc1","line":175,"in_reply_to":"5a18252c_97eed6ea","updated":"2016-04-18 14:41:32.000000000","message":"Done","commit_id":"cdf4adb6d4f86cb813c9616fe8d67673dc59303d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"1f9325180f2a8a55529877a6438a52a18c29cbaa","unresolved":false,"context_lines":[{"line_number":82,"context_line":"def is_fedora_distro():"},{"line_number":83,"context_line":"    \"\"\"Returns True if the distro is fedora else False.\"\"\""},{"line_number":84,"context_line":"    try:"},{"line_number":85,"context_line":"        with open(DISTRO_FILE, \u0027r\u0027) as f:"},{"line_number":86,"context_line":"            return f.readline().split(\u0027 \u0027)[0].lower() \u003d\u003d \u0027fedora\u0027"},{"line_number":87,"context_line":"    except IOError:"},{"line_number":88,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a122d0e_8f08642a","line":85,"updated":"2016-04-22 08:58:09.000000000","message":"+1","commit_id":"b3b28746211fddffce7354479a361866bb797e3b"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"6c733565e66f77edb96985024698e3b4b36e8b83","unresolved":false,"context_lines":[{"line_number":82,"context_line":"def is_fedora_distro():"},{"line_number":83,"context_line":"    \"\"\"Returns True if the distro is fedora else False.\"\"\""},{"line_number":84,"context_line":"    try:"},{"line_number":85,"context_line":"        with open(DISTRO_FILE, \u0027r\u0027) as f:"},{"line_number":86,"context_line":"            return f.readline().split(\u0027 \u0027)[0].lower() \u003d\u003d \u0027fedora\u0027"},{"line_number":87,"context_line":"    except IOError:"},{"line_number":88,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a122d0e_63452916","line":85,"range":{"start_line":85,"start_character":18,"end_line":85,"end_character":29},"updated":"2016-04-22 07:20:12.000000000","message":"why not use use\n\nplatform.linux_deistribution() here?\n\n[root@localhost ~]# python\nPython 2.7.10 (default, Sep  8 2015, 17:20:17) \n[GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux2\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n\u003e\u003e\u003e import platform\n\u003e\u003e\u003e platform.linux_distribution()\n(\u0027Fedora\u0027, \u002723\u0027, \u0027Twenty Three\u0027)","commit_id":"b3b28746211fddffce7354479a361866bb797e3b"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"7d9d11a9eb4382823743343328d27939aa6fd36d","unresolved":false,"context_lines":[{"line_number":82,"context_line":"def is_fedora_distro():"},{"line_number":83,"context_line":"    \"\"\"Returns True if the distro is fedora else False.\"\"\""},{"line_number":84,"context_line":"    try:"},{"line_number":85,"context_line":"        with open(DISTRO_FILE, \u0027r\u0027) as f:"},{"line_number":86,"context_line":"            return f.readline().split(\u0027 \u0027)[0].lower() \u003d\u003d \u0027fedora\u0027"},{"line_number":87,"context_line":"    except IOError:"},{"line_number":88,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a122d0e_0cff3d35","line":85,"range":{"start_line":85,"start_character":18,"end_line":85,"end_character":29},"in_reply_to":"1a122d0e_059395fb","updated":"2016-04-25 19:09:45.000000000","message":"I prefer to use python built in functions instead of duplicating code.","commit_id":"b3b28746211fddffce7354479a361866bb797e3b"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"d4da47c81ec6794f0ed7692a1d6df6f52d9feede","unresolved":false,"context_lines":[{"line_number":82,"context_line":"def is_fedora_distro():"},{"line_number":83,"context_line":"    \"\"\"Returns True if the distro is fedora else False.\"\"\""},{"line_number":84,"context_line":"    try:"},{"line_number":85,"context_line":"        with open(DISTRO_FILE, \u0027r\u0027) as f:"},{"line_number":86,"context_line":"            return f.readline().split(\u0027 \u0027)[0].lower() \u003d\u003d \u0027fedora\u0027"},{"line_number":87,"context_line":"    except IOError:"},{"line_number":88,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a122d0e_059395fb","line":85,"range":{"start_line":85,"start_character":18,"end_line":85,"end_character":29},"in_reply_to":"1a122d0e_63452916","updated":"2016-04-22 10:10:09.000000000","message":"I agree with you partially.i looked into what exactly platform.py is doing to figure out the distro. It tries to read \"/etc/lsb-release\". There are different files in /etc which we can read to find the distro. Any of lsb-release, os-release, redhat-release will be fine IMO. I am just using one of them.\nAlso by calling platform.linux_distribution(), we are introducing one more function call in the flow, and some exception handling code following it. Where as currently i am just opening a file to read the contents which is an efficient way compared to former. May be our concern here is,which file to rely on among the three that i have mentioned?","commit_id":"b3b28746211fddffce7354479a361866bb797e3b"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"1f9325180f2a8a55529877a6438a52a18c29cbaa","unresolved":false,"context_lines":[{"line_number":86,"context_line":"            return f.readline().split(\u0027 \u0027)[0].lower() \u003d\u003d \u0027fedora\u0027"},{"line_number":87,"context_line":"    except IOError:"},{"line_number":88,"context_line":"        return False"},{"line_number":89,"context_line":"    except Exception:"},{"line_number":90,"context_line":"        LOG.error(\"Unknown error while reading the file %s.\" % (DISTRO_FILE))"},{"line_number":91,"context_line":"        return False"},{"line_number":92,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1a122d0e_6f0d0837","line":89,"updated":"2016-04-22 08:58:09.000000000","message":"What do you plan to catch here? I don\u0027t think we need except clauses \"just in case\"","commit_id":"b3b28746211fddffce7354479a361866bb797e3b"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"d4da47c81ec6794f0ed7692a1d6df6f52d9feede","unresolved":false,"context_lines":[{"line_number":86,"context_line":"            return f.readline().split(\u0027 \u0027)[0].lower() \u003d\u003d \u0027fedora\u0027"},{"line_number":87,"context_line":"    except IOError:"},{"line_number":88,"context_line":"        return False"},{"line_number":89,"context_line":"    except Exception:"},{"line_number":90,"context_line":"        LOG.error(\"Unknown error while reading the file %s.\" % (DISTRO_FILE))"},{"line_number":91,"context_line":"        return False"},{"line_number":92,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1a122d0e_89edff27","line":89,"in_reply_to":"1a122d0e_6f0d0837","updated":"2016-04-22 10:10:09.000000000","message":"I agree. But isn\u0027t it fail safe?May be error while parsing the content, or permission issues( though we run as root in case initrd changes induce file permission issues). I am ok to remove if you think it\u0027s really not needed:)","commit_id":"b3b28746211fddffce7354479a361866bb797e3b"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"fff79ce106d174b9b4567f8869a195e77639bc94","unresolved":false,"context_lines":[{"line_number":87,"context_line":"    except IOError:"},{"line_number":88,"context_line":"        return False"},{"line_number":89,"context_line":"    except Exception:"},{"line_number":90,"context_line":"        LOG.error(\"Unknown error while reading the file %s.\" % (DISTRO_FILE))"},{"line_number":91,"context_line":"        return False"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1a122d0e_d6398ca5","line":90,"updated":"2016-04-21 09:10:43.000000000","message":"nit: It may be good to print the real error as part of the message.\n\n except Exception as e:\n     LOG.error(\u0027... Error: %s\u0027 % (DISTRO_FILE, e))","commit_id":"b3b28746211fddffce7354479a361866bb797e3b"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"d4da47c81ec6794f0ed7692a1d6df6f52d9feede","unresolved":false,"context_lines":[{"line_number":87,"context_line":"    except IOError:"},{"line_number":88,"context_line":"        return False"},{"line_number":89,"context_line":"    except Exception:"},{"line_number":90,"context_line":"        LOG.error(\"Unknown error while reading the file %s.\" % (DISTRO_FILE))"},{"line_number":91,"context_line":"        return False"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1a122d0e_ac9a89c3","line":90,"in_reply_to":"1a122d0e_d6398ca5","updated":"2016-04-22 10:10:09.000000000","message":"Will it be ok to remove this case?","commit_id":"b3b28746211fddffce7354479a361866bb797e3b"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"7d9d11a9eb4382823743343328d27939aa6fd36d","unresolved":false,"context_lines":[{"line_number":138,"context_line":"        path_variable \u003d os.environ.get(\u0027PATH\u0027, \u0027\u0027)"},{"line_number":139,"context_line":"        path_variable \u003d \u0027%s:/bin\u0027 % path_variable"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        # Install grub"},{"line_number":142,"context_line":"        utils.execute(\u0027chroot %(path)s /bin/bash -c \u0027"},{"line_number":143,"context_line":"                      \u0027\"/usr/sbin/%(bin)s-install %(dev)s\"\u0027 %"},{"line_number":144,"context_line":"                      {\u0027path\u0027: path, \u0027bin\u0027: binary_name, \u0027dev\u0027: device},"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a122d0e_a9ab4e1d","line":141,"updated":"2016-04-25 19:09:45.000000000","message":"According to https://fedoraproject.org/wiki/GRUB_2?rd\u003dGrub2 grub-install shouldn\u0027t be called on fedora with EFI. Why not just do grub-install only if system is not Fedora? In this case L115-125 and L147-159 are not needed.","commit_id":"b3b28746211fddffce7354479a361866bb797e3b"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"810f0d9e667fa03fd10296f2459527387834b15b","unresolved":false,"context_lines":[{"line_number":138,"context_line":"        path_variable \u003d os.environ.get(\u0027PATH\u0027, \u0027\u0027)"},{"line_number":139,"context_line":"        path_variable \u003d \u0027%s:/bin\u0027 % path_variable"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        # Install grub"},{"line_number":142,"context_line":"        utils.execute(\u0027chroot %(path)s /bin/bash -c \u0027"},{"line_number":143,"context_line":"                      \u0027\"/usr/sbin/%(bin)s-install %(dev)s\"\u0027 %"},{"line_number":144,"context_line":"                      {\u0027path\u0027: path, \u0027bin\u0027: binary_name, \u0027dev\u0027: device},"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a122d0e_5f0e1133","line":141,"in_reply_to":"1a122d0e_a9ab4e1d","updated":"2016-05-02 06:50:30.000000000","message":"I am not sure if i get your points clearly. But i\u0027l try to answer them. There are two options to address this issue.\n\nOption 1: Take the back up and restore it once the EFI partition is mounted. We do not need to call grub-install.\n\nOption 2: Take the back up of EFI. Call grub-install let it install what ever is needed(just like in any other case). Replace EFI related stuff as grub-install will only break for EFI.\n\nIn either way, L115-125 is needed to backup the existing contents before mounting efi partition and L147-159 to restore. The reason being, once we mount the /boot/EFI on efi partition the contents are lost, then how does it get the boot loader? \n\nI prefer option 2 over 1, since grub-install only breaks for EFI and i\u0027d prefer to run it and take care of only EFI related parts leaving the rest of the system intact.","commit_id":"b3b28746211fddffce7354479a361866bb797e3b"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"7d9d11a9eb4382823743343328d27939aa6fd36d","unresolved":false,"context_lines":[{"line_number":161,"context_line":"        # Generate the grub configuration file"},{"line_number":162,"context_line":"        utils.execute(\u0027chroot %(path)s /bin/bash -c \u0027"},{"line_number":163,"context_line":"                      \u0027\"/usr/sbin/%(bin)s-mkconfig -o \u0027"},{"line_number":164,"context_line":"                      \u0027%(grub_cfg)s\"\u0027 %"},{"line_number":165,"context_line":"                      {\u0027path\u0027: path, \u0027bin\u0027: binary_name,"},{"line_number":166,"context_line":"                       \u0027grub_cfg\u0027: grub_conf_path},"},{"line_number":167,"context_line":"                      shell\u003dTrue, env_variables\u003d{\u0027PATH\u0027: path_variable})"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a122d0e_896db206","line":164,"updated":"2016-04-25 19:09:45.000000000","message":"grub_cfg may be set to \u0027/boot/efi/EFI/fedora/grub.cfg\u0027 for Fedora. In this case L169-174 are not needed.","commit_id":"b3b28746211fddffce7354479a361866bb797e3b"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"810f0d9e667fa03fd10296f2459527387834b15b","unresolved":false,"context_lines":[{"line_number":161,"context_line":"        # Generate the grub configuration file"},{"line_number":162,"context_line":"        utils.execute(\u0027chroot %(path)s /bin/bash -c \u0027"},{"line_number":163,"context_line":"                      \u0027\"/usr/sbin/%(bin)s-mkconfig -o \u0027"},{"line_number":164,"context_line":"                      \u0027%(grub_cfg)s\"\u0027 %"},{"line_number":165,"context_line":"                      {\u0027path\u0027: path, \u0027bin\u0027: binary_name,"},{"line_number":166,"context_line":"                       \u0027grub_cfg\u0027: grub_conf_path},"},{"line_number":167,"context_line":"                      shell\u003dTrue, env_variables\u003d{\u0027PATH\u0027: path_variable})"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a122d0e_5f3571d9","line":164,"in_reply_to":"1a122d0e_896db206","updated":"2016-05-02 06:50:30.000000000","message":"For the same reason as i explained, i want to retain the original one as is which is where it looks in non efi systems.","commit_id":"b3b28746211fddffce7354479a361866bb797e3b"},{"author":{"_account_id":7933,"name":"Philippe Godin","email":"godp1301@gmail.com","username":"godp1301"},"change_message_id":"f3a4204c5e662a9f8990c04602f2482b8c6bfc81","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"BIND_MOUNTS \u003d (\u0027/dev\u0027, \u0027/proc\u0027)"},{"line_number":36,"context_line":"DISTRO_FILE \u003d \u0027/etc/redhat-release\u0027"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"def _get_partition(device, uuid):"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a122d0e_ce02103e","line":36,"range":{"start_line":36,"start_character":0,"end_line":36,"end_character":35},"updated":"2016-04-25 18:05:55.000000000","message":"Looks like this is only used in is_fedora_distro methd. Thus the variable scope should be contained in the method.","commit_id":"2251e3687663e239171811c179040c40ca454193"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"a390fb4f0bee37932ed631bf64c3e558f3adff0a","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"BIND_MOUNTS \u003d (\u0027/dev\u0027, \u0027/proc\u0027)"},{"line_number":36,"context_line":"DISTRO_FILE \u003d \u0027/etc/redhat-release\u0027"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"def _get_partition(device, uuid):"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a122d0e_14292038","line":36,"range":{"start_line":36,"start_character":0,"end_line":36,"end_character":35},"in_reply_to":"1a122d0e_ce02103e","updated":"2016-05-02 07:02:22.000000000","message":"As per the review comments i received for previous submissions i have made this choice.I\u0027d like to watch for more comments on this before changing it.","commit_id":"2251e3687663e239171811c179040c40ca454193"},{"author":{"_account_id":7933,"name":"Philippe Godin","email":"godp1301@gmail.com","username":"godp1301"},"change_message_id":"f3a4204c5e662a9f8990c04602f2482b8c6bfc81","unresolved":false,"context_lines":[{"line_number":83,"context_line":"    \"\"\"Returns True if the distro is fedora else False.\"\"\""},{"line_number":84,"context_line":"    try:"},{"line_number":85,"context_line":"        with open(DISTRO_FILE, \u0027r\u0027) as f:"},{"line_number":86,"context_line":"            return f.readline().split(\u0027 \u0027)[0].lower() \u003d\u003d \u0027fedora\u0027"},{"line_number":87,"context_line":"    except IOError:"},{"line_number":88,"context_line":"        return False"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"1a122d0e_4e9560e2","line":86,"range":{"start_line":86,"start_character":19,"end_line":86,"end_character":65},"updated":"2016-04-25 18:05:55.000000000","message":"I personally prefer something like if \u0027fedora\u0027 in f.readline().","commit_id":"2251e3687663e239171811c179040c40ca454193"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"a390fb4f0bee37932ed631bf64c3e558f3adff0a","unresolved":false,"context_lines":[{"line_number":83,"context_line":"    \"\"\"Returns True if the distro is fedora else False.\"\"\""},{"line_number":84,"context_line":"    try:"},{"line_number":85,"context_line":"        with open(DISTRO_FILE, \u0027r\u0027) as f:"},{"line_number":86,"context_line":"            return f.readline().split(\u0027 \u0027)[0].lower() \u003d\u003d \u0027fedora\u0027"},{"line_number":87,"context_line":"    except IOError:"},{"line_number":88,"context_line":"        return False"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"1a122d0e_34241c5f","line":86,"range":{"start_line":86,"start_character":19,"end_line":86,"end_character":65},"in_reply_to":"1a122d0e_4e9560e2","updated":"2016-05-02 07:02:22.000000000","message":"+1. \nI am going to make changes accordingly.","commit_id":"2251e3687663e239171811c179040c40ca454193"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"90cda6fff5e6d52384e8eb4227bf1859d9d4086c","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"BIND_MOUNTS \u003d (\u0027/dev\u0027, \u0027/proc\u0027)"},{"line_number":36,"context_line":"DISTRO_FILE \u003d \u0027/etc/redhat-release\u0027"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"def _get_partition(device, uuid):"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a122d0e_646c21d1","line":36,"range":{"start_line":36,"start_character":0,"end_line":36,"end_character":11},"updated":"2016-05-02 11:32:21.000000000","message":"This is a specific distribution\u0027s release file, which is not the same file for all distributions.\n\nSeems like it should be named FEDORA_RELEASE_FILE and since it is only used in is_fedora_distro, it should likely be moved to inside the helper method since it is the only place that it is utilized.","commit_id":"ad4a13df0a22d646433ded265bcae936d898890e"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"f15b94bca22b90e9177b5f26a3d57e6e31153b16","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"BIND_MOUNTS \u003d (\u0027/dev\u0027, \u0027/proc\u0027)"},{"line_number":36,"context_line":"DISTRO_FILE \u003d \u0027/etc/redhat-release\u0027"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"def _get_partition(device, uuid):"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a122d0e_922a3f2e","line":36,"range":{"start_line":36,"start_character":0,"end_line":36,"end_character":11},"in_reply_to":"1a122d0e_646c21d1","updated":"2016-05-03 11:54:01.000000000","message":"Will rename it to REDHAT_RELEASE_FILE as it aptly suits.","commit_id":"ad4a13df0a22d646433ded265bcae936d898890e"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"90cda6fff5e6d52384e8eb4227bf1859d9d4086c","unresolved":false,"context_lines":[{"line_number":110,"context_line":""},{"line_number":111,"context_line":"        utils.execute(\u0027mount\u0027, \u0027-t\u0027, \u0027sysfs\u0027, \u0027none\u0027, path + \u0027/sys\u0027)"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"        # NOTE(vmud213):grub2-install doesn\u0027t work for fedora efi mode though"},{"line_number":114,"context_line":"        # it doesn\u0027t complain about any errors. So we avoid using"},{"line_number":115,"context_line":"        # grub2-install for fedora and use existing bootloader instead."},{"line_number":116,"context_line":"        if is_fedora and efi_partition:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a122d0e_44a805dc","line":113,"range":{"start_line":113,"start_character":54,"end_line":113,"end_character":62},"updated":"2016-05-02 11:32:21.000000000","message":"Please indicate which versions of fedora this is known to be an issue on in case fedora\u0027s behavior changes in the future and this code needs to be re-visited.","commit_id":"ad4a13df0a22d646433ded265bcae936d898890e"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"f15b94bca22b90e9177b5f26a3d57e6e31153b16","unresolved":false,"context_lines":[{"line_number":110,"context_line":""},{"line_number":111,"context_line":"        utils.execute(\u0027mount\u0027, \u0027-t\u0027, \u0027sysfs\u0027, \u0027none\u0027, path + \u0027/sys\u0027)"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"        # NOTE(vmud213):grub2-install doesn\u0027t work for fedora efi mode though"},{"line_number":114,"context_line":"        # it doesn\u0027t complain about any errors. So we avoid using"},{"line_number":115,"context_line":"        # grub2-install for fedora and use existing bootloader instead."},{"line_number":116,"context_line":"        if is_fedora and efi_partition:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a122d0e_52da6718","line":113,"range":{"start_line":113,"start_character":54,"end_line":113,"end_character":62},"in_reply_to":"1a122d0e_44a805dc","updated":"2016-05-03 11:54:01.000000000","message":"Done","commit_id":"ad4a13df0a22d646433ded265bcae936d898890e"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"90cda6fff5e6d52384e8eb4227bf1859d9d4086c","unresolved":false,"context_lines":[{"line_number":163,"context_line":"                       \u0027grub_cfg\u0027: grub_conf_path},"},{"line_number":164,"context_line":"                      shell\u003dTrue, env_variables\u003d{\u0027PATH\u0027: path_variable})"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"        # For fedora efi to work, copy over grub.conf to the location where"},{"line_number":167,"context_line":"        # grubx64.efi looks for by default"},{"line_number":168,"context_line":"        if is_fedora and efi_partition:"},{"line_number":169,"context_line":"            efi_grub_conf_path \u003d \u0027/boot/efi/EFI/fedora/grub.cfg\u0027"},{"line_number":170,"context_line":"            if os.path.exists(path + grub_conf_path):"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a122d0e_447f6566","line":167,"range":{"start_line":166,"start_character":8,"end_line":167,"end_character":42},"updated":"2016-05-02 11:32:21.000000000","message":"Out of curiosity, has this partition image + EFI code path been tested with CentOS?  And do we have a similar issues there?  I\u0027m curious because it seems like we\u0027ve done similar things elsewhere where we support EFI for other distributions.","commit_id":"ad4a13df0a22d646433ded265bcae936d898890e"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"f15b94bca22b90e9177b5f26a3d57e6e31153b16","unresolved":false,"context_lines":[{"line_number":163,"context_line":"                       \u0027grub_cfg\u0027: grub_conf_path},"},{"line_number":164,"context_line":"                      shell\u003dTrue, env_variables\u003d{\u0027PATH\u0027: path_variable})"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"        # For fedora efi to work, copy over grub.conf to the location where"},{"line_number":167,"context_line":"        # grubx64.efi looks for by default"},{"line_number":168,"context_line":"        if is_fedora and efi_partition:"},{"line_number":169,"context_line":"            efi_grub_conf_path \u003d \u0027/boot/efi/EFI/fedora/grub.cfg\u0027"},{"line_number":170,"context_line":"            if os.path.exists(path + grub_conf_path):"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a122d0e_722e83fb","line":167,"range":{"start_line":166,"start_character":8,"end_line":167,"end_character":42},"in_reply_to":"1a122d0e_447f6566","updated":"2016-05-03 11:54:01.000000000","message":"No. I could not test it because they needed licenses. Honestly, i do not know about the changes that you are referring to.","commit_id":"ad4a13df0a22d646433ded265bcae936d898890e"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"59792c7ab234ec888759834fa8c49079f06ed949","unresolved":false,"context_lines":[{"line_number":94,"context_line":"    root_partition \u003d _get_partition(device, uuid\u003droot_uuid)"},{"line_number":95,"context_line":"    efi_partition \u003d None"},{"line_number":96,"context_line":"    efi_partition_mount_point \u003d None"},{"line_number":97,"context_line":"    is_fedora \u003d is_fedora_distro()"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    try:"},{"line_number":100,"context_line":"        # Mount the partition and binds"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a122d0e_a171e7aa","line":97,"updated":"2016-05-03 13:37:17.000000000","message":"This seems like the wrong thing to check - other distros may have the same problem, and different versions of Fedora may not have this problem . Do we know more specifically what\u0027s causing the problem (GRUB version, for instance)? If so, we should check for that.","commit_id":"e4df18694aa0180a6a59b6656844c0b4a6dde963"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"a627fa4bbd3900f6288e46c579247acb96492236","unresolved":false,"context_lines":[{"line_number":94,"context_line":"    root_partition \u003d _get_partition(device, uuid\u003droot_uuid)"},{"line_number":95,"context_line":"    efi_partition \u003d None"},{"line_number":96,"context_line":"    efi_partition_mount_point \u003d None"},{"line_number":97,"context_line":"    is_fedora \u003d is_fedora_distro()"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    try:"},{"line_number":100,"context_line":"        # Mount the partition and binds"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a122d0e_c2d320d4","line":97,"in_reply_to":"1a122d0e_56719bdd","updated":"2016-05-04 10:02:53.000000000","message":"You\u0027re right, it does look like this problem only affects Fedora (at least, out of the distros we support). Please check if it affects CentOS (which is free-as-in-beer, and should match RHEL\u0027s behaviour closely): if CentOS is unaffected, then this check is fine.","commit_id":"e4df18694aa0180a6a59b6656844c0b4a6dde963"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"812d8eb846955a3b75815c4876505635e059fe21","unresolved":false,"context_lines":[{"line_number":94,"context_line":"    root_partition \u003d _get_partition(device, uuid\u003droot_uuid)"},{"line_number":95,"context_line":"    efi_partition \u003d None"},{"line_number":96,"context_line":"    efi_partition_mount_point \u003d None"},{"line_number":97,"context_line":"    is_fedora \u003d is_fedora_distro()"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    try:"},{"line_number":100,"context_line":"        # Mount the partition and binds"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a122d0e_56719bdd","line":97,"in_reply_to":"1a122d0e_a171e7aa","updated":"2016-05-04 05:47:10.000000000","message":"I have tested it with Ubuntu and fedora. For Ubuntu, we don\u0027t see this issue. It may or may not be an issue with other distros like redhat and centos. I could not test them as they require licence. I will make changes accordingly if someone can help me to test it on other distro. Can you confirm if this issue is not seen in other versions of fedora? i only tested it with fedora 22 and the issue is seen there. https://fedoraproject.org/wiki/GRUB_2?rd\u003dGrub2 doesn\u0027t specifically mention any version of fedora.\nSince the issue is confirmed with fedora 22, it\u0027d be better to keep this fix rather than waiting for other test results. We can keep extending the list eventually.","commit_id":"e4df18694aa0180a6a59b6656844c0b4a6dde963"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"6339b91ee6f47d5c7d7a0fa662c014fe1ce66f94","unresolved":false,"context_lines":[{"line_number":78,"context_line":"        raise errors.CommandExecutionError(error_msg)"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"def is_fedora_distro():"},{"line_number":82,"context_line":"    \"\"\"Returns True if the distro is fedora else False.\"\"\""},{"line_number":83,"context_line":"    REDHAT_RELEASE_FILE \u003d \u0027/etc/redhat-release\u0027"},{"line_number":84,"context_line":"    try:"}],"source_content_type":"text/x-python","patch_set":8,"id":"9abb7d3a_2d33a315","line":81,"updated":"2016-05-31 23:33:51.000000000","message":"Is there absolutely no way possible to fix this in the ramdisk, environment it\u0027s running in, or anything else? So far we\u0027ve managed to keep IPA pretty distro-agnostic, and I think that\u0027s a good thing.\n\nAlso, all of these changes are completely untested due to the lack of any fedora ramdisk in the gate.","commit_id":"00c267ad710f4e3d020cc118674189804a9092ac"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"cfecb68c5b75a2ef6385c814ae2a4e84babc0959","unresolved":false,"context_lines":[{"line_number":78,"context_line":"        raise errors.CommandExecutionError(error_msg)"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"def is_fedora_distro():"},{"line_number":82,"context_line":"    \"\"\"Returns True if the distro is fedora else False.\"\"\""},{"line_number":83,"context_line":"    REDHAT_RELEASE_FILE \u003d \u0027/etc/redhat-release\u0027"},{"line_number":84,"context_line":"    try:"}],"source_content_type":"text/x-python","patch_set":8,"id":"9abb7d3a_4fb41281","line":81,"in_reply_to":"9abb7d3a_2d33a315","updated":"2016-06-01 09:00:15.000000000","message":"I have tried to think of other alternatives before resorting to this distro-specific change. We can not fix this in the ramdisk as we want bootloader to be installed on demand(local boot for partition images) and IPA will take a call on that. I have tested these changes on my setup. This is a workaround until grub-install is fixed for fedora.","commit_id":"00c267ad710f4e3d020cc118674189804a9092ac"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"18b10e364ec8bfef00e7b67c8f6c995ee5c50bdd","unresolved":false,"context_lines":[{"line_number":78,"context_line":"        raise errors.CommandExecutionError(error_msg)"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"def is_fedora_distro():"},{"line_number":82,"context_line":"    \"\"\"Returns True if the distro is fedora else False.\"\"\""},{"line_number":83,"context_line":"    REDHAT_RELEASE_FILE \u003d \u0027/etc/redhat-release\u0027"},{"line_number":84,"context_line":"    try:"}],"source_content_type":"text/x-python","patch_set":8,"id":"9abb7d3a_151b1dcb","line":81,"in_reply_to":"9abb7d3a_4fb41281","updated":"2016-06-01 15:23:47.000000000","message":"To be clear; I\u0027m -1 overall on putting distribution workarounds into the IPA codebase. There\u0027s nothing, including modifying the version of grub-install in your DIB image, that can fix this issue?","commit_id":"00c267ad710f4e3d020cc118674189804a9092ac"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"370933eee8bd071577f47a405720cf5cee7db692","unresolved":false,"context_lines":[{"line_number":82,"context_line":"    \"\"\"Returns True if the distro is fedora else False.\"\"\""},{"line_number":83,"context_line":"    REDHAT_RELEASE_FILE \u003d \u0027/etc/redhat-release\u0027"},{"line_number":84,"context_line":"    try:"},{"line_number":85,"context_line":"        with open(REDHAT_RELEASE_FILE, \u0027r\u0027) as f:"},{"line_number":86,"context_line":"            return \u0027fedora\u0027 in f.readline().lower()"},{"line_number":87,"context_line":"    except IOError:"},{"line_number":88,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":8,"id":"bab6814e_277dd0b1","line":85,"updated":"2016-05-25 11:17:06.000000000","message":"nit: Don\u0027t need to create the REDHAT_RELEASE_FILE since it\u0027s going to be used only once here, just do a open(\"/etc/redhat...\") directly","commit_id":"00c267ad710f4e3d020cc118674189804a9092ac"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"86dac2ed96ab9416040492c01bc6f9d6b241924b","unresolved":false,"context_lines":[{"line_number":82,"context_line":"    \"\"\"Returns True if the distro is fedora else False.\"\"\""},{"line_number":83,"context_line":"    REDHAT_RELEASE_FILE \u003d \u0027/etc/redhat-release\u0027"},{"line_number":84,"context_line":"    try:"},{"line_number":85,"context_line":"        with open(REDHAT_RELEASE_FILE, \u0027r\u0027) as f:"},{"line_number":86,"context_line":"            return \u0027fedora\u0027 in f.readline().lower()"},{"line_number":87,"context_line":"    except IOError:"},{"line_number":88,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":8,"id":"9abb7d3a_362f5989","line":85,"in_reply_to":"9abb7d3a_1b86c8da","updated":"2016-06-01 11:56:12.000000000","message":"I don\u0027t see any reason why not use python built in function here.","commit_id":"00c267ad710f4e3d020cc118674189804a9092ac"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"cfecb68c5b75a2ef6385c814ae2a4e84babc0959","unresolved":false,"context_lines":[{"line_number":82,"context_line":"    \"\"\"Returns True if the distro is fedora else False.\"\"\""},{"line_number":83,"context_line":"    REDHAT_RELEASE_FILE \u003d \u0027/etc/redhat-release\u0027"},{"line_number":84,"context_line":"    try:"},{"line_number":85,"context_line":"        with open(REDHAT_RELEASE_FILE, \u0027r\u0027) as f:"},{"line_number":86,"context_line":"            return \u0027fedora\u0027 in f.readline().lower()"},{"line_number":87,"context_line":"    except IOError:"},{"line_number":88,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":8,"id":"9abb7d3a_1b86c8da","line":85,"in_reply_to":"9abb7d3a_4ccf0029","updated":"2016-06-01 09:00:15.000000000","message":"Hi Vasyl, Actually i explained while addressing comments on the previous patch. Since this is 2-3 lines of code change, i will leave it as is. please refer to my previous comments.","commit_id":"00c267ad710f4e3d020cc118674189804a9092ac"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"b0c765523024d6ee273e591dbeaa54fafa4662e2","unresolved":false,"context_lines":[{"line_number":82,"context_line":"    \"\"\"Returns True if the distro is fedora else False.\"\"\""},{"line_number":83,"context_line":"    REDHAT_RELEASE_FILE \u003d \u0027/etc/redhat-release\u0027"},{"line_number":84,"context_line":"    try:"},{"line_number":85,"context_line":"        with open(REDHAT_RELEASE_FILE, \u0027r\u0027) as f:"},{"line_number":86,"context_line":"            return \u0027fedora\u0027 in f.readline().lower()"},{"line_number":87,"context_line":"    except IOError:"},{"line_number":88,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":8,"id":"bab6814e_ca0fabdf","line":85,"in_reply_to":"bab6814e_277dd0b1","updated":"2016-05-27 08:59:55.000000000","message":"Agree. Will remove if it happens to upload a new patch.","commit_id":"00c267ad710f4e3d020cc118674189804a9092ac"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"11867e6bed26839aa551eb25bfe47d6870ebea3d","unresolved":false,"context_lines":[{"line_number":82,"context_line":"    \"\"\"Returns True if the distro is fedora else False.\"\"\""},{"line_number":83,"context_line":"    REDHAT_RELEASE_FILE \u003d \u0027/etc/redhat-release\u0027"},{"line_number":84,"context_line":"    try:"},{"line_number":85,"context_line":"        with open(REDHAT_RELEASE_FILE, \u0027r\u0027) as f:"},{"line_number":86,"context_line":"            return \u0027fedora\u0027 in f.readline().lower()"},{"line_number":87,"context_line":"    except IOError:"},{"line_number":88,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":8,"id":"9abb7d3a_4ccf0029","line":85,"in_reply_to":"bab6814e_ca0fabdf","updated":"2016-06-01 07:11:25.000000000","message":"I still don\u0027t understand why not use platform.linux_deistribution()  here?","commit_id":"00c267ad710f4e3d020cc118674189804a9092ac"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"370933eee8bd071577f47a405720cf5cee7db692","unresolved":false,"context_lines":[{"line_number":112,"context_line":""},{"line_number":113,"context_line":"        # NOTE(vmud213):grub2-install doesn\u0027t work for fedora efi mode though"},{"line_number":114,"context_line":"        # it doesn\u0027t complain about any errors. This is reported at"},{"line_number":115,"context_line":"        # https://fedoraproject.org/wiki/GRUB_2?rd\u003dGrub2"},{"line_number":116,"context_line":"        # We take the backup of EFI and restore after the call to grub-install"},{"line_number":117,"context_line":"        # This may be a temporary work around and needs to be re-visited once"},{"line_number":118,"context_line":"        # the issue is fixed in fedora."}],"source_content_type":"text/x-python","patch_set":8,"id":"bab6814e_4730d401","line":115,"updated":"2016-05-25 11:17:06.000000000","message":"Strange it does not say which version of fedora this problem appears :-/ \n\nWhich versions you have tested this code with ? 22 (assuming by the unittests) ?","commit_id":"00c267ad710f4e3d020cc118674189804a9092ac"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"cfecb68c5b75a2ef6385c814ae2a4e84babc0959","unresolved":false,"context_lines":[{"line_number":112,"context_line":""},{"line_number":113,"context_line":"        # NOTE(vmud213):grub2-install doesn\u0027t work for fedora efi mode though"},{"line_number":114,"context_line":"        # it doesn\u0027t complain about any errors. This is reported at"},{"line_number":115,"context_line":"        # https://fedoraproject.org/wiki/GRUB_2?rd\u003dGrub2"},{"line_number":116,"context_line":"        # We take the backup of EFI and restore after the call to grub-install"},{"line_number":117,"context_line":"        # This may be a temporary work around and needs to be re-visited once"},{"line_number":118,"context_line":"        # the issue is fixed in fedora."}],"source_content_type":"text/x-python","patch_set":8,"id":"9abb7d3a_2a0c1c3a","line":115,"in_reply_to":"9abb7d3a_8d244fc5","updated":"2016-06-01 09:00:15.000000000","message":"Not sure where to figure out corresponding bug. I tried to explore but could not get enough pointers.","commit_id":"00c267ad710f4e3d020cc118674189804a9092ac"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"b0c765523024d6ee273e591dbeaa54fafa4662e2","unresolved":false,"context_lines":[{"line_number":112,"context_line":""},{"line_number":113,"context_line":"        # NOTE(vmud213):grub2-install doesn\u0027t work for fedora efi mode though"},{"line_number":114,"context_line":"        # it doesn\u0027t complain about any errors. This is reported at"},{"line_number":115,"context_line":"        # https://fedoraproject.org/wiki/GRUB_2?rd\u003dGrub2"},{"line_number":116,"context_line":"        # We take the backup of EFI and restore after the call to grub-install"},{"line_number":117,"context_line":"        # This may be a temporary work around and needs to be re-visited once"},{"line_number":118,"context_line":"        # the issue is fixed in fedora."}],"source_content_type":"text/x-python","patch_set":8,"id":"bab6814e_4af29bd3","line":115,"in_reply_to":"bab6814e_4730d401","updated":"2016-05-27 08:59:55.000000000","message":"Yes, I have tested it with 22.","commit_id":"00c267ad710f4e3d020cc118674189804a9092ac"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"6339b91ee6f47d5c7d7a0fa662c014fe1ce66f94","unresolved":false,"context_lines":[{"line_number":112,"context_line":""},{"line_number":113,"context_line":"        # NOTE(vmud213):grub2-install doesn\u0027t work for fedora efi mode though"},{"line_number":114,"context_line":"        # it doesn\u0027t complain about any errors. This is reported at"},{"line_number":115,"context_line":"        # https://fedoraproject.org/wiki/GRUB_2?rd\u003dGrub2"},{"line_number":116,"context_line":"        # We take the backup of EFI and restore after the call to grub-install"},{"line_number":117,"context_line":"        # This may be a temporary work around and needs to be re-visited once"},{"line_number":118,"context_line":"        # the issue is fixed in fedora."}],"source_content_type":"text/x-python","patch_set":8,"id":"9abb7d3a_8d244fc5","line":115,"in_reply_to":"bab6814e_4af29bd3","updated":"2016-05-31 23:33:51.000000000","message":"Can we get this to be an actual bug number? And potentially get this fixed upstream rather than working around it in IPA?","commit_id":"00c267ad710f4e3d020cc118674189804a9092ac"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"6339b91ee6f47d5c7d7a0fa662c014fe1ce66f94","unresolved":false,"context_lines":[{"line_number":118,"context_line":"        # the issue is fixed in fedora."},{"line_number":119,"context_line":"        if is_fedora and efi_partition:"},{"line_number":120,"context_line":"            home_variable \u003d os.environ.get(\u0027HOME\u0027, \u0027\u0027)"},{"line_number":121,"context_line":"            grub_path \u003d path + \u0027/boot/efi/EFI\u0027"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"            if os.path.exists(grub_path):"},{"line_number":124,"context_line":"                shutil.copytree(grub_path, home_variable + \u0027/EFI\u0027,"}],"source_content_type":"text/x-python","patch_set":8,"id":"9abb7d3a_4d154747","line":121,"updated":"2016-05-31 23:33:51.000000000","message":"Nothing I see here looks inherently unsafe, but IPA directly interacting with EFI dirs is scary, as any accidental deletion or change could brick the machine. \n\nhttps://github.com/systemd/systemd/issues/2402","commit_id":"00c267ad710f4e3d020cc118674189804a9092ac"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"cfecb68c5b75a2ef6385c814ae2a4e84babc0959","unresolved":false,"context_lines":[{"line_number":118,"context_line":"        # the issue is fixed in fedora."},{"line_number":119,"context_line":"        if is_fedora and efi_partition:"},{"line_number":120,"context_line":"            home_variable \u003d os.environ.get(\u0027HOME\u0027, \u0027\u0027)"},{"line_number":121,"context_line":"            grub_path \u003d path + \u0027/boot/efi/EFI\u0027"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"            if os.path.exists(grub_path):"},{"line_number":124,"context_line":"                shutil.copytree(grub_path, home_variable + \u0027/EFI\u0027,"}],"source_content_type":"text/x-python","patch_set":8,"id":"9abb7d3a_9be0f897","line":121,"in_reply_to":"9abb7d3a_4d154747","updated":"2016-06-01 09:00:15.000000000","message":"IMO as long as we don\u0027t make changes to /sys/firmware/efi/.... it is safe. We need distro specific configuration at times. For instance, fedora looks for grub.cfg in some path which may not be same as \"ubuntu\". When building the image(using DIB or by any other means) we handle them according to the distro. But in this case since IPA has to install the bootloader, it\u0027s IPA which can configure the node accordingly for the subsequent boot.","commit_id":"00c267ad710f4e3d020cc118674189804a9092ac"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"86dac2ed96ab9416040492c01bc6f9d6b241924b","unresolved":false,"context_lines":[{"line_number":122,"context_line":""},{"line_number":123,"context_line":"            if os.path.exists(grub_path):"},{"line_number":124,"context_line":"                shutil.copytree(grub_path, home_variable + \u0027/EFI\u0027,"},{"line_number":125,"context_line":"                                symlinks\u003dTrue)"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"        if efi_partition:"},{"line_number":128,"context_line":"            if not os.path.exists(efi_partition_mount_point):"}],"source_content_type":"text/x-python","patch_set":8,"id":"9abb7d3a_23df1dda","line":125,"updated":"2016-06-01 11:56:12.000000000","message":"Ditto about warning, if L124 not executed efi will not work.","commit_id":"00c267ad710f4e3d020cc118674189804a9092ac"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"86dac2ed96ab9416040492c01bc6f9d6b241924b","unresolved":false,"context_lines":[{"line_number":153,"context_line":"                    LOG.info(\"Removing existing EFI directory \""},{"line_number":154,"context_line":"                             \" %s\" % dst_grub_path)"},{"line_number":155,"context_line":"                    shutil.rmtree(dst_grub_path)"},{"line_number":156,"context_line":"                shutil.copytree(src_grub_path, dst_grub_path, symlinks\u003dTrue)"},{"line_number":157,"context_line":"                shutil.rmtree(src_grub_path)"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"        grub_conf_path \u003d \u0027/boot/%s/grub.cfg\u0027 % binary_name"}],"source_content_type":"text/x-python","patch_set":8,"id":"9abb7d3a_e359958f","line":156,"updated":"2016-06-01 11:56:12.000000000","message":"if /boot/efi/ doesn\u0027t exist there will be an error. It should be handled.","commit_id":"00c267ad710f4e3d020cc118674189804a9092ac"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"11867e6bed26839aa551eb25bfe47d6870ebea3d","unresolved":false,"context_lines":[{"line_number":166,"context_line":"                       \u0027grub_cfg\u0027: grub_conf_path},"},{"line_number":167,"context_line":"                      shell\u003dTrue, env_variables\u003d{\u0027PATH\u0027: path_variable})"},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"        # For fedora efi to work, copy over grub.conf to the location where"},{"line_number":170,"context_line":"        # grubx64.efi looks for by default"},{"line_number":171,"context_line":"        if is_fedora and efi_partition:"},{"line_number":172,"context_line":"            efi_grub_conf_path \u003d \u0027/boot/efi/EFI/fedora/grub.cfg\u0027"}],"source_content_type":"text/x-python","patch_set":8,"id":"9abb7d3a_cc565029","line":169,"updated":"2016-06-01 07:11:25.000000000","message":"What about adding to L147\n\nif is_fedora and efi_partition:\n    ...\n    grub_conf_path \u003d \u0027/boot/efi/EFI/fedora/grub.cfg\u0027\nelse:\n    grub_conf_path \u003d \u0027/boot/%s/grub.cfg\u0027 % binary_name\n\nin this case grub-mkconfig -o ... will generate grunb config and put it to needed place. L170-175 are not needed.","commit_id":"00c267ad710f4e3d020cc118674189804a9092ac"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"cfecb68c5b75a2ef6385c814ae2a4e84babc0959","unresolved":false,"context_lines":[{"line_number":166,"context_line":"                       \u0027grub_cfg\u0027: grub_conf_path},"},{"line_number":167,"context_line":"                      shell\u003dTrue, env_variables\u003d{\u0027PATH\u0027: path_variable})"},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"        # For fedora efi to work, copy over grub.conf to the location where"},{"line_number":170,"context_line":"        # grubx64.efi looks for by default"},{"line_number":171,"context_line":"        if is_fedora and efi_partition:"},{"line_number":172,"context_line":"            efi_grub_conf_path \u003d \u0027/boot/efi/EFI/fedora/grub.cfg\u0027"}],"source_content_type":"text/x-python","patch_set":8,"id":"9abb7d3a_fbbdc468","line":169,"in_reply_to":"9abb7d3a_cc565029","updated":"2016-06-01 09:00:15.000000000","message":"I agree. But i also want to retain a copy for normal boot.","commit_id":"00c267ad710f4e3d020cc118674189804a9092ac"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"86dac2ed96ab9416040492c01bc6f9d6b241924b","unresolved":false,"context_lines":[{"line_number":166,"context_line":"                       \u0027grub_cfg\u0027: grub_conf_path},"},{"line_number":167,"context_line":"                      shell\u003dTrue, env_variables\u003d{\u0027PATH\u0027: path_variable})"},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"        # For fedora efi to work, copy over grub.conf to the location where"},{"line_number":170,"context_line":"        # grubx64.efi looks for by default"},{"line_number":171,"context_line":"        if is_fedora and efi_partition:"},{"line_number":172,"context_line":"            efi_grub_conf_path \u003d \u0027/boot/efi/EFI/fedora/grub.cfg\u0027"}],"source_content_type":"text/x-python","patch_set":8,"id":"9abb7d3a_83952934","line":169,"in_reply_to":"9abb7d3a_fbbdc468","updated":"2016-06-01 11:56:12.000000000","message":"Please add a note here.","commit_id":"00c267ad710f4e3d020cc118674189804a9092ac"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"86dac2ed96ab9416040492c01bc6f9d6b241924b","unresolved":false,"context_lines":[{"line_number":171,"context_line":"        if is_fedora and efi_partition:"},{"line_number":172,"context_line":"            efi_grub_conf_path \u003d \u0027/boot/efi/EFI/fedora/grub.cfg\u0027"},{"line_number":173,"context_line":"            if (os.path.exists(path + grub_conf_path) and"},{"line_number":174,"context_line":"                os.path.exists(path + efi_grub_conf_path)):"},{"line_number":175,"context_line":"                shutil.copy(path + grub_conf_path, path + efi_grub_conf_path)"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"        LOG.info(\"GRUB2 successfully installed on %s\", device)"}],"source_content_type":"text/x-python","patch_set":8,"id":"9abb7d3a_4344e1b5","line":174,"updated":"2016-06-01 11:56:12.000000000","message":"if path doesn\u0027t exist there should be at least warning that efi will not work.","commit_id":"00c267ad710f4e3d020cc118674189804a9092ac"}],"ironic_python_agent/tests/unit/extensions/test_image.py":[{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"90cda6fff5e6d52384e8eb4227bf1859d9d4086c","unresolved":false,"context_lines":[{"line_number":275,"context_line":"        mock_get_part_uuid.assert_any_call(self.fake_dev,"},{"line_number":276,"context_line":"                                           uuid\u003dself.fake_efi_system_part_uuid)"},{"line_number":277,"context_line":"        self.assertFalse(mock_dispatch.called)"},{"line_number":278,"context_line":""},{"line_number":279,"context_line":"    @mock.patch.object(os, \u0027environ\u0027)"},{"line_number":280,"context_line":"    @mock.patch.object(os, \u0027makedirs\u0027)"},{"line_number":281,"context_line":"    @mock.patch.object(image, \u0027_get_partition\u0027)"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a122d0e_24cea9b7","line":278,"updated":"2016-05-02 11:32:21.000000000","message":"Would it be possible to add an explicit unit test for is_fedora_distro()?","commit_id":"ad4a13df0a22d646433ded265bcae936d898890e"},{"author":{"_account_id":18781,"name":"vinay muddu","email":"vinay50muddu@yahoo.com","username":"vmud213"},"change_message_id":"f15b94bca22b90e9177b5f26a3d57e6e31153b16","unresolved":false,"context_lines":[{"line_number":275,"context_line":"        mock_get_part_uuid.assert_any_call(self.fake_dev,"},{"line_number":276,"context_line":"                                           uuid\u003dself.fake_efi_system_part_uuid)"},{"line_number":277,"context_line":"        self.assertFalse(mock_dispatch.called)"},{"line_number":278,"context_line":""},{"line_number":279,"context_line":"    @mock.patch.object(os, \u0027environ\u0027)"},{"line_number":280,"context_line":"    @mock.patch.object(os, \u0027makedirs\u0027)"},{"line_number":281,"context_line":"    @mock.patch.object(image, \u0027_get_partition\u0027)"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a122d0e_d55661cd","line":278,"in_reply_to":"1a122d0e_24cea9b7","updated":"2016-05-03 11:54:01.000000000","message":"Done","commit_id":"ad4a13df0a22d646433ded265bcae936d898890e"}]}
