ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-18347) Setting fetch_nonlocal_groups to false Can Prevent Services From Starting
Date Thu, 08 Sep 2016 23:38:20 GMT

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

Hadoop QA commented on AMBARI-18347:
------------------------------------

{color:green}+1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12827649/AMBARI-18347.patch
  against trunk revision .

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

    {color:green}+1 tests included{color}.  The patch appears to include 1 new or modified
test files.

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

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

    {color:green}+1 core tests{color}.  The patch passed unit tests in .

Test results: https://builds.apache.org/job/Ambari-trunk-test-patch/8622//testReport/
Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/8622//console

This message is automatically generated.

> Setting fetch_nonlocal_groups to false Can Prevent Services From Starting
> -------------------------------------------------------------------------
>
>                 Key: AMBARI-18347
>                 URL: https://issues.apache.org/jira/browse/AMBARI-18347
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-agent
>    Affects Versions: 2.2.2
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>            Priority: Critical
>             Fix For: trunk
>
>         Attachments: AMBARI-18347.patch
>
>
> When setting the {{cluster-env/fetch_nonlocal_groups}} value to {{false}}, if the {{/etc/group}}
file has an unexpected format, services will fail to start:
> {code}
> Traceback (most recent call last): 
> File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py",
line 35, in <module> 
> BeforeAnyHook().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/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py",
line 29, in hook 
> setup_users() 
> File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/shared_initialization.py",
line 44, in setup_users 
> fetch_nonlocal_groups = params.fetch_nonlocal_groups 
> 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
160, in run 
> self.run_action(resource, action) 
> File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
124, in run_action 
> provider_action() 
> File "/usr/lib/python2.6/site-packages/resource_management/core/providers/accounts.py",
line 51, in action_create 
> if getattr(self.resource, option_name) != None and getattr(self.resource, option_name)
!= attributes[0](self): 
> File "/usr/lib/python2.6/site-packages/resource_management/core/providers/accounts.py",
line 40, in <lambda> 
> groups=(lambda self: self.user_groups, "-G") 
> File "/usr/lib/python2.6/site-packages/resource_management/core/utils.py", line 146,
in decorated 
> v = undecorated(self) 
> File "/usr/lib/python2.6/site-packages/resource_management/core/providers/accounts.py",
line 109, in user_groups 
> group_users = entries[3].split(',') 
> IndexError: list index out of range 
> Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py',
'ANY', '/var/lib/ambari-agent/data/command-9429.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY',
'/var/lib/ambari-agent/data/structured-out-9429.json', 'INFO', '/var/lib/ambari-agent/tmp']
> {code}



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

Mime
View raw message