mesh-vault: retire and rotate without the controller's lease
The controller ended by its unassignment and its lease key expired, so the gate on a handed lease kept retirement, rotation and node-login rotation off for good (issue 1126, A3). Drop the gate, the lease watch and the manifest's read of mesh-controller.lease; vault_status no longer reports a lease. Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
This commit is contained in:
@@ -268,10 +268,6 @@ func (v *Vault) RotateNode(caller string, a RotateNodeArgs) (RotateNodeAnswer, e
|
||||
if v.Accounts == nil {
|
||||
return RotateNodeAnswer{}, errors.New("the vault has no state of bus accounts to write to")
|
||||
}
|
||||
v.leaseAfresh()
|
||||
if on, why := v.leaseHanded(); !on {
|
||||
return RotateNodeAnswer{}, fmt.Errorf("no rotation begins: %s", why)
|
||||
}
|
||||
v.minting.mu.Lock()
|
||||
revision := v.minting.loadedRevision
|
||||
v.minting.mu.Unlock()
|
||||
@@ -596,10 +592,6 @@ func (v *Vault) RotationPass() {
|
||||
if err != nil || len(running) > 0 {
|
||||
return
|
||||
}
|
||||
v.leaseAfresh()
|
||||
if on, _ := v.leaseHanded(); !on {
|
||||
return
|
||||
}
|
||||
bus, err := v.busNode()
|
||||
if err != nil {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user