Installation

This article describes how to install Bacula Enterprise Openstack VM Plugin.

The installation process consists of two parts.

Note

Bacula Enterprise Openstack Plugin must be installed on Openstack host machine.

First, the installation of the bacula-enterprise-openstack-vm plugin with the BIM tool.

Second, configure the plugin as described in Configuration.

Third. by running the install script located at /opt/bacula/scripts/install-openstack-vm.sh two times and adjusting the Bacula director configuration.

  • First time with the configure option root@user:~# /opt/bacula/scripts/install-openstack-vm.sh configure

  • Second time with the install option root@user:~# /opt/bacula/scripts/install-openstack-vm.sh install

  • At this point a configuration sample located at /opt/bacula/openstack/bacula-dir.conf.sample is created. Inside this file, there is a configuration example that should be adjusted and added to /opt/bacula/etc/bacula-dir.conf.

  • The install script can be run the third time with the test option with root@user:~# /opt/bacula/scripts/install-openstack-vm.sh test to check if the installation is correct.

Note

If the Bacula director already has a Client resource, the Client in bacula-dir.conf.sample should be ignored as the Client resource should not be duplicated.

Note

The OpenStack account name should be the user running the cinder-backup service. Use any of the following commands to check the user running the cinder-backup service:

# systemctl status cinder.backup.service
#  ps aux | grep "cinder-backup"

Steps

Here is an example how the install script should be used.

  1. Run:

root@user:~# /opt/bacula/scripts/install-openstack-vm.sh configure

Enter the unix Openstack account name [stack]:

Enter the Bacula Director Name [stackdev-dir]:

Enter the Bacula Director Address [stackdev]:

Enter the Bacula Director Port [9101]:

Enter the Bacula FileDaemon name [stackdev-fd]:

INFO: Creating configuration template for the Director
      /opt/bacula/openstack/bacula-dir.conf.sample will help you to setup
      a Job with the Bacula Enterprise Openstack Plugin.

      The template can be included in your Director configuration and
      you need to review all items marked as "might need to be adjusted"

root@user:~# /opt/bacula/scripts/install-openstack-vm.sh install

Enter the unix Openstack account name: [stack]


Enter path to cinder drivers folder or automatically search system for it

'/opt/stack/cinder/cinder/backup/drivers/bacula.py' -> '/opt/bacula/share/bacula.py'
  1. Once the director configuration is updated, run:

root@stackdev:/opt/bacula# scripts/install-openstack-vm.sh test

Enter the unix Openstack account name: [stack]

1000 OK: 10002 stackdev-dir Version: 18.0.2 (05 March 2024)
INFO: Connection to the Director OK
INFO: Connection from the Director to the Client OK
INFO: Plugin installed correctly
INFO: Job found on the Director
INFO: FileSet configured on the Director
INFO: RestoreJob found on the Director
INFO: Test job finished ok

Result

Openstack VM Plugin is installed.

Go back to the main Openstack VM page.