You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the agent upgrades it launches an instance of the elastic-agent watch command to ensure that the new version of the elastic agent remains healthy and does not crash within 10 minutes of being started.
The elastic-agent version invoked is the old version we are upgrading from, not the new version we are upgrading to:
// InvokeWatcher invokes an agent instance using watcher argument for watching behavior of
// agent during upgrade period.
funcInvokeWatcher(log*logger.Logger) error {
if!IsUpgradeable() {
log.Debug("agent is not upgradable, not starting watcher")
returnnil
}
versionedHome:=paths.VersionedHome(paths.Top())
cmd:=invokeCmd(versionedHome)
The elastic-agent watch command should instead be invoked using the new version of the elastic-agent binary we are upgrading to. For example, in an upgrade from 8.7.1 to 8.8.2 we should invoke the elastic-agent watch command using the 8.8.2 elastic-agent binary.
This protects from the situation where there is a bug in the upgrade watcher by allowing us to solve it by upgrading to a different version. Today a bug in the upgrade watcher that would prevent a successful upgrade cannot be fixed without a reinstall of the existing agent.
The text was updated successfully, but these errors were encountered:
Spoke about this in the agent weekly, decided we should do this ASAP as we are making changes to the upgrade watcher and need to make sure the fixes benefit future releases.
When the agent upgrades it launches an instance of the
elastic-agent watch
command to ensure that the new version of the elastic agent remains healthy and does not crash within 10 minutes of being started.The
elastic-agent
version invoked is the old version we are upgrading from, not the new version we are upgrading to:elastic-agent/internal/pkg/agent/application/upgrade/rollback.go
Lines 109 to 118 in 9c06231
The
elastic-agent watch
command should instead be invoked using the new version of the elastic-agent binary we are upgrading to. For example, in an upgrade from 8.7.1 to 8.8.2 we should invoke theelastic-agent watch
command using the 8.8.2elastic-agent
binary.The text was updated successfully, but these errors were encountered: