From abf8a3b862d7f2d67c71c0e40cbd9dccf5b89dad Mon Sep 17 00:00:00 2001
From: Mark Goddard <mark@stackhpc.com>
Date: Tue, 1 May 2018 18:33:56 +0100
Subject: [PATCH] Add node state management to ironic guide

Without these commands, the bare metal node will not be available for
scheduling in nova.

Change-Id: If1fc16721110b6c6e362bdd59aac02d9ec5d8415
---
 doc/source/reference/ironic-guide.rst | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/doc/source/reference/ironic-guide.rst b/doc/source/reference/ironic-guide.rst
index 8d176bc200..95f0fb17d6 100644
--- a/doc/source/reference/ironic-guide.rst
+++ b/doc/source/reference/ironic-guide.rst
@@ -93,7 +93,6 @@ Create a baremetal flavor:
 Create the baremetal node and associate a port. (Ensure to substitute correct
 values for the kernel, ramdisk, and MAC address for your baremetal node)
 
-
 .. code-block:: console
 
   openstack baremetal node create --driver ipmi --name baremetal-node \
@@ -110,6 +109,25 @@ values for the kernel, ramdisk, and MAC address for your baremetal node)
 
 .. end
 
+Make the baremetal node available to nova:
+
+.. code-block:: console
+
+  openstack baremetal node manage 57aa574a-5fea-4468-afcf-e2551d464412
+  openstack baremetal node provide 57aa574a-5fea-4468-afcf-e2551d464412
+
+.. end
+
+It may take some time for the node to become available for scheduling in nova.
+Use the following commands to wait for the resources to become available:
+
+.. code-block:: console
+
+  openstack hypervisor stats show
+  openstack hypervisor show 57aa574a-5fea-4468-afcf-e2551d464412
+
+.. end
+
 Booting the baremetal
 ~~~~~~~~~~~~~~~~~~~~~
 You can now use the following sample command to boot the baremetal instance:
-- 
GitLab