sandia-minimega / minimega

minimega
GNU General Public License v3.0
148 stars 66 forks source link

ron: version the cc message so heartbeats work across revisions #1470

Closed activeshadow closed 2 years ago

activeshadow commented 2 years ago

This is an attempt to make miniccc somewhat future-proof. Right now, if minimega is updated then miniccc running in existing images will continually fail and reconnect because currently we only start the heartbeat on the server if the commit versions between the server and miniccc match. This is somewhat okay, except for when cc mount needs to be used.

By versioning the cc message, we can now accurately determine if older miniccc agents can be used with newer versions of deployed servers.