Skip to content

Commit 9a65cf1

Browse files
committed
handle error: storage belongs to different cluster
1 parent 05b40eb commit 9a65cf1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/charm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,9 @@ def _on_peer_relation_changed(self, event: HookEvent):
479479
# Update the members of the cluster in the Patroni configuration on this unit.
480480
self.update_config()
481481
if self._patroni.cluster_system_id_mismatch(unit_name=self.unit.name):
482-
self.unit.status = BlockedStatus("Failed start postgresql. Storage belongs to a foreign cluster")
482+
self.unit.status = BlockedStatus(
483+
"Failed to start postgresql. The storage belongs to a third-party cluster"
484+
)
483485
return
484486
except RetryError:
485487
self.unit.status = BlockedStatus("failed to update cluster members on member")

0 commit comments

Comments
 (0)