Installation and configuration

Install

Important

First need to do setting up the environment. All commands are executed only from superuser.

Mode superuser:

sudo -i
  1. Install package:

    • from Python packages repository:

      pip3 install nova-journal-middleware
      

Note

To install Nova Journal Middleware on Astra Linux (Smolensk) do following:

  1. Connect the provided repository with AccentOS packages.

  2. Install the package with the command:

    sudo apt install -y aos-nova-journal-middleware
    

Configure

  1. You need to connect an audit filter to the service configuration file to logging actions on objects Nova:

    • Add filter definition to configuration file /etc/nova/api-paste.ini:

      [filter:audit]
      paste.filter_factory = nova_journal_middleware.middleware:filter_factory
      
    • Add created filter to the key keystone in API request processing chain:

      [composite:openstack_compute_api_v21]
      use = call:nova.api.auth:pipeline_factory_v21
      noauth2 = cors compute_req_id faultwrap sizelimit noauth2 osapi_compute_app_v21
      keystone = cors compute_req_id faultwrap sizelimit authtoken keystonecontext audit osapi_compute_app_v21
      
    • Set up sending notifications to the message queue in the file /etc/nova/nova.conf on the control node and all compute nodes:

      [oslo_messaging_notifications]
      driver = messagingv2
      
  2. Restart nova-api service:

    # Debian:
    systemctl restart nova-api.service