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

Hudson commented on AMBARI-14039:
---------------------------------

FAILURE: Integrated in Ambari-branch-2.1 #929 (See 
[https://builds.apache.org/job/Ambari-branch-2.1/929/])
AMBARI-14039. RU install_packages fails on suse (aonishuk) (aonishuk: 
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=f5f129d5e8683fb2b84dca1d459cfe64d2718deb])
* 
ambari-common/src/main/python/resource_management/core/providers/package/zypper.py


> RU install_packages fails on suse
> ---------------------------------
>
>                 Key: AMBARI-14039
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14039
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 2.1.3
>
>
> install_packages for upgrade failed with "Package Manager failed to install
> packages"
>     
>     
>      "stderr" : "No handlers could be found for logger \"root\"\n2015-11-24 
> 03:16:29,089 - Package Manager failed to install packages. Error: global name 
> 'self' is not defined\nTraceback (most recent call last):\n  File 
> \"/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py\", 
> line 310, in install_packages\n    skip_repos=[self.REPO_FILE_NAME_PREFIX + 
> \"*\"] if OSCheck.is_redhat_family() else [])\n  File 
> \"/usr/lib/python2.6/site-packages/resource_management/core/base.py\", line 
> 154, in __init__\n    self.env.run()\n  File 
> \"/usr/lib/python2.6/site-packages/resource_management/core/environment.py\", 
> line 158, in run\n    self.run_action(resource, action)\n  File 
> \"/usr/lib/python2.6/site-packages/resource_management/core/environment.py\", 
> line 121, in run_action\n    provider_action()\n  File 
> \"/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py\",
>  line 49, in action_install\n    self.install_package(package_name, 
> self.resource.use_repos, self.resource.skip_repos)\n  File 
> \"/usr/lib/python2.6/site-packages/resource_management/core/providers/package/zypper.py\",
>  line 58, in install_package\n    active_base_repos = 
> get_active_base_repos()\n  File 
> \"/usr/lib/python2.6/site-packages/resource_management/core/providers/package/zypper.py\",
>  line 41, in get_active_base_repos\n    (code, output) = 
> self.call_until_not_locked(LIST_ACTIVE_REPOS_CMD)\nNameError: global name 
> 'self' is not defined\nTraceback (most recent call last):\n  File 
> \"/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py\", 
> line 431, in <module>\n    InstallPackages().execute()\n  File 
> \"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py\",
>  line 218, in execute\n    method(env)\n  File 
> \"/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py\", 
> line 152, in actionexecute\n    raise Fail(\"Failed to distribute 
> repositories/install packages\")\nresource_management.core.exceptions.Fail: 
> Failed to distribute repositories/install packages",
>         "stdout" : "2015-11-24 03:16:28,050 - Will install packages for 
> repository version 2.3.4.0-3308\n2015-11-24 03:16:28,051 - 
> Repository['HDP-2.3.4.0-3308'] {'append_to_file': False, 'base_url': 
> 'http://s3.amazonaws.com/dev.hortonworks.com/HDP/suse11sp3/2.x/BUILDS/2.3.4.0-3308/',
>  'action': ['create'], 'components': ['HDP', 'main'], 'repo_template': 
> '[{{repo_id}}]\\nname={{repo_id}}\\n{% if mirror_list 
> %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif 
> %}\\n\\npath=/\\nenabled=1\\ngpgcheck=0', 'repo_file_name': 
> 'HDP-2.3.4.0-3308', 'mirror_list': None}\n2015-11-24 03:16:28,060 - 
> File['/etc/zypp/repos.d/HDP-2.3.4.0-3308.repo'] {'content': 
> InlineTemplate(...)}\n2015-11-24 03:16:28,061 - Writing 
> File['/etc/zypp/repos.d/HDP-2.3.4.0-3308.repo'] because contents don't 
> match\n2015-11-24 03:16:28,062 - Repository['HDP-UTILS-2.3.4.0-3308'] 
> {'append_to_file': True, 'base_url': 
> 'http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/suse11sp3', 
> 'action': ['create'], 'components': ['HDP-UTILS', 'main'], 'repo_template': 
> '[{{repo_id}}]\\nname={{repo_id}}\\n{% if mirror_list 
> %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif 
> %}\\n\\npath=/\\nenabled=1\\ngpgcheck=0', 'repo_file_name': 
> 'HDP-2.3.4.0-3308', 'mirror_list': None}\n2015-11-24 03:16:28,066 - 
> File['/etc/zypp/repos.d/HDP-2.3.4.0-3308.repo'] {'content': 
> '[HDP-2.3.4.0-3308]\\nname=HDP-2.3.4.0-3308\\nbaseurl=http://s3.amazonaws.com/dev.hortonworks.com/HDP/suse11sp3/2.x/BUILDS/2.3.4.0-3308/\\n\\npath=/\\nenabled=1\\ngpgcheck=0\\n[HDP-UTILS-2.3.4.0-3308]\\nname=HDP-UTILS-2.3.4.0-3308\\nbaseurl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/suse11sp3\\n\\npath=/\\nenabled=1\\ngpgcheck=0'}\n2015-11-24
>  03:16:28,066 - Writing File['/etc/zypp/repos.d/HDP-2.3.4.0-3308.repo'] 
> because contents don't match\n2015-11-24 03:16:28,114 - Package['fuse'] 
> {}\n2015-11-24 03:16:28,429 - Skipping installation of existing package 
> fuse\n2015-11-24 03:16:28,429 - Package['libfuse2'] {}\n2015-11-24 
> 03:16:28,757 - Skipping installation of existing package libfuse2\n2015-11-24 
> 03:16:29,089 - Package['mahout'] {'use_repos': ['base', 'HDP-2.3.4.0-3308', 
> 'HDP-UTILS-2.3.4.0-3308'], 'skip_repos': []}\n2015-11-24 03:16:29,089 - 
> Package Manager failed to install packages. Error: global name 'self' is not 
> defined\nTraceback (most recent call last):\n  File 
> \"/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py\", 
> line 310, in install_packages\n    skip_repos=[self.REPO_FILE_NAME_PREFIX + 
> \"*\"] if OSCheck.is_redhat_family() else [])\n  File 
> \"/usr/lib/python2.6/site-packages/resource_management/core/base.py\", line 
> 154, in __init__\n    self.env.run()\n  File 
> \"/usr/lib/python2.6/site-packages/resource_management/core/environment.py\", 
> line 158, in run\n    self.run_action(resource, action)\n  File 
> \"/usr/lib/python2.6/site-packages/resource_management/core/environment.py\", 
> line 121, in run_action\n    provider_action()\n  File 
> \"/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py\",
>  line 49, in action_install\n    self.install_package(package_name, 
> self.resource.use_repos, self.resource.skip_repos)\n  File 
> \"/usr/lib/python2.6/site-packages/resource_management/core/providers/package/zypper.py\",
>  line 58, in install_package\n    active_base_repos = 
> get_active_base_repos()\n  File 
> \"/usr/lib/python2.6/site-packages/resource_management/core/providers/package/zypper.py\",
>  line 41, in get_active_base_repos\n    (code, output) = 
> self.call_until_not_locked(LIST_ACTIVE_REPOS_CMD)\nNameError: global name 
> 'self' is not defined\n2015-11-24 03:16:29,471 - Installation of packages 
> failed. Checking if installation was partially complete\n2015-11-24 
> 03:16:29,472 - Old versions: ['2.3.0.0-2557']\n2015-11-24 03:16:29,514 - New 
> versions: ['2.3.0.0-2557']\n2015-11-24 03:16:29,514 - Deltas: set([])",
>     



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

Reply via email to