libioc.errors module¶
Collection of iocage errors.
-
exception
libioc.errors.ActivationFailed(reason=None, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when ZFS pool activation failed.
-
exception
libioc.errors.BackupInProgress(logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a backup operation is already in progress.
-
exception
libioc.errors.BackupSourceDoesNotExist(source, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a backup source is not available for import.
-
exception
libioc.errors.BackupSourceUnknownFormat(source, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a backup source is in unknown format.
-
exception
libioc.errors.CannotRedrawLine(reason=None, logger=None)[source]¶ Bases:
libioc.errors.LogExceptionRaised when manipulating previous log entries fails.
-
exception
libioc.errors.CommandFailure(returncode, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when iocage fails to execute a command.
-
exception
libioc.errors.ConflictingResourceSelection(source_a, source_b, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a resource was configured with conflicting sources.
-
exception
libioc.errors.DatasetExists(dataset_name, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a dataset already exists.
-
exception
libioc.errors.DatasetNotAvailable(dataset_name, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a dataset is not available.
-
exception
libioc.errors.DatasetNotJailed(dataset, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a ZFS share was not flagged as such.
-
exception
libioc.errors.DatasetNotMounted(dataset, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a dataset is not mounted but should be.
-
exception
libioc.errors.DefaultConfigNotFound(config_file_path, logger=None)[source]¶ Bases:
libioc.errors.IocException,FileNotFoundErrorRaised when no default config was found on the host.
-
exception
libioc.errors.DefaultReleaseNotFound(host_release_name, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when the default (host) release does not match a remote.
-
exception
libioc.errors.DevfsRuleException(message, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised on errors in devfs rules.
-
exception
libioc.errors.DistributionUnknown(distribution_name, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when the host distribution is unknown or not supported.
-
exception
libioc.errors.DownloadFailed(url, code, logger=None, level='error')[source]¶ Bases:
libioc.errors.IocExceptionRaised when downloading EOL warnings failed.
-
exception
libioc.errors.DuplicateDevfsRuleset(devfs_rules_file, reason=None, logger=None)[source]¶ Bases:
libioc.errors.DevfsRuleExceptionRaised when a duplicate devfs rule was found.
-
exception
libioc.errors.EventAlreadyFinished(event, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a event is touched that was already finished.
-
exception
libioc.errors.ExportDestinationExists(destination, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a backup operation is already in progress.
-
exception
libioc.errors.FirewallCommandFailure(logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a firewall command fails (Secure VNET).
-
exception
libioc.errors.FirewallDisabled(hint=None, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when the firewall is required but disabled (Secure VNET).
-
exception
libioc.errors.FstabDestinationExists(mountpoint, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when the destination directory does not exist.
-
exception
libioc.errors.HostReleaseUnknown(logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when the host release could not be determined.
-
exception
libioc.errors.HostUserlandVersionUnknown(logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when the hosts userland version could not be detected.
-
exception
libioc.errors.IllegalArchiveContent(asset_name, reason, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a release asset archive contains malicious content.
-
exception
libioc.errors.InsecureJailPath(path, logger=None)[source]¶ Bases:
libioc.errors.SecurityViolationRaised when a a path points outside of a resource.
-
exception
libioc.errors.InvalidDevfsRulesSyntax(devfs_rules_file, reason=None, logger=None)[source]¶ Bases:
libioc.errors.DevfsRuleExceptionRaised when a devfs rule has invalid syntax.
-
exception
libioc.errors.InvalidIPAddress(reason, ipv6, logger=None, level='error')[source]¶ Bases:
libioc.errors.IocExceptionRaised when an invalid IP address was assigned to a network.
-
exception
libioc.errors.InvalidInterfaceName(logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a NIC name is invalid.
-
exception
libioc.errors.InvalidJailConfigAddress(value, property_name, jail=None, logger=None, level='error')[source]¶ Bases:
libioc.errors.InvalidJailConfigValueRaised when a jail address is invalid.
-
exception
libioc.errors.InvalidJailConfigValue(property_name, jail=None, reason=None, logger=None, level='error')[source]¶ Bases:
libioc.errors.JailConfigError,ValueErrorRaised when a jail configuration value is invalid.
-
exception
libioc.errors.InvalidJailName(name, invalid_characters=None, logger=None)[source]¶ Bases:
libioc.errors.JailConfigErrorRaised when a jail has an invalid name.
-
exception
libioc.errors.InvalidLogLevel(log_level, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when the logger was initialized with an invalid log level.
-
exception
libioc.errors.InvalidMacAddress(mac_address, logger=None)[source]¶ Bases:
libioc.errors.IocException,ValueErrorRaised when a jail MAC address is invalid.
-
exception
libioc.errors.InvalidMountpoint(mountpoint, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a mountpoint was invalid or not found.
-
exception
libioc.errors.InvalidNetworkBridge(reason=None, logger=None)[source]¶ Bases:
libioc.errors.IocException,ValueErrorRaised when a network bridge is invalid.
-
exception
libioc.errors.InvalidReleaseAssetSignature(name, asset_name, logger=None)[source]¶ Bases:
libioc.errors.UpdateFailureRaised when a release signature is invalid.
-
exception
libioc.errors.InvalidReleaseName(name, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when interacting with an unsupported release.
-
exception
libioc.errors.InvalidSnapshotIdentifier(identifier, logger=None)[source]¶ Bases:
libioc.errors.SnapshotErrorRaised when a snapshot identifier is invalid.
-
exception
libioc.errors.InvalidSourceName(logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a source name is invalid.
-
exception
libioc.errors.IocException(message, level='error', silent=False, append_warning=False, warning=None, logger=None)[source]¶ Bases:
ExceptionA well-known exception raised by liblibioc.
-
exception
libioc.errors.IocageNotActivated(logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when iocage is not active on any ZFS pool.
-
exception
libioc.errors.JailAlreadyExists(jail, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when the jail already exists.
-
exception
libioc.errors.JailAlreadyRunning(jail, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when the jail is already running.
-
exception
libioc.errors.JailBackendMissing(logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when the jails backend was not found.
-
exception
libioc.errors.JailCommandFailed(returncode, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a jail command fails with an exit code > 0.
-
exception
libioc.errors.JailConfigError(message, level='error', silent=False, append_warning=False, warning=None, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a general configuration error occurs.
-
exception
libioc.errors.JailConfigNotFound(config_type, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a jail is not configured.
-
exception
libioc.errors.JailConigZFSIsNotAllowed(logger=None)[source]¶ Bases:
libioc.errors.JailConfigErrorRaised when a jail is not allowed to use ZFS shares.
-
exception
libioc.errors.JailDestructionFailed(jail, logger=None)[source]¶ Bases:
libioc.errors.JailExceptionRaised when the jail could not be destroyed.
-
exception
libioc.errors.JailDoesNotExist(jail, logger=None)[source]¶ Bases:
libioc.errors.JailExceptionRaised when the jail does not exist.
-
exception
libioc.errors.JailException(jail, message, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when an exception related to a jail occurs.
-
exception
libioc.errors.JailExecutionAborted(jail, logger=None)[source]¶ Bases:
libioc.errors.JailExceptionRaised when a jail command fails with an exit code > 0.
-
exception
libioc.errors.JailFilterException(message, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a jail filter is invalid.
-
exception
libioc.errors.JailFilterInvalidName(logger=None)[source]¶ Bases:
libioc.errors.JailFilterExceptionRaised when the name of a jail filter is invalid.
-
exception
libioc.errors.JailHookFailed(jail, hook, logger=None)[source]¶ Bases:
libioc.errors.JailExceptionRaised when the jail could not be launched.
-
exception
libioc.errors.JailHostIdMismatch(host_hostid, jail, logger=None)[source]¶ Bases:
libioc.errors.JailExceptionRaised when attempting to start a jail with mismatching hostid.
-
exception
libioc.errors.JailIsTemplate(jail, logger=None)[source]¶ Bases:
libioc.errors.JailExceptionRaised when the jail is a template but should not be.
-
exception
libioc.errors.JailLaunchFailed(jail, reason=None, logger=None)[source]¶ Bases:
libioc.errors.JailExceptionRaised when the jail could not be launched.
-
exception
libioc.errors.JailNotFound(text, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when the jail was not found.
-
exception
libioc.errors.JailNotRunning(jail, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when the jail is not running.
-
exception
libioc.errors.JailNotSupplied(logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when no jail was supplied.
-
exception
libioc.errors.JailNotTemplate(jail, logger=None)[source]¶ Bases:
libioc.errors.JailExceptionRaised when the jail is no template but should be one.
-
exception
libioc.errors.JailStateUpdateFailed(logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a JLS query failed.
-
exception
libioc.errors.JailUnknownIdentifier(logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when the jail has an unknown identifier.
-
exception
libioc.errors.ListableResourceNamespaceUndefined(logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a ListableResource was not defined with a namespace.
-
exception
libioc.errors.LogException(message, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when logging fails.
-
exception
libioc.errors.MissingDevfsRulesetName(devfs_rules_file, logger=None)[source]¶ Bases:
libioc.errors.DevfsRuleExceptionRaised when a duplicate devfs rule was found.
-
exception
libioc.errors.MissingFeature(feature_name, plural=False, logger=None)[source]¶ Bases:
libioc.errors.IocException,NotImplementedErrorRaised when an iocage feature is not fully implemented yet.
-
exception
libioc.errors.MountFailed(mountpoint, reason=None, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a mount operation fails.
-
exception
libioc.errors.MustBeRoot(message, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when iocage is executed without root permission.
-
exception
libioc.errors.NonReleaseUpdateFetch(resource, logger=None)[source]¶ Bases:
libioc.errors.UpdateFailureRaised when attempting to fetch updates for a custom release.
-
exception
libioc.errors.NotAnIocageZFSProperty(property_name, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when iocage attempts to touch a non-iocage ZFS property.
-
exception
libioc.errors.PkgNotFound(message=None, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when the pkg package was not found in the local mirror.
Bases:
libioc.errors.IocExceptionRaised when the list could not be downloaded from the remote.
Bases:
libioc.errors.IocExceptionRaised when the list could not be downloaded from the remote.
-
exception
libioc.errors.ReleaseNotFetched(name, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a release was not yet fetched.
-
exception
libioc.errors.ReleaseUpdateBranchLookup(release_name, reason=None, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when failing to lookup the remote update branch.
-
exception
libioc.errors.ResourceLimitActionFailed(action, logger=None)[source]¶ Bases:
libioc.errors.IocException,KeyErrorRaised when a resource limit has is unknown.
-
exception
libioc.errors.ResourceLimitUnknown(logger=None)[source]¶ Bases:
libioc.errors.IocException,KeyErrorRaised when a resource limit has is unknown.
-
exception
libioc.errors.ResourceUnmanaged(dataset_name, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when locating a resources dataset on a root dataset fails.
-
exception
libioc.errors.SecurityViolation(reason, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when iocage has security concerns.
-
exception
libioc.errors.SecurityViolationConfigJailEscape(file, logger=None)[source]¶ Bases:
libioc.errors.SecurityViolationRaised when a file symlinks to a location outside of the jail.
-
exception
libioc.errors.SnapshotCreation(reason=None, logger=None)[source]¶ Bases:
libioc.errors.SnapshotErrorRaised when creating a snapshot failed.
-
exception
libioc.errors.SnapshotDeletion(reason=None, logger=None)[source]¶ Bases:
libioc.errors.SnapshotErrorRaised when deleting a snapshot failed.
-
exception
libioc.errors.SnapshotError(message, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised on snapshot related errors.
-
exception
libioc.errors.SnapshotNotFound(snapshot_name, dataset_name, logger=None)[source]¶ Bases:
libioc.errors.SnapshotErrorRaised when a snapshot was not found.
-
exception
libioc.errors.SnapshotRollback(reason=None, logger=None)[source]¶ Bases:
libioc.errors.SnapshotErrorRaised when rolling back a snapshot failed.
-
exception
libioc.errors.SourceNotFound(logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a source was not found.
-
exception
libioc.errors.UndefinedProvisionerMethod(logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a provisioner method is not set.
-
exception
libioc.errors.UndefinedProvisionerSource(logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a provisioner source is not set.
-
exception
libioc.errors.UnknownConfigProperty(key, logger=None, level='error', jail=None)[source]¶ Bases:
libioc.errors.IocException,KeyErrorRaised when a unknown jail config property was used.
-
exception
libioc.errors.UnmountFailed(mountpoint=None, reason=None, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when an unmount operation fails.
-
exception
libioc.errors.UnsupportedRelease(version, logger=None)[source]¶ Bases:
libioc.errors.MissingFeatureRaised when interacting with an unsupported release.
-
exception
libioc.errors.UpdateFailure(name, reason=None, logger=None, level='error')[source]¶ Bases:
libioc.errors.IocExceptionRaised when an update fails.
-
exception
libioc.errors.VirtualFstabLineHasNoRealIndex(logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when attempting to access the index of a virtual fstab line.
-
exception
libioc.errors.VnetBridgeDoesNotExist(bridge_name, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a vnet bridge is missing.
-
exception
libioc.errors.VnetBridgeMissing(logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a vnet bridge is missing.
-
exception
libioc.errors.ZFSException(message, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when a ZFS pool not available.
-
exception
libioc.errors.ZFSPoolInvalid(consequence, logger=None)[source]¶ Bases:
libioc.errors.IocException,TypeErrorRaised when a ZFS pool is invalid.
Bases:
libioc.errors.IocExceptionRaised when a ZFS pool not available.
-
exception
libioc.errors.ZFSSourceMountpoint(dataset_name, logger=None)[source]¶ Bases:
libioc.errors.IocExceptionRaised when iocage could not determine its mountpoint.