Skip to main content

ClusterNotListedError

from lium.sdk import ClusterNotListedError

Defined in lium.sdk.exceptions.

The cluster rent may have gone through, but the pod listing did not show a whole cluster within the lookup window.

Two ways in. confirmed is True when the rent route confirmed the order and named the member pods (pod_ids) but the listing did not show every one of them, or failed: the nodes are rented and billing. confirmed is False when the rent route gave no answer (timeout, 5xx) and the by-name lookup then found fewer members than requested (none included), or could not list at all: the nodes may be rented. Either way a second up_cluster may rent a second cluster.

Attributes:​
  • pod_ids: The member pod ids the API returned; empty when the order was not confirmed.
  • listed: The member ids the last listing showed.
  • confirmed: Whether the API confirmed the order.
  • backup_notice: The rent answer's backup notice, if any: the members may run without backups.
ClusterNotListedError(
message: str,
*,
pod_ids=(),
listed=(),
confirmed: bool = True,
backup_notice=None
)

Catching it​

ClusterNotListedError subclasses LiumError → Exception, so a handler for any of those also catches it.

from lium.sdk import ClusterNotListedError

try:
... # any SDK call
except ClusterNotListedError as e:
print(e)