You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Vitalyi Brodetskyi <vb...@hortonworks.com> on 2015/09/22 11:43:14 UTC

Review Request 38616: RU: Failed to install new stack on U14, ambari-agent non root

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

Review request for Ambari and Andrew Onischuk.


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


Repository: ambari


Description
-------

{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}


Diffs
-----

  ambari-common/src/main/python/resource_management/core/providers/package/apt.py 3de42a6 
  ambari-common/src/main/python/resource_management/core/sudo.py 9915ff3 

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


Testing
-------

mvn clean test


Thanks,

Vitalyi Brodetskyi


Re: Review Request 38616: RU: Failed to install new stack on U14, ambari-agent non root

Posted by Andrew Onischuk <ao...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/38616/#review99964
-----------------------------------------------------------

Ship it!


Ship It!

- Andrew Onischuk


On Sept. 22, 2015, 9:43 a.m., Vitalyi Brodetskyi wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/38616/
> -----------------------------------------------------------
> 
> (Updated Sept. 22, 2015, 9:43 a.m.)
> 
> 
> Review request for Ambari and Andrew Onischuk.
> 
> 
> Bugs: AMBARI-13178
>     https://issues.apache.org/jira/browse/AMBARI-13178
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> {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}
> 
> 
> Diffs
> -----
> 
>   ambari-common/src/main/python/resource_management/core/providers/package/apt.py 3de42a6 
>   ambari-common/src/main/python/resource_management/core/sudo.py 9915ff3 
> 
> Diff: https://reviews.apache.org/r/38616/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Vitalyi Brodetskyi
> 
>