Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DD5FA10F4B for ; Fri, 13 Jun 2014 09:41:18 +0000 (UTC) Received: (qmail 30633 invoked by uid 500); 13 Jun 2014 09:41:18 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 30605 invoked by uid 500); 13 Jun 2014 09:41:18 -0000 Mailing-List: contact dev-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 dev@ambari.apache.org Received: (qmail 30593 invoked by uid 99); 13 Jun 2014 09:41:18 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jun 2014 09:41:18 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 462091D9CBE; Fri, 13 Jun 2014 09:41:09 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6542739143889437534==" MIME-Version: 1.0 Subject: Re: Review Request 22555: Nagios installation failed due to incompatible nagios-plugins version From: "Andrew Onischuk" To: "Vitalyi Brodetskyi" Cc: "Andrew Onischuk" , "Ambari" Date: Fri, 13 Jun 2014 09:41:09 -0000 Message-ID: <20140613094109.22323.53749@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Andrew Onischuk" X-ReviewGroup: Ambari X-ReviewRequest-URL: https://reviews.apache.org/r/22555/ X-Sender: "Andrew Onischuk" References: <20140613094025.22324.42488@reviews.apache.org> In-Reply-To: <20140613094025.22324.42488@reviews.apache.org> Reply-To: "Andrew Onischuk" X-ReviewRequest-Repository: ambari --===============6542739143889437534== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/22555/ ----------------------------------------------------------- (Updated June 13, 2014, 9:41 a.m.) Review request for Ambari and Vitalyi Brodetskyi. Bugs: AMBARI-6109 https://issues.apache.org/jira/browse/AMBARI-6109 Repository: ambari Description (updated) ------- Nagios sever installation failed due to following error: 2014-06-13 00:40:53,984 - Error while executing command 'install': Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 111, in execute method(env) File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/NAGIOS/package/scripts/nagios_server.py", line 32, in install self.install_packages(env) File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 167, in install_packages Package(name) File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148, in __init__ self.env.run() File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 149, in run self.run_action(resource, action) File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 115, in run_action provider_action() File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 40, in action_install self.install_package(package_name) File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/zypper.py", line 36, in install_package shell.checked_call(cmd) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 35, in checked_call return _call(command, logoutput, True, cwd, env, preexec_fn, user, wait_for_finish, timeout) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 90, in _call raise Fail(err_msg) Fail: Execution of '/usr/bin/zypper --quiet install --auto-agree-with-licenses --no-confirm nagios-plugins-1.4.9' returned 4. Problem: cannot install both nagios-plugins-1.4.13-1.35.x86_64 and nagios-plugins-1.4.9-1.x86_64 Solution 1: Following actions will be done: downgrade of nagios-plugins-1.4.13-1.35.x86_64 to nagios-plugins-1.4.9-1.x86_64 install nagios-plugins-1.4.9-1.x86_64 (with vendor change) SUSE LINUX Products GmbH, Nuernberg, Germany --> Nagios Plugin Development Group Solution 2: do not ask to install a solvable providing nagios-plugins = 1.4.9 rpm -qa | grep nagios nagios-plugins-1.4.13-1.35 hdp_mon_nagios_addons-1.2.2-1 nagios-3.5.0-99 This is the root cause: 1. ambari deleted all the nagios rpm's 2. ambari installed hdp_mon_nagios_addons, which depends on nagios and nagios-plugins (no version is specified). 3. as a dependencies newer nagios-plugins and nagios get installed. 4. zypper in nagios-plugins-1.4.9 fails not knowing whether to downgrade or not. Diffs ----- contrib/addons/package/rpm/hdp_mon_nagios_addons.spec 490af3e Diff: https://reviews.apache.org/r/22555/diff/ Testing ------- mvn clean test Thanks, Andrew Onischuk --===============6542739143889437534==--