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/11/22 10:09:28 UTC
[GitHub] [airflow] abouquet opened a new issue #19739: Unable to create a WinRM Connection with apache-airflow-providers-microsoft-winrm installed
abouquet opened a new issue #19739:
URL: https://github.com/apache/airflow/issues/19739
### Apache Airflow Provider(s)
microsoft-winrm
### Versions of Apache Airflow Providers
![2021-11-22_11h00_15](https://user-images.githubusercontent.com/2518542/142842528-a984d294-fad4-46c5-b773-57915ae58fc4.png)
### Apache Airflow version
2.2.2 (latest released)
### Operating System
Windows Docker WSL2
### Deployment
Docker-Compose
### Deployment details
[airflow.zip](https://github.com/apache/airflow/files/7579975/airflow.zip)
### What happened
Unable to create a WinRM Connection
Provider is installed and viewable on dashboard
![2021-11-22_11h00_15](https://user-images.githubusercontent.com/2518542/142842055-3ade8a0e-61be-4d5f-8317-f41b77de4136.png)
### What you expected to happen
We should be able to create a WinRM Connection on "Admin -> Connections"
![image](https://user-images.githubusercontent.com/2518542/142842196-4a8a77ca-cdf7-4071-98bc-93cebe9c77d9.png)
### How to reproduce
1) Unzip the sample provided on deployment detail part
2) Run `docker-compose up airflow-init`
3) Run `docker-compose up`
4) Go on http://localhost:8080/connection/add => There isn't WinRM connection available on connection template
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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] abouquet commented on issue #19739: Unable to create a WinRM Connection with apache-airflow-providers-microsoft-winrm installed
Posted by GitBox <gi...@apache.org>.
abouquet commented on issue #19739:
URL: https://github.com/apache/airflow/issues/19739#issuecomment-975572425
Have tried to connect on the server using "HTTP" connection type.
It seems test button doesnt pass.
I'm using AD connexion that's why there is a domain in the credential with `SIM\a.bouquet`
```
airflow-airflow-webserver-1 | [2021-11-22 14:09:17,951] {base.py:79} INFO - Using connection to: id: iCl986EL. Host: 192.168.68.43, Port: 5985, Schema: , Login: SIM\a.bouquet, Password: <redacted>,
extra: {}
airflow-airflow-webserver-1 | [2021-11-22 14:09:17,951] {http.py:140} INFO - Sending 'POST' to url: http://192.168.68.43:5985
airflow-airflow-webserver-1 | [2021-11-22 14:09:18,011] {http.py:154} ERROR - HTTP error: Not Found
airflow-airflow-webserver-1 | [2021-11-22 14:09:18,011] {http.py:155} ERROR - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
airflow-airflow-webserver-1 | <HTML><HEAD><TITLE>Not Found</TITLE>
airflow-airflow-webserver-1 | <META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
airflow-airflow-webserver-1 | <BODY><h2>Not Found</h2>
airflow-airflow-webserver-1 | <hr><p>HTTP Error 404. The requested resource is not found.</p>
airflow-airflow-webserver-1 | </BODY></HTML>
airflow-airflow-webserver-1 |
```
Has anyone succeed into configuring a WinRM Provider ?
WinRM is activated and UP on server side
![image](https://user-images.githubusercontent.com/2518542/142876854-21d90af9-6143-4e28-a228-26a06c34eac3.png)
--
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] boring-cyborg[bot] commented on issue #19739: Unable to create a WinRM Connection with apache-airflow-providers-microsoft-winrm installed
Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #19739:
URL: https://github.com/apache/airflow/issues/19739#issuecomment-975359585
Thanks for opening your first issue here! Be sure to follow the issue template!
--
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] abouquet edited a comment on issue #19739: Unable to create a WinRM Connection with apache-airflow-providers-microsoft-winrm installed
Posted by GitBox <gi...@apache.org>.
abouquet edited a comment on issue #19739:
URL: https://github.com/apache/airflow/issues/19739#issuecomment-975416185
I'm not a python developer ;-).
But will check it out if I can go for 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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on issue #19739: Unable to create a WinRM Connection with apache-airflow-providers-microsoft-winrm installed
Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #19739:
URL: https://github.com/apache/airflow/issues/19739#issuecomment-975418967
It should be basically as easy as adding new connection type here (and possibly adding/fixing some tests). https://github.com/apache/airflow/blob/56bdfe7a840c25360d596ca94fd11d2ccfadb4ba/airflow/www/views.py#L3290
--
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] potiuk commented on issue #19739: Unable to create a WinRM Connection with apache-airflow-providers-microsoft-winrm installed
Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #19739:
URL: https://github.com/apache/airflow/issues/19739#issuecomment-975414610
> In that case why don't we name a new connection called "generic connection". Maybe it could improve understanding on when we can use it (and improve documentation of providers that don't need custom conenction
That's a good feature to add. Can you add another feature request for it please ? Or maybe even straight add PR - for that - that's a simple feature to add, no need to raise an issue for 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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on issue #19739: Unable to create a WinRM Connection with apache-airflow-providers-microsoft-winrm installed
Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #19739:
URL: https://github.com/apache/airflow/issues/19739#issuecomment-975601978
Test button only works for connections that support it - in this case It tries to run "HTTP" request - this is one of the reasons why you might want to
a) implement test functionaliy in WinRMConnection and make it works in customized WinRm connection
b) implement Generic connection - then the test buttom will not appear there.
--
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] abouquet commented on issue #19739: Unable to create a WinRM Connection with apache-airflow-providers-microsoft-winrm installed
Posted by GitBox <gi...@apache.org>.
abouquet commented on issue #19739:
URL: https://github.com/apache/airflow/issues/19739#issuecomment-975411333
Ok thanks for your answer !
In that case why don't we name a new connection called "generic connection".
Maybe it could improve understanding on when we can use it (and improve documentation of providers that don't need custom conenction
--
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] potiuk commented on issue #19739: Unable to create a WinRM Connection with apache-airflow-providers-microsoft-winrm installed
Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #19739:
URL: https://github.com/apache/airflow/issues/19739#issuecomment-975406011
It's not a bug - simply WinRM connection does not have custom connection type defined (which is perfectly fine - you can use any type of connection for that - for example HTTP (it only uses host/login/password) - but if you think it's a good idea and you miss it, you can make a PR and add one - you could add custom connection configuration for it: https://airflow.apache.org/docs/apache-airflow/stable/howto/connection.html#custom-connection-types
--
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] abouquet commented on issue #19739: Unable to create a WinRM Connection with apache-airflow-providers-microsoft-winrm installed
Posted by GitBox <gi...@apache.org>.
abouquet commented on issue #19739:
URL: https://github.com/apache/airflow/issues/19739#issuecomment-975416185
I'm not a python developer ;-).
But will check it out if I can got for 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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org