----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/42852/#review116585 -----------------------------------------------------------
Ship it! Ship It! - Vitalyi Brodetskyi On Січ. 27, 2016, 2:40 після полудня, Andrew Onischuk wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/42852/ > ----------------------------------------------------------- > > (Updated Січ. 27, 2016, 2:40 після полудня) > > > Review request for Ambari and Vitalyi Brodetskyi. > > > Bugs: AMBARI-14811 > https://issues.apache.org/jira/browse/AMBARI-14811 > > > Repository: ambari > > > Description > ------- > > Live cluster - <http://172.22.95.30:8080/> > > This is probably an infrastructure issue (or RE) but not sure yet > > **Steps:** > > 1. Install Dal M20 cluster with Ambari 2.2.1 > 2. Register HDP 2.4.0.0-137 build > 3. Start package installation > > Result: > Observed below error during package installation ONLY on Ambari server host. A > retry of the operation resulted in same result > > > > > 2016-01-27 11:35:20,841 - Could not install packages. Error: Execution of > '/usr/bin/yum -q clean metadata' returned 1. Skipping unreadable repository > '/etc/yum.repos.d/HDP-2.4.0.0.repo' > Skipping unreadable repository '/etc/yum.repos.d/HDP-UTILS.repo' > Skipping unreadable repository '/etc/yum.repos.d/HDP.repo' > > > [Errno 13] Permission denied: > '/var/cache/yum/x86_64/6/AMBARI.2.2.1-2.x/repomd.xml' > Traceback (most recent call last): > File > "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", > line 150, in actionexecute > ret_code = self.install_packages(package_list) > File > "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", > line 360, in install_packages > self._clear_package_manager_cache() > File > "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", > line 182, in _clear_package_manager_cache > Execute(package_manager_cmd, logoutput=False) > File > "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line > 154, in __init__ > self.env.run() > File > "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", > line 158, in run > self.run_action(resource, action) > File > "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", > line 121, in run_action > provider_action() > File > "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", > line 238, in action_run > tries=self.resource.tries, try_sleep=self.resource.try_sleep) > File > "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line > 70, in inner > result = function(command, **kwargs) > File > "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line > 92, in checked_call > tries=tries, try_sleep=try_sleep) > File > "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line > 140, in _call_wrapper > result = _call(command, **kwargs_copy) > File > "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line > 291, in _call > raise Fail(err_msg) > Fail: Execution of '/usr/bin/yum -q clean metadata' returned 1. Skipping > unreadable repository '/etc/yum.repos.d/HDP-2.4.0.0.repo' > Skipping unreadable repository '/etc/yum.repos.d/HDP-UTILS.repo' > Skipping unreadable repository '/etc/yum.repos.d/HDP.repo' > > > [Errno 13] Permission denied: > '/var/cache/yum/x86_64/6/AMBARI.2.2.1-2.x/repomd.xml' > Traceback (most recent call last): > File > "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", > line 497, in <module> > InstallPackages().execute() > File > "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", > line 219, in execute > method(env) > File > "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", > line 163, in actionexecute > raise Fail("Failed to distribute repositories/install packages") > resource_management.core.exceptions.Fail: Failed to distribute > repositories/install packages > > > When I manually changed the permission of > /var/cache/yum/x86_64/6/AMBARI.2.2.1-2.x/repomd.xml file to 777 and retry, > package installation was successful on Ambari server host > > Note - This issue was not seen in last run on Cent OS6 > > > Diffs > ----- > > ambari-server/src/main/resources/custom_actions/scripts/install_packages.py > f68e3b1 > ambari-server/src/test/python/custom_actions/TestInstallPackages.py 59aab44 > > Diff: https://reviews.apache.org/r/42852/diff/ > > > Testing > ------- > > mvn clean test > > > Thanks, > > Andrew Onischuk > >