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 2021/08/18 17:08:06 UTC

[GitHub] [airflow] rbohlmann1 opened a new issue #17689: Working with multiple instances of Airflow

rbohlmann1 opened a new issue #17689:
URL: https://github.com/apache/airflow/issues/17689


   <!--
   Welcome to Apache Airflow!
   
   Please complete the next sections or the issue will be closed.
   -->
   
   **Apache Airflow version**: v2.1.1
   
   <!-- AIRFLOW VERSION IS MANDATORY -->
   
   **OS**: Ubuntu 20.04.2 LTS
   
   <!-- MANDATORY! You can get it via `cat /etc/oss-release` for example -->
   
   **Apache Airflow Provider versions**: Not relevent
   
   <!-- You can use `pip freeze | grep apache-airflow-providers` (you can leave only relevant ones)-->
   
   **Deployment**: AWS EC2 Instances
   
   <!-- e.g. Virtualenv / VM / Docker-compose / K8S / Helm Chart / Managed Airflow Service -->
   
   <!-- Please include your deployment tools and versions: docker-compose, k8s, helm, etc -->
   
   **What happened**:  When using multiple Airflow instances (i.e. Production instance and a Development instance) the webserver navigation/redirection can send you back to the incorrect instance.
   
   <!-- Please include exact error messages if you can -->
   
   **What you expected to happen**:  I expect when I press "Back" or "Save" within Airflow (for instance, when editing a 'pool' from the GUI' that it goes back to the previous page (of the instance I am working on, not a different instance that I happen to also be working with at the same time).
   
   <!-- What do you think went wrong? -->
   
   **How to reproduce it**:  It seems both webserver instances are using the same cookie or session information.  I am using a single NGINX reverse proxy to access both a dev instance and a prod instance (but with a unique URL to differentiate the two)..
   
   Example URLs: 
    https://ec2-myIP.eu-central-1.compute.amazonaws.com/airflow  [ points to the PRODUCTION instance ]
    https://ec2-myIP.eu-central-1.compute.amazonaws.com/airflow_dev  [ points to the DEVELOPMENT instance ]
   
   Example ISSUE (using pools as an example, but it is not limited there):
   1. On PRODUCTION instance browse to Admin->Pools
   2. On DEVELOPMENT instance browse to Admin->Pools
   3. On PRODUCTION instance click Airflows Back navigation arrow/button
   4. On DEVELOPMENT instance browse to Admin->Pools, edit a pool, then click Airflows Back navigation arrow/button
   
   Note that the "Save" button can redirect back to the other instance as well (just depends).
   
   <!--
   As minimally and precisely as possible. Keep in mind we do not have access to your cluster or dags.
   If this is a UI bug, please provide a screenshot of the bug or a link to a youtube video of the bug in action
   You can include images/screen-casts etc. by drag-dropping the image here.
   -->
   
   **Anything else we need to know**:  Issue occurs frequently when using two independent instances of Airflow.  There are no logs to speak of.
   
   <!--
   How often does this problem occur? Once? Every time etc?
   Any relevant logs to include? Put them here inside fenced
   ``` ``` blocks or inside a foldable details tag if it's long:
   <details><summary>x.log</summary> lots of stuff </details>
   -->
   
   **Are you willing to submit a PR?**
   
   <!---
   This is absolutely not required, but we are happy to guide you in contribution process
   especially if you already have a good understanding of how to implement the fix.
   Airflow is a community-managed project and we love to bring new contributors in.
   Find us in #airflow-how-to-pr on Slack!
    -->
   


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

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] rbohlmann1 commented on issue #17689: Redirect issue when working with multiple instances of Airflow

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


   Tested using Edge browser


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

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] uranusjr edited a comment on issue #17689: Set up multiple Airflow instances under the same domain with different sessions

Posted by GitBox <gi...@apache.org>.
uranusjr edited a comment on issue #17689:
URL: https://github.com/apache/airflow/issues/17689#issuecomment-940908158


   The cookies are natively separated by domain, so this is the natural behaviour for sites configured like this. It is theoratically possible to manually prefix all the cookie keys by the mounted prefix, but from my experience even the largest sites and established applications out there don't generally bother to do this (which is also why many of these things use subdomains for multi-setup routing instead), so I'd say we should just document this as unsupported instead of doing substential refactoring.


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

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] rbohlmann1 commented on issue #17689: Set up multiple Airflow instances under the same domain with different sessions

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


   Thank you for the explanation. 🙂
   
   -- Russell Bohlmann
   ***@***.***
   
   ________________________________
   From: Tzu-ping Chung ***@***.***>
   Sent: Tuesday, October 12, 2021 5:10 AM
   To: apache/airflow ***@***.***>
   Cc: rbohlmann1 ***@***.***>; Author ***@***.***>
   Subject: Re: [apache/airflow] Redirect issue when working with multiple instances of Airflow (#17689)
   
   
   The cookies are natively separated by domain, so this is the natural behaviour for sites configured like this. It is theoratically possible to manually prefix all the cookie keys by the prefix, but from my experience even the largest site and established applications out there don't generally bother to do this (which is also why many of these things use subdomains for multi-setup routing instead), so I'd say we should just document this as unsupported instead of doing substential refactoring.
   
   —
   You are receiving this because you authored the thread.
   Reply to this email directly, view it on GitHub<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fairflow%2Fissues%2F17689%23issuecomment-940908158&data=04%7C01%7C%7Cb8311d6b1cfe401d18f908d98d70eecd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637696338442606374%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=bI5vkDovYaDJTCqui3GwUkNJ3uA6JDd6kA%2F6QLuI2sk%3D&reserved=0>, or unsubscribe<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJJQH2GV6ZXGZGAEX6PO37DUGQJTFANCNFSM5CMPAUFA&data=04%7C01%7C%7Cb8311d6b1cfe401d18f908d98d70eecd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637696338442616368%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=BccUKmIOtWbzUdxYIpf2a0T4eJRstdiqVnfXkpQo6WM%3D&reserved=0>.
   Triage notifications on the go with GitHub Mobile for iOS<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7C%7Cb8311d6b1cfe401d18f908d98d70eecd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637696338442626359%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=0j4h%2BTV%2BMcXPOGgOBvExxTCnJvnVQFbu%2BBD9VVqzp9I%3D&reserved=0> or Android<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7C%7Cb8311d6b1cfe401d18f908d98d70eecd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637696338442626359%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=eToo7fidtBiDQ%2B6fIbEu0OYRj
 4zC7mgoTIaPsbEgFYA%3D&reserved=0>.
   


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

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] uranusjr edited a comment on issue #17689: Set up multiple Airflow instances under the same domain with different sessions

Posted by GitBox <gi...@apache.org>.
uranusjr edited a comment on issue #17689:
URL: https://github.com/apache/airflow/issues/17689#issuecomment-940908158






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

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] rbohlmann1 commented on issue #17689: Set up multiple Airflow instances under the same domain with different sessions

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


   Thank you for the explanation. 🙂
   
   -- Russell Bohlmann
   ***@***.***
   
   ________________________________
   From: Tzu-ping Chung ***@***.***>
   Sent: Tuesday, October 12, 2021 5:10 AM
   To: apache/airflow ***@***.***>
   Cc: rbohlmann1 ***@***.***>; Author ***@***.***>
   Subject: Re: [apache/airflow] Redirect issue when working with multiple instances of Airflow (#17689)
   
   
   The cookies are natively separated by domain, so this is the natural behaviour for sites configured like this. It is theoratically possible to manually prefix all the cookie keys by the prefix, but from my experience even the largest site and established applications out there don't generally bother to do this (which is also why many of these things use subdomains for multi-setup routing instead), so I'd say we should just document this as unsupported instead of doing substential refactoring.
   
   —
   You are receiving this because you authored the thread.
   Reply to this email directly, view it on GitHub<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fairflow%2Fissues%2F17689%23issuecomment-940908158&data=04%7C01%7C%7Cb8311d6b1cfe401d18f908d98d70eecd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637696338442606374%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=bI5vkDovYaDJTCqui3GwUkNJ3uA6JDd6kA%2F6QLuI2sk%3D&reserved=0>, or unsubscribe<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJJQH2GV6ZXGZGAEX6PO37DUGQJTFANCNFSM5CMPAUFA&data=04%7C01%7C%7Cb8311d6b1cfe401d18f908d98d70eecd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637696338442616368%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=BccUKmIOtWbzUdxYIpf2a0T4eJRstdiqVnfXkpQo6WM%3D&reserved=0>.
   Triage notifications on the go with GitHub Mobile for iOS<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7C%7Cb8311d6b1cfe401d18f908d98d70eecd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637696338442626359%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=0j4h%2BTV%2BMcXPOGgOBvExxTCnJvnVQFbu%2BBD9VVqzp9I%3D&reserved=0> or Android<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7C%7Cb8311d6b1cfe401d18f908d98d70eecd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637696338442626359%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=eToo7fidtBiDQ%2B6fIbEu0OYRj
 4zC7mgoTIaPsbEgFYA%3D&reserved=0>.
   


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

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] uranusjr edited a comment on issue #17689: Set up multiple Airflow instances under the same domain with different sessions

Posted by GitBox <gi...@apache.org>.
uranusjr edited a comment on issue #17689:
URL: https://github.com/apache/airflow/issues/17689#issuecomment-940908158


   The cookies are natively separated by domain, so this is the natural behaviour for sites configured like this. It is theoratically possible to manually prefix all the cookie keys by the mounted prefix, but from my experience even the largest site and established applications out there don't generally bother to do this (which is also why many of these things use subdomains for multi-setup routing instead), so I'd say we should just document this as unsupported instead of doing substential refactoring.


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

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] uranusjr commented on issue #17689: Redirect issue when working with multiple instances of Airflow

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


   The cookies are natively separated by domain, so this is the natural behaviour for sites configured like this. It is theoratically possible to manually prefix all the cookie keys by the prefix, but from my experience even the largest site and established applications out there don't generally bother to do this (which is also why many of these things use subdomains for multi-setup routing instead), so I'd say we should just document this as unsupported instead of doing substential refactoring.


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

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org