metalsmith.exceptions module

exception metalsmith.exceptions.CapabilitiesNotFound(message, capabilities)

Bases: metalsmith.exceptions.ReservationFailed

Requested capabilities do not match any nodes.

Variables

requested_capabilities – Requested node’s capabilities.

exception metalsmith.exceptions.CustomPredicateFailed(message, nodes)

Bases: metalsmith.exceptions.ReservationFailed

Custom predicate yielded no nodes.

Variables

nodes – List of nodes that were checked.

exception metalsmith.exceptions.DeploymentFailed

Bases: metalsmith.exceptions.Error

Deployment failed.

metalsmith.exceptions.DeploymentFailure

alias of metalsmith.exceptions.DeploymentFailed

exception metalsmith.exceptions.DeploymentTimeout

Bases: metalsmith.exceptions.DeploymentFailed

Timeout during deployment.

exception metalsmith.exceptions.Error

Bases: Exception

Base class for Metalsmith errors.

exception metalsmith.exceptions.InstanceNotFound

Bases: metalsmith.exceptions.Error

Instance not found or node doesn’t have an instance associated.

exception metalsmith.exceptions.InvalidImage

Bases: metalsmith.exceptions.Error

Requested image is invalid and cannot be used.

metalsmith.exceptions.InvalidInstance

alias of metalsmith.exceptions.InstanceNotFound

exception metalsmith.exceptions.InvalidNIC

Bases: metalsmith.exceptions.Error

Requested NIC is invalid and cannot be used.

exception metalsmith.exceptions.InvalidNode

Bases: metalsmith.exceptions.Error

This node cannot be deployed onto.

exception metalsmith.exceptions.NodesNotFound(resource_class, conductor_group)

Bases: metalsmith.exceptions.ReservationFailed

Initial nodes lookup returned an empty list.

Variables
  • requested_resource_class – Requested resource class.

  • requested_conductor_group – Requested conductor group to pick nodes from.

exception metalsmith.exceptions.ReservationFailed

Bases: metalsmith.exceptions.Error

Failed to reserve a suitable node.

This is the base class for all reservation failures.

exception metalsmith.exceptions.UnknownRootDiskSize

Bases: metalsmith.exceptions.Error

Cannot determine the root disk size.