Re: Review Request 38260: Print a traceback when MesosExecutorDriver fails to load.

2015-09-10 Thread Aurora ReviewBot

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


Master (98f692d) is green with this patch.
  ./build-support/jenkins/build.sh

However, it appears that it might lack test coverage.

I will refresh this build result if you post a review containing "@ReviewBot 
retry"

- Aurora ReviewBot


On Sept. 10, 2015, 11:53 p.m., Bill Farner wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/38260/
> ---
> 
> (Updated Sept. 10, 2015, 11:53 p.m.)
> 
> 
> Review request for Aurora and Steve Niemitz.
> 
> 
> Repository: aurora
> 
> 
> Description
> ---
> 
> This is especially useful when running docker-based tasks, as there are image 
> dependencies.  See https://issues.apache.org/jira/browse/AURORA-1487 for an 
> example.
> 
> 
> Diffs
> -
> 
>   src/main/python/apache/aurora/executor/bin/thermos_executor_main.py 
> b3e8bf1e924999306e0b8a1314273b22c51028e7 
> 
> Diff: https://reviews.apache.org/r/38260/diff/
> 
> 
> Testing
> ---
> 
> Produced a useful error in a docker image:
> ```
> Traceback (most recent call last):
>   File 
> "/thermos_executor/apache/aurora/executor/bin/thermos_executor_main.py", line 
> 41, in 
> from mesos.native import MesosExecutorDriver
>   File 
> "/root/.pex/install/mesos.native-0.23.0-py2.7-linux-x86_64.egg.eb60011deb59722e3835f7a7cfc48d14dc3b104a/mesos.native-0.23.0-py2.7-linux-x86_64.egg/mesos/native/__init__.py",
>  line 17, in 
> from ._mesos import MesosExecutorDriverImpl
> ImportError: libcurl-nss.so.4: cannot open shared object file: No such file 
> or directory
> ```
> 
> 
> Thanks,
> 
> Bill Farner
> 
>



Re: Review Request 38260: Print a traceback when MesosExecutorDriver fails to load.

2015-09-10 Thread Maxim Khutornenko

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

Ship it!


Ship It!

- Maxim Khutornenko


On Sept. 10, 2015, 11:53 p.m., Bill Farner wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/38260/
> ---
> 
> (Updated Sept. 10, 2015, 11:53 p.m.)
> 
> 
> Review request for Aurora and Steve Niemitz.
> 
> 
> Repository: aurora
> 
> 
> Description
> ---
> 
> This is especially useful when running docker-based tasks, as there are image 
> dependencies.  See https://issues.apache.org/jira/browse/AURORA-1487 for an 
> example.
> 
> 
> Diffs
> -
> 
>   src/main/python/apache/aurora/executor/bin/thermos_executor_main.py 
> b3e8bf1e924999306e0b8a1314273b22c51028e7 
> 
> Diff: https://reviews.apache.org/r/38260/diff/
> 
> 
> Testing
> ---
> 
> Produced a useful error in a docker image:
> ```
> Traceback (most recent call last):
>   File 
> "/thermos_executor/apache/aurora/executor/bin/thermos_executor_main.py", line 
> 41, in 
> from mesos.native import MesosExecutorDriver
>   File 
> "/root/.pex/install/mesos.native-0.23.0-py2.7-linux-x86_64.egg.eb60011deb59722e3835f7a7cfc48d14dc3b104a/mesos.native-0.23.0-py2.7-linux-x86_64.egg/mesos/native/__init__.py",
>  line 17, in 
> from ._mesos import MesosExecutorDriverImpl
> ImportError: libcurl-nss.so.4: cannot open shared object file: No such file 
> or directory
> ```
> 
> 
> Thanks,
> 
> Bill Farner
> 
>



Re: Review Request 38260: Print a traceback when MesosExecutorDriver fails to load.

2015-09-10 Thread Bill Farner

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

(Updated Sept. 10, 2015, 4:53 p.m.)


Review request for Aurora and Steve Niemitz.


Repository: aurora


Description
---

This is especially useful when running docker-based tasks, as there are image 
dependencies.  See https://issues.apache.org/jira/browse/AURORA-1487 for an 
example.


Diffs (updated)
-

  src/main/python/apache/aurora/executor/bin/thermos_executor_main.py 
b3e8bf1e924999306e0b8a1314273b22c51028e7 

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


Testing
---

Produced a useful error in a docker image:
```
Traceback (most recent call last):
  File "/thermos_executor/apache/aurora/executor/bin/thermos_executor_main.py", 
line 41, in 
from mesos.native import MesosExecutorDriver
  File 
"/root/.pex/install/mesos.native-0.23.0-py2.7-linux-x86_64.egg.eb60011deb59722e3835f7a7cfc48d14dc3b104a/mesos.native-0.23.0-py2.7-linux-x86_64.egg/mesos/native/__init__.py",
 line 17, in 
from ._mesos import MesosExecutorDriverImpl
ImportError: libcurl-nss.so.4: cannot open shared object file: No such file or 
directory
```


Thanks,

Bill Farner



Re: Review Request 38260: Print a traceback when MesosExecutorDriver fails to load.

2015-09-10 Thread Bill Farner


> On Sept. 10, 2015, 10:05 a.m., Zameer Manji wrote:
> > src/main/python/apache/aurora/executor/bin/thermos_executor_main.py, line 43
> > 
> >
> > I think this should go to stderr like logging and other diagnostic 
> > information. You can do this by adding the `file` parameter to print and 
> > passing in `sys.stderr`.

Done.


- Bill


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


On Sept. 10, 2015, 9:30 a.m., Bill Farner wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/38260/
> ---
> 
> (Updated Sept. 10, 2015, 9:30 a.m.)
> 
> 
> Review request for Aurora and Steve Niemitz.
> 
> 
> Repository: aurora
> 
> 
> Description
> ---
> 
> This is especially useful when running docker-based tasks, as there are image 
> dependencies.  See https://issues.apache.org/jira/browse/AURORA-1487 for an 
> example.
> 
> 
> Diffs
> -
> 
>   src/main/python/apache/aurora/executor/bin/thermos_executor_main.py 
> b3e8bf1e924999306e0b8a1314273b22c51028e7 
> 
> Diff: https://reviews.apache.org/r/38260/diff/
> 
> 
> Testing
> ---
> 
> Produced a useful error in a docker image:
> ```
> Traceback (most recent call last):
>   File 
> "/thermos_executor/apache/aurora/executor/bin/thermos_executor_main.py", line 
> 41, in 
> from mesos.native import MesosExecutorDriver
>   File 
> "/root/.pex/install/mesos.native-0.23.0-py2.7-linux-x86_64.egg.eb60011deb59722e3835f7a7cfc48d14dc3b104a/mesos.native-0.23.0-py2.7-linux-x86_64.egg/mesos/native/__init__.py",
>  line 17, in 
> from ._mesos import MesosExecutorDriverImpl
> ImportError: libcurl-nss.so.4: cannot open shared object file: No such file 
> or directory
> ```
> 
> 
> Thanks,
> 
> Bill Farner
> 
>



Re: Review Request 38260: Print a traceback when MesosExecutorDriver fails to load.

2015-09-10 Thread Zameer Manji

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

Ship it!



src/main/python/apache/aurora/executor/bin/thermos_executor_main.py (line 43)


I think this should go to stderr like logging and other diagnostic 
information. You can do this by adding the `file` parameter to print and 
passing in `sys.stderr`.


- Zameer Manji


On Sept. 10, 2015, 9:30 a.m., Bill Farner wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/38260/
> ---
> 
> (Updated Sept. 10, 2015, 9:30 a.m.)
> 
> 
> Review request for Aurora and Steve Niemitz.
> 
> 
> Repository: aurora
> 
> 
> Description
> ---
> 
> This is especially useful when running docker-based tasks, as there are image 
> dependencies.  See https://issues.apache.org/jira/browse/AURORA-1487 for an 
> example.
> 
> 
> Diffs
> -
> 
>   src/main/python/apache/aurora/executor/bin/thermos_executor_main.py 
> b3e8bf1e924999306e0b8a1314273b22c51028e7 
> 
> Diff: https://reviews.apache.org/r/38260/diff/
> 
> 
> Testing
> ---
> 
> Produced a useful error in a docker image:
> ```
> Traceback (most recent call last):
>   File 
> "/thermos_executor/apache/aurora/executor/bin/thermos_executor_main.py", line 
> 41, in 
> from mesos.native import MesosExecutorDriver
>   File 
> "/root/.pex/install/mesos.native-0.23.0-py2.7-linux-x86_64.egg.eb60011deb59722e3835f7a7cfc48d14dc3b104a/mesos.native-0.23.0-py2.7-linux-x86_64.egg/mesos/native/__init__.py",
>  line 17, in 
> from ._mesos import MesosExecutorDriverImpl
> ImportError: libcurl-nss.so.4: cannot open shared object file: No such file 
> or directory
> ```
> 
> 
> Thanks,
> 
> Bill Farner
> 
>



Re: Review Request 38260: Print a traceback when MesosExecutorDriver fails to load.

2015-09-10 Thread Aurora ReviewBot

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


Master (98f692d) is green with this patch.
  ./build-support/jenkins/build.sh

However, it appears that it might lack test coverage.

I will refresh this build result if you post a review containing "@ReviewBot 
retry"

- Aurora ReviewBot


On Sept. 10, 2015, 4:30 p.m., Bill Farner wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/38260/
> ---
> 
> (Updated Sept. 10, 2015, 4:30 p.m.)
> 
> 
> Review request for Aurora and Steve Niemitz.
> 
> 
> Repository: aurora
> 
> 
> Description
> ---
> 
> This is especially useful when running docker-based tasks, as there are image 
> dependencies.  See https://issues.apache.org/jira/browse/AURORA-1487 for an 
> example.
> 
> 
> Diffs
> -
> 
>   src/main/python/apache/aurora/executor/bin/thermos_executor_main.py 
> b3e8bf1e924999306e0b8a1314273b22c51028e7 
> 
> Diff: https://reviews.apache.org/r/38260/diff/
> 
> 
> Testing
> ---
> 
> Produced a useful error in a docker image:
> ```
> Traceback (most recent call last):
>   File 
> "/thermos_executor/apache/aurora/executor/bin/thermos_executor_main.py", line 
> 41, in 
> from mesos.native import MesosExecutorDriver
>   File 
> "/root/.pex/install/mesos.native-0.23.0-py2.7-linux-x86_64.egg.eb60011deb59722e3835f7a7cfc48d14dc3b104a/mesos.native-0.23.0-py2.7-linux-x86_64.egg/mesos/native/__init__.py",
>  line 17, in 
> from ._mesos import MesosExecutorDriverImpl
> ImportError: libcurl-nss.so.4: cannot open shared object file: No such file 
> or directory
> ```
> 
> 
> Thanks,
> 
> Bill Farner
> 
>



Re: Review Request 38260: Print a traceback when MesosExecutorDriver fails to load.

2015-09-10 Thread Bill Farner


> On Sept. 10, 2015, 9:36 a.m., Maxim Khutornenko wrote:
> > src/main/python/apache/aurora/executor/bin/thermos_executor_main.py, line 43
> > 
> >
> > why not using log instead?

The log has not been set up at this point IIUC.


- Bill


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


On Sept. 10, 2015, 9:30 a.m., Bill Farner wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/38260/
> ---
> 
> (Updated Sept. 10, 2015, 9:30 a.m.)
> 
> 
> Review request for Aurora and Steve Niemitz.
> 
> 
> Repository: aurora
> 
> 
> Description
> ---
> 
> This is especially useful when running docker-based tasks, as there are image 
> dependencies.  See https://issues.apache.org/jira/browse/AURORA-1487 for an 
> example.
> 
> 
> Diffs
> -
> 
>   src/main/python/apache/aurora/executor/bin/thermos_executor_main.py 
> b3e8bf1e924999306e0b8a1314273b22c51028e7 
> 
> Diff: https://reviews.apache.org/r/38260/diff/
> 
> 
> Testing
> ---
> 
> Produced a useful error in a docker image:
> ```
> Traceback (most recent call last):
>   File 
> "/thermos_executor/apache/aurora/executor/bin/thermos_executor_main.py", line 
> 41, in 
> from mesos.native import MesosExecutorDriver
>   File 
> "/root/.pex/install/mesos.native-0.23.0-py2.7-linux-x86_64.egg.eb60011deb59722e3835f7a7cfc48d14dc3b104a/mesos.native-0.23.0-py2.7-linux-x86_64.egg/mesos/native/__init__.py",
>  line 17, in 
> from ._mesos import MesosExecutorDriverImpl
> ImportError: libcurl-nss.so.4: cannot open shared object file: No such file 
> or directory
> ```
> 
> 
> Thanks,
> 
> Bill Farner
> 
>



Re: Review Request 38260: Print a traceback when MesosExecutorDriver fails to load.

2015-09-10 Thread Maxim Khutornenko

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



src/main/python/apache/aurora/executor/bin/thermos_executor_main.py (line 43)


why not using log instead?


- Maxim Khutornenko


On Sept. 10, 2015, 4:30 p.m., Bill Farner wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/38260/
> ---
> 
> (Updated Sept. 10, 2015, 4:30 p.m.)
> 
> 
> Review request for Aurora and Steve Niemitz.
> 
> 
> Repository: aurora
> 
> 
> Description
> ---
> 
> This is especially useful when running docker-based tasks, as there are image 
> dependencies.  See https://issues.apache.org/jira/browse/AURORA-1487 for an 
> example.
> 
> 
> Diffs
> -
> 
>   src/main/python/apache/aurora/executor/bin/thermos_executor_main.py 
> b3e8bf1e924999306e0b8a1314273b22c51028e7 
> 
> Diff: https://reviews.apache.org/r/38260/diff/
> 
> 
> Testing
> ---
> 
> Produced a useful error in a docker image:
> ```
> Traceback (most recent call last):
>   File 
> "/thermos_executor/apache/aurora/executor/bin/thermos_executor_main.py", line 
> 41, in 
> from mesos.native import MesosExecutorDriver
>   File 
> "/root/.pex/install/mesos.native-0.23.0-py2.7-linux-x86_64.egg.eb60011deb59722e3835f7a7cfc48d14dc3b104a/mesos.native-0.23.0-py2.7-linux-x86_64.egg/mesos/native/__init__.py",
>  line 17, in 
> from ._mesos import MesosExecutorDriverImpl
> ImportError: libcurl-nss.so.4: cannot open shared object file: No such file 
> or directory
> ```
> 
> 
> Thanks,
> 
> Bill Farner
> 
>