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/02/23 10:14:18 UTC
[GitHub] [airflow] ayushri05 opened a new issue #14382: Can’t see the task logs so, not sure what went wrong
ayushri05 opened a new issue #14382:
URL: https://github.com/apache/airflow/issues/14382
Hi, My requirement is to run the Azure container Instance in my Azure Instance and run the container Image.
I user the AzureContainerInstanceOperator and the doccumentation from Astronomer for the same.
I created the Airflow connection with the type Azure Container Instance , client Id, Client secret, Tenant Id and subscription Id as given in the doc.
I have also added the parameter values in the DAG task ‘run_container’ like registry_conn_id = <Azure container registry Id>
![Screenshot from 2021-02-23 15-17-45](https://user-images.githubusercontent.com/37538415/108829166-d8354200-75ed-11eb-85ea-6603459548f2.png)
resource_group=<Resource group Name>,
name=<Container Insance Name>,
image=<registry login server/image name>,
region=<Resource group location from Azure>
fail_if_exists=False
I refreshed the airflow, triggered the DAG. But my DAG is still showing as running. Nothing changed since triggered. I also don’t see any task logs in Airflow.
----------------------------------------------------------------
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] taffazzel commented on issue #14382: what is registry_conn_id and from where I can get it in case of Azure container Registry.
Posted by GitBox <gi...@apache.org>.
taffazzel commented on issue #14382:
URL: https://github.com/apache/airflow/issues/14382#issuecomment-870142239
Hi All, Unable to find out "registry_conn_id" on azure. Can anyone please help me ?
--
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] ayushri05 edited a comment on issue #14382: Can’t see the task logs so, not sure what went wrong
Posted by GitBox <gi...@apache.org>.
ayushri05 edited a comment on issue #14382:
URL: https://github.com/apache/airflow/issues/14382#issuecomment-784197529
Hi, After sometime the task ran but failed due to ‘registry_conn_id’ isn’t defined.
Does anyone know, From where i can get the ‘registry_conn_id’ value for Azure container registry?
What exactly 'registry_conn_id' is?
----------------------------------------------------------------
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] boring-cyborg[bot] commented on issue #14382: Can’t see the task logs so, not sure what went wrong
Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #14382:
URL: https://github.com/apache/airflow/issues/14382#issuecomment-784073443
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] taffazzel commented on issue #14382: what is registry_conn_id and from where I can get it in case of Azure container Registry.
Posted by GitBox <gi...@apache.org>.
taffazzel commented on issue #14382:
URL: https://github.com/apache/airflow/issues/14382#issuecomment-870142239
Hi All, Unable to find out "registry_conn_id" on azure. Can anyone please help me ?
--
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] eladkal closed issue #14382: what is registry_conn_id and from where I can get it in case of Azure container Registry.
Posted by GitBox <gi...@apache.org>.
eladkal closed issue #14382:
URL: https://github.com/apache/airflow/issues/14382
--
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] ayushri05 commented on issue #14382: what is registry_conn_id and from where I can get it in case of Azure container Registry.
Posted by GitBox <gi...@apache.org>.
ayushri05 commented on issue #14382:
URL: https://github.com/apache/airflow/issues/14382#issuecomment-784851446
I got the Azure container registry Id with below cmd-
> az acr show -n <registry name> --query id
and put that in 'registry_conn_id' but it is giving below error and DAG failed -
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line 1112, in _run_raw_task
self._prepare_and_execute_task_with_callbacks(context, task)
File "/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line 1284, in _prepare_and_execute_task_with_callbacks
result = self._execute_task(context, task_copy)
File "/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line 1314, in _execute_task
result = task_copy.execute(context=context)
File "/usr/local/lib/python3.7/site-packages/airflow/providers/microsoft/azure/operators/azure_container_instances.py", line 212, in execute
registry_hook = AzureContainerRegistryHook(self.registry_conn_id)
File "/usr/local/lib/python3.7/site-packages/airflow/providers/microsoft/azure/hooks/azure_container_registry.py", line 37, in __init__
self.connection = self.get_conn()
File "/usr/local/lib/python3.7/site-packages/airflow/providers/microsoft/azure/hooks/azure_container_registry.py", line 40, in get_conn
conn = self.get_connection(self.conn_id)
File "/usr/local/lib/python3.7/site-packages/airflow/hooks/base.py", line 63, in get_connection
conn = Connection.get_connection_from_secrets(conn_id)
File "/usr/local/lib/python3.7/site-packages/airflow/models/connection.py", line 354, in get_connection_from_secrets
raise AirflowNotFoundException(f"The conn_id `{conn_id}` isn't defined")
----------------------------------------------------------------
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] ayushri05 commented on issue #14382: Can’t see the task logs so, not sure what went wrong
Posted by GitBox <gi...@apache.org>.
ayushri05 commented on issue #14382:
URL: https://github.com/apache/airflow/issues/14382#issuecomment-784197529
Hi, After sometime the task ran but failed due to ‘registry_conn_id’ isn’t defined.
Does anyone know, From where i can get the ‘registry_conn_id’ value for Azure container registry?
----------------------------------------------------------------
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] eladkal commented on issue #14382: what is registry_conn_id and from where I can get it in case of Azure container Registry.
Posted by GitBox <gi...@apache.org>.
eladkal commented on issue #14382:
URL: https://github.com/apache/airflow/issues/14382#issuecomment-923028634
`registry_conn_id` is the reference to the Airflow Connection that associates with `AzureContainerInstancesOperator`.
If you need additional troubleshooting help please open a [Stackoverflow question ](https://stackoverflow.com/)or ask in [GitHub Discussions](https://github.com/apache/airflow/discussions).
--
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