blob: 587172206cefc96b4fb397ca7907b69084e2bef5 [file] [log] [blame]
Vasyl Saienko7a4ae402018-01-30 16:37:14 +02001==============
2Manila Formula
3==============
4
5Manila is an OpenStack project to provide Shared Filesystems as a service”.
6
7Sample pillars
8==============
9
10Single manila service
11
12.. code-block:: yaml
13
14 manila:
15 common:
Ivan Berezovskiyc7bf43a2019-11-19 17:50:13 +040016 concurrency:
17 lock_path: '/var/lock/manila'
Vasyl Saienko7a4ae402018-01-30 16:37:14 +020018 database:
19 engine: mysql
20 host: 10.20.0.101
21 port: 3306
22 name: manila
23 user: manila
24 password: segreto
25 identity:
26 engine: keystone
27 host: 10.20.0.101
28 port: 35357
29 user: manila
30 password: segreto
31 region: RegionOne
32 tenant: service
33 endpoint_type: internalURL
34 cache:
35 engine: memcached
36 members:
37 - host: 10.20.0.102
38 port: 11211
39 - host: 10.20.0.103
40 port: 11211
41 - host: 10.20.0.104
42 port: 11211
43 api:
44 bind:
45 host: 10.20.0.102
46
47
Vasyl Saienkobf5c1202018-03-01 22:24:14 +020048Backend configuration
49=====================
50
51
Vasyl Saienkoae9441c2018-03-02 12:08:54 +020052Nexenta driver
Vasyl Saienkobf5c1202018-03-01 22:24:14 +020053
54.. code-block:: yaml
55
56 manila:
57 share:
58 enabled_share_backends:
59 nexenta:
60 name: nexenta
61 type: nexenta
62 enabled: true
63 dhss: false
64 nexenta_host: 1.2.3.4
65 nexenta_password: secretpassword
66 nexenta_user: nonexistent
67 nexenta_volume: volume1
68
Vasyl Saienkoae9441c2018-03-02 12:08:54 +020069Glusterfs driver
70
71.. code-block:: yaml
72
73
74 manila:
75 share:
76 enabled_share_backends:
77 glusterfs:
78 name: glusterfs
79 type: glusterfs
80 enabled: true
81 share_driver: manila.share.drivers.glusterfs_native.GlusterfsNativeShareDriver
82 dhss: false
83 glusterfs_ganesha_server_ip: 1.2.3.4
84 glusterfs_ganesha_server_password: secretpassword
85 glusterfs_ganesha_server_username: nonexistent
86 glusterfs_mount_point_base: state_path/mnt
87 glusterfs_server_password: secretpassword
88 glusterfs_path_to_private_key: /path/to/key
89 glusterfs_nfs_server_type: glusterfs
90 glusterfs_share_layout: share_layout
91 glusterfs_target: remove:target
92 glusterfs_servers:
93 - server1
94 - server2
95 glusterfs_volume_pattern: manila-share-volume-d+$
96
Vasyl Saienko0343ebf2018-04-12 11:33:28 +030097Client usage:
98=============
99
100The `manila.client` state provides ability to manage manila resources.
101
102Manage `share_type`
103
104.. code-block:: yaml
105
106
107 manila:
108 client:
109 enabled: true
110 server:
111 admin_identity:
112 share_type:
113 default:
114 extra_specs:
115 driver_handles_share_servers: false
Vasyl Saienkoae9441c2018-03-02 12:08:54 +0200116
sgarbuze8677fc2018-05-15 16:37:17 +0300117Enhanced logging with logging.conf
118----------------------------------
119
120By default logging.conf is disabled.
121
122That is possible to enable per-binary logging.conf with new variables:
123 * openstack_log_appender - set it to true to enable log_config_append for all OpenStack services;
124 * openstack_fluentd_handler_enabled - set to true to enable FluentHandler for all Openstack services.
125
126Only WatchedFileHandler and FluentHandler are available.
127
128Also it is possible to configure this with pillar:
129
130.. code-block:: yaml
131
132 manila:
133 common:
134 logging:
135 log_appender: true
136 log_handlers:
137 watchedfile:
138 enabled: true
139 fluentd:
140 enabled: true
141
Oleksandr Shyshko9de56382018-09-07 17:32:21 +0300142Enable x509 and ssl communication between Manila and Galera cluster.
143---------------------
144By default communication between Manila and Galera is unsecure.
145
146manila:
147 common:
148 database:
149 x509:
150 enabled: True
151
152You able to set custom certificates in pillar:
153
154manila:
155 common:
156 database:
157 x509:
158 cacert: (certificate content)
159 cert: (certificate content)
160 key: (certificate content)
161
162You can read more about it here:
163 https://docs.openstack.org/security-guide/databases/database-access-control.html
164
Oleksandr Bryndzii7df23f42019-05-22 17:49:44 +0300165Configmap configuration:
166----------------
167
168.. code-block:: yaml
169
170 manila:
171 common:
172 configmap:
173 DEFAULT:
174 default_share_type: default_share_type
175 share_name_template: share-%s
176 rootwrap_config: '/etc/manila/rootwrap.conf'
177 api_paste_config: '/etc/manila/api-paste.ini'
Oleksandr Bryndzii7df23f42019-05-22 17:49:44 +0300178
Oleksandr Pidrepnyid846ee22019-06-10 17:49:41 +0300179Don't manage services scheduling while upgrade
180----------------------------------------------
181For some special cases, don't manage services scheduling both enable and disable
182before and after upgrade procedure.
183
184If 'manage_service_maintenance: true' or not present - default behavior, disable services
185before upgrade and enable it after upgrade.
186If 'manage_service_maintenance: false' - don't disable and don't enable upgraded services
187scheduling before and after upgrade.
188
189.. code-block:: yaml
190
191 manila:
192 upgrade:
193 manage_service_maintenance: false
194
195
Vasyl Saienko7a4ae402018-01-30 16:37:14 +0200196More information
197================
198
199* https://wiki.openstack.org/wiki/Telemetry
200* https://docs.openstack.org/developer/manila/
201* https://github.com/openstack/manila
202* https://bugs.launchpad.net/manila