Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

15.4. Configure Basic Shared File System Service Settings

When manually installing the Shared File System service packages, the service's configuration file (namely, /etc/manila/manila.conf) will have no settings configured. You will need to manually uncomment/add and configure each setting as required.
The following code snippet is the basic configuration required for deploying the Shared File System service. You can copy its contents to /etc/manila/manila.conf, replacing the necessary variables when you do:
[DEFAULT]

osapi_share_listen=0.0.0.0
sql_connection=mysql://manila:MANILADBPASS@CONTROLLERIP/manila # 1 2
api_paste_config=/etc/manila/api-paste.ini
state_path=/var/lib/manila
sql_idle_timeout=3600
storage_availability_zone=nova
rootwrap_config=/etc/manila/rootwrap.conf
auth_strategy=keystone
nova_catalog_info=compute:nova:publicURL
nova_catalog_admin_info=compute:nova:adminURL
nova_api_insecure=False
nova_admin_username=nova
nova_admin_password=NOVAADMINPASS # 3
nova_admin_tenant_name=services
nova_admin_auth_url=http://localhost:5000/v2.0
network_api_class=manila.network.neutron.neutron_network_plugin.NeutronNetworkPlugin
debug=False
verbose=True
log_dir=/var/log/manila
use_syslog=False
rpc_backend=manila.openstack.common.rpc.impl_kombu
control_exchange=openstack
amqp_durable_queues=False

[oslo_messaging_rabbit]
rabbit_ha_queues=False
rabbit_userid=guest
rabbit_password=guest
rabbit_port=5672
rabbit_use_ssl=False
rabbit_virtual_host=/
rabbit_host=CONTROLLERIP # 4
rabbit_hosts=CONTROLLERIP:5672 # 5

[oslo_concurrency]
lock_path=/tmp/manila/manila_locks
Replace the following values:

1

MANILADBPASS is the database password of the Shared File System service, which you used in Section 15.5, “Create the Shared File System Service Database”.

2 4 5

CONTROLLERIP is the IP address of the Controller node.

3

NOVAADMINPASS is the admin password of the Compute service. This is identical to the value of nova_admin_password in /etc/neutron/neutron.conf.

Note

If you deployed OpenStack using the Director, you can also find this password in the undercloud's /home/stack/tripleo-overcloud-passwords file.
As of this release, some Shared File System service settings are still defined in /etc/manila/api-paste.ini. Update this file with the following code snippet:
[filter:keystonecontext]
paste.filter_factory = manila.api.middleware.auth:ManilaKeystoneContext.factory

[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
service_protocol = http
service_host = localhost
service_port = 5000
auth_host = localhost
auth_port = 35357
auth_protocol = http
admin_tenant_name = services
admin_user = manila
admin_password = MANILAPASS # 1
signing_dir = /var/lib/manila
auth_uri=http://CONTROLLERIP:5000/v2.0 # 2
identity_uri=http://CONTROLLERIP:35357 # 3

1

MANILAPASS is the admin password of the manila service user (which you used in Section 15.3, “Create the Shared File System Service Identity Records”).

2 3

CONTROLLERIP is the IP address of the Controller node.