
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
1.9 KiB
Using OpenStack Baremetal
Before working with the Bare Metal service, you'll need to create a
connection to your OpenStack cloud by following the connect
user guide. This will
provide you with the conn
variable used in the examples
below.
Table of Contents
The primary resource of the Bare Metal service is the node.
CRUD operations
List Nodes
A node is a bare metal machine.
../examples/baremetal/list.py
Full example: baremetal resource list
Provisioning operations
Provisioning actions are the main way to manipulate the nodes. See Bare Metal service states documentation for details.
Manage and inspect Node
Managing a node in the enroll
provision state
validates the management (IPMI, Redfish, etc) credentials and moves the
node to the manageable
state. Managing a node in
the available
state moves it to the manageable
state. In this state additional actions, such as configuring RAID or
inspecting, are available.
Inspecting a node detects its properties by either talking to its BMC or by booting a special ramdisk.
../examples/baremetal/provisioning.py
Full example: baremetal provisioning
Provide Node
Providing a node in the manageable
provision
state makes it available for deployment.
../examples/baremetal/provisioning.py
Full example: baremetal provisioning