ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitaly Brodetskyi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-6113) Nagios install fails on SLES due to php5-json not available
Date Fri, 13 Jun 2014 11:23:01 GMT
Vitaly Brodetskyi created AMBARI-6113:
-----------------------------------------

             Summary: Nagios install fails on SLES due to php5-json not available
                 Key: AMBARI-6113
                 URL: https://issues.apache.org/jira/browse/AMBARI-6113
             Project: Ambari
          Issue Type: Bug
          Components: agent
    Affects Versions: 1.6.1
            Reporter: Vitaly Brodetskyi
            Assignee: Vitaly Brodetskyi
            Priority: Critical
             Fix For: 1.6.1


Using SLES 11 SP3 quick-start image on EC2. Doesn't look like php5-json is available, but
php53-json is available.

WORKAROUND:

I modified NAGIOS/metainfo.xml and this worked.

{code}
            <package>
              <name>php5*-json</name>
            </package>
{code}


The original error.


{code}
stderr:   /var/lib/ambari-agent/data/errors-28.txt

2014-06-12 13:03:16,588 - 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
php5-json' returned 104. No provider of 'php5-json' found.

stdout:   /var/lib/ambari-agent/data/output-28.txt

2014-06-12 13:03:03,868 - Repository['HDP-2.1'] {'base_url': 'http://s3.amazonaws.com/dev.hortonworks.com/HDP/suse11/2.x/updates/2.1.3.0',
'action': ['create'], 'components': ['HDP', 'main'], 'repo_template': 'repo_suse_rhel.j2',
'repo_file_name': 'HDP', 'mirror_list': None}
2014-06-12 13:03:03,873 - File['/etc/zypp/repos.d/HDP.repo'] {'content': Template('repo_suse_rhel.j2')}
2014-06-12 13:03:03,874 - Repository['HDP-UTILS-1.1.0.17'] {'base_url': 'http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.17/repos/suse11',
'action': ['create'], 'components': ['HDP', 'main'], 'repo_template': 'repo_suse_rhel.j2',
'repo_file_name': 'HDP-UTILS', 'mirror_list': None}
2014-06-12 13:03:03,877 - File['/etc/zypp/repos.d/HDP-UTILS.repo'] {'content': Template('repo_suse_rhel.j2')}
2014-06-12 13:03:03,877 - Package['unzip'] {}
2014-06-12 13:03:03,956 - Skipping installing existent package unzip
2014-06-12 13:03:03,957 - Package['curl'] {}
2014-06-12 13:03:04,019 - Skipping installing existent package curl
2014-06-12 13:03:04,021 - Execute['mkdir -p /tmp/HDP-artifacts/ ;   curl -kf   --retry 10
http://ip-10-111-150-79.ec2.internal:8080/resources//jdk-7u45-linux-x64.tar.gz -o /tmp/HDP-artifacts//jdk-7u45-linux-x64.tar.gz']
{'environment': ..., 'not_if': 'test -e /usr/jdk64/jdk1.7.0_45/bin/java', 'path': ['/bin',
'/usr/bin/']}
2014-06-12 13:03:04,066 - Skipping Execute['mkdir -p /tmp/HDP-artifacts/ ;   curl -kf   --retry
10 http://ip-10-111-150-79.ec2.internal:8080/resources//jdk-7u45-linux-x64.tar.gz -o /tmp/HDP-artifacts//jdk-7u45-linux-x64.tar.gz']
due to not_if
2014-06-12 13:03:04,067 - Execute['mkdir -p /usr/jdk64 ; cd /usr/jdk64 ; tar -xf /tmp/HDP-artifacts//jdk-7u45-linux-x64.tar.gz
> /dev/null 2>&1'] {'not_if': 'test -e /usr/jdk64/jdk1.7.0_45/bin/java', 'path':
['/bin', '/usr/bin/']}
2014-06-12 13:03:04,110 - Skipping Execute['mkdir -p /usr/jdk64 ; cd /usr/jdk64 ; tar -xf
/tmp/HDP-artifacts//jdk-7u45-linux-x64.tar.gz > /dev/null 2>&1'] due to not_if
2014-06-12 13:03:04,111 - Execute['mkdir -p /tmp/HDP-artifacts/;     curl -kf --retry 10 
   http://ip-10-111-150-79.ec2.internal:8080/resources//UnlimitedJCEPolicyJDK7.zip -o /tmp/HDP-artifacts//UnlimitedJCEPolicyJDK7.zip']
{'environment': ..., 'not_if': 'test -e /tmp/HDP-artifacts//UnlimitedJCEPolicyJDK7.zip', 'ignore_failures':
True, 'path': ['/bin', '/usr/bin/']}
2014-06-12 13:03:04,154 - Skipping Execute['mkdir -p /tmp/HDP-artifacts/;     curl -kf --retry
10     http://ip-10-111-150-79.ec2.internal:8080/resources//UnlimitedJCEPolicyJDK7.zip -o
/tmp/HDP-artifacts//UnlimitedJCEPolicyJDK7.zip'] due to not_if
2014-06-12 13:03:04,155 - Group['hadoop'] {'ignore_failures': False}
2014-06-12 13:03:04,155 - Modifying group hadoop
2014-06-12 13:03:04,202 - Group['users'] {'ignore_failures': False}
2014-06-12 13:03:04,203 - Modifying group users
2014-06-12 13:03:04,250 - Group['users'] {'ignore_failures': False}
2014-06-12 13:03:04,250 - Modifying group users
2014-06-12 13:03:04,297 - User['ambari-qa'] {'gid': 'hadoop', 'ignore_failures': False, 'groups':
[u'users']}
2014-06-12 13:03:04,297 - Modifying user ambari-qa
2014-06-12 13:03:04,369 - File['/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'),
'mode': 0555}
2014-06-12 13:03:04,370 - Execute['/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa
2>/dev/null'] {'not_if': 'test $(id -u ambari-qa) -gt 1000'}
2014-06-12 13:03:04,416 - Skipping Execute['/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa
2>/dev/null'] due to not_if
2014-06-12 13:03:04,417 - Group['nagios'] {'ignore_failures': False}
2014-06-12 13:03:04,417 - Modifying group nagios
2014-06-12 13:03:04,466 - User['nagios'] {'gid': 'nagios', 'ignore_failures': False}
2014-06-12 13:03:04,466 - Modifying user nagios
2014-06-12 13:03:04,524 - User['oozie'] {'gid': 'hadoop', 'ignore_failures': False}
2014-06-12 13:03:04,524 - Modifying user oozie
2014-06-12 13:03:04,583 - User['hcat'] {'gid': 'hadoop', 'ignore_failures': False}
2014-06-12 13:03:04,583 - Modifying user hcat
2014-06-12 13:03:04,640 - User['hcat'] {'gid': 'hadoop', 'ignore_failures': False}
2014-06-12 13:03:04,641 - Modifying user hcat
2014-06-12 13:03:04,697 - User['hive'] {'gid': 'hadoop', 'ignore_failures': False}
2014-06-12 13:03:04,697 - Modifying user hive
2014-06-12 13:03:04,752 - User['yarn'] {'gid': 'hadoop', 'ignore_failures': False}
2014-06-12 13:03:04,753 - Modifying user yarn
2014-06-12 13:03:04,809 - Group['nobody'] {'ignore_failures': False}
2014-06-12 13:03:04,810 - Modifying group nobody
2014-06-12 13:03:04,857 - Group['nobody'] {'ignore_failures': False}
2014-06-12 13:03:04,858 - Modifying group nobody
2014-06-12 13:03:04,905 - User['nobody'] {'gid': 'hadoop', 'ignore_failures': False, 'groups':
[u'nobody']}
2014-06-12 13:03:04,905 - Modifying user nobody
2014-06-12 13:03:04,976 - User['nobody'] {'gid': 'hadoop', 'ignore_failures': False, 'groups':
[u'nobody']}
2014-06-12 13:03:04,977 - Modifying user nobody
2014-06-12 13:03:05,051 - User['hdfs'] {'gid': 'hadoop', 'ignore_failures': False, 'groups':
[u'hadoop']}
2014-06-12 13:03:05,052 - Modifying user hdfs
2014-06-12 13:03:05,107 - User['mapred'] {'gid': 'hadoop', 'ignore_failures': False, 'groups':
[u'hadoop']}
2014-06-12 13:03:05,107 - Modifying user mapred
2014-06-12 13:03:05,163 - User['zookeeper'] {'gid': 'hadoop', 'ignore_failures': False}
2014-06-12 13:03:05,164 - Modifying user zookeeper
2014-06-12 13:03:05,221 - User['tez'] {'gid': 'hadoop', 'ignore_failures': False, 'groups':
[u'users']}
2014-06-12 13:03:05,221 - Modifying user tez
2014-06-12 13:03:05,388 - Package['hdp_mon_nagios_addons'] {'action': ['remove']}
2014-06-12 13:03:05,442 - Skipping removing non-existent package hdp_mon_nagios_addons
2014-06-12 13:03:05,442 - Package['nagios-plugins'] {'action': ['remove']}
2014-06-12 13:03:05,494 - Skipping removing non-existent package nagios-plugins
2014-06-12 13:03:05,494 - Execute['rpm -e --allmatches --nopostun nagios'] {'path': ['/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'],
'ignore_failures': True}
2014-06-12 13:03:05,548 - Skipping failure of Execute['rpm -e --allmatches --nopostun nagios']
due to ignore_failures. Failure reason: Execution of 'rpm -e --allmatches --nopostun nagios'
returned 1. error: package nagios is not installed
2014-06-12 13:03:05,548 - Package['perl'] {}
2014-06-12 13:03:05,604 - Skipping installing existent package perl
2014-06-12 13:03:05,604 - Package['nagios-plugins-1.4.9'] {}
2014-06-12 13:03:05,656 - Installing package nagios-plugins-1.4.9 ('/usr/bin/zypper --quiet
install --auto-agree-with-licenses --no-confirm nagios-plugins-1.4.9')
2014-06-12 13:03:08,030 - Package['nagios-3.5.0-99'] {}
2014-06-12 13:03:08,083 - Installing package nagios-3.5.0-99 ('/usr/bin/zypper --quiet install
--auto-agree-with-licenses --no-confirm nagios-3.5.0-99')
2014-06-12 13:03:10,962 - Package['nagios-www-3.5.0-99'] {}
2014-06-12 13:03:11,015 - Installing package nagios-www-3.5.0-99 ('/usr/bin/zypper --quiet
install --auto-agree-with-licenses --no-confirm nagios-www-3.5.0-99')
2014-06-12 13:03:14,119 - Package['nagios-devel-3.5.0-99'] {}
2014-06-12 13:03:14,172 - Installing package nagios-devel-3.5.0-99 ('/usr/bin/zypper --quiet
install --auto-agree-with-licenses --no-confirm nagios-devel-3.5.0-99')
2014-06-12 13:03:15,195 - Package['fping'] {}
2014-06-12 13:03:15,249 - Skipping installing existent package fping
2014-06-12 13:03:15,250 - Package['hdp_mon_nagios_addons'] {}
2014-06-12 13:03:15,302 - Installing package hdp_mon_nagios_addons ('/usr/bin/zypper --quiet
install --auto-agree-with-licenses --no-confirm hdp_mon_nagios_addons')
2014-06-12 13:03:16,098 - Package['php5-json'] {}
2014-06-12 13:03:16,152 - Installing package php5-json ('/usr/bin/zypper --quiet install --auto-agree-with-licenses
--no-confirm php5-json')
2014-06-12 13:03:16,588 - 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
php5-json' returned 104. No provider of 'php5-json' found.
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message