Issue:
Gravity may report cluster status as expanding even after completely uninstalling the failed node and the process was dead.
Solution
Run the following command:
gravity status-reset
It will bring back the cluster to active status and the node's status will be offline now.
Run the following command to remove the node:
gravity remove <node> --force
Replace <node> with the node to be removed.
Run the following command to verify the cluster status.
gravity status
Cluster status should be active with the faulty node removed.