Node Registration ProcessΒΆ
Crowbar uses it’s API to creates nodes and bind their initial NodeRoles (generally No-Op roles).
Use the following steps to register a new node in the system and get it under Crowbar control. These steps are automatically used by the PXE discovery image (Sledgehammer) when Nodes are detected during their initial boot.
POST to
/api/v2/nodesto create a basic Node object. This will not have any roles bound to it nor will it have any addresses from the admin network assigned to it. The node will neither be alive nor available.in the CLI, use
crowbar nodes create ...(Optional) PUT any node-specific hints that may be needed for the bootstrap process, including node MAC addresses or your suggested IP address.
POST to
/api/v2/node_rolesto bind default roles to the node. Binding crowbar-admin-node will result in the node having all the roles needed for it to act as an admin node, and crowbar-managed-node will bind all the roles needed for the Sledgehammer discovery process to work.in the CLI, use
crowbar nodes [node] bind [role](Optional) PUT any node-specific attrib updates to the node.
PUT to
/api/v2/nodes/[node-key]/committo move all the node’s NodeRoles from PROPOSED to TODO, and mark the node as available (but still not alive)PUT to
/api/v2/nodes/[node-key]/aliveto make the node as alive so processing can startAn example of this process is implemented in the
production.shscript in the root of the OpenCrowbar repo.