-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/31548/
-----------------------------------------------------------

Review request for Ambari and Myroslav Papirkovskyy.


Bugs: AMBARI-9835
    https://issues.apache.org/jira/browse/AMBARI-9835


Repository: ambari


Description
-------

Steps to reproduce:
Install all services( with HIVE using existing mysql db). 2.2.2.0-2251
Enable HA.
Create repo version 2.2.2.0-2254
Install repo

{code}
Can not install packages.
Traceback (most recent call last):
  File 
"/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", line 
95, in actionexecute
    Package(name, use_repos=list(current_repo_files) if 
OSCheck.is_ubuntu_family() else current_repositories)
  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 152, in run
    self.run_action(resource, action)
  File 
"/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
line 118, in run_action
    provider_action()
  File 
"/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py",
 line 43, in action_install
    self.install_package(package_name, self.resource.use_repos)
  File 
"/usr/lib/python2.6/site-packages/resource_management/core/providers/package/zypper.py",
 line 72, in install_package
    shell.checked_call(cmd, sudo=True, logoutput=self.get_logoutput())
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", 
line 69, in inner
    return function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", 
line 81, in checked_call
    return _call(command, logoutput, True, cwd, env, preexec_fn, user, 
wait_for_finish, timeout, path, sudo, on_new_line)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", 
line 197, in _call
    raise Fail(err_msg)
Fail: Execution of '/usr/bin/zypper --quiet install --auto-agree-with-licenses 
--no-confirm --repo HDP-UTILS-2.2.2.0-2498 --repo HDP-2.2.2.0-2498 mysql' 
returned 104. No provider of 'mysql' found.
{code}


Diffs
-----

  
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params.py
 ebb5cac 
  ambari-server/src/main/resources/custom_actions/scripts/install_packages.py 
e401986 
  ambari-server/src/test/python/custom_actions/TestInstallPackages.py fa2ea6b 

Diff: https://reviews.apache.org/r/31548/diff/


Testing
-------

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Ambari Views ...................................... SUCCESS [3.420s]
[INFO] Ambari Server ..................................... SUCCESS [41.591s]
[INFO] Ambari Agent ...................................... SUCCESS [17.067s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:03.317s
[INFO] Finished at: Fri Feb 27 21:19:08 FET 2015
[INFO] Final Memory: 34M/411M
[INFO] ------------------------------------------------------------------------


Thanks,

Dmitro Lisnichenko

Reply via email to