[ 
https://issues.apache.org/jira/browse/IMPALA-13458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17911970#comment-17911970
 ] 

ASF subversion and git services commented on IMPALA-13458:
----------------------------------------------------------

Commit 2a03499c61b91f60129340c50d7e63f9c6263ef8 in impala's branch 
refs/heads/master from Laszlo Gaal
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=2a03499c6 ]

IMPALA-13458: Fix installing curl on Red Hat variants for dockerised tests

Red Hat 8 and 9 as well as their variants (e.g. Rocky Linux) preinstall
the curl-minimal package as a prerequisite for their package manager.
Unfortunately this conflicts with the installation of the full-blown
curl package when the Impala daemon Docker images are built during a
dockerised test run. The failure is caused by the two packages having
slightly different version numbers.

Fix this the same way as in bootstrap_system.sh: add the --allowerasing
flag to the yum command line to let yum/DNF substitute the full curl
version for the preinstalled curl-minimal package.

Tested by executing dockerised tests on Rocky Linux 9.2

Change-Id: I30fa0f13a77ef2a939a1b754014a78c171443c71
Reviewed-on: http://gerrit.cloudera.org:8080/21944
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> Dockerised tests fail when executed on Rocky Linux 9.2
> ------------------------------------------------------
>
>                 Key: IMPALA-13458
>                 URL: https://issues.apache.org/jira/browse/IMPALA-13458
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Infrastructure
>    Affects Versions: Impala 4.5.0
>            Reporter: Laszlo Gaal
>            Assignee: Laszlo Gaal
>            Priority: Major
>
> The failure happens during the Docker image build, before tests are launched. 
> It is caused by the known conflict between the {{curl-minimal}} package 
> preinstalled on RHEL 8 and 9 variants (so Rocky has it preinstalled as well), 
> and the full-blown {{curl}} package that the debug tool package wants to 
> install during the Impala Docker image build:
> {code}
> 01:10:01.541 #6 ERROR: process "/bin/sh -c /root/install_os_packages.sh 
> ${INSTALL_OS_PACKAGES_ARGS}" did not complete successfully: exit code: 1
> 01:10:01.541 ------
> 01:10:01.541  > [3/7] RUN /root/install_os_packages.sh --install-debug-tools 
> full:
> 01:10:01.541 27.22 No matches found for the following disable plugin 
> patterns: subscription-manager
> 01:10:01.541 27.31 Last metadata expiration check: 0:00:23 ago on Fri Oct 11 
> 20:36:27 2024.
> 01:10:01.541 27.37 Package less-590-1.el9_0.x86_64 is already installed.
> 01:10:01.541 27.37 Package which-2.21-29.el9.x86_64 is already installed.
> 01:10:01.541 27.38 Error: 
> 01:10:01.541 27.38  Problem: problem with installed package 
> curl-minimal-7.76.1-23.el9_2.1.x86_64
> 01:10:01.541 27.38   - package curl-minimal-7.76.1-23.el9_2.1.x86_64 
> conflicts with curl provided by curl-7.76.1-29.el9_4.1.x86_64
> 01:10:01.541 27.38   - package curl-minimal-7.76.1-29.el9_4.1.x86_64 
> conflicts with curl provided by curl-7.76.1-29.el9_4.1.x86_64
> 01:10:01.541 27.38   - conflicting requests
> 01:10:01.541 27.38 (try to add '--allowerasing' to command line to replace 
> conflicting packages or '--skip-broken' to skip uninstallable packages or 
> '--nobest' to use not only best candidate packages)
> 01:10:01.541 ------
> 01:10:01.542 Dockerfile:30
> 01:10:01.542 --------------------
> 01:10:01.542   28 |     # in be/ is not cleanly separated from the code that 
> doesn't use JNI.
> 01:10:01.542   29 |     ADD helper/install_os_packages.sh /root
> 01:10:01.542   30 | >>> RUN /root/install_os_packages.sh 
> ${INSTALL_OS_PACKAGES_ARGS}
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to