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


Ship it!




Ship It!

- Sumit Mohanty


On May 10, 2016, 12:41 a.m., Nahappan Somasundaram wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/47147/
> -----------------------------------------------------------
> 
> (Updated May 10, 2016, 12:41 a.m.)
> 
> 
> Review request for Ambari, Andrew Onischuk, Mahadev Konar, and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-16413
>     https://issues.apache.org/jira/browse/AMBARI-16413
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> AMBARI-16413: Ambari server does not start because of permission issues on 
> symbolic links
> 
> ** Issue **
> 
> When setting up ambari-server with a non-root user, ownership change on 
> various log files and other files do not work when those files are in a 
> symbolic linked folder.
> 
> ** Fix **
> When doing a chown -R <folder>, specify the -L option to traverse every 
> symbolic link.
> 
> 
> Diffs
> -----
> 
>   ambari-common/src/main/python/ambari_commons/os_linux.py a64f99a 
> 
> Diff: https://reviews.apache.org/r/47147/diff/
> 
> 
> Testing
> -------
> 
> ** 1. mvn test -DskipSurefireTests **
> 
> ----------------------------------------------------------------------
> Ran 261 tests in 6.567s
> 
> OK
> ----------------------------------------------------------------------
> Total run:1014
> Total errors:0
> Total failures:0
> OK
> INFO: AMBARI_SERVER_LIB is not set, using default /usr/lib/ambari-server
> INFO: Return code from stack upgrade command, retcode = 0
> StackAdvisor implementation for stack HDP1, version 2.0.6 was not found
> Returning DefaultStackAdvisor implementation
> StackAdvisor implementation for stack XYZ, version 1.0.0 was loaded
> StackAdvisor implementation for stack XYZ, version 1.0.1 was loaded
> Returning XYZ101StackAdvisor implementation
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 1:06.431s
> [INFO] Finished at: Mon May 09 17:35:47 PDT 2016
> [INFO] Final Memory: 61M/984M
> [INFO] 
> ------------------------------------------------------------------------
> 
> ** 2. Manual testing **
> Set up a VM and copy the changed os_linux.py script fromt the build to the 
> VM. Run the following commands:
> rm -rf /var/log/ambari-server
> mkdir /tmp/log/ambari-server
> cd /var/log
> ln -s ambari-server /tmp/log/ambari-server
> 
> Run ambari-server setup and use a non-root user. Verify that the permissions 
> on /var/log/ambari-server and it's contents now have the non-root user as the 
> owner.
> 
> Run ambari-server start and verify that it was successful.
> 
> 
> Thanks,
> 
> Nahappan Somasundaram
> 
>

Reply via email to