Home | Trees | Indices | Help |
|
---|
|
Implements the standard 'validate' action.
Author: Kenneth J. Pronovici <pronovic@ieee.org>
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
logger = logging.getLogger("CedarBackup2.log.actions.validate")
|
|||
__package__ =
|
|
Executes the validate action. This action validates each of the individual sections in the config file. This is a "runtime" validation. The config file itself is already valid in a structural sense, so what we check here that is that we can actually use the configuration without any problems. There's a separate validation function for each of the configuration sections. Each validation function returns a true/false indication for whether configuration was valid, and then logs any configuration problems it finds. This way, one pass over configuration indicates most or all of the obvious problems, rather than finding just one problem at a time. Any reported problems will be logged at the ERROR level normally, or at the INFO level if the quiet flag is enabled.
|
Checks that the indicated directory is OK. The path must exist, must be a directory, must be readable and executable, and must optionally be writable.
|
Execute runtime validations on reference configuration. We only validate that reference configuration exists at all.
|
Execute runtime validations on options configuration. The following validations are enforced:
|
Execute runtime validations on collect configuration. The following validations are enforced:
|
Execute runtime validations on stage configuration. The following validations are enforced:
Note: We currently do not validate anything having to do with remote peers, since we don't have a straightforward way of doing it. It would require adding an rsh command rather than just an rcp command to configuration, and that just doesn't seem worth it right now. |
Execute runtime validations on store configuration. The following validations are enforced:
|
Execute runtime validations on purge configuration. The following validations are enforced:
|
Execute runtime validations on extensions configuration. The following validations are enforced:
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Oct 12 09:25:39 2011 | http://epydoc.sourceforge.net |