Using Ansible

This document describe how to install and use OpenSDS projects by using Ansible Installer. This document builds upon installer wiki

Installation requirements

  • Ubuntu 16.04 and packages
  • Docker-ce 18.06
  • Ansible 2.4.6 Please refer wiki page to install above requirements.

    Install OpenSDS using opensds-installer

    Clone opensds-installer repository and checkout Capri tag.

    git clone
    cd opensds-installer
    git checkout v0.6.0

    Default installation

    Below command will install default OpenSDS configuration and its dependant components in the Host/VM, where installer in running and host_ip set to localhost (

    cd ansible
    ansible-playbook site.yml -i local.hosts 

    Using OpenSDS How to test opensds cluster

    Specific feature configurations and installation

    Installer may be configured for specific features using configurations from YML files in path ansible/group_vars/. Following are some of the configurations that may be useful. More details available in wiki page


    Specific host: host_ip in ansible/group_vars/common.yml

    # This field indicates 


    Authentication strategy: opensds_auth_strategy in ansible/group_vars/auth.yml

    # OpenSDS authentication strategy, support 'noauth' and 'keystone'.
    opensds_auth_strategy: keystone


    Enable Telemetry: enable_telemetry_tools in ansible/group_vars/telemetry.yml

    # Do you need to install or clean up telemetry tools?
    enable_telemetry_tools: true 


    Enable Orchestration: enable_orchestration in ansible/group_vars/orchestration.yml

    # Install Orchestration Manager (true/false)
    enable_orchestration: true 

    Un-install and Clean-up

    Below command will clean OpenSDS and its dependant components

    ansible-playbook clean.yml -i local.hosts 

    Using OpenSDS

    OpenSDS features are accessible from a CLI or Dashboard Please refer wiki Section How to test opensds cluster for details of using OpenSDS features using CLI and OpenSDS Dashboard.

    Known issues

    1. If port 80 is not free, installer will fail.

    This is observed as multi-cloud (gelato) installation failure. Keystone require port 80 to be free and it will not start. Multi-cloud installation will wait for Keystone and timeout with failure.


    Free up port 80 of the Host/VM for Keystone. Example: If Apache2 service is using port 80, disable and stop this service with following steps

    systemctl disable apache2.service
    systemctl stop apache2.service

    2. Orchestration not working, installation is success.

    Sometimes during multiple installations DB gets corrupt and some StackStorms services may not be running (Eg. mistral-server, mistral.api). Because of this condition orchestration workflows will not run. To check this, go to StackStorm Installer folder and check st2ctl status as below.

    $ cd /opt/st2-installer-linux-amd64
    $ docker-compose exec stackstorm st2ctl status
    ##### st2 components status #####
    st2actionrunner PID: 99
    st2scheduler PID: 55
    mistral-server is not running.     -----------------------------> ERROR condition
    mistral.api is not running.        -----------------------------> ERROR condition

    To Fix this issue, run commands below:

    $ cd /opt/st2-installer-linux-amd64
    $ docker-compose exec stackstorm st2ctl stop
    $ docker-compose stop postgres
    $ docker system prune --volumes
    $ docker-compose up -d postgres
    $ docker-compose exec stackstorm st2ctl start
    ##### st2 components status #####
    st2actionrunner PID: 956
    mistral-server PID: 1400
    mistral.api PID: 1522

3. Telemetry

The package repository for Grafana (in Capri v0.6.0) may not be accessible and this causes the installation to fail.


A workaround is suggested in wiki



Mailing list: opensds-tech-discuss slack: #opensds Ideas/Bugs: issues