You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hadoop QA (JIRA)" <ji...@apache.org> on 2017/10/04 12:38:00 UTC

[jira] [Commented] (AMBARI-22127) Package install fails on Debian7 with 'EMPTY_FILE' global variable not defined

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

Hadoop QA commented on AMBARI-22127:
------------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12890331/AMBARI-22127_trunk.patch
  against trunk revision .

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:green}+1 tests included{color}.  The patch appears to include 2 new or modified test files.

    {color:green}+1 release audit{color}.  The applied patch does not increase the total number of release audit warnings.

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of javac compiler warnings.

    {color:red}-1 core tests{color}.  The test build failed in [ambari-agent|https://builds.apache.org/job/Ambari-trunk-test-patch/12417//artifact/patch-work/testrun_ambari-agent.txt] 

Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/12417//console

This message is automatically generated.

> Package install fails on Debian7 with 'EMPTY_FILE' global variable not defined
> ------------------------------------------------------------------------------
>
>                 Key: AMBARI-22127
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22127
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.6.0
>            Reporter: Vivek Sharma
>            Assignee: Doroszlai, Attila
>            Priority: Blocker
>              Labels: express_upgrade
>             Fix For: 2.6.0
>
>         Attachments: AMBARI-22127_branch-2.6.patch, AMBARI-22127_trunk.patch
>
>
> *STR*
> # Deployed cluster with Ambari version: 2.5.1.0-159 and HDP version: 2.5.6.0-40
> # Upgrade Ambari to 2.6.0.0-173
> # Register HDP Version 2.6.3.0-151 and try to install the packages
> *Result*
> Package install fails with below error
> {code}
> 2017-10-03 05:27:09,454 - Will install packages for repository version 2.6.3.0-151
> 2017-10-03 05:27:09,455 - Repository['HDP-2.6-repo-51'] {'append_to_file': False, 'base_url': 'http://s3.amazonaws.com/dev.hortonworks.com/HDP/debian7/2.x/BUILDS/2.6.3.0-151', 'action': ['create'], 'components': ['HDP', 'main'], 'repo_template': '{{package_type}} {{base_url}} {{components}}', 'repo_file_name': 'ambari-hdp-51', 'mirror_list': None}
> 2017-10-03 05:27:09,460 - File['/tmp/tmpPriIC1'] {'content': 'deb http://s3.amazonaws.com/dev.hortonworks.com/HDP/debian7/2.x/BUILDS/2.6.3.0-151 HDP main'}
> 2017-10-03 05:27:09,461 - Writing File['/tmp/tmpPriIC1'] because contents don't match
> 2017-10-03 05:27:09,461 - File['/tmp/tmpWBU9KY'] {'content': StaticFile('/etc/apt/sources.list.d/ambari-hdp-51.list')}
> 2017-10-03 05:27:09,462 - Writing File['/tmp/tmpWBU9KY'] because contents don't match
> 2017-10-03 05:27:09,462 - File['/etc/apt/sources.list.d/ambari-hdp-51.list'] {'content': StaticFile('/tmp/tmpPriIC1')}
> 2017-10-03 05:27:09,463 - Writing File['/etc/apt/sources.list.d/ambari-hdp-51.list'] because contents don't match
> 2017-10-03 05:27:09,463 - checked_call[['apt-get', 'update', '-qq', '-o', 'Dir::Etc::sourcelist=sources.list.d/ambari-hdp-51.list', '-o', 'Dir::Etc::sourceparts=-', '-o', 'APT::Get::List-Cleanup=0']] {'sudo': True, 'quiet': False}
> 2017-10-03 05:27:10,166 - checked_call returned (0, '')
> 2017-10-03 05:27:10,169 - Repository['HDP-UTILS-1.1.0.21-repo-51'] {'append_to_file': True, 'base_url': 'http://s3.amazonaws.com/dev.hortonworks.com/HDP-UTILS-1.1.0.21/repos/debian7', 'action': ['create'], 'components': ['HDP-UTILS', 'main'], 'repo_template': '{{package_type}} {{base_url}} {{components}}', 'repo_file_name': 'ambari-hdp-51', 'mirror_list': None}
> 2017-10-03 05:27:10,176 - File['/tmp/tmpnjTvFL'] {'content': 'deb http://s3.amazonaws.com/dev.hortonworks.com/HDP/debian7/2.x/BUILDS/2.6.3.0-151 HDP main\ndeb http://s3.amazonaws.com/dev.hortonworks.com/HDP-UTILS-1.1.0.21/repos/debian7 HDP-UTILS main'}
> 2017-10-03 05:27:10,176 - Writing File['/tmp/tmpnjTvFL'] because contents don't match
> 2017-10-03 05:27:10,177 - File['/tmp/tmprvUQz1'] {'content': StaticFile('/etc/apt/sources.list.d/ambari-hdp-51.list')}
> 2017-10-03 05:27:10,178 - Writing File['/tmp/tmprvUQz1'] because contents don't match
> 2017-10-03 05:27:10,179 - File['/etc/apt/sources.list.d/ambari-hdp-51.list'] {'content': StaticFile('/tmp/tmpnjTvFL')}
> 2017-10-03 05:27:10,180 - Writing File['/etc/apt/sources.list.d/ambari-hdp-51.list'] because contents don't match
> 2017-10-03 05:27:10,181 - checked_call[['apt-get', 'update', '-qq', '-o', 'Dir::Etc::sourcelist=sources.list.d/ambari-hdp-51.list', '-o', 'Dir::Etc::sourceparts=-', '-o', 'APT::Get::List-Cleanup=0']] {'sudo': True, 'quiet': False}
> 2017-10-03 05:27:11,641 - checked_call returned (0, '')
> 2017-10-03 05:27:11,642 - call[('ambari-python-wrap', '/usr/bin/hdp-select', 'versions')] {}
> 2017-10-03 05:27:11,681 - call returned (0, '2.5.6.0-40')
> 2017-10-03 05:27:11,683 - Package['hdp-select'] {'retry_on_repo_unavailability': True, 'retry_count': 5, 'use_repos': ['HDP-2.6-repo-51', 'HDP-UTILS-1.1.0.21-repo-51'], 'action': ['upgrade']}
> 2017-10-03 05:27:11,683 - Temporal sources directory was created: /tmp/tmpN_6yuF-ambari-apt-sources-d
> 2017-10-03 05:27:11,683 - Package Manager failed to install packages. Error: global name 'EMPTY_FILE' is not defined
> Traceback (most recent call last):
>   File "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", line 335, in install_packages
>     retry_count=agent_stack_retry_count)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 166, in __init__
>     self.env.run()
>   File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
>     self.run_action(resource, action)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
>     provider_action()
>   File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 57, in action_upgrade
>     self.upgrade_package(package_name, self.resource.use_repos, self.resource.skip_repos)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/apt.py", line 74, in wrapper
>     return function_to_decorate(self, name, *args[2:])
>   File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/apt.py", line 385, in upgrade_package
>     return self.install_package(name, use_repos, skip_repos, is_upgrade)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/apt.py", line 74, in wrapper
>     return function_to_decorate(self, name, *args[2:])
>   File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/apt.py", line 352, in install_package
>     cmd = cmd + ['-o', 'Dir::Etc::SourceList=%s' % EMPTY_FILE]
> NameError: global name 'EMPTY_FILE' is not defined
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)