Skip to content

Commit

Permalink
Update error message when setting protected mode
Browse files Browse the repository at this point in the history
  • Loading branch information
demartinofra committed Jan 14, 2022
1 parent 155ecb3 commit ce8f537
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/slurm_plugin/clustermgtd.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,8 @@ def _enter_protected_mode(self, partitions_to_disable):
if not ComputeFleetStatus.is_protected_status(self._compute_fleet_status):
log.warning(
"Setting cluster into protected mode due to failures detected in node provisioning. "
"Please investigate the issue and then use pcluster start command to re-enable the fleet."
"Please investigate the issue and then use 'pcluster update-compute-fleet --status START_REQUESTED' "
"command to re-enable the fleet."
)
self._update_compute_fleet_status(ComputeFleetStatus.PROTECTED)

Expand Down Expand Up @@ -869,7 +870,8 @@ def _handle_protected_mode_process(self, active_nodes, partitions_name_map):
if ComputeFleetStatus.is_protected_status(self._compute_fleet_status):
log.warning(
"Cluster is in protected mode due to failures detected in node provisioning. "
"Please investigate the issue and then use pcluster start command to re-enable the fleet."
"Please investigate the issue and then use 'pcluster update-compute-fleet --status START_REQUESTED' "
"command to re-enable the fleet."
)

@staticmethod
Expand Down

0 comments on commit ce8f537

Please sign in to comment.