You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Andrew Onischuk <ao...@hortonworks.com> on 2016/01/13 07:47:24 UTC

Review Request 42242: Ambari agent dir is not recreated if /var/run/ is deleted on non-root agent

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

Review request for Ambari and Dmitro Lisnichenko.


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


Repository: ambari


Description
-------

On VM reboot, /var/run is re-created. But Ambari can't start w/o performing
these commands manually first to re-create the directories.

    
    
    
    mkdir  /var/run/ambari-agent
    chown ambari_qa:root /var/run/ambari-agent
    chmod 755 /var/run/ambari-agent
    service ambari-agent start


Diffs
-----

  ambari-agent/conf/unix/ambari-agent c54af21 
  ambari-agent/src/main/python/ambari_agent/main.py 307424e 

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


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Re: Review Request 42242: Ambari agent dir is not recreated if /var/run/ is deleted on non-root agent

Posted by Dmitro Lisnichenko <dl...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42242/#review114157
-----------------------------------------------------------

Ship it!


Ship It!

- Dmitro Lisnichenko


On Jan. 13, 2016, 8:47 a.m., Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42242/
> -----------------------------------------------------------
> 
> (Updated Jan. 13, 2016, 8:47 a.m.)
> 
> 
> Review request for Ambari and Dmitro Lisnichenko.
> 
> 
> Bugs: AMBARI-14643
>     https://issues.apache.org/jira/browse/AMBARI-14643
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> On VM reboot, /var/run is re-created. But Ambari can't start w/o performing
> these commands manually first to re-create the directories.
> 
>     
>     
>     
>     mkdir  /var/run/ambari-agent
>     chown ambari_qa:root /var/run/ambari-agent
>     chmod 755 /var/run/ambari-agent
>     service ambari-agent start
> 
> 
> Diffs
> -----
> 
>   ambari-agent/conf/unix/ambari-agent c54af21 
>   ambari-agent/src/main/python/ambari_agent/main.py 307424e 
> 
> Diff: https://reviews.apache.org/r/42242/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>