adoroszlai opened a new pull request #12: HDDS-3332. Upgrade to Python 3
URL: https://github.com/apache/hadoop-docker-ozone/pull/12
 
 
   ## What changes were proposed in this pull request?
   
   Upgrade Ozone Runner image to Python 3 to get better timeout behavior in 
Robot Framework.  It seems with Python 3 the framework is able to actually kill 
runaway commands.
   
   https://issues.apache.org/jira/browse/HDDS-3332
   
   ## How was this patch tested?
   
   Built image locally:
   
   ```
   docker build -t apache/ozone-runner:python3 .
   ```
   
   Executed `ozone-topology` acceptance test with [a small 
patch](https://github.com/adoroszlai/hadoop-ozone/commit/d3650b49787c36bb7f4c9585fc19e799ef51a169)
 to make the invocation of Robot Framework independent from Python version:
   
   ```
   export OZONE_RUNNER_VERSION=python3
   cd hadoop-ozone/dist/target/ozone-0.6.0-SNAPSHOT/compose/ozone-topology
   ./test.sh
   ```
   
   Verified that Python 3 is being used:
   
   ```
   $ docker-compose exec -T scm ps aux | grep robot
   ... /usr/bin/python3 /usr/local/bin/robot --log NONE -N ozone-topology-basic 
--report NONE --output 
/tmp/smoketest/ozone-topology/result/robot-ozone-topology-ozone-topology-basic-scm.xml
 /opt/hadoop/smoketest/basic/basic.robot
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to