ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitalyi Brodetskyi" <vbrodets...@hortonworks.com>
Subject Re: Review Request 33682: If /selinux/enforce file exists with value 0 cluster deployment fails
Date Wed, 29 Apr 2015 18:12:25 GMT

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

(Updated Квітень 29, 2015, 6:12 після полудня)


Review request for Ambari, Andrew Onischuk and Sumit Mohanty.


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


Repository: ambari


Description
-------

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}


Diffs (updated)
-----

  ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py
e371b00 
  ambari-server/src/test/python/stacks/2.0.6/hooks/before-START/test_before_start.py bc5f551


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


Testing
-------

mvn clean test


Thanks,

Vitalyi Brodetskyi


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message