Support Questions
Find answers, ask questions, and share your expertise

Metrics Monitor Install Issue

Metrics Monitor Install Issue

New Contributor

Hi,

I am trying to do a 5 node cluster install using ambari ( HDP2.5 ) on RHEL 6.8. I am unable to install ambari due to python issues. Any help is highly appreciated.

Thanks,

Mansoor

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py", line 68, in <module>
    AmsMonitor().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py", line 30, in install
    self.install_packages(env)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 567, in install_packages
    retry_count=agent_stack_retry_count)
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, 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 54, in action_install
    self.install_package(package_name, self.resource.use_repos, self.resource.skip_repos)
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py", line 49, in install_package
    self.checked_call_with_retries(cmd, sudo=True, logoutput=self.get_logoutput())
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 83, in checked_call_with_retries
    return self._call_with_retries(cmd, is_checked=True, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 91, in _call_with_retries
    code, out = func(cmd, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 71, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 93, in checked_call
    tries=tries, try_sleep=try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 141, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 294, in _call
    raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of '/usr/bin/yum -d 0 -e 0 -y install ambari-metrics-monitor' returned 1. There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
Error: Package: glibc-2.12-1.149.el6_6.9.i686 (rhel-x86_64-server-6)
           Requires: glibc-common = 2.12-1.149.el6_6.9
           Installed: glibc-common-2.12-1.192.el6.x86_64 (@anaconda-RedHatEnterpriseLinux-201604140956.x86_64/6.8)
               glibc-common = 2.12-1.192.el6
           Available: glibc-common-2.12-1.7.el6.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.7.el6
           Available: glibc-common-2.12-1.7.el6_0.3.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.7.el6_0.3
           Available: glibc-common-2.12-1.7.el6_0.4.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.7.el6_0.4
           Available: glibc-common-2.12-1.7.el6_0.5.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.7.el6_0.5
           Available: glibc-common-2.12-1.25.el6.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.25.el6
           Available: glibc-common-2.12-1.25.el6_1.3.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.25.el6_1.3
           Available: glibc-common-2.12-1.47.el6.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.47.el6
           Available: glibc-common-2.12-1.47.el6_2.5.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.47.el6_2.5
           Available: glibc-common-2.12-1.47.el6_2.9.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.47.el6_2.9
           Available: glibc-common-2.12-1.47.el6_2.12.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.47.el6_2.12
           Available: glibc-common-2.12-1.80.el6.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.80.el6
           Available: glibc-common-2.12-1.80.el6_3.3.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.80.el6_3.3
           Available: glibc-common-2.12-1.80.el6_3.4.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.80.el6_3.4
           Available: glibc-common-2.12-1.80.el6_3.5.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.80.el6_3.5
           Available: glibc-common-2.12-1.80.el6_3.6.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.80.el6_3.6
           Available: glibc-common-2.12-1.80.el6_3.7.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.80.el6_3.7
           Available: glibc-common-2.12-1.107.el6.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.107.el6
           Available: glibc-common-2.12-1.107.el6_4.2.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.107.el6_4.2
           Available: glibc-common-2.12-1.107.el6_4.4.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.107.el6_4.4
           Available: glibc-common-2.12-1.107.el6_4.5.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.107.el6_4.5
           Available: glibc-common-2.12-1.132.el6.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.132.el6
           Available: glibc-common-2.12-1.132.el6_5.1.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.132.el6_5.1
           Available: glibc-common-2.12-1.132.el6_5.2.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.132.el6_5.2
           Available: glibc-common-2.12-1.132.el6_5.3.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.132.el6_5.3
           Available: glibc-common-2.12-1.132.el6_5.4.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.132.el6_5.4
           Available: glibc-common-2.12-1.149.el6.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.149.el6
           Available: glibc-common-2.12-1.149.el6_6.4.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.149.el6_6.4
           Available: glibc-common-2.12-1.149.el6_6.5.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.149.el6_6.5
           Available: glibc-common-2.12-1.149.el6_6.7.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.149.el6_6.7
           Available: glibc-common-2.12-1.149.el6_6.9.x86_64 (rhel-x86_64-server-6)
               glibc-common = 2.12-1.149.el6_6.9
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
3 REPLIES 3

Re: Metrics Monitor Install Issue

@Mansoor k

It looks like the issue is an RPM version mismatch and not really Python. The ambari-metrics monitor requires glibc-common = 2.12-1.149.el6_6.9, but it looks like you have a newer version installed 2.12-1.192.el6.x86_64 So it attempts to see if another version is available, but I think yum is unable to find an appropriate match. It looks like you may be hitting something related to this:

https://bugzilla.redhat.com/show_bug.cgi?id=1318525

What does yum repolist -v show?

Re: Metrics Monitor Install Issue

New Contributor

@Michael Young

You are right. It seems like ambari-metrics monitor requires glibc-common = 2.12-1.149.el6_6.9 and I don't have a newer version.

output of

yum repolist -v

Yum Version: 3.2.29 Setting up Package Sacks pkgsack time: 1.001 Repo-id : HDP-2.5 Repo-name : HDP-2.5 Repo-revision: 1472187847 Repo-updated : Fri Aug 26 08:04:44 2016 Repo-pkgs : 200 Repo-size : 4.7 G Repo-baseurl : http://15.15.15.51/repo/HDP/centos6/ Repo-expire : 21,600 second(s) (last: Tue Sep 20 12:30:48 2016)

Repo-id : HDP-UTILS-1.1.0.21 Repo-name : HDP-UTILS-1.1.0.21 Repo-revision: 1464597407 Repo-updated : Mon May 30 11:36:54 2016 Repo-pkgs : 51 Repo-size : 746 M Repo-baseurl : http://15.15.15.51/repo/HDP-UTILS-1.1.0.21/repos/centos6/ Repo-expire : 21,600 second(s) (last: Tue Sep 20 12:30:48 2016)

Repo-id : Updates-ambari-2.4.0.1 Repo-name : ambari-2.4.0.1 - Updates Repo-revision: 1472586808 Repo-updated : Tue Aug 30 22:53:39 2016 Repo-pkgs : 12 Repo-size : 1.3 G Repo-baseurl : http://15.15.15.51/repo/AMBARI-2.4.0.1/centos6/2.4.0.1-1/ Repo-expire : 21,600 second(s) (last: Tue Sep 20 12:30:48 2016)

Repo-id : rhel-x86_64-server-6 Repo-name : Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64) Repo-updated : Wed Jul 1 23:53:29 2015 Repo-pkgs : 14,965 Repo-size : 25 G Repo-baseurl : http://192.168.125.19/XMLRPC/GET-REQ/rhel-x86_64-server-6 Repo-expire : 21,600 second(s) (last: Tue Sep 20 12:30:48 2016)

Repo-id : rhel-x86_64-server-extras-6 Repo-name : RHEL Server Extras (v. 6 for 64-bit x86_64) Repo-updated : Mon Jun 29 12:39:56 2015 Repo-pkgs : 17 Repo-size : 32 M Repo-baseurl : http://192.168.125.19/XMLRPC/GET-REQ/rhel-x86_64-server-extras-6 Repo-expire : 21,600 second(s) (last: Tue Sep 20 12:31:14 2016)

Repo-id : rhel-x86_64-server-optional-6 Repo-name : RHEL Server Optional (v. 6 64-bit x86_64) Repo-updated : Wed Jul 1 23:53:29 2015 Repo-pkgs : 8,344 Repo-size : 13 G Repo-baseurl : http://192.168.125.19/XMLRPC/GET-REQ/rhel-x86_64-server-optional-6 Repo-expire : 21,600 second(s) (last: Tue Sep 20 12:31:14 2016)

Repo-id : rhel-x86_64-server-rh-common-6 Repo-name : Red Hat Common (for RHEL 6 Server x86_64) Repo-updated : Wed Jul 1 23:53:28 2015 Repo-pkgs : 59 Repo-size : 4.0 G Repo-baseurl : http://192.168.125.19/XMLRPC/GET-REQ/rhel-x86_64-server-rh-common-6 Repo-expire : 21,600 second(s) (last: Tue Sep 20 12:31:18 2016)

Repo-id : rhel-x86_64-server-supplementary-6 Repo-name : RHEL Server Supplementary (v. 6 64-bit x86_64) Repo-updated : Wed Jul 1 23:53:48 2015 Repo-pkgs : 519 Repo-size : 7.9 G Repo-baseurl : http://192.168.125.19/XMLRPC/GET-REQ/rhel-x86_64-server-supplementary-6 Repo-expire : 21,600 second(s) (last: Tue Sep 20 12:31:18 2016)

Repo-id : rhn-tools-rhel-x86_64-server-6 Repo-name : RHN Tools for RHEL (v. 6 for 64-bit x86_64) Repo-updated : Wed Jul 1 23:53:56 2015 Repo-pkgs : 183 Repo-size : 41 M Repo-baseurl : http://192.168.125.19/XMLRPC/GET-REQ/rhn-tools-rhel-x86_64-server-6 Repo-expire : 21,600 second(s) (last: Tue Sep 20 12:31:19 2016)

repolist: 24,350

Re: Metrics Monitor Install Issue

@Mansoor k

It looks like you may be using a Red Hat Satellite server to manage your packages repositories. It looks like they were last updated on July 1. I have two suggestions:

  1. If you manage the satellite server, update the repositories. If you do not manage it, request that it be updated. This is often affected by existing company/organization security/update policies.
  2. You can take the list of RPM dependancies, download the RPMs and manually install them yourself. The downside here is you have servers not quite in line with other servers in your environment. This is not the ideal approach.