manila/doc/source/install/install-controller-ubuntu.rst
linpeiwen bab899068c Delete unavailable py2 package
The openstack Ussuri and Victoria versions no longer support the
Centos7 and pyrhon2 environment packages. Correct the missing
problems in the latest document

Change-Id: If139927730071448abc04e1ea7ebb615749e7e3d
2020-12-16 01:11:41 +00:00

1.7 KiB

Install and configure controller node on Ubuntu

This section describes how to install and configure the Shared File Systems service, code-named manila, on the controller node that runs Ubuntu. This service requires at least one additional share node that manages file storage back ends.

Install and configure components

  1. Install the packages:

    # apt-get install manila-api manila-scheduler python3-manilaclient
  2. Edit the /etc/manila/manila.conf file and complete the following actions:

    • In the [database] section, configure database access:

      [database]
      ...
      connection = mysql+pymysql://manila:MANILA_DBPASS@controller/manila

      Replace MANILA_DBPASS with the password you chose for the Shared File Systems database.

  1. Populate the Shared File Systems database:

    # su -s /bin/sh -c "manila-manage db sync" manila

    Note

    Ignore any deprecation messages in this output.

Finalize installation

  1. Restart the Shared File Systems services:

    # service manila-scheduler restart
    # service manila-api restart
  2. By default, the Ubuntu packages create an SQLite database. Because this configuration uses an SQL database server, you can remove the SQLite database file:

    # rm -f /var/lib/manila/manila.sqlite