mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
Merge pull request #1954 from hashicorp/b-secret-id
Add compatibility code for secret ID while upgrading cluster in both …
This commit is contained in:
@@ -1185,7 +1185,13 @@ func (c *Client) watchAllocations(updates chan *allocUpdates) {
|
||||
default:
|
||||
}
|
||||
|
||||
if err != noServersErr {
|
||||
// COMPAT: Remove in 0.6. This is to allow the case in which the
|
||||
// servers are not fully upgraded before the clients register. This
|
||||
// can cause the SecretID to be lost
|
||||
if strings.Contains(err.Error(), "node secret ID does not match") {
|
||||
c.logger.Printf("[DEBUG] client: re-registering node as there was a secret ID mismatch: %v", err)
|
||||
c.retryRegisterNode()
|
||||
} else if err != noServersErr {
|
||||
c.logger.Printf("[ERR] client: failed to query for node allocations: %v", err)
|
||||
}
|
||||
retry := c.retryIntv(getAllocRetryIntv)
|
||||
|
||||
Reference in New Issue
Block a user