Modify the configuration of the OpenStack services

Modify the configuration of the OpenStack servicesΒΆ

Caution

The Fuel command-line interface has been updated. Although old fuel commands are still available, we recommend that you use the new fuel2 commands instead. See the Fuel CLI commands comparison matrix.

You can customize the hardcoded, or provided by Nailgun, configuration values, as well as introduce new configuration options for the OpenStack services, such as Nova, Neutron, and Keystone using CLI.

You can change the Nova, Neutron, and Keystone configuration for a single node, all nodes with a specific role, or a whole OpenStack environment.

Changes to the OpenStack services configuration can be applied before or after you deploy an OpenStack environment.

After you apply changes, the services will be automatically restarted.

The override_resources Puppet resource applies changes to the existing configuration resources and creates the new ones that were not previously defined.

To modify the configuration of the OpenStack services:

  1. Log in to the Fuel Master node.

  2. Edit the .yaml file with the configuration options of the services that you want to change.

    Example:

    configuration:
      nova_config:
        DEFAULT/debug:
          value: True
        DEFAULT/amqp_durable_queues:
          value: False
      keystone_config:
        DEFAULT/default_publisher_id:
          ensure: absent
        DEFAULT/crypt_strength:
          value: 6000
    
  3. Upload the .yaml file:

    • To upload the changes for an OpenStack environment:

      fuel openstack-config --env <env_id> --upload file.yaml
      
    • To upload the changes for all nodes with a specific role:

      fuel openstack-config --env <env_id> --role compute \
      --upload <file.yaml>
      
    • To upload the changes for selected nodes:

      fuel openstack-config --env <env_id> --node 1,2,3 \
      --upload <file.yaml>
      
  4. Apply the changes:

    • To apply the changes for the environment:

      fuel openstack-config --env <env_id> --execute
      
    • To apply the changes for all nodes with a role:

      fuel openstack-config --env <env_id> --role compute --execute
      
    • To apply the changes for certain nodes:

      fuel openstack-config --env <env_id> --node 1,2,3 --execute
      

    The services will restart automatically.

  5. Optionally, run these additional commands:

    1. List the configuration changes history:

      fuel openstack-config --env <env_id> --list
      

      Note

      The --list parameter shows historical data only for the active configuration.

    2. Download the previously uploaded .yaml file with the configuration changes:

      1. Obtain the record number from the changes history:

        fuel openstack-config --env <env_id> --list
        
      2. Download the .yaml file:

        fuel openstack-config --id <id> --download