You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/09/22 13:47:04 UTC

[jira] [Commented] (AMBARI-13178) RU: Failed to install new stack on U14, ambari-agent non root

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

Hudson commented on AMBARI-13178:
---------------------------------

SUCCESS: Integrated in Ambari-branch-2.1 #574 (See [https://builds.apache.org/job/Ambari-branch-2.1/574/])
AMBARI-13178. RU: Failed to install new stack on U14, ambari-agent non root.(vbrodetskyi) (vbrodetskyi: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=8d851b51f0276ef79274a31580c18bf8fc0bd82d)
* ambari-common/src/main/python/resource_management/core/sudo.py
* ambari-common/src/main/python/resource_management/core/providers/package/apt.py


> RU: Failed to install new stack on U14, ambari-agent non root
> -------------------------------------------------------------
>
>                 Key: AMBARI-13178
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13178
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.1.2
>            Reporter: Vitaly Brodetskyi
>            Assignee: Vitaly Brodetskyi
>            Priority: Blocker
>             Fix For: 2.1.2
>
>         Attachments: AMBARI-13178.patch
>
>
> {code}
> 2015-09-21 12:31:03,028 - Will install packages for repository version 2.3.2.0-2887
> 2015-09-21 12:31:03,028 - Repository['HDP-2.3.2.0-2887'] {'append_to_file': False, 'base_url': 'http://s3.amazonaws.com/dev.hortonworks.com/HDP/ubuntu14/2.x/BUILDS/2.3.2.0-2887/', 'action': ['create'], 'components': [u'HDP', 'main'], 'repo_template': '{{package_type}} {{base_url}} {{components}}', 'repo_file_name': 'HDP-2.3.2.0-2887', 'mirror_list': None}
> 2015-09-21 12:31:03,037 - File['/tmp/tmp5KFnRX'] {'content': 'deb http://s3.amazonaws.com/dev.hortonworks.com/HDP/ubuntu14/2.x/BUILDS/2.3.2.0-2887/ HDP main'}
> 2015-09-21 12:31:03,099 - Writing File['/tmp/tmp5KFnRX'] because contents don't match
> 2015-09-21 12:31:03,119 - File['/tmp/tmpepnsgD'] {'content': StaticFile('/etc/apt/sources.list.d/HDP-2.3.2.0-2887.list')}
> 2015-09-21 12:31:03,214 - Writing File['/tmp/tmpepnsgD'] because contents don't match
> 2015-09-21 12:31:03,233 - File['/etc/apt/sources.list.d/HDP-2.3.2.0-2887.list'] {'content': StaticFile('/tmp/tmp5KFnRX')}
> 2015-09-21 12:31:03,326 - Writing File['/etc/apt/sources.list.d/HDP-2.3.2.0-2887.list'] because contents don't match
> 2015-09-21 12:31:03,344 - checked_call['apt-get update -qq -o Dir::Etc::sourcelist=sources.list.d/HDP-2.3.2.0-2887.list -o Dir::Etc::sourceparts=- -o APT::Get::List-Cleanup=0'] {'sudo': True, 'quiet': False}
> 2015-09-21 12:31:04,340 - checked_call returned (0, '')
> 2015-09-21 12:31:04,342 - Repository['HDP-UTILS-2.3.2.0-2887'] {'append_to_file': True, 'base_url': 'http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/ubuntu12', 'action': ['create'], 'components': [u'HDP-UTILS', 'main'], 'repo_template': '{{package_type}} {{base_url}} {{components}}', 'repo_file_name': 'HDP-2.3.2.0-2887', 'mirror_list': None}
> 2015-09-21 12:31:04,371 - File['/tmp/tmpf3wFWf'] {'content': 'deb http://s3.amazonaws.com/dev.hortonworks.com/HDP/ubuntu14/2.x/BUILDS/2.3.2.0-2887/ HDP main\ndeb http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/ubuntu12 HDP-UTILS main'}
> 2015-09-21 12:31:04,446 - Writing File['/tmp/tmpf3wFWf'] because contents don't match
> 2015-09-21 12:31:04,468 - File['/tmp/tmpCXmBX9'] {'content': StaticFile('/etc/apt/sources.list.d/HDP-2.3.2.0-2887.list')}
> 2015-09-21 12:31:04,575 - Writing File['/tmp/tmpCXmBX9'] because contents don't match
> 2015-09-21 12:31:04,596 - File['/etc/apt/sources.list.d/HDP-2.3.2.0-2887.list'] {'content': StaticFile('/tmp/tmpf3wFWf')}
> 2015-09-21 12:31:04,675 - Writing File['/etc/apt/sources.list.d/HDP-2.3.2.0-2887.list'] because contents don't match
> 2015-09-21 12:31:04,696 - checked_call['apt-get update -qq -o Dir::Etc::sourcelist=sources.list.d/HDP-2.3.2.0-2887.list -o Dir::Etc::sourceparts=- -o APT::Get::List-Cleanup=0'] {'sudo': True, 'quiet': False}
> 2015-09-21 12:31:05,496 - checked_call returned (0, '')
> 2015-09-21 12:31:50,585 - Package['pig-2-3-.*'] {'use_repos': [u'HDP-2.3.2.0-2887', 'base'], 'skip_repos': []}
> 2015-09-21 12:31:50,588 - Temporal sources directory was created: /tmp/tmp2aVpsb-ambari-apt-sources-d
> 2015-09-21 12:31:50,588 - Temporal sources file will be copied: /tmp/tmp2aVpsb-ambari-apt-sources-d/HDP-2.3.2.0-2887.list
> 2015-09-21 12:31:50,588 - Package Manager failed to install packages. Error: [Errno 13] Permission denied: u'/etc/apt/sources.list.d/HDP-2.3.2.0-2887.list'
> Traceback (most recent call last):
>   File "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", line 234, in install_packages
>     skip_repos=[self.REPO_FILE_NAME_PREFIX + "*"] if OSCheck.is_redhat_family() else [])
>   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 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 45, 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/apt.py", line 51, in wrapper
>     return function_to_decorate(self, name, *args[2:])
>   File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/apt.py", line 73, in install_package
>     shutil.copy(os.path.join(APT_SOURCES_LIST_DIR, repo + '.list'), new_sources_file)
>   File "/usr/lib/python2.7/shutil.py", line 119, in copy
>     copyfile(src, dst)
>   File "/usr/lib/python2.7/shutil.py", line 82, in copyfile
>     with open(src, 'rb') as fsrc:
> IOError: [Errno 13] Permission denied: u'/etc/apt/sources.list.d/HDP-2.3.2.0-2887.list'
> 2015-09-21 12:31:50,589 - Attempting to determine actual version with build number.
> 2015-09-21 12:31:50,589 - Old versions: ['2.3.2.0-2761']
> 2015-09-21 12:31:50,624 - New versions: ['2.3.2.0-2761']
> 2015-09-21 12:31:50,624 - Deltas: set([])
> 2015-09-21 12:31:50,625 - Cannot determine a new actual version installed by using the delta method.
> {code}



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