dmwm / CRABServer

16 stars 38 forks source link

(reminder) crabtwfilebeat's latest image get overriden by hotpatch version #8590

Closed novicecpp closed 3 months ago

novicecpp commented 3 months ago

When we build from older commits like hot-patch, images like crabtwfilebeat also build. However, because we use the static tag (e.g., crabtwfilebeat:v3.latest), the hot-patch pipeline will override the latest image on the registry which which has a newer version.

I do not have better idea how to avoid this. Maybe this is just reminder.

belforte commented 3 months ago

I am not sure I understand this. @aspiringmind-code do you ?

belforte commented 3 months ago

Do you mean that it just happened something like this ?

In addition there's the matter of which crabtwfilebeat tag is called latest in registry.cern.ch

novicecpp commented 3 months ago

Yes. I tried to write this last night but I was too tired. Thanks.

Expanding bullet 4 and 5 a bit:

belforte commented 3 months ago

I think that the disconnect is that when we deploy via pipeline we have a procedure to deploy same tag for each container, but then wanted to roll back only one. The fact that for crabtwfilebeat we always use latest build instead of a named tag, may not be that relevant since it changes rarely. But if could be sorted out as well. I agree to take this as a reminder only for the time being. We need more experience with the new system before looking at changing it.

mapellidario commented 3 months ago

Maybe this is just reminder.

yes! the code in crabtwfilebeat should not change much, the most important part is its configuration that comes from puppet. i do not see this as a problem.

Moreover, we are doing the same for the monit container (tag with "latest" at every release) so i would suggest to change the title and issue message to improve our reminder, but again, i do not think that this is a problem :)

novicecpp commented 3 months ago

In conclusion, this is just reminder. Dario is kind to make it able to change version through hiera https://gitlab.cern.ch/ai/it-puppet-hostgroup-vocmsglidein/-/blob/e0f5f9eca1c2a508e1b3748fb316fe812baca045/code/manifests/crabtaskworker/generatemonit.pp#L13