<commit_before>Deploying the Overcloud
=======================

All the commands on this page require that the appropriate stackrc file has
been sourced into the environment::

    source stackrc

Registering Nodes
-----------------

Register nodes for your deployment with Ironic::

    instack-ironic-deployment --nodes-json instackenv.json --register-nodes

Discovering Nodes
-----------------

Discover hardware attributes of nodes and match them to a deployment profile:

.. admonition:: Ceph
   :class: ceph-tag

   When deploying Ceph, you will need to configure the ``edeploy`` plugin so
   that it will assign the ``ceph-storage`` profile to at least one system. To
   do so, you need to **prepend** the following ``('ceph-storage', '1')`` into
   the list of profiles defined in ``/etc/edeploy/state``, before initiating the
   nodes discovery. [#]_

::

    instack-ironic-deployment --discover-nodes

Check what profiles were matched for the discovered nodes::

    instack-ironic-deployment --show-profile

If you have problems with discovery step, please check `ironic-discoverd
troubleshooting documentation`_.

.. _ironic-discoverd troubleshooting documentation: https://github.com/stackforge/ironic-discoverd#troubleshooting

Ready-state configuration
-------------------------

.. admonition:: Baremetal
   :class: baremetal-tag

   Some hardware has additional setup available, using its vendor-specific management
   interface.  See the :doc:`/vendor-specific` for details.

Deploying Nodes
---------------

Create the necessary flavors::

    instack-ironic-deployment --setup-flavors
<commit_msg>Add example to Ceph state file section<commit_after>Deploying the Overcloud
=======================

All the commands on this page require that the appropriate stackrc file has
been sourced into the environment::

    source stackrc

Registering Nodes
-----------------

Register nodes for your deployment with Ironic::

    instack-ironic-deployment --nodes-json instackenv.json --register-nodes

Discovering Nodes
-----------------

Discover hardware attributes of nodes and match them to a deployment profile:

.. admonition:: Ceph
   :class: ceph-tag

   When deploying Ceph, you will need to configure the ``edeploy`` plugin so
   that it will assign the ``ceph-storage`` profile to at least one system. To
   do so, you need to **prepend** the following ``('ceph-storage', '1')`` into
   the list of profiles defined in ``/etc/edeploy/state``, before initiating the
   nodes discovery. [#]_

   Example contents of ``/etc/edeploy/state``::

       [('ceph-storage', '1'), ('control', '1'), ('compute', '*')]

::

    instack-ironic-deployment --discover-nodes

Check what profiles were matched for the discovered nodes::

    instack-ironic-deployment --show-profile

If you have problems with discovery step, please check `ironic-discoverd
troubleshooting documentation`_.

.. _ironic-discoverd troubleshooting documentation: https://github.com/stackforge/ironic-discoverd#troubleshooting

Ready-state configuration
-------------------------

.. admonition:: Baremetal
   :class: baremetal-tag

   Some hardware has additional setup available, using its vendor-specific management
   interface.  See the :doc:`/vendor-specific` for details.

Deploying Nodes
---------------

Create the necessary flavors::

    instack-ironic-deployment --setup-flavors

{'fraction_non_alphanumeric': 0.13913558318531677, 'fraction_numerical': 0.0011841326228537595, 'mean_word_length': 3.3940182054616383, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7534098', 'n_tokens_mistral': 942, 'n_tokens_neox': 890, 'n_words': 337}