You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Mahadev Konar <ma...@hortonworks.com> on 2013/12/01 18:46:23 UTC

Re: Nagios packages removed during service installation?

Hi Jon,
 This looks like a bug. Can you please open a jira for this?

thanks
mahadev
Mahadev Konar
Hortonworks Inc.
http://hortonworks.com/


On Tue, Nov 26, 2013 at 1:42 PM, Jon Maron <jm...@hortonworks.com> wrote:
> Hi,
>
>   Within the scope of the savanna project we are trying to support a model where Ambari/Hadoop can be installed in a virtualized environment where there is no actual external internet access.  To that end we are going to take a number of approaches, but the first involves going through the process of creating a Virtual Machine (VM) with all of the required packages pre-installed while disabling any configured yum repositories.  In theory, if all packages are installed and there are no enabled yum repositories the installation of the given package should be "skipped" and the installation should proceed.
>
>   When it comes to nagios we pre-installed the following related packages:
>
>   nagios-3.2.3
>   nagios-plugins-1.4.9
>   hdp_mon_nagios_addons
>
>   However, during Ambari service installation (we are using the Ambari REST APIs for interaction with the server), we see the following:
>
> Hdp-nagios::Server::Packages/Hdp::Package::Remove_pkg[hdp_mon_nagios_addons]/Exec[remove_package hdp_mon_nagios_addons]/returns: executed successfully
> notice: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package::Remove_pkg[nagios-plugins]/Exec[remove_package nagios-plugins]/returns: executed successfully
> notice: /Stage[2]/Hdp-nagios::Server::Packages/Exec[remove_package nagios]/returns: executed successfully
> err: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-plugins]/Hdp::Package::Process_pkg[nagios-plugins]/Package[nagios-plugins-1.4.9]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install nagios-plugins-1.4.9' returned 1: Error: Nothing to do
>
>   So it seems that the three pre-installed packages are physically removed by Ambari and are followed by a failed attempt to install the nagios-plugins package (the failure is to be expected - there are no enabled repositories)?  Why would the pre-installed packages be removed?
>
>   These removals are followed by a whole series of warnings:
>
> notice: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-plugins]/Hdp::Package::Process_pkg[nagios-plugins]/Anchor[hdp::package::nagios-plugins::end]: Dependency Package[nagios-plugins-1.4.9] has failures: true
> warning: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-plugins]/Hdp::Package::Process_pkg[nagios-plugins]/Anchor[hdp::package::nagios-plugins::end]: Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-server]/Hdp::Package::Process_pkg[nagios-server]/Anchor[hdp::package::nagios-server::begin]: Dependency Package[nagios-plugins-1.4.9] has failures: true
> warning: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-server]/Hdp::Package::Process_pkg[nagios-server]/Anchor[hdp::package::nagios-server::begin]: Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-server]/Hdp::Package::Process_pkg[nagios-server]/Package[nagios-3.5.0-99]: Dependency Package[nagios-plugins-1.4.9] has failures: true
> warning: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-server]/Hdp::Package::Process_pkg[nagios-server]/Package[nagios-3.5.0-99]: Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-server]/Hdp::Package::Process_pkg[nagios-server]/Package[nagios-www-3.5.0-99]: Dependency Package[nagios-plugins-1.4.9] has failures: true
> warning: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-server]/Hdp::Package::Process_pkg[nagios-server]/Package[nagios-www-3.5.0-99]: Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-server]/Hdp::Package::Process_pkg[nagios-server]/Anchor[hdp::package::nagios-server::end]: Dependency Package[nagios-plugins-1.4.9] has failures: true
> warning: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-server]/Hdp::Package::Process_pkg[nagios-server]/Anchor[hdp::package::nagios-server::end]: Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-devel]/Hdp::Package::Process_pkg[nagios-devel]/Anchor[hdp::package::nagios-devel::begin]: Dependency Package[nagios-plugins-1.4.9] has failures: true
> warning: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-devel]/Hdp::Package::Process_pkg[nagios-devel]/Anchor[hdp::package::nagios-devel::begin]: Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-devel]/Hdp::Package::Process_pkg[nagios-devel]/Package[nagios-devel-3.5.0-99]: Dependency Package[nagios-plugins-1.4.9] has failures: true
> warning: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-devel]/Hdp::Package::Process_pkg[nagios-devel]/Package[nagios-devel-3.5.0-99]: Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-devel]/Hdp::Package::Process_pkg[nagios-devel]/Anchor[hdp::package::nagios-devel::end]: Dependency Package[nagios-plugins-1.4.9] has failures: true
> warning: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-devel]/Hdp::Package::Process_pkg[nagios-devel]/Anchor[hdp::package::nagios-devel::end]: Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-fping]/Hdp::Package::Process_pkg[nagios-fp
> ing]/Anchor[hdp::package::nagios-fping::begin]: Dependency Package[nagios-plugins-1.4.9] has failures: true
> warning: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-fping]/Hdp::Package::Process_pkg[nagios-fping]/Anchor[hdp::package::nagios-fping::begin]: Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-fping]/Hdp::Package::Process_pkg[nagios-fping]/Package[fping]: Dependency Package[nagios-plugins-1.4.9] has failures: true
> warning: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-fping]/Hdp::Package::Process_pkg[nagios-fping]/Package[fping]: Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-fping]/Hdp::Package::Process_pkg[nagios-fping]/Anchor[hdp::package::nagios-fping::end]: Dependency Package[nagios-plugins-1.4.9] has failures: true
> warning: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-fping]/Hdp::Package::Process_pkg[nagios-fping]/Anchor[hdp::package::nagios-fping::end]: Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-addons]/Hdp::Package::Process_pkg[nagios-addons]/Anchor[hdp::package::nagios-addons::begin]: Dependency Package[nagios-plugins-1.4.9] has failures: true
> warning: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-addons]/Hdp::Package::Process_pkg[nagios-addons]/Anchor[hdp::package::nagios-addons::begin]: Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-addons]/Hdp::Package::Process_pkg[nagios-addons]/Package[hdp_mon_nagios_addons]: Dependency Package[nagios-plugins-1.4.9] has failures: true
> warning: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-addons]/Hdp::Package::Process_pkg[nagios-addons]/Package[hdp_mon_nagios_addons]: Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-addons]/Hdp::Package::Process_pkg[nagios-addons]/Anchor[hdp::package::nagios-addons::end]: Dependency Package[nagios-plugins-1.4.9] has failures: true
> warning: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-addons]/Hdp::Package::Process_pkg[nagios-addons]/Anchor[hdp::package::nagios-addons::end]: Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-nagios::Server::Packages/Hdp::Package[nagios-php-pecl-json]/Hdp::Package::Process_pkg[nagios-php-pecl-json]/Anchor[hdp::package::nagios-php-pecl-json::end]: Dependency Package[nagios-plugins-1.4.9] has failures: true
>
>   Your help in understanding this logic is appreciated!
>
> -- Jon
>
>
>
>
> --
> CONFIDENTIALITY NOTICE
> NOTICE: This message is intended for the use of the individual or entity to
> which it is addressed and may contain information that is confidential,
> privileged and exempt from disclosure under applicable law. If the reader
> of this message is not the intended recipient, you are hereby notified that
> any printing, copying, dissemination, distribution, disclosure or
> forwarding of this communication is strictly prohibited. If you have
> received this communication in error, please contact the sender immediately
> and delete it from your system. Thank You.

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.