New Chronos job with updated docker image is not being refreshed/pulled on mesos slaves.
Hello.
I have been playing with an in-house mesos+marathon+chronos+docker installation in our private cloud using the mesosphere packages and I have run into an issue in which after making updates to a docker app and pushing it to our private registry, the new chronos jobs that are being created using the new version are not being refreshed in the mesos slaves. I know that that is the case since I have ssh’ed into the slaves and the commit is behind the “latest” tag. I have tried specifying the “:latest” suffix to the docker image attribute in the JSON file and also without it with no luck on both cases.
Do you know of a way to force mesos or marathon/chronos to perform a docker pull on the registry even when there is already an image, albeit outdated, pulled into the slaves?
Thanks!
Which version of chronos were you using? Did you use native docker support or mesos-docker/chronos-docker?
Hi!
Version from the mesos framework UI panel: chronos-2.3.0_mesos-0.20.1-SNAPSHOT Mesos native docker container support: Yes
Thanks for responding.
I would like to clarify that what I expect is to have all mesos-slaves pull the same docker image with the same tag but with an updated commit (e.g. latest was updated) when I submit a new job.
Hi. I am closing this since it is a Mesos issue. I have confirmed this by contacting mesosphere support directly. Here is their response:
... Well I learn something every day. The behavior is this: if (name+tag) is not found locally… it will be pulled. if found… it will not pull, which is consist with your report. newly added and will be released with Mesos 0.22 is a flag “docker_force_pull” which will provide the behavior you are asking for. Our engineer team suggest that it is a best practice to actually specify the version in the job description… so a new job to be pulled would require a new job submission. I can see the seductive nature of not doing that for some jobs :) ...