[
https://issues.apache.org/jira/browse/IMPALA-10646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17319342#comment-17319342
]
ASF subversion and git services commented on IMPALA-10646:
----------------------------------------------------------
Commit bf4c2dfb3893d77bc288bd683e7a3b304377fe8c in impala's branch
refs/heads/master from Laszlo Gaal
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=bf4c2df ]
IMPALA-10646: Add non-server RHEL 8 signature to toolchain bootstrap
Recent Red Hat Enterprise Linux 8.x version return a shorter release
name string from `lsb_release -si` than earlier versions. This shorter
string was not recognized in the OS mapper logic in
bin/bootstrap_toolchain.py, makig it -- and the build process -- break
on Red Hat 8.2
The patch adds the shorter signature as a point fix.
Rename a local variable to fix an unrelated name conflict (shadowing)
found by flake8.
Tests: run bin/bootstrap_toolchain.py manually on Red Hat 8.2, then run
a complete build on the same OS.
Regression-tested (build and dataload only) on the following versions:
- Centos 8.2 (as opposed to Red Hat 8.2)
- Centos 7.9
- Ubuntu 18.04
Change-Id: Icb1a6c215b1b5a65691042bb7d94fb034392d135
Reviewed-on: http://gerrit.cloudera.org:8080/17292
Reviewed-by: Joe McDonnell <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
> Toolchain bootstrap download fails on Red Hat platforms
> -------------------------------------------------------
>
> Key: IMPALA-10646
> URL: https://issues.apache.org/jira/browse/IMPALA-10646
> Project: IMPALA
> Issue Type: Bug
> Components: Infrastructure
> Affects Versions: Impala 4.0
> Reporter: Laszlo Gaal
> Assignee: Laszlo Gaal
> Priority: Blocker
> Labels: broken-build
>
> bootstrap_toolchain.py detects the OS platform the build is running on by
> taking the output of {{lsb_release -sir}} (or equivalent) and parsing it.
> Apparently Impala was never built on Red Hat platforms before: it returns a
> different signature on Red Hat than on Centos despite the high degree of
> binary compatibility between the two distros.
> This makes bootstrap_toolchain.py throw an exception, breaking the build
> early:
> {code}
> 10:56:11 INFO : INFO:bootstrap_virtualenv:Creating python virtualenv
> 10:56:12 INFO : INFO:bootstrap_virtualenv:Installing packages into the
> virtualenv
> 10:56:31 INFO : INFO:bootstrap_virtualenv:Installing stage 2 packages into
> the virtualenv
> 10:56:37 INFO : Traceback (most recent call last):
> 10:56:37 INFO : File "./bin/bootstrap_toolchain.py", line 775, in
> <module>
> 10:56:37 INFO : if __name__ == "__main__": main()
> 10:56:37 INFO : File "./bin/bootstrap_toolchain.py", line 753, in main
> 10:56:37 INFO : downloads += get_toolchain_downloads()
> 10:56:37 INFO : File "./bin/bootstrap_toolchain.py", line 631, in
> get_toolchain_downloads
> 10:56:37 INFO : llvm_package = ToolchainPackage("llvm")
> 10:56:37 INFO : File "./bin/bootstrap_toolchain.py", line 248, in
> __init__
> 10:56:37 INFO : label =
> get_platform_release_label(release=platform_release).toolchain
> 10:56:37 INFO : File "./bin/bootstrap_toolchain.py", line 465, in
> get_platform_release_label
> 10:56:37 INFO : raise Exception("Could not find package label for OS
> version: {0}.".format(release))
> 10:56:37 INFO : Exception: Could not find package label for OS version:
> redhatenterprise8.2.
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]