Support Questions
Find answers, ask questions, and share your expertise

Upgrade HDP 2.3 to HDP 2.5 in Centos 7.3 failed -- Install target version doesnt work

New Contributor

Hi,

We are performing a upgrade from HDP 2.3.6 to HDP 2.5.3 into a 4 nodes cluster with Centos 7.3. The problem arises when the target installation starts, because the comand "/usr/bin/yum', '-d', '0', '-e', '0', 'check', 'dependencies'" failed.

Here is the output:

-------------------------------------------------------------------------------------------------------------------------------------------------------------

checked_call[['/usr/bin/yum', '-d', '0', '-e', '0', 'check', 'dependencies']] {'sudo': True}

2017-03-15 12:17:58,166 - Could not install packages. Error: Execution of '/usr/bin/yum -d 0 -e 0 check dependencies' returned 1. Error: check ['dependencies']

ipa-client-4.4.0-14.el7.centos.6.x86_64 has installed conflicts freeipa-client: ipa-client-4.4.0-14.el7.centos.6.x86_64

ipa-client-common-4.4.0-14.el7.centos.6.noarch has installed conflicts freeipa-client-common: ipa-client-common-4.4.0-14.el7.centos.6.noarch

ipa-common-4.4.0-14.el7.centos.6.noarch has installed conflicts freeipa-common: ipa-common-4.4.0-14.el7.centos.6.noarch

ipa-python-compat-4.4.0-14.el7.centos.6.noarch has installed conflicts freeipa-python-compat: ipa-python-compat-4.4.0-14.el7.centos.6.noarch

Traceback (most recent call last):

File "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", line 166, in actionexecute

ret_code = self.install_packages(package_list)

File "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", line 400, in install_packages

if not verifyDependencies():

File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/packages_analyzer.py", line 309, in verifyDependencies

code, out = rmf_shell.checked_call(cmd, sudo=True)

File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 71, in inner

result = function(command, **kwargs)

File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 93, in checked_call

tries=tries, try_sleep=try_sleep)

File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 141, in _call_wrapper

result = _call(command, **kwargs_copy)

File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 294, in _call

raise Fail(err_msg)

Fail: Execution of '/usr/bin/yum -d 0 -e 0 check dependencies' returned 1. Error: check ['dependencies']

ipa-client-4.4.0-14.el7.centos.6.x86_64 has installed conflicts freeipa-client: ipa-client-4.4.0-14.el7.centos.6.x86_64

ipa-client-common-4.4.0-14.el7.centos.6.noarch has installed conflicts freeipa-client-common: ipa-client-common-4.4.0-14.el7.centos.6.noarch

ipa-common-4.4.0-14.el7.centos.6.noarch has installed conflicts freeipa-common: ipa-common-4.4.0-14.el7.centos.6.noarch

ipa-python-compat-4.4.0-14.el7.centos.6.noarch has installed conflicts freeipa-python-compat: ipa-python-compat-4.4.0-14.el7.centos.6.noarch

-----------------------------------------------------------------------------------------------------------------------------------------------

We find the following BUG-1370134 in Centos 7:

https://bugzilla.redhat.com/show_bug.cgi?id=1370134

And our question is about:

-Does exist any form to skip the "check dependencies", because the target version is installed into the directory /usr/hdp/2.5.3.0-37?

- Is there any other solution to install the target version?

Thanks in advance!

3 REPLIES 3

Re: Upgrade HDP 2.3 to HDP 2.5 in Centos 7.3 failed -- Install target version doesnt work

Is this an Ambari deployed cluster? Or are you trying to do manual upgrade.

Please follow instructions in the below doc for upgrade from HDP 2.3 to HDP 2.5.3 :

https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_command-line-upgrade/content/ch_upgrade_...

Re: Upgrade HDP 2.3 to HDP 2.5 in Centos 7.3 failed -- Install target version doesnt work

New Contributor

Hi @Namit Maheshwari

It is an Ambari deployed cluster, and we want to perform a rolling upgrade. The doc that you provide us it is not a solution for us, due to as explain into the manual:

"Rolling Upgrade involves complex orchestration as well as side-by-side installation. It is too complex for a manual procedure, and is therefore supported only as an Ambari feature. If you wish to perform a Rolling Upgrade, refer to the Ambari Install instructions to install Ambari, then follow the Ambari Rolling Upgrade instructions, see Ambari Upgrade Guide."

We need to know if someone has managed to upgrade HW 2.3 to HW 2.5 in Centos 7.3 via Ambari and how it has been achieved.

Thanks!

Re: Upgrade HDP 2.3 to HDP 2.5 in Centos 7.3 failed -- Install target version doesnt work

There is a bug in Red hat

https://bugzilla.redhat.com/show_bug.cgi?id=1370134#c17

We did the following work around mentioned in above link and we were able to upgrade

Until this gets fixed for real, I'm using this temporary workaround in our training VMs (which only live for a week at a time).

sed -i "/for creq in pkg.conflicts:/a\                if creq[0].startswith('freeipa'): continue" /usr/lib/python2.7/site-packages/yum/rpmsack.py