question

ChristiaanWestgeest-7602 avatar image
0 Votes"
ChristiaanWestgeest-7602 asked prmanhas-MSFT commented

Docker Function automated deployment (image pull) inexplicably switches to different CR container

We've had a bit of an odd incident with one of our Azure Functions, and I really can't explain what happened.

We're using a number of Docker-based Azure Functions. All of these run a small process every fifteen minutes.
They run Docker images that are pushed to an Azure Container registry via a standard Azure Devops Build + Release pipeline setup.

This has worked without incident until last Friday, when both instances of one of the Functions stopped working.
The logs showed that from that point, the Function was trying to do a 'latest' image-pull from a completely different container in the CR (that it thas no access to).
No changes have been made to the deployment settings, and the last new ci/cd deploy was done almost a month ago. It had been untouched and working fine since then.

The one thing that jumps out at me is that if I go to 'Container Settings (classic)' and manually switch from 'Azure Pipelines' to 'Container Registry', the CR and Image that are shown initially are the ones that it was trying to pull from. It's almost as if it's switched Source settings without showing it in the GUI.

I initially tried running a new Build + Release pipeline, to see if that would trigger a new, correct image pull. It did not.
I then switched to Source 'Container Registry' in the Container Settings Classic, pointed those settings at the correct CR and Image + version, saved these settings and then switched the settings back to Source 'Azure Pipelines' and saved again.
It's now once again showing 'Azure Pipelines' as the deployment Source but the Function is working again and pulling the Image from the CR, with the version I had temporarily selected in the previous step.

All other Functions have not had this issue. The one notable difference is that the others have seen new frequent deployments, and this one has been running as-is for almost a month untouched before breaking down.

I have no clear idea what happened, nor why it happened.
Anyone recongnize this behavior or can offer suggestions on what to check for?





azure-functionsazure-container-registry
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ChristiaanWestgeest-7602 Apologies for the delay in response and all the inconvenience caused because of the issue.

I have reached out to our internal team on the issue and once I have an update will keep you posted on same.

Thank you for your patience over the matter.

Thanks.

0 Votes 0 ·

@ChristiaanWestgeest-7602 Following up to check if you got a chance to go through my previous commen.

Do let me know if you have any queries.

Thanks

0 Votes 0 ·

Hi @prmanhas-MSFT Thanks for the response! I've had a week off and have just gotten back. Catching up on work as we speak. I'll get back to you today!

0 Votes 0 ·
prmanhas-MSFT avatar image prmanhas-MSFT ChristiaanWestgeest-7602 ·

Sure @ChristiaanWestgeest-7602 will await your response :)

Thanks

0 Votes 0 ·

0 Answers