argocd-image-updater icon indicating copy to clipboard operation
argocd-image-updater copied to clipboard

Logs and Argocd Application events showing successful update but image is not actually updated (argocd write back method)

Open chathumal-nad opened this issue 3 years ago • 0 comments

I see similar open issues where argocd image updater log said it has updated an image but pod itself doesn't roll out new one: #186 #431 #438

The application itself is stored in git as a declarative setup with auto sync options enabled and the registry we are using is a private GCR. We use kustomize for our deployments and as the image tag we have mentioned a previous version (not the latest one) ,in order to check the functionality of the imageupdater. In this case we have setup the write back method as "argocd". Able to see the argocd image updater logs and the application events indicating that the application has been succefully updated but the deployment is always on the mentioned image tag in the kustomize file and never gets updated to te latest image tag. It may be because of the the declarative setup we are using, so we tried the same scenario with "auto sync disbaled" but the response was same; nothing happens to the deployment.

Argocd and Image-updater both deployed in the same cluster and the same namespace.

Argo CD version : 2.2.4 Image updater : 0.12.0

Does anyone know how to make this working? Or isn't this write back method suitable for declarative applications as in this scenario?

Image Updater Logs

time="2022-08-16T05:20:22Z" level=info msg="Starting image update cycle, considering 1 annotated application(s) for update"
time="2022-08-16T05:20:22Z" level=debug msg="Processing application my-sample-application"
time="2022-08-16T05:20:22Z" level=debug msg="Considering this image for update" alias=idbs_image application=my-sample-application image_name=example/image image_tag=20220802T052620 registry=europe-docker.pkg.dev
time="2022-08-16T05:20:22Z" level=debug msg="Using no version constraint when looking for a new tag" alias=idbs_image application=my-sample-application image_name=example/image image_tag=20220802T052620 registry=europe-docker.pkg.dev
time="2022-08-16T05:20:22Z" level=debug msg="Cache hit for example/image:20220309T041415" alias=idbs_image application=my-sample-application image_name=example/image image_tag=20220802T052620 registry=europe-docker.pkg.dev
time="2022-08-16T05:20:22Z" level=debug msg="Cache hit for example/image:20220309T050114" alias=idbs_image application=my-sample-application image_name=example/image image_tag=20220802T052620 registry=europe-docker.pkg.dev
---
---
time="2022-08-16T05:20:22Z" level=debug msg="found 24 from 24 tags eligible for consideration" image="europe-docker.pkg.dev/example/image:20220802T052620"
time="2022-08-16T05:20:22Z" level=info msg="Setting new image to europe-docker.pkg.dev/example/image:20220805T040027" alias=idbs_image application=my-sample-application image_name=example/image image_tag=20220802T052620 registry=europe-docker.pkg.dev
time="2022-08-16T05:20:22Z" level=info msg="Successfully updated image 'europe-docker.pkg.dev/example/image:20220802T052620' to 'europe-docker.pkg.dev/example/image:20220805T040027', but pending spec update (dry run=false)" alias=idbs_image application=my-sample-application image_name=example/image image_tag=20220802T052620 registry=europe-docker.pkg.dev
time="2022-08-16T05:20:22Z" level=debug msg="Using commit message: "
time="2022-08-16T05:20:22Z" level=info msg="Committing 1 parameter update(s) for application my-sample-application" application=my-sample-application
time="2022-08-16T05:20:22Z" level=info msg="Successfully updated the live application spec" application=my-sample-application
time="2022-08-16T05:20:22Z" level=info msg="Processing results: applications=1 images_considered=1 images_skipped=0 images_updated=1 errors=0"

Application Annotations

argocd-image-updater.argoproj.io/image-list: idbs_image=europe-docker.pkg.dev/example/image,
argocd-image-updater.argoproj.io/idbs_image.update-strategy: latest,
argocd-image-updater.argoproj.io/write-back-method: argocd

Application events

ImagesUpdated             Successfully updated application 'my-sample-application'        3m ago        3m ago
ImagesUpdated             Successfully updated application 'my-sample-application'        5m ago        5m ago

chathumal-nad avatar Aug 16 '22 06:08 chathumal-nad