<commit_before>Configure the Compute service to use the Bare Metal service
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The Compute service needs to be configured to use the Bare Metal service's
driver.  The configuration file for the Compute service is typically located at
``/etc/nova/nova.conf``.

.. note::
   This configuration file must be modified on the Compute service's
   controller nodes and compute nodes.

#. Change these configuration options in the ``default`` section, as follows:

    .. code-block:: ini

      [default]

      # Driver to use for controlling virtualization. Options
      # include: libvirt.LibvirtDriver, xenapi.XenAPIDriver,
      # fake.FakeDriver, baremetal.BareMetalDriver,
      # vmwareapi.VMwareESXDriver, vmwareapi.VMwareVCDriver (string
      # value)
      #compute_driver=<None>
      compute_driver=ironic.IronicDriver

      # Firewall driver (defaults to hypervisor specific iptables
      # driver) (string value)
      #firewall_driver=<None>
      firewall_driver=nova.virt.firewall.NoopFirewallDriver

      # The scheduler host manager class to use (string value)
      #scheduler_host_manager=host_manager
      scheduler_host_manager=ironic_host_manager

      # Virtual ram to physical ram allocation ratio which affects
      # all ram filters. This configuration specifies a global ratio<commit_msg>Adding note for ironic virt driver nova-compute changes<commit_after>Configure the Compute service to use the Bare Metal service
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The Compute service needs to be configured to use the Bare Metal service's
driver. The configuration file for the Compute service is typically located at
``/etc/nova/nova.conf``.

.. note::

   As of the Newton release, it is possible to have multiple
   nova-compute services running the ironic virtual driver (in
   nova) to provide redundancy. Bare metal nodes are mapped to the
   services via a hash ring. If a service goes down, the
   available bare metal nodes are remapped to different services.

   Once active, a node will stay mapped to the same nova-compute
   even when it goes down. The node is unable to be managed through
   the Compute API until the service responsible returns to an active
   state.

The following configuration file must be modified on the Compute
service's controller nodes and compute nodes.

#. Change these configuration options in the ``default`` section, as follows:

    .. code-block:: ini

      [default]

      # Driver to use for controlling virtualization. Options
      # include: libvirt.LibvirtDriver, xenapi.XenAPIDriver,
      # fake.FakeDriver, baremetal.BareMetalDriver,
      # vmwareapi.VMwareESXDriver, vmwareapi.VMwareVCDriver (string
      # value)
      #compute_driver=<None>
      compute_driver=ironic.IronicDriver

      # Firewall driver (defaults to hypervisor specific iptables
      # driver) (string value)
      #firewall_driver=<None>
      firewall_driver=nova.virt.firewall.NoopFirewallDriver

      # The scheduler host manager class to use (string value)
      #scheduler_host_manager=host_manager
      scheduler_host_manager=ironic_host_manager

      # Virtual ram to physical ram allocation ratio which affects
      # all ram filters. This configuration specifies a global ratio
{'fraction_non_alphanumeric': 0.08984375, 'fraction_numerical': 0.0, 'mean_word_length': 3.7968299711815563, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '6874900', 'n_tokens_mistral': 887, 'n_tokens_neox': 837, 'n_words': 341}