You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/05/02 07:15:00 UTC

[jira] [Commented] (AMBARI-23717) Stack installation command didn't fail properly when installed package didn't present in repository

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

Hudson commented on AMBARI-23717:
---------------------------------

SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #9161 (See [https://builds.apache.org/job/Ambari-trunk-Commit/9161/])
AMBARI-23717 Stack installation command didn't fail properly when (hapy.lestat: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=010e4a77ddd640201f01a3f5335acf2ca32e9367])
* (edit) ambari-common/src/main/python/ambari_commons/repo_manager/generic_manager.py
* (edit) ambari-common/src/main/python/ambari_commons/repo_manager/apt_manager.py
* (edit) ambari-common/src/main/python/resource_management/libraries/script/script.py
* (edit) ambari-common/src/main/python/ambari_commons/repo_manager/yum_manager.py
* (edit) ambari-common/src/main/python/ambari_commons/repo_manager/zypper_manager.py


> 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
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: 2.7.0
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> 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)