You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/08/26 14:19:05 UTC

[GitHub] [hadoop-ozone] adoroszlai opened a new pull request #1355: HDDS-4152. Archive container logs for kubernetes check

adoroszlai opened a new pull request #1355:
URL: https://github.com/apache/hadoop-ozone/pull/1355


   ## What changes were proposed in this pull request?
   
   In the last few days _kubernetes_ check has been failing very frequently.  This change let's it save logs from all containers to make it easier to find any problems.  (`docker-compose`-based _acceptance_ check also save container logs.)
   
   https://issues.apache.org/jira/browse/HDDS-4152
   
   ## How was this patch tested?
   
   ```
   $ unzip -t kubernetes.zip
   Archive:  kubernetes.zip
       testing: getting-started.xml      OK
       testing: getting-started/         OK
       testing: log.html                 OK
       testing: minikube.xml             OK
       testing: minikube/                OK
       testing: ozone-dev.xml            OK
       testing: ozone-dev/               OK
       testing: ozone.xml                OK
       testing: ozone/                   OK
       testing: report.html              OK
       testing: summary.html             OK
       testing: getting-started/pod-datanode-0.log   OK
       testing: getting-started/pod-datanode-1.log   OK
       testing: getting-started/pod-datanode-2.log   OK
       testing: getting-started/pod-om-0.log   OK
       testing: getting-started/pod-s3g-0.log   OK
       testing: getting-started/pod-scm-0.log   OK
       testing: minikube/pod-datanode-0.log   OK
       testing: minikube/pod-datanode-1.log   OK
       testing: minikube/pod-datanode-2.log   OK
       testing: minikube/pod-om-0.log    OK
       testing: minikube/pod-s3g-0.log   OK
       testing: minikube/pod-scm-0.log   OK
       testing: ozone-dev/pod-datanode-0.log   OK
       testing: ozone-dev/pod-datanode-1.log   OK
       testing: ozone-dev/pod-datanode-2.log   OK
       testing: ozone-dev/pod-jaeger-0.log   OK
       testing: ozone-dev/pod-om-0.log   OK
       testing: ozone-dev/pod-prometheus-584b7948d9-8fcb6.log   OK
       testing: ozone-dev/pod-s3g-0.log   OK
       testing: ozone-dev/pod-scm-0.log   OK
       testing: ozone/pod-datanode-0.log   OK
       testing: ozone/pod-datanode-1.log   OK
       testing: ozone/pod-datanode-2.log   OK
       testing: ozone/pod-om-0.log       OK
       testing: ozone/pod-s3g-0.log      OK
       testing: ozone/pod-scm-0.log      OK
   ```
   
   https://github.com/adoroszlai/hadoop-ozone/runs/1031423764


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org


[GitHub] [hadoop-ozone] adoroszlai commented on pull request #1355: HDDS-4152. Archive container logs for kubernetes check

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on pull request #1355:
URL: https://github.com/apache/hadoop-ozone/pull/1355#issuecomment-681825595


   Thanks @elek for reviewing and committing it.


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org


[GitHub] [hadoop-ozone] elek commented on a change in pull request #1355: HDDS-4152. Archive container logs for kubernetes check

Posted by GitBox <gi...@apache.org>.
elek commented on a change in pull request #1355:
URL: https://github.com/apache/hadoop-ozone/pull/1355#discussion_r478259606



##########
File path: hadoop-ozone/dist/src/main/k8s/examples/testlib.sh
##########
@@ -77,6 +77,13 @@ start_k8s_env() {
    wait_for_startup
 }
 
+get_logs() {
+  mkdir -p logs
+  for pod in $(kubectl get pods -o custom-columns=NAME:.metadata.name | tail -n +2); do

Review comment:
       It's a shame that we have no better solution. We can do `kubectl logs -l app=ozone` but it will fail when we add setup with more apps (like ozone + spark).
   
   FTR: locally I use https://github.com/wercker/stern and it works well (but this loop is easier.)




----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org


[GitHub] [hadoop-ozone] elek merged pull request #1355: HDDS-4152. Archive container logs for kubernetes check

Posted by GitBox <gi...@apache.org>.
elek merged pull request #1355:
URL: https://github.com/apache/hadoop-ozone/pull/1355


   


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org