Skip to content

Commit a4d5520

Browse files
authored
Merge pull request #46 from stackhpc/baremetal-discovery-improvements
Improve baremetal discovery docs
2 parents 5863022 + b202c9d commit a4d5520

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

source/include/baremetal_management.rst

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Static switch configuration
123123
- Optionally switches the node onto the provisioning network (when using ``--enable-discovery``)
124124

125125
+ NOTE: This is a dangerous operation as it can wipe out the dynamic VLAN configuration applied by neutron/ironic.
126-
You should only run this when initially enrolling a node. It is possible to use the ``interface-description-limit``. For example:
126+
You should only run this when initially enrolling a node, and should always use the ``interface-description-limit`` option. For example:
127127

128128
.. code-block::
129129
@@ -156,7 +156,7 @@ Ironic dynamically configures the switches using the Neutron `Networking Generic
156156

157157
- Only configures VLAN membership of the switch interfaces or port groups. To prevent conflicts with the static switch configuration,
158158
the convention used is: after the node is in service in Ironic, VLAN membership should not be manually adjusted and
159-
should be left to be controlled by ironic i.e *don't* use ``--enable-discovery`` without a limit when configuring the
159+
should be left to be controlled by ironic i.e *don't* use ``--enable-discovery`` without an interface limit when configuring the
160160
switches with kayobe.
161161
- Ironic is configured to use the neutron networking driver.
162162

@@ -202,7 +202,7 @@ The switch configuration that NGS will apply to these ports is detailed in :ref:
202202
Ironic node discovery
203203
---------------------
204204

205-
Discovery is the process of PXE booting the nodes into the Ironic Python Agent (IPA) ramdisk. This ramdisk will collect hardware and networking configuration from the node in a process known as introspection. This data is used to populate the baremetal node object in Ironic. The series of steps you need to take to enrol a new node is as follows:
205+
Discovery is a process used to automatically enrol new nodes in Ironic. It works by PXE booting the nodes into the Ironic Python Agent (IPA) ramdisk. This ramdisk will collect hardware and networking configuration from the node in a process known as introspection. This data is used to populate the baremetal node object in Ironic. The series of steps you need to take to enrol a new node is as follows:
206206

207207
- Configure credentials on the |bmc|. These are needed for Ironic to be able to perform power control actions.
208208

@@ -220,7 +220,7 @@ Discovery is the process of PXE booting the nodes into the Ironic Python Agent (
220220

221221
.. ifconfig:: deployment['kayobe_manages_physical_network']
222222

223-
- Put the node onto the provisioning network by using the ``--enable discovery`` flag. See :ref:`static-switch-config`.
223+
- Put the node onto the provisioning network by using the ``--enable-discovery`` flag and either ``--interface-description-limit`` or ``--interface-limit`` (do not run this command without one of these limits). See :ref:`static-switch-config`.
224224

225225
* This is only necessary to initially discover the node. Once the node is in registered in Ironic,
226226
it will take over control of the the VLAN membership. See :ref:`dynamic-switch-configuration`.
@@ -243,6 +243,27 @@ Discovery is the process of PXE booting the nodes into the Ironic Python Agent (
243243
244244
- PXE boot the node.
245245

246+
- If the discovery process is successful, the node will appear in Ironic and will get populated with the necessary information from the hardware inspection process.
247+
248+
.. TODO: Link to the Kayobe inventory in the repo
249+
250+
- Add node to the Kayobe inventory in the ``baremetal-compute`` group.
251+
252+
- The node will begin in the ``enroll`` state, and must be moved first to ``manageable``, then ``available`` before it can be used.
253+
254+
.. ifconfig:: deployment['ironic_automated_cleaning']
255+
256+
The node must complete a cleaning process before it can reach the available state.
257+
258+
* Use Kayobe to attempt to move the node to the ``available`` state.
259+
260+
.. code-block:: console
261+
262+
source etc/kolla/public-openrc.sh
263+
kayobe baremetal compute provide --limit <node>
264+
265+
- Once the node is in the ``available`` state, Nova will make the node available for scheduling. This happens periodically, and typically takes around a minute.
266+
246267
.. _tor-switch-configuration:
247268

248269
Top of Rack (ToR) switch configuration

0 commit comments

Comments
 (0)