ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-14811) RU/EU 'Install packages' fail on centos and suse on non-root
Date Wed, 27 Jan 2016 21:36:39 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-14811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15120205#comment-15120205
] 

Hudson commented on AMBARI-14811:
---------------------------------

SUCCESS: Integrated in Ambari-branch-2.2 #256 (See [https://builds.apache.org/job/Ambari-branch-2.2/256/])
AMBARI-14811. RU/EU 'Install packages' fail on centos and suse on (afernandez: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=a3676028ae5ca3f5b44226bee1a91d5cf5154ab8])
* ambari-server/src/test/python/custom_actions/TestInstallPackages.py
* ambari-server/src/main/resources/custom_actions/scripts/install_packages.py


> RU/EU 'Install packages' fail on centos and suse on non-root
> ------------------------------------------------------------
>
>                 Key: AMBARI-14811
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14811
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 2.2.1
>
>         Attachments: AMBARI-14811.patch
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message