Skip to content

Commit

Permalink
ConditionalDeployment, ConfigCommand: wording
Browse files Browse the repository at this point in the history
fixes #2523
  • Loading branch information
Thomas-Gelf committed Apr 13, 2022
1 parent 70e8c06 commit 0539819
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/clicommands/ConfigCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function deployAction()
if ($timeout = $this->getWaitTime()) {
$deployed = $deployer->waitForStartupAfterDeploy($deployment, $timeout);
if ($deployed !== true) {
$this->fail("Failed to deploy config '%s': %s\n", $checksum, $deployed);
$this->fail("Waiting for Icinga restart failed '%s': %s\n", $checksum, $deployed);
}
}
}
Expand Down
1 change: 1 addition & 0 deletions doc/82-Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ v1.10.0 (unreleased)

### CLI
* FIX: config deploy doesn't try to wait in case of no deployment (#2522)
* FEATURE: improved wording for deployment error messages (#2523)

1.9.1
-----
Expand Down
6 changes: 3 additions & 3 deletions library/Director/Deployment/ConditionalDeployment.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ public function waitForStartupAfterDeploy(DirectorDeploymentLog $deploymentLog,
continue;
}
if ($stageCollected === 'n') {
return 'stage has not been collected';
return 'stage has not been collected (Icinga "lost" the deployment)';
}
if ($deploymentFromDB->get('startup_succeeded') === 'y') {
return true;
}
return 'deployment failed during startup';
return 'deployment failed during startup (usually a Configuration Error)';
}
return 'deployment timed out';
return 'deployment timed out (while waiting for an Icinga restart)';
}

/**
Expand Down

0 comments on commit 0539819

Please sign in to comment.