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.DeploymentFailure(message, nodes)

Bases: metalsmith.exceptions.Error

One or more nodes have failed the deployment.

Variables:nodes – List of failed nodes.
exception metalsmith.exceptions.Error

Bases: exceptions.Exception

Base class for Metalsmith errors.

exception metalsmith.exceptions.InvalidImage

Bases: metalsmith.exceptions.Error

Requested image is invalid and cannot be used.

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.NoNodesReserved(nodes)

Bases: metalsmith.exceptions.ReservationFailed

All nodes are already reserved or failed validation.

Variables:nodes – List of nodes that were checked.
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.TraitsNotFound(message, traits)

Bases: metalsmith.exceptions.ReservationFailed

Requested traits do not match any nodes.

Variables:requested_traits – Requested node’s traits.
exception metalsmith.exceptions.UnknownRootDiskSize

Bases: metalsmith.exceptions.Error

Cannot determine the root disk size.

exception metalsmith.exceptions.ValidationFailed

Bases: metalsmith.exceptions.ReservationFailed

Validation failed for all requested nodes.