You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/11/11 18:33:01 UTC

[GitHub] [airflow] mjpieters opened a new issue #12289: Web UI: task model Log and All Instances buttons inoperative when _not_ using Kubernetes

mjpieters opened a new issue #12289:
URL: https://github.com/apache/airflow/issues/12289


   **Apache Airflow version**: 2.0.0b2
   
   **Environment**:
   - **Others**: No K8S
   
   **What happened**:
   
   In the The *Logs* and *All Instances* buttons in the task model in the web UI are inoperative when _not_ using Kubernetes.
   
   **What you expected to happen**:
   
   The buttons to have working links. 
   
   The `dag.html` `updateModalUrls()` function [assumes that `buttons.rendered_k8s` is set](https://github.com/apache/airflow/blob/7d5d334857114903783390333e23e07bc9df2e2e/airflow/www/templates/airflow/dag.html#L428-L434), which is not the case when not using K8S.
   
   This then results in an error and the buttons initialised after this point are not wired up:
   
   ```js
   18:28:17.990 Uncaught TypeError: elm is undefined
       updateButtonUrl http://158.101.169.4:8080/tree?dag_id=full_pipeline:1595
       updateModalUrls http://158.101.169.4:8080/tree?dag_id=full_pipeline:1616
       call_modal http://158.101.169.4:8080/tree?dag_id=full_pipeline:1665
       update http://158.101.169.4:8080/tree?dag_id=full_pipeline:1427
       $/< http://158.101.169.4:8080/static/dist/d3.min.js:1
       i http://158.101.169.4:8080/static/dist/d3.min.js:1
       each http://158.101.169.4:8080/static/dist/d3.min.js:3
       Y http://158.101.169.4:8080/static/dist/d3.min.js:1
       each http://158.101.169.4:8080/static/dist/d3.min.js:3
       on http://158.101.169.4:8080/static/dist/d3.min.js:3
       update http://158.101.169.4:8080/tree?dag_id=full_pipeline:1420
       <anonymous> http://158.101.169.4:8080/tree?dag_id=full_pipeline:1339
   tree:1595:7
   ```
   
   The call needs to be protected by a `k8s_or_k8scelery_executor` check.


----------------------------------------------------------------
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



[GitHub] [airflow] mjpieters commented on issue #12289: Web UI: task model Log and All Instances buttons inoperative when _not_ using Kubernetes

Posted by GitBox <gi...@apache.org>.
mjpieters commented on issue #12289:
URL: https://github.com/apache/airflow/issues/12289#issuecomment-726693336


   This is a duplicate of #12254, which was fixed in #12268.


----------------------------------------------------------------
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



[GitHub] [airflow] SDubrulle commented on issue #12289: Web UI: task model Log and All Instances buttons inoperative when _not_ using Kubernetes

Posted by GitBox <gi...@apache.org>.
SDubrulle commented on issue #12289:
URL: https://github.com/apache/airflow/issues/12289#issuecomment-726224387


   I'm experiencing the same thing. Seems to be introduced in the latest beta as I did not have this issue when using the alpha release.


----------------------------------------------------------------
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



[GitHub] [airflow] mjpieters closed issue #12289: Web UI: task model Log and All Instances buttons inoperative when _not_ using Kubernetes

Posted by GitBox <gi...@apache.org>.
mjpieters closed issue #12289:
URL: https://github.com/apache/airflow/issues/12289


   


----------------------------------------------------------------
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