Re: Review Request 48410: Ambari-agent could not successfully restart on non-root after running as root

2016-06-08 Thread Dmitro Lisnichenko

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


Ship it!




Ship It!

- Dmitro Lisnichenko


On June 8, 2016, 3:17 p.m., Andrew Onischuk wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/48410/
> ---
> 
> (Updated June 8, 2016, 3:17 p.m.)
> 
> 
> Review request for Ambari and Dmitro Lisnichenko.
> 
> 
> Bugs: AMBARI-17116
> https://issues.apache.org/jira/browse/AMBARI-17116
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> The issue is caused by restarting ambari-agent and after it is stopped it
> cannot start with:
> 
> 
> 
> Restarting ambari-agent
> Verifying Python version compatibility...
> Using python  /usr/bin/python
> ambari-agent is not running. No PID found at 
> /var/run/ambari-agent/ambari-agent.pid
> Verifying Python version compatibility...
> Using python  /usr/bin/python
> Checking for previously running Ambari Agent...
> Starting ambari-agent
> /usr/sbin/ambari-agent: line 172: /var/log/ambari-agent/ambari-agent.out: 
> Permission denied
> Verifying ambari-agent process status...
> ERROR: ambari-agent start failed. For more details, see 
> /var/log/ambari-agent/ambari-agent.out:
> 
> tail: cannot open ‘/var/log/ambari-agent/ambari-agent.out’ for reading: 
> Permission denied
> 
> Agent out at: /var/log/ambari-agent/ambari-agent.out
> Agent log at: /var/log/ambari-agent/ambari-agent.log
> 
> 
> Diffs
> -
> 
>   ambari-agent/conf/unix/ambari-agent 77b475b 
> 
> Diff: https://reviews.apache.org/r/48410/diff/
> 
> 
> Testing
> ---
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>



Re: Review Request 48410: Ambari-agent could not successfully restart on non-root after running as root

2016-06-08 Thread Andrew Onischuk

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

(Updated June 8, 2016, 12:17 p.m.)


Review request for Ambari and Dmitro Lisnichenko.


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


Repository: ambari


Description
---

The issue is caused by restarting ambari-agent and after it is stopped it
cannot start with:



Restarting ambari-agent
Verifying Python version compatibility...
Using python  /usr/bin/python
ambari-agent is not running. No PID found at 
/var/run/ambari-agent/ambari-agent.pid
Verifying Python version compatibility...
Using python  /usr/bin/python
Checking for previously running Ambari Agent...
Starting ambari-agent
/usr/sbin/ambari-agent: line 172: /var/log/ambari-agent/ambari-agent.out: 
Permission denied
Verifying ambari-agent process status...
ERROR: ambari-agent start failed. For more details, see 
/var/log/ambari-agent/ambari-agent.out:

tail: cannot open ‘/var/log/ambari-agent/ambari-agent.out’ for reading: 
Permission denied

Agent out at: /var/log/ambari-agent/ambari-agent.out
Agent log at: /var/log/ambari-agent/ambari-agent.log


Diffs (updated)
-

  ambari-agent/conf/unix/ambari-agent 77b475b 

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


Testing
---

mvn clean test


Thanks,

Andrew Onischuk



Re: Review Request 48410: Ambari-agent could not successfully restart on non-root after running as root

2016-06-08 Thread Dmitro Lisnichenko

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


Ship it!




Ship It!

- Dmitro Lisnichenko


On June 8, 2016, 3:13 p.m., Andrew Onischuk wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/48410/
> ---
> 
> (Updated June 8, 2016, 3:13 p.m.)
> 
> 
> Review request for Ambari and Dmitro Lisnichenko.
> 
> 
> Bugs: AMBARI-17116
> https://issues.apache.org/jira/browse/AMBARI-17116
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> The issue is caused by restarting ambari-agent and after it is stopped it
> cannot start with:
> 
> 
> 
> Restarting ambari-agent
> Verifying Python version compatibility...
> Using python  /usr/bin/python
> ambari-agent is not running. No PID found at 
> /var/run/ambari-agent/ambari-agent.pid
> Verifying Python version compatibility...
> Using python  /usr/bin/python
> Checking for previously running Ambari Agent...
> Starting ambari-agent
> /usr/sbin/ambari-agent: line 172: /var/log/ambari-agent/ambari-agent.out: 
> Permission denied
> Verifying ambari-agent process status...
> ERROR: ambari-agent start failed. For more details, see 
> /var/log/ambari-agent/ambari-agent.out:
> 
> tail: cannot open ‘/var/log/ambari-agent/ambari-agent.out’ for reading: 
> Permission denied
> 
> Agent out at: /var/log/ambari-agent/ambari-agent.out
> Agent log at: /var/log/ambari-agent/ambari-agent.log
> 
> 
> Diffs
> -
> 
>   ambari-agent/conf/unix/ambari-agent.ini 8f2ab1b 
> 
> Diff: https://reviews.apache.org/r/48410/diff/
> 
> 
> Testing
> ---
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>



Re: Review Request 48410: Ambari-agent could not successfully restart on non-root after running as root

2016-06-08 Thread Andrew Onischuk

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

(Updated June 8, 2016, 12:13 p.m.)


Review request for Ambari and Dmitro Lisnichenko.


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


Repository: ambari


Description (updated)
---

The issue is caused by restarting ambari-agent and after it is stopped it
cannot start with:



Restarting ambari-agent
Verifying Python version compatibility...
Using python  /usr/bin/python
ambari-agent is not running. No PID found at 
/var/run/ambari-agent/ambari-agent.pid
Verifying Python version compatibility...
Using python  /usr/bin/python
Checking for previously running Ambari Agent...
Starting ambari-agent
/usr/sbin/ambari-agent: line 172: /var/log/ambari-agent/ambari-agent.out: 
Permission denied
Verifying ambari-agent process status...
ERROR: ambari-agent start failed. For more details, see 
/var/log/ambari-agent/ambari-agent.out:

tail: cannot open ‘/var/log/ambari-agent/ambari-agent.out’ for reading: 
Permission denied

Agent out at: /var/log/ambari-agent/ambari-agent.out
Agent log at: /var/log/ambari-agent/ambari-agent.log


Diffs
-

  ambari-agent/conf/unix/ambari-agent.ini 8f2ab1b 

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


Testing
---

mvn clean test


Thanks,

Andrew Onischuk



Re: Review Request 48410: Ambari-agent could not successfully restart on non-root after running as root

2016-06-08 Thread Andrew Onischuk

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

(Updated June 8, 2016, 12:10 p.m.)


Review request for Ambari and Dmitro Lisnichenko.


Summary (updated)
-

Ambari-agent could not successfully restart on non-root after running as root


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


Repository: ambari


Description (updated)
---

The issue is caused by QE restarting ambari-agent and after it is stopped it
cannot start with:



Restarting ambari-agent
Verifying Python version compatibility...
Using python  /usr/bin/python
ambari-agent is not running. No PID found at 
/var/run/ambari-agent/ambari-agent.pid
Verifying Python version compatibility...
Using python  /usr/bin/python
Checking for previously running Ambari Agent...
Starting ambari-agent
/usr/sbin/ambari-agent: line 172: /var/log/ambari-agent/ambari-agent.out: 
Permission denied
Verifying ambari-agent process status...
ERROR: ambari-agent start failed. For more details, see 
/var/log/ambari-agent/ambari-agent.out:

tail: cannot open ‘/var/log/ambari-agent/ambari-agent.out’ for reading: 
Permission denied

Agent out at: /var/log/ambari-agent/ambari-agent.out
Agent log at: /var/log/ambari-agent/ambari-agent.log


Diffs
-

  ambari-agent/conf/unix/ambari-agent.ini 8f2ab1b 

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


Testing
---

mvn clean test


Thanks,

Andrew Onischuk