chronos icon indicating copy to clipboard operation
chronos copied to clipboard

New Chronos job with updated docker image is not being refreshed/pulled on mesos slaves.

Open rqc opened this issue 11 years ago • 4 comments

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!

rqc avatar Dec 26 '14 20:12 rqc

Which version of chronos were you using? Did you use native docker support or mesos-docker/chronos-docker?

chengweiv5 avatar Dec 27 '14 04:12 chengweiv5

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.

rqc avatar Dec 27 '14 18:12 rqc

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.

rqc avatar Dec 27 '14 18:12 rqc

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 :) ...

rqc avatar Jan 13 '15 13:01 rqc