forked from openebs/mayastor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
945: fix(moac): volume gets stuck in offline state when doing failover r=jkryl a=jkryl The problem was that the mayastor unregistered itself and node object was removed from moac's internal state before all events related to offlining the node could be processed. One of the previous complaints about msn records was that they disappear whenever the storage node is rebooted which is confusing for users. This fix is addressing both issues at once. Instead of removing the node upon deregistration, it disconnects the grpc client and switches the node to offline state. So it stays around along with all other objects that might be on the node (pools, replicas, nexuses) and events can be processed as normally. The obvious downside is that users have to remove msn records manually in case they know that the storage node will never join the cluster again. But that's just a small inconvenience compared to what this brings. A note for insiders. The way how you can tell the difference between offline node that is unreachable and offline node that unregistered itself is by looking at grpcEndpoint in msn spec. It will be empty string for the later. Resolves: CAS-954 Co-authored-by: Jan Kryl <[email protected]>
- Loading branch information
Showing
8 changed files
with
104 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters