Dmytro Grinenko created AMBARI-23717:
----------------------------------------
Summary: Stack installation command didn't fail properly when
installed package didn't present in repository
Key: AMBARI-23717
URL: https://issues.apache.org/jira/browse/AMBARI-23717
Project: Ambari
Issue Type: Bug
Components: ambari-server
Affects Versions: 2.7.0
Reporter: Dmytro Grinenko
Assignee: Dmytro Grinenko
Fix For: 2.7.0
Log output
{code}
2018-04-24 11:34:41,061 - Will install packages for repository version 3.0.0.0
2018-04-24 11:34:41,061 - Repository['HDP-3.0-repo-51'] \{'append_to_file':
False, 'base_url':
'http://s3.amazonaws.com/dev.hortonworks.com/ambari/amazonlinux2/2.x/BUILDS/2.7.0.0-375',
'action': ['create'], 'components': [u'HDP', 'main'], 'repo_template':
'[{{repo_id}}]\nname=\{{repo_id}}\n\{% if mirror_list
%}mirrorlist=\{{mirror_list}}\{% else %}baseurl=\{{base_url}}\{% endif
%}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'ambari-hdp-51',
'mirror_list': None}
2018-04-24 11:34:41,069 - File['/etc/yum.repos.d/ambari-hdp-51.repo']
\{'content':
'[HDP-3.0-repo-51]\nname=HDP-3.0-repo-51\nbaseurl=http://s3.amazonaws.com/dev.hortonworks.com/ambari/amazonlinux2/2.x/BUILDS/2.7.0.0-375\n\npath=/\nenabled=1\ngpgcheck=0'}
2018-04-24 11:34:41,070 - Writing File['/etc/yum.repos.d/ambari-hdp-51.repo']
because contents don't match
2018-04-24 11:34:41,070 - Repository['HDP-3.0-GPL-repo-51'] \{'append_to_file':
True, 'base_url':
'http://s3.amazonaws.com/dev.hortonworks.com/HDP-GPL/centos7/3.x/BUILDS/3.0.0.0-1195',
'action': ['create'], 'components': [u'HDP-GPL', 'main'], 'repo_template':
'[{{repo_id}}]\nname=\{{repo_id}}\n\{% if mirror_list
%}mirrorlist=\{{mirror_list}}\{% else %}baseurl=\{{base_url}}\{% endif
%}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'ambari-hdp-51',
'mirror_list': None}
2018-04-24 11:34:41,074 - File['/etc/yum.repos.d/ambari-hdp-51.repo']
\{'content':
'[HDP-3.0-repo-51]\nname=HDP-3.0-repo-51\nbaseurl=http://s3.amazonaws.com/dev.hortonworks.com/ambari/amazonlinux2/2.x/BUILDS/2.7.0.0-375\n\npath=/\nenabled=1\ngpgcheck=0\n[HDP-3.0-GPL-repo-51]\nname=HDP-3.0-GPL-repo-51\nbaseurl=http://s3.amazonaws.com/dev.hortonworks.com/HDP-GPL/centos7/3.x/BUILDS/3.0.0.0-1195\n\npath=/\nenabled=1\ngpgcheck=0'}
2018-04-24 11:34:41,074 - Writing File['/etc/yum.repos.d/ambari-hdp-51.repo']
because contents don't match
2018-04-24 11:34:41,074 - Repository['HDP-UTILS-1.1.0.22-repo-51']
\{'append_to_file': True, 'base_url':
'http://s3.amazonaws.com/dev.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7',
'action': ['create'], 'components': [u'HDP-UTILS', 'main'], 'repo_template':
'[{{repo_id}}]\nname=\{{repo_id}}\n\{% if mirror_list
%}mirrorlist=\{{mirror_list}}\{% else %}baseurl=\{{base_url}}\{% endif
%}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'ambari-hdp-51',
'mirror_list': None}
2018-04-24 11:34:41,078 - File['/etc/yum.repos.d/ambari-hdp-51.repo']
\{'content':
'[HDP-3.0-repo-51]\nname=HDP-3.0-repo-51\nbaseurl=http://s3.amazonaws.com/dev.hortonworks.com/ambari/amazonlinux2/2.x/BUILDS/2.7.0.0-375\n\npath=/\nenabled=1\ngpgcheck=0\n[HDP-3.0-GPL-repo-51]\nname=HDP-3.0-GPL-repo-51\nbaseurl=http://s3.amazonaws.com/dev.hortonworks.com/HDP-GPL/centos7/3.x/BUILDS/3.0.0.0-1195\n\npath=/\nenabled=1\ngpgcheck=0\n[HDP-UTILS-1.1.0.22-repo-51]\nname=HDP-UTILS-1.1.0.22-repo-51\nbaseurl=http://s3.amazonaws.com/dev.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7\n\npath=/\nenabled=1\ngpgcheck=0'}
2018-04-24 11:34:41,078 - Writing File['/etc/yum.repos.d/ambari-hdp-51.repo']
because contents don't match
2018-04-24 11:34:41,079 - Yum non-completed transactions check passed
2018-04-24 11:34:41,079 - call[('ambari-python-wrap', u'/usr/bin/hdp-select',
'versions')] {}
2018-04-24 11:34:41,106 - call returned (0, '2.6.5.0-263')
2018-04-24 11:34:41,107 - Installing package hdp-select ('/usr/bin/yum -y
install '--disablerepo=*'
--enablerepo=HDP-3.0-GPL-repo-51,HDP-3.0-repo-51,HDP-UTILS-1.1.0.22-repo-51
hdp-select')
2018-04-24 11:34:44,747 - Looking for matching packages in the following
repositories: HDP-3.0-repo-51, HDP-3.0-GPL-repo-51, HDP-UTILS-1.1.0.22-repo-51
2018-04-24 11:34:55,803 - Adding fallback repositories:
HDP-UTILS-1.1.0.22-repo-1
2018-04-24 11:34:59,364 - Installing package gcc ('/usr/bin/yum -y install gcc')
2018-04-24 11:34:59,954 - Installing package python-kerberos ('/usr/bin/yum -y
install python-kerberos')
2018-04-24 11:35:01,097 - No package found for
hadoop_${stack_version}(hadoop_(\d|_)+$)
2018-04-24 11:35:01,097 - Installing package None ('/usr/bin/yum -y install ''')
2018-04-24 11:35:01,099 - No package found for
hadoop_${stack_version}-client(hadoop_(\d|_)+-client$)
2018-04-24 11:35:01,099 - Installing package None ('/usr/bin/yum -y install ''')
2018-04-24 11:35:01,099 - Installing package snappy ('/usr/bin/yum -y install
snappy')
2018-04-24 11:35:01,724 - Installing package snappy-devel ('/usr/bin/yum -y
install snappy-devel')
2018-04-24 11:35:02,713 - No package found for
hadoop_${stack_version}-libhdfs(hadoop_(\d|_)+-libhdfs$)
2018-04-24 11:35:02,713 - Installing package None ('/usr/bin/yum -y install ''')
2018-04-24 11:35:02,715 - No package found for
hadoop_${stack_version}-mapreduce(hadoop_(\d|_)+-mapreduce$)
2018-04-24 11:35:02,715 - Installing package None ('/usr/bin/yum -y install ''')
2018-04-24 11:35:02,716 - No package found for
tez_${stack_version}(tez_(\d|_)+$)
2018-04-24 11:35:02,716 - Installing package None ('/usr/bin/yum -y install ''')
2018-04-24 11:35:02,717 - No package found for
zookeeper_${stack_version}(zookeeper_(\d|_)+$)
2018-04-24 11:35:02,718 - Installing package None ('/usr/bin/yum -y install ''')
2018-04-24 11:35:02,719 - No package found for
zookeeper_${stack_version}-server(zookeeper_(\d|_)+-server$)
2018-04-24 11:35:02,719 - Installing package None ('/usr/bin/yum -y install ''')
2018-04-24 11:35:02,720 - No package found for
hadoop_${stack_version}-yarn(hadoop_(\d|_)+-yarn$)
2018-04-24 11:35:02,720 - Installing package None ('/usr/bin/yum -y install ''')
2018-04-24 11:35:02,721 - No package found for
hadoop_${stack_version}-mapreduce(hadoop_(\d|_)+-mapreduce$)
2018-04-24 11:35:02,722 - Installing package None ('/usr/bin/yum -y install ''')
2018-04-24 11:35:02,723 - No package found for
hadoop_${stack_version}-hdfs(hadoop_(\d|_)+-hdfs$)
2018-04-24 11:35:02,723 - Installing package None ('/usr/bin/yum -y install ''')
2018-04-24 11:35:02,724 - No package found for
hbase_${stack_version}(hbase_(\d|_)+$)
2018-04-24 11:35:02,724 - Installing package None ('/usr/bin/yum -y install ''')
2018-04-24 11:35:04,147 - Attempting to determine actual version with build
number.
2018-04-24 11:35:04,147 - Old versions: ['2.6.5.0-263']
2018-04-24 11:35:04,147 - call[('ambari-python-wrap', u'/usr/bin/hdp-select',
'versions')] {}
2018-04-24 11:35:04,179 - call returned (0, '2.6.5.0-263')
2018-04-24 11:35:04,179 - New versions: ['2.6.5.0-263']
2018-04-24 11:35:04,179 - Deltas: set([])
2018-04-24 11:35:04,179 - Cannot determine actual version installed by checking
the delta between versions before and after installing package
2018-04-24 11:35:04,179 - Will try to find for the actual version by searching
for best possible match in the list of versions installed
2018-04-24 11:35:04,179 - Failure while computing actual version. Error: Could
not determine actual version installed. Try reinstalling packages again.
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py",
line 451, in install_packages
self.compute_actual_version()
File "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py",
line 296, in compute_actual_version
raise Fail(msg)
Fail: Could not determine actual version installed. Try reinstalling packages
again.
Command failed after 1 tries
{code}
No real installation command should be passed, additionally would be great to
add check and info for the user about real issue
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)