The Allocation Class¶
Allocation class inherits from
- class openstack.baremetal.v1.allocation.Allocation(_synchronized=False, connection=None, **attrs)¶
The base resource
connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of
self._connectionin Resource code should protect itself with a check for None.
The candidate nodes for this allocation.
Timestamp at which the allocation was created.
A set of one or more arbitrary metadata key and value pairs.
The UUID for the allocation.
The last error for the allocation.
A list of relative links, including the self and bookmark links.
The name of the allocation.
The node UUID or name to create the allocation against, bypassing the normal allocation process.
UUID of the node this allocation belongs to.
The requested resource class.
The state of the allocation.
The requested traits.
Timestamp at which the allocation was last updated.
- wait(session, timeout=None, ignore_error=False)¶
Wait for the allocation to become active.
Adapter) – The session to use for making this request.
timeout – How much (in seconds) to wait for the allocation. The value of
None(the default) means no client-side timeout.
ignore_error – If
True, this call will raise an exception if the allocation reaches the
errorstate. Otherwise the error state is considered successful and the call returns.
ResourceFailureif allocation fails and