)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"786f59c4318a8442c511762e1b07595ea99ef1ed","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch I3d0981fbe30f2436f00c200919b50aeb97491252"},{"line_number":10,"context_line":"resolved custom kernel version, but introduce a bug"},{"line_number":11,"context_line":"for distro kernel version. In disto kernel uname -r"},{"line_number":12,"context_line":"include kernel version-release. Instead of relying"},{"line_number":13,"context_line":"on uname -r we will use rpm -q --queryformat to get"},{"line_number":14,"context_line":"the latest installed kernel."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"df3967d1_1e3711e6","line":11,"range":{"start_line":11,"start_character":30,"end_line":11,"end_character":35},"updated":"2017-08-01 09:01:08.000000000","message":"distro","commit_id":"9b61896fd92eda88ee087b02212b20c9f7d92c60"},{"author":{"_account_id":21798,"name":"Bernard Cafarelli","email":"bcafarel@redhat.com","username":"bcafarel"},"change_message_id":"0b8d16bec14e43b377153f546d8664ccd6faeead","unresolved":false,"context_lines":[{"line_number":7,"context_line":"devstack: fix ovs install on fedora like OS"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch I3d0981fbe30f2436f00c200919b50aeb97491252"},{"line_number":10,"context_line":"resolved custom kernel version, but introduce a bug"},{"line_number":11,"context_line":"for the 3.x series. This patch avoids the replacement"},{"line_number":12,"context_line":"in the case of the 3.x series."},{"line_number":13,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"df3967d1_48ac8d33","line":10,"range":{"start_line":10,"start_character":36,"end_line":10,"end_character":45},"updated":"2017-08-02 14:10:30.000000000","message":"+d","commit_id":"7882938424974372bb2be66a6e43e2d8c3ebb1e1"}],"devstack/lib/ovs":[{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"2bf97f8e02198bd1d31e2a981bc994452e97b99b","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    if is_fedora ; then"},{"line_number":54,"context_line":"        # is_fedora covers Fedora, RHEL, CentOS, etc..."},{"line_number":55,"context_line":"        KERNEL_VERSION\u003d`rpm -q --queryformat \u0027%{VERSION}-%{RELEASE}\u0027 kernel`"},{"line_number":56,"context_line":"        echo NOTE: if kernel-devel-$KERNEL_VERSION or kernel-headers-$KERNEL_VERSION installation"},{"line_number":57,"context_line":"        echo failed, please, provide a repository with the package, or yum update / reboot"},{"line_number":58,"context_line":"        echo your machine to get the latest kernel."}],"source_content_type":"application/octet-stream","patch_set":1,"id":"1f1a1f67_f49fedb1","line":55,"range":{"start_line":55,"start_character":8,"end_line":55,"end_character":76},"updated":"2017-07-13 08:23:08.000000000","message":"This is a good way to format correctly the kernel version.\n\nThe problem arises if you have two kernels in the machine. E.g.:\n[stack@localhost ~]$ rpm -q kernel\nkernel-3.10.0-514.el7.x86_64\nkernel-3.10.0-514.21.1.el7.x86_64\n\n[stack@localhost ~]$ rpm -q --queryformat \u0027%{VERSION}-%{RELEASE}\u0027 kernel\n3.10.0-514.el73.10.0-514.21.1.el7\n\n\nCan I suggest you to use something like this?\n[stack@localhost ~]$ rpm -q --last --queryformat \u0027%{VERSION}-%{RELEASE}\\n\u0027 kernel\nkernel-3.10.0-514.21.1.el7.x86_64             Wed 31 May 2017 17:26:14 IST\nkernel-3.10.0-514.el7.x86_64                  Wed 31 May 2017 14:42:33 IST\n3.10.0-514.el7                                \n3.10.0-514.21.1.el7  \n\nWith --last you will have the latest installed version on top. Then you can cut the output.","commit_id":"b72ca6261070b109475d21861641fbbeb790fcbd"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"ae1b6b5f99bca53bcb5a1dab9b372966880012e2","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    if is_fedora ; then"},{"line_number":54,"context_line":"        # is_fedora covers Fedora, RHEL, CentOS, etc..."},{"line_number":55,"context_line":"        KERNEL_VERSION\u003d`rpm -q --queryformat \u0027%{VERSION}-%{RELEASE}\u0027 kernel`"},{"line_number":56,"context_line":"        echo NOTE: if kernel-devel-$KERNEL_VERSION or kernel-headers-$KERNEL_VERSION installation"},{"line_number":57,"context_line":"        echo failed, please, provide a repository with the package, or yum update / reboot"},{"line_number":58,"context_line":"        echo your machine to get the latest kernel."}],"source_content_type":"application/octet-stream","patch_set":1,"id":"ff346bd7_9f2e5ff8","line":55,"range":{"start_line":55,"start_character":8,"end_line":55,"end_character":76},"in_reply_to":"1f1a1f67_23cc04bb","updated":"2017-07-25 06:20:19.000000000","message":"Ok let go with you way :)","commit_id":"b72ca6261070b109475d21861641fbbeb790fcbd"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"f4ba970d24beaccfe916aede12384a9586291918","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    if is_fedora ; then"},{"line_number":54,"context_line":"        # is_fedora covers Fedora, RHEL, CentOS, etc..."},{"line_number":55,"context_line":"        KERNEL_VERSION\u003d`rpm -q --queryformat \u0027%{VERSION}-%{RELEASE}\u0027 kernel`"},{"line_number":56,"context_line":"        echo NOTE: if kernel-devel-$KERNEL_VERSION or kernel-headers-$KERNEL_VERSION installation"},{"line_number":57,"context_line":"        echo failed, please, provide a repository with the package, or yum update / reboot"},{"line_number":58,"context_line":"        echo your machine to get the latest kernel."}],"source_content_type":"application/octet-stream","patch_set":1,"id":"1f1a1f67_23cc04bb","line":55,"range":{"start_line":55,"start_character":8,"end_line":55,"end_character":76},"in_reply_to":"1f1a1f67_f49fedb1","updated":"2017-07-13 12:51:29.000000000","message":"yes you right,\nbut the problem with you suggestion is the assumption of latest install kernel is the one that is used.\nmaybe there is a better solution.. I will think of something","commit_id":"b72ca6261070b109475d21861641fbbeb790fcbd"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"cd52eade6894d7190676876058bd112d8c3b7260","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    if is_fedora ; then"},{"line_number":54,"context_line":"        # is_fedora covers Fedora, RHEL, CentOS, etc..."},{"line_number":55,"context_line":"        KERNEL_VERSION\u003d`rpm -q --last --queryformat \u0027%{VERSION}-%{RELEASE}\\n\u0027 kernel | head -n 1 | cut -d\u0027 \u0027 -f 1`"},{"line_number":56,"context_line":"        echo NOTE: if kernel-devel-$KERNEL_VERSION or kernel-headers-$KERNEL_VERSION installation"},{"line_number":57,"context_line":"        echo failed, please, provide a repository with the package, or yum update / reboot"},{"line_number":58,"context_line":"        echo your machine to get the latest kernel."}],"source_content_type":"application/octet-stream","patch_set":2,"id":"ff346bd7_cf7779d4","line":55,"updated":"2017-07-25 19:27:20.000000000","message":"This doesn\u0027t return the kernel version, it returns \u0027kernel-$KERNEL_VERSION\u0027 and fails for me.","commit_id":"2fb7c8b288ef295ad7ed6af5fda78244d973f5f8"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"b284cb27983eab12ab276db6b3194d0d089d0434","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    if is_fedora ; then"},{"line_number":54,"context_line":"        # is_fedora covers Fedora, RHEL, CentOS, etc..."},{"line_number":55,"context_line":"        KERNEL_VERSION\u003d`rpm -q --last --queryformat \u0027%{VERSION}-%{RELEASE}\\n\u0027 kernel | head -n 1 | cut -d\u0027 \u0027 -f 1`"},{"line_number":56,"context_line":"        echo NOTE: if kernel-devel-$KERNEL_VERSION or kernel-headers-$KERNEL_VERSION installation"},{"line_number":57,"context_line":"        echo failed, please, provide a repository with the package, or yum update / reboot"},{"line_number":58,"context_line":"        echo your machine to get the latest kernel."}],"source_content_type":"application/octet-stream","patch_set":2,"id":"ff346bd7_ec3ea489","line":55,"in_reply_to":"ff346bd7_cf7779d4","updated":"2017-07-26 17:02:08.000000000","message":"I don\u0027t have this problem.\n\n[root@localhost network-scripts]# KERNEL_VERSION\u003d`rpm -q --last --queryformat \u0027%{VERSION}-%{RELEASE}\\n\u0027 kernel | head -n 1 | cut -d\u0027 \u0027 -f 1`\n[root@localhost network-scripts]# echo $KERNEL_VERSION \nkernel-3.10.0-514.21.1.el7.x86_64\n\nIt works for me (Fedora 25)","commit_id":"2fb7c8b288ef295ad7ed6af5fda78244d973f5f8"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"db3bd007b7ddb34f82b196b4f97510e85730cd4c","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    if is_fedora ; then"},{"line_number":54,"context_line":"        # is_fedora covers Fedora, RHEL, CentOS, etc..."},{"line_number":55,"context_line":"        KERNEL_VERSION\u003d`rpm -q --last --queryformat \u0027%{VERSION}-%{RELEASE}\\n\u0027 kernel | head -n 1 | cut -d\u0027 \u0027 -f 1`"},{"line_number":56,"context_line":"        echo NOTE: if kernel-devel-$KERNEL_VERSION or kernel-headers-$KERNEL_VERSION installation"},{"line_number":57,"context_line":"        echo failed, please, provide a repository with the package, or yum update / reboot"},{"line_number":58,"context_line":"        echo your machine to get the latest kernel."}],"source_content_type":"application/octet-stream","patch_set":2,"id":"ff346bd7_8f2f31a0","line":55,"in_reply_to":"ff346bd7_cf7779d4","updated":"2017-07-25 19:31:28.000000000","message":"sorry I need to remove the kernel prefix as well","commit_id":"2fb7c8b288ef295ad7ed6af5fda78244d973f5f8"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"c94a95a2ead182a0a6b15e4a110036ca7204723e","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    if is_fedora ; then"},{"line_number":54,"context_line":"        # is_fedora covers Fedora, RHEL, CentOS, etc..."},{"line_number":55,"context_line":"        KERNEL_VERSION\u003d`rpm -q --last --queryformat \u0027%{VERSION}-%{RELEASE}\\n\u0027 kernel | head -n 1 | cut -d\u0027 \u0027 -f 1`"},{"line_number":56,"context_line":"        echo NOTE: if kernel-devel-$KERNEL_VERSION or kernel-headers-$KERNEL_VERSION installation"},{"line_number":57,"context_line":"        echo failed, please, provide a repository with the package, or yum update / reboot"},{"line_number":58,"context_line":"        echo your machine to get the latest kernel."}],"source_content_type":"application/octet-stream","patch_set":2,"id":"ff346bd7_d92959e6","line":55,"in_reply_to":"ff346bd7_ec3ea489","updated":"2017-07-26 22:19:03.000000000","message":"Your output shows that it doesn\u0027t work. It has \"kernel-\" prefix.\n\nthe install_package below would try to install kernel-devel-kernel-3.10-0-514.21.1.el7.x86_64","commit_id":"2fb7c8b288ef295ad7ed6af5fda78244d973f5f8"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"e1581dd09a6757e9b48d8cdfe207ec5f689249da","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    if is_fedora ; then"},{"line_number":54,"context_line":"        # is_fedora covers Fedora, RHEL, CentOS, etc..."},{"line_number":55,"context_line":"        KERNEL_VERSION\u003d`rpm -q --last kernel | head -n 1 | cut -d\u0027 \u0027 -f 1`"},{"line_number":56,"context_line":"        KERNEL_VERSION\u003d${KERNEL_VERSION#\u0027kernel-\u0027}"},{"line_number":57,"context_line":"        echo NOTE: if kernel-devel-$KERNEL_VERSION or kernel-headers-$KERNEL_VERSION installation"},{"line_number":58,"context_line":"        echo failed, please, provide a repository with the package, or yum update / reboot"}],"source_content_type":"application/octet-stream","patch_set":4,"id":"df3967d1_5e0c793a","line":55,"range":{"start_line":55,"start_character":31,"end_line":55,"end_character":44},"updated":"2017-08-01 08:56:33.000000000","message":"This will take what is installed instead of what is booted. We need kernel headers for currently booted kernel, otherwise the ovs compilation is gonna fail.","commit_id":"9b61896fd92eda88ee087b02212b20c9f7d92c60"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"b5010cbe7aa1c23954ac5cb44f8cac2210a23dfb","unresolved":false,"context_lines":[{"line_number":59,"context_line":"            # https://github.com/torvalds/linux/blob/master/scripts/package/mkspec#L25"},{"line_number":60,"context_line":"            # but only for latest series of the kernel, not 3.x"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"            KERNEL_VERSION\u003d`echo $KERNEL_VERSION | sed -e \"s/-/_/g\"`"},{"line_number":63,"context_line":"        fi"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"        echo NOTE: if kernel-devel-$KERNEL_VERSION or kernel-headers-$KERNEL_VERSION installation"}],"source_content_type":"application/octet-stream","patch_set":5,"id":"df3967d1_bebc85dc","line":62,"range":{"start_line":62,"start_character":51,"end_line":62,"end_character":67},"updated":"2017-08-01 09:18:48.000000000","message":"I think tr is better for this case but this is fine too :)","commit_id":"4ad08b9a031f02bfcc5deca7fd73a5301cf18487"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"5b255dd64a0ca342bcadd2d48c3d615934273702","unresolved":false,"context_lines":[{"line_number":59,"context_line":"            # https://github.com/torvalds/linux/blob/master/scripts/package/mkspec#L25"},{"line_number":60,"context_line":"            # but only for latest series of the kernel, not 3.x"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"            KERNEL_VERSION\u003d`echo $KERNEL_VERSION | tr - _"},{"line_number":63,"context_line":"        fi"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"        echo NOTE: if kernel-devel-$KERNEL_VERSION or kernel-headers-$KERNEL_VERSION installation"}],"source_content_type":"application/octet-stream","patch_set":6,"id":"df3967d1_de4aa9aa","line":62,"updated":"2017-08-01 09:22:24.000000000","message":"Missing `","commit_id":"40826c6009580009d44705278fd3d9868a4a5a53"}]}
