
While we should not start using this for cloning things in the gate yet, the opendev.org links provide for a nicer browsing experience already even though the service is in beta. Go ahead and swap our browsing links. While in there, remove some masakari references to github links to the source code. Masakari now publishes api docs to developer.openstack.org so there is no need to point people to source code for api docs. Change-Id: I14afa3476f9832ef433ec744e888348fc9a359e3
2.8 KiB
Managing Nodes
Node is a logical object managed by the Senlin service. A node can be a member of at most one cluster at any time. A node can be an orphan node which means it doesn't belong to any clusters.
List Nodes
To examine the list of Nodes:
../../examples/clustering/node.py
When listing nodes, you can specify the sorting option using the
sort
parameter and you can do pagination using the
limit
and marker
parameters.
Full example: manage node
Create Node
When creating a node, you will provide a dictionary with keys and values according to the node type referenced.
../../examples/clustering/node.py
Optionally, you can specify a metadata
keyword argument
that contains some key-value pairs to be associated with the node.
Full example: manage node
Get Node
To get a node based on its name or ID:
../../examples/clustering/node.py
Full example: manage node
Find Node
To find a node based on its name or ID:
../../examples/clustering/node.py
Full example: manage node
Update Node
After a node is created, most of its properties are immutable. Still,
you can update a node's name
and/or
params
.
../../examples/clustering/node.py
Full example: manage node
Delete Node
A node can be deleted after creation, provided that it is not referenced by any active clusters. If you attempt to delete a node that is still in use, you will get an error message.
../../examples/clustering/node.py
Full example: manage node
Check Node
If the underlying physical resource is not healthy, the node will be set to ERROR status.
../../examples/clustering/node.py
Full example: manage node
Recover Node
To restore a specified node.
../../examples/clustering/node.py