You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Andrew Onischuk <ao...@hortonworks.com> on 2014/06/13 11:40:25 UTC
Review Request 22555: Nagios installation failed due to incompatible
nagios-plugins version
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/22555/
-----------------------------------------------------------
Review request for Ambari and Vitalyi Brodetskyi.
Bugs: AMBARI-6109
https://issues.apache.org/jira/browse/AMBARI-6109
Repository: ambari
Description
-------
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
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
Re: Review Request 22555: Nagios installation failed due to incompatible
nagios-plugins version
Posted by Vitalyi Brodetskyi <vb...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/22555/#review45602
-----------------------------------------------------------
Ship it!
Ship It!
- Vitalyi Brodetskyi
On June 13, 2014, 9:41 a.m., Andrew Onischuk wrote:
>
> -----------------------------------------------------------
> 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
> -------
>
> 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
>
>
Re: Review Request 22555: Nagios installation failed due to incompatible
nagios-plugins version
Posted by Andrew Onischuk <ao...@hortonworks.com>.
-----------------------------------------------------------
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