Set the directory for lock files

Set the directory for lock filesΒΆ

Note

This feature is available starting from the MCP 2019.2.7 maintenance update. Before using the feature, follow the steps described in Apply maintenance updates.

You can set the directory for lock files for the Ceilometer, Cinder, Designate, Glance, Ironic, Neutron, and Nova OpenStack services by specifying the lock_path parameter in the Reclass model. This section provides the example of the lock path configuration for Nova.

To set the lock path for Nova:

  1. Open your Git project repository with the Reclass model on the cluster level.

  2. Define the lock_path parameter:

    1. In openstack/control.yml, specify:

      parameters:
        nova:
          controller:
            concurrency:
              lock_path: '/var/lib/nova/tmp'
      
    2. In openstack/compute.yml, specify:

      parameters:
        nova:
          compute:
            concurrency:
              lock_path: '/var/lib/nova/tmp'
      
  3. Apply the changes from the Salt Master node:

    salt -C 'I@nova:controller or I@nova:compute' saltutil.refresh_pillar
    salt -C 'I@nova:controller' state.apply nova.controller
    salt -C 'I@nova:compute' state.apply nova.compute