You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hadoop QA (JIRA)" <ji...@apache.org> on 2017/11/22 10:58:01 UTC

[jira] [Commented] (AMBARI-22494) Unable to install the cluster

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

Hadoop QA commented on AMBARI-22494:
------------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12898834/AMBARI-22494_trunk.patch
  against trunk revision .

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:red}-1 tests included{color}.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    {color:green}+1 release audit{color}.  The applied patch does not increase the total number of release audit warnings.

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of javac compiler warnings.

    {color:red}-1 core tests{color}.  The test build failed in [ambari-web|https://builds.apache.org/job/Ambari-trunk-test-patch/12705//artifact/patch-work/testrun_ambari-web.txt] 

Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/12705//console

This message is automatically generated.

> Unable to install the cluster
> -----------------------------
>
>                 Key: AMBARI-22494
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22494
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.6.0
>            Reporter: amarnath reddy pappu
>            Assignee: Andrii Tkach
>         Attachments: AMBARI-22494.patch, AMBARI-22494_trunk.patch
>
>
> Customer has installed Ambari 2.6 and trying to install the cluster. in the hosts page it keeps loading for hostcheck results and never loads/enables Next button.
> It fails out with JS error like below,
> {noformat}
> ## 
> Uncaught TypeError: _hostPackagesData.installedPackages.forEach is not a function 
> at Class.<anonymous> (app.js:40783) 
> at Array.forEach (<anonymous>) 
> at Class.parseHostCheckWarnings (app.js:40746) 
> at Class.getHostInfoSuccessCallback (app.js:41079) 
> at Class.opt.success (app.js:177567) 
> at o (vendor.js:106) 
> at Object.fireWith [as resolveWith] (vendor.js:106) 
> at w (vendor.js:108) 
> ## 
> {noformat}
> If the API response is like below,
> {noformat}
> {
>   "Requests" : {
>     "id" : 18,
>     "inputs" : "{\"jdk_location\":\"https://HOST:8443/resources/\",\"threshold\":\"20\",\"HAS_RESOURCE_FILTERS\":\"true\",\"check_execute_list\":\"last_agent_env_check,installed_packages,existing_repos,transparentHugePage\"}",
>     "request_status" : "COMPLETED"
>   },
>   "tasks" : [
>     {
>       "Tasks" : {
>         "command_detail" : "check_host ACTIONEXECUTE",
>         "error_log" : "/var/lib/ambari-agent/data/errors-178.txt",
>         "host_name" : "host.net",
>         "id" : 178,
>         "status" : "COMPLETED",
>         "stderr" : "2017-11-20 15:53:40,844 - There was an unknown error while checking installed packages and existing repositories: list index out of range\nTraceback (most recent call last):\n  File \"/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py\", line 170, in actionexecute\n    installed_packages, repos = self.execute_existing_repos_and_installed_packages_check(config)\n  File \"/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py\", line 233, in execute_existing_repos_and_installed_packages_check\n    installedPackages = self.pkg_provider.all_installed_packages()\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py\", line 222, in all_installed_packages\n    return self._get_installed_packages(None)\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py\", line 157, in _get_installed_packages\n    packages = self._lookup_packages([AMBARI_SUDO_BINARY, \"yum\", \"list\", \"installed\"], \"Installed Packages\")\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py\", line 191, in _lookup_packages\n    if items[i + 2].find('@') == 0:\nIndexError: list index out of range\nNo handlers could be found for logger \"ambari_agent.HostCheckReportFileHandler\"\nTraceback (most recent call last):\n  File \"/usr/lib/python2.6/site-packages/ambari_agent/HostCheckReportFileHandler.py\", line 74, in writeHostChecksCustomActionsFile\n    items.append(itemDetail['name'])\nTypeError: string indices must be integers, not str",
>         "stdout" : "2017-11-20 15:53:39,422 - Host checks started.\n2017-11-20 15:53:39,422 - Check execute list: last_agent_env_check,installed_packages,existing_repos,transparentHugePage\n2017-11-20 15:53:39,422 - Last Agent Env check started.\n2017-11-20 15:53:39,469 - Last Agent Env check completed successfully.\n2017-11-20 15:53:39,469 - Installed packages and existing repos checks started.\n2017-11-20 15:53:40,844 - There was an unknown error while checking installed packages and existing repositories: list index out of range\nTraceback (most recent call last):\n  File \"/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py\", line 170, in actionexecute\n    installed_packages, repos = self.execute_existing_repos_and_installed_packages_check(config)\n  File \"/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py\", line 233, in execute_existing_repos_and_installed_packages_check\n    installedPackages = self.pkg_provider.all_installed_packages()\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py\", line 222, in all_installed_packages\n    return self._get_installed_packages(None)\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py\", line 157, in _get_installed_packages\n    packages = self._lookup_packages([AMBARI_SUDO_BINARY, \"yum\", \"list\", \"installed\"], \"Installed Packages\")\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py\", line 191, in _lookup_packages\n    if items[i + 2].find('@') == 0:\nIndexError: list index out of range\n2017-11-20 15:53:40,845 - Transparent huge page check started.\n2017-11-20 15:53:40,846 - Transparent huge page check completed.\n2017-11-20 15:53:40,847 - Host checks completed.\n\nCommand completed successfully!\n",
>         "structured_out" : {
>           "installed_packages" : {
>             "exit_code" : 1,
>             "message" : "list index out of range"
>           },
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)