Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 08003200D0A for ; Wed, 4 Oct 2017 09:53:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 06C3B1609E2; Wed, 4 Oct 2017 07:53:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2CFDF1609D6 for ; Wed, 4 Oct 2017 09:53:05 +0200 (CEST) Received: (qmail 70152 invoked by uid 500); 4 Oct 2017 07:53:04 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 70143 invoked by uid 99); 4 Oct 2017 07:53:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Oct 2017 07:53:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 54ED8C5549 for ; Wed, 4 Oct 2017 07:53:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id QUF3w0ftdOot for ; Wed, 4 Oct 2017 07:53:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 784095FB2F for ; Wed, 4 Oct 2017 07:53:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9245FE09A6 for ; Wed, 4 Oct 2017 07:53:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 55216242DD for ; Wed, 4 Oct 2017 07:53:00 +0000 (UTC) Date: Wed, 4 Oct 2017 07:53:00 +0000 (UTC) From: "Doroszlai, Attila (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (AMBARI-22127) Package install fails on Debian7 with 'EMPTY_FILE' global variable not defined MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 04 Oct 2017 07:53:06 -0000 [ https://issues.apache.org/jira/browse/AMBARI-22127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Doroszlai, Attila reassigned AMBARI-22127: ------------------------------------------ Assignee: Doroszlai, Attila > 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 > > > *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)