-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require pbench-top|backup-dir in pbench-server.cfg
Remove pbench-top-dir and pbench-backup-dir from the default configuration file so that they have to be explicitly defined for a given pbench-server. We then default pbench-local-dir to be the same as pbench-top-dir. Move BDIR definition out of pbench-base.sh because only pbench-backup-tarballs and pbench-verify-backup-tarballs use it. Update the pbench-server.cfg-example file to show that pbench-backup-dir needs to be a directory and not a remote host reference, and add an explicit definition of pbench-backup-dir to the unit test config files. Update pbench-backup-tarballs and pbench-verify-backup-tarballs to refine the error handling around the backup directory configuration. Update a comment in pbench-server-activate-create-crontab to use an example hostname, and use the satellite-prefix value in the lock file name to avoid repeating ourselves.
- Loading branch information
Showing
10 changed files
with
48 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ environment = unit-test | |
admin-email = [email protected] | ||
pbench-top-dir = %(unittest-dir)s/pbench | ||
pbench-local-dir = %(unittest-dir)s/pbench-local | ||
pbench-backup-dir = %(pbench-local-dir)s/archive.backup | ||
# Add role for sync'ing with satellites | ||
roles = pbench-prep, pbench-results, pbench-backup, pbench-sync-satellites | ||
# Ensure all dispatch states are used | ||
|
@@ -35,10 +36,10 @@ tasks = pbench-sync | |
[satellite-one] | ||
# NOTE WELL: this satellite host name, pbench-satellite.example.com, is the | ||
# host name expected by the mock ssh command which triggers the behavior of | ||
# running the actual commands instead of just echoing them. | ||
# running the actual commands instead of just echoing them. | ||
satellite-host = pbench-satellite.example.com | ||
satellite-prefix = ONE | ||
satellite-lock = pbench-sync-satellite-ONE.lock | ||
satellite-lock = pbench-sync-satellite-%(satellite-prefix)s.lock | ||
satellite-archive = %(unittest-dir)s/pbench-satellite/archive/fs-version-001 | ||
satellite-opt = %(unittest-dir)s/opt/pbench-server-satellite | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ admin-email = [email protected] | |
pbench-top-dir = %(unittest-dir)s/pbench | ||
pbench-local-dir = %(unittest-dir)s/pbench-local | ||
pbench-unpack-dir = %(pbench-local-dir)s/incoming | ||
pbench-backup-dir = %(pbench-local-dir)s/archive.backup | ||
# Add role for sync'ing with satellites | ||
roles = pbench-prep, pbench-results, pbench-backup, pbench-sync-satellites | ||
# Ensure all dispatch states are used | ||
|
@@ -44,7 +45,7 @@ tasks = pbench-sync | |
[satellite-one] | ||
satellite-host = pbench-satellite.example.com | ||
satellite-prefix = ONE | ||
satellite-lock = pbench-sync-satellite-ONE.lock | ||
satellite-lock = pbench-sync-satellite-%(satellite-prefix)s.lock | ||
satellite-archive = %(unittest-dir)s/pbench-satellite/archive/fs-version-001 | ||
satellite-opt = %(unittest-dir)s/opt/pbench-server-satellite | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters