diff --git a/tests/rptest/tests/partition_balancer_test.py b/tests/rptest/tests/partition_balancer_test.py index 230ffa1021b62..4e5cac7b7e406 100644 --- a/tests/rptest/tests/partition_balancer_test.py +++ b/tests/rptest/tests/partition_balancer_test.py @@ -777,7 +777,7 @@ def test_maintenance_mode(self, kill_same_node): node_id = self.redpanda.idx(node) rpk = RpkTool(self.redpanda) - admin = Admin(self.redpanda) + admin = Admin(self.redpanda, retry_codes=[503, 504]) rpk.cluster_maintenance_enable(node, wait=True) # the node should now report itself in maintenance mode