blob: 2ae16fa7da6703e934384a5d6595680f22ad2cd7 [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 Berezovskiy4c724a12019-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
Martin Polreich2c7a5fd2019-12-17 14:09:03 +010048Change default service policy configuration:
49--------------------------------------------
50
51.. code-block:: yaml
52
53 manila:
54 api:
55 policy:
56 quota_class_set:update: 'rule:default'
57 service:update: 'rule:admin_or_owner'
58 # Add key without value to remove line from policy.json
59 share:create:
60
Vasyl Saienkobf5c1202018-03-01 22:24:14 +020061Backend configuration
62=====================
63
64
Vasyl Saienkoae9441c2018-03-02 12:08:54 +020065Nexenta driver
Vasyl Saienkobf5c1202018-03-01 22:24:14 +020066
67.. code-block:: yaml
68
69 manila:
70 share:
71 enabled_share_backends:
72 nexenta:
73 name: nexenta
74 type: nexenta
75 enabled: true
76 dhss: false
77 nexenta_host: 1.2.3.4
78 nexenta_password: secretpassword
79 nexenta_user: nonexistent
80 nexenta_volume: volume1
81
Vasyl Saienkoae9441c2018-03-02 12:08:54 +020082Glusterfs driver
83
84.. code-block:: yaml
85
86
87 manila:
88 share:
89 enabled_share_backends:
90 glusterfs:
91 name: glusterfs
92 type: glusterfs
93 enabled: true
94 share_driver: manila.share.drivers.glusterfs_native.GlusterfsNativeShareDriver
95 dhss: false
96 glusterfs_ganesha_server_ip: 1.2.3.4
97 glusterfs_ganesha_server_password: secretpassword
98 glusterfs_ganesha_server_username: nonexistent
99 glusterfs_mount_point_base: state_path/mnt
100 glusterfs_server_password: secretpassword
101 glusterfs_path_to_private_key: /path/to/key
102 glusterfs_nfs_server_type: glusterfs
103 glusterfs_share_layout: share_layout
104 glusterfs_target: remove:target
105 glusterfs_servers:
106 - server1
107 - server2
108 glusterfs_volume_pattern: manila-share-volume-d+$
109
Vasyl Saienko0343ebf2018-04-12 11:33:28 +0300110Client usage:
111=============
112
113The `manila.client` state provides ability to manage manila resources.
114
115Manage `share_type`
116
117.. code-block:: yaml
118
119
120 manila:
121 client:
122 enabled: true
123 server:
124 admin_identity:
125 share_type:
126 default:
127 extra_specs:
128 driver_handles_share_servers: false
Vasyl Saienkoae9441c2018-03-02 12:08:54 +0200129
sgarbuze8677fc2018-05-15 16:37:17 +0300130Enhanced logging with logging.conf
131----------------------------------
132
133By default logging.conf is disabled.
134
135That is possible to enable per-binary logging.conf with new variables:
136 * openstack_log_appender - set it to true to enable log_config_append for all OpenStack services;
137 * openstack_fluentd_handler_enabled - set to true to enable FluentHandler for all Openstack services.
138
139Only WatchedFileHandler and FluentHandler are available.
140
141Also it is possible to configure this with pillar:
142
143.. code-block:: yaml
144
145 manila:
146 common:
147 logging:
148 log_appender: true
149 log_handlers:
150 watchedfile:
151 enabled: true
152 fluentd:
153 enabled: true
154
Oleksandr Shyshko9de56382018-09-07 17:32:21 +0300155Enable x509 and ssl communication between Manila and Galera cluster.
156---------------------
157By default communication between Manila and Galera is unsecure.
158
159manila:
160 common:
161 database:
162 x509:
163 enabled: True
164
165You able to set custom certificates in pillar:
166
167manila:
168 common:
169 database:
170 x509:
171 cacert: (certificate content)
172 cert: (certificate content)
173 key: (certificate content)
174
175You can read more about it here:
176 https://docs.openstack.org/security-guide/databases/database-access-control.html
177
Oleksandr Bryndziiee122b92019-05-22 17:49:44 +0300178Configmap configuration:
179----------------
180
181.. code-block:: yaml
182
183 manila:
184 common:
185 configmap:
186 DEFAULT:
187 default_share_type: default_share_type
188 share_name_template: share-%s
189 rootwrap_config: '/etc/manila/rootwrap.conf'
190 api_paste_config: '/etc/manila/api-paste.ini'
Oleksandr Bryndziiee122b92019-05-22 17:49:44 +0300191
Oleksandr Pidrepnyi3d2a8912019-06-10 17:49:41 +0300192Don't manage services scheduling while upgrade
193----------------------------------------------
194For some special cases, don't manage services scheduling both enable and disable
195before and after upgrade procedure.
196
197If 'manage_service_maintenance: true' or not present - default behavior, disable services
198before upgrade and enable it after upgrade.
199If 'manage_service_maintenance: false' - don't disable and don't enable upgraded services
200scheduling before and after upgrade.
201
202.. code-block:: yaml
203
204 manila:
205 upgrade:
206 manage_service_maintenance: false
207
208
Vasyl Saienko7a4ae402018-01-30 16:37:14 +0200209More information
210================
211
212* https://wiki.openstack.org/wiki/Telemetry
213* https://docs.openstack.org/developer/manila/
214* https://github.com/openstack/manila
215* https://bugs.launchpad.net/manila