ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yusaku Sako (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-10841) If selinux is disabled via /etc/selinux/config, cluster deployment fails
Date Thu, 07 May 2015 00:33:59 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-10841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Yusaku Sako updated AMBARI-10841:
---------------------------------
    Description: 
If selinux is disabled via /etc/selinux/config, then service starts fail with the error:

{noformat}
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 214, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py",
line 32, in hook
    setup_hadoop()
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py",
line 32, in setup_hadoop
    sudo=True,
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148, 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/system.py", line
274, in action_run
    raise ex
Fail: Execution of 'setenforce 0' returned 1. setenforce: SELinux is disabled
{noformat}

To repro, edit /etc/selinux/config and set SELINUX=disabled.  Reboot the host to make this
change effective.
If you run "setenforce 0", you'll see the error above.

  was:
If file {{/selinux/enforce}} exists with value 0, then service starts fail with the error:

{noformat}
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 214, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py",
line 32, in hook
    setup_hadoop()
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py",
line 32, in setup_hadoop
    sudo=True,
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148, 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/system.py", line
274, in action_run
    raise ex
Fail: Execution of 'setenforce 0' returned 1. setenforce: SELinux is disabled
{noformat}


> If selinux is disabled via /etc/selinux/config, cluster deployment fails
> ------------------------------------------------------------------------
>
>                 Key: AMBARI-10841
>                 URL: https://issues.apache.org/jira/browse/AMBARI-10841
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Vitaly Brodetskyi
>            Assignee: Vitaly Brodetskyi
>            Priority: Critical
>             Fix For: 2.1.0
>
>         Attachments: AMBARI-10841.patch
>
>
> If selinux is disabled via /etc/selinux/config, then service starts fail with the error:
> {noformat}
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 214, in execute
>     method(env)
>   File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py",
line 32, in hook
>     setup_hadoop()
>   File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py",
line 32, in setup_hadoop
>     sudo=True,
>   File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148,
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/system.py",
line 274, in action_run
>     raise ex
> Fail: Execution of 'setenforce 0' returned 1. setenforce: SELinux is disabled
> {noformat}
> To repro, edit /etc/selinux/config and set SELINUX=disabled.  Reboot the host to make
this change effective.
> If you run "setenforce 0", you'll see the error above.



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

Mime
View raw message