salt.exceptions

This module is a central location for all salt exceptions

exception salt.exceptions.ArgumentValueError(message=u'', info=None)

Used when an invalid argument was passed to a command execution

exception salt.exceptions.AuthenticationError(message=u'')

If sha256 signature fails during decryption

exception salt.exceptions.AuthorizationError(message=u'')

Thrown when runner or wheel execution fails due to permissions

exception salt.exceptions.CheckError(message=u'', info=None)

Used when a check fails

exception salt.exceptions.CommandExecutionError(message=u'', info=None)

Used when a module runs a command which returns an error and wants to show the user the output gracefully instead of dying

exception salt.exceptions.CommandNotFoundError(message=u'')

Used in modules or grains when a required binary is not available

exception salt.exceptions.EauthAuthenticationError(message=u'')

Thrown when eauth authentication fails

exception salt.exceptions.FileLockError(message, time_start=None, *args, **kwargs)

Used when an error occurs obtaining a file lock

exception salt.exceptions.FileserverConfigError(message=u'')

Used when invalid fileserver settings are detected

exception salt.exceptions.GitLockError(errno, message, *args, **kwargs)

Raised when an uncaught error occurs in the midst of obtaining an update/checkout lock in salt.utils.gitfs.

NOTE: While this uses the errno param similar to an OSError, this exception class is not as subclass of OSError. This is done intentionally, so that this exception class can be caught in a try/except without being caught as an OSError.

exception salt.exceptions.GitRemoteError(message=u'')

Used by GitFS to denote a problem with the existence of the "origin" remote or part of its configuration

exception salt.exceptions.InvalidConfigError(message=u'', info=None)

Used when the config is invalid

exception salt.exceptions.InvalidEntityError(message=u'', info=None)

Used when an entity fails validation

exception salt.exceptions.LoaderError(message=u'')

Problems loading the right renderer

exception salt.exceptions.MasterExit

Rise when the master exits

exception salt.exceptions.MinionError(message=u'')

Minion problems reading uris such as salt:// or http://

exception salt.exceptions.NotImplemented(message=u'')

Used when a module runs a command which returns an error and wants to show the user the output gracefully instead of dying

exception salt.exceptions.PkgParseError(message=u'')

Used when of the pkg modules cannot correctly parse the output from the CLI tool (pacman, yum, apt, aptitude, etc)

exception salt.exceptions.PublishError(message=u'')

Problems encountered when trying to publish a command

exception salt.exceptions.SaltCacheError(message=u'')

Thrown when a problem was encountered trying to read or write from the salt cache

exception salt.exceptions.SaltClientError(message=u'')

Problem reading the master root key

exception salt.exceptions.SaltClientTimeout(message, jid=None, *args, **kwargs)

Thrown when a job sent through one of the Client interfaces times out

Takes the jid as a parameter

exception salt.exceptions.SaltCloudConfigError(message=u'')

Raised when a configuration setting is not found and should exist.

exception salt.exceptions.SaltCloudException(message=u'')

Generic Salt Cloud Exception

exception salt.exceptions.SaltCloudExecutionFailure(message=u'')

Raised when too much failures have occurred while querying/waiting for data.

exception salt.exceptions.SaltCloudExecutionTimeout(message=u'')

Raised when too much time has passed while querying/waiting for data.

exception salt.exceptions.SaltCloudNotFound(message=u'')

Raised when some cloud provider function cannot find what's being searched.

exception salt.exceptions.SaltCloudPasswordError(message=u'')

Raise when virtual terminal password input failed

exception salt.exceptions.SaltCloudSystemExit(message, exit_code=1)

This exception is raised when the execution should be stopped.

exception salt.exceptions.SaltConfigurationError(message=u'')

Configuration error

exception salt.exceptions.SaltDaemonNotRunning(message=u'')

Throw when a running master/minion/syndic is not running but is needed to perform the requested operation (e.g., eauth).

exception salt.exceptions.SaltException(message=u'')

Base exception class; all Salt-specific exceptions should subclass this

pack()

Pack this exception into a serializable dictionary that is safe for transport via msgpack

exception salt.exceptions.SaltInvocationError(message=u'')

Used when the wrong number of arguments are sent to modules or invalid arguments are specified on the command line

exception salt.exceptions.SaltMasterError(message=u'')

Problem reading the master root key

exception salt.exceptions.SaltNoMinionsFound(message=u'')

An attempt to retrieve a list of minions failed

exception salt.exceptions.SaltRenderError(message, line_num=None, buf=u'', marker=u' <======================', trace=None)

Used when a renderer needs to raise an explicit error. If a line number and buffer string are passed, get_context will be invoked to get the location of the error.

exception salt.exceptions.SaltReqTimeoutError(message=u'')

Thrown when a salt master request call fails to return within the timeout

exception salt.exceptions.SaltRunnerError(message=u'')

Problem in runner

exception salt.exceptions.SaltSyndicMasterError(message=u'')

Problem while proxying a request in the syndication master

exception salt.exceptions.SaltSystemExit(code=0, msg=None)

This exception is raised when an unsolvable problem is found. There's nothing else to do, salt should just exit.

exception salt.exceptions.SaltWheelError(message=u'')

Problem in wheel

exception salt.exceptions.TemplateError(message=u'')

Used when a custom error is triggered in a template

exception salt.exceptions.TimedProcTimeoutError(message=u'')

Thrown when a timed subprocess does not terminate within the timeout, or if the specified timeout is not an int or a float

exception salt.exceptions.TimeoutError(message=u'')

Thrown when an opration cannot be completet within a given time limit.

exception salt.exceptions.TokenAuthenticationError(message=u'')

Thrown when token authentication fails

exception salt.exceptions.VMwareApiError(message=u'', info=None)

Used when representing a generic VMware API error

exception salt.exceptions.VMwareConnectionError(message=u'', info=None)

Used when the client fails to connect to a either a VMware vCenter server or to a ESXi host

exception salt.exceptions.VMwareFileNotFoundError(message=u'', info=None)

Used when representing a generic VMware error if a file not found

exception salt.exceptions.VMwareMultipleObjectsError(message=u'', info=None)

Used when multiple objects were retrieved (and one was expected)

exception salt.exceptions.VMwareNotFoundError(message=u'', info=None)

Used when a VMware object was not found

exception salt.exceptions.VMwareObjectExistsError(message=u'', info=None)

Used when a VMware object already exists

exception salt.exceptions.VMwareObjectNotFoundError(message=u'', info=None)

Used when a VMware object was not found

exception salt.exceptions.VMwareObjectRetrievalError(message=u'', info=None)

Used when a VMware object cannot be retrieved

exception salt.exceptions.VMwarePowerOnError(message=u'', info=None)

Used when error occurred during power on

exception salt.exceptions.VMwareRuntimeError(message=u'', info=None)

Used when a runtime error is encountered when communicating with the vCenter

exception salt.exceptions.VMwareSaltError(message=u'', info=None)

Used when a VMware object cannot be retrieved

exception salt.exceptions.VMwareSystemError(message=u'', info=None)

Used when representing a generic VMware system error

exception salt.exceptions.VMwareVmCreationError(message=u'', info=None)

Used when a configuration parameter is incorrect

exception salt.exceptions.VMwareVmRegisterError(message=u'', info=None)

Used when a configuration parameter is incorrect

salt.exceptions.get_error_message(error)

Get human readable message from Python Exception