blob: 7991408e336dff52849b53faea5dbb9343e24d90 [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:
16 database:
17 engine: mysql
18 host: 10.20.0.101
19 port: 3306
20 name: manila
21 user: manila
22 password: segreto
23 identity:
24 engine: keystone
25 host: 10.20.0.101
26 port: 35357
27 user: manila
28 password: segreto
29 region: RegionOne
30 tenant: service
31 endpoint_type: internalURL
32 cache:
33 engine: memcached
34 members:
35 - host: 10.20.0.102
36 port: 11211
37 - host: 10.20.0.103
38 port: 11211
39 - host: 10.20.0.104
40 port: 11211
41 api:
42 bind:
43 host: 10.20.0.102
44
45
Vasyl Saienkobf5c1202018-03-01 22:24:14 +020046Backend configuration
47=====================
48
49
Vasyl Saienkoae9441c2018-03-02 12:08:54 +020050Nexenta driver
Vasyl Saienkobf5c1202018-03-01 22:24:14 +020051
52.. code-block:: yaml
53
54 manila:
55 share:
56 enabled_share_backends:
57 nexenta:
58 name: nexenta
59 type: nexenta
60 enabled: true
61 dhss: false
62 nexenta_host: 1.2.3.4
63 nexenta_password: secretpassword
64 nexenta_user: nonexistent
65 nexenta_volume: volume1
66
Vasyl Saienkoae9441c2018-03-02 12:08:54 +020067Glusterfs driver
68
69.. code-block:: yaml
70
71
72 manila:
73 share:
74 enabled_share_backends:
75 glusterfs:
76 name: glusterfs
77 type: glusterfs
78 enabled: true
79 share_driver: manila.share.drivers.glusterfs_native.GlusterfsNativeShareDriver
80 dhss: false
81 glusterfs_ganesha_server_ip: 1.2.3.4
82 glusterfs_ganesha_server_password: secretpassword
83 glusterfs_ganesha_server_username: nonexistent
84 glusterfs_mount_point_base: state_path/mnt
85 glusterfs_server_password: secretpassword
86 glusterfs_path_to_private_key: /path/to/key
87 glusterfs_nfs_server_type: glusterfs
88 glusterfs_share_layout: share_layout
89 glusterfs_target: remove:target
90 glusterfs_servers:
91 - server1
92 - server2
93 glusterfs_volume_pattern: manila-share-volume-d+$
94
Vasyl Saienko0343ebf2018-04-12 11:33:28 +030095Client usage:
96=============
97
98The `manila.client` state provides ability to manage manila resources.
99
100Manage `share_type`
101
102.. code-block:: yaml
103
104
105 manila:
106 client:
107 enabled: true
108 server:
109 admin_identity:
110 share_type:
111 default:
112 extra_specs:
113 driver_handles_share_servers: false
Vasyl Saienkoae9441c2018-03-02 12:08:54 +0200114
sgarbuze8677fc2018-05-15 16:37:17 +0300115Enhanced logging with logging.conf
116----------------------------------
117
118By default logging.conf is disabled.
119
120That is possible to enable per-binary logging.conf with new variables:
121 * openstack_log_appender - set it to true to enable log_config_append for all OpenStack services;
122 * openstack_fluentd_handler_enabled - set to true to enable FluentHandler for all Openstack services.
123
124Only WatchedFileHandler and FluentHandler are available.
125
126Also it is possible to configure this with pillar:
127
128.. code-block:: yaml
129
130 manila:
131 common:
132 logging:
133 log_appender: true
134 log_handlers:
135 watchedfile:
136 enabled: true
137 fluentd:
138 enabled: true
139
Oleksandr Shyshko9de56382018-09-07 17:32:21 +0300140Enable x509 and ssl communication between Manila and Galera cluster.
141---------------------
142By default communication between Manila and Galera is unsecure.
143
144manila:
145 common:
146 database:
147 x509:
148 enabled: True
149
150You able to set custom certificates in pillar:
151
152manila:
153 common:
154 database:
155 x509:
156 cacert: (certificate content)
157 cert: (certificate content)
158 key: (certificate content)
159
160You can read more about it here:
161 https://docs.openstack.org/security-guide/databases/database-access-control.html
162
Oleksandr Bryndziiee122b92019-05-22 17:49:44 +0300163Configmap configuration:
164----------------
165
166.. code-block:: yaml
167
168 manila:
169 common:
170 configmap:
171 DEFAULT:
172 default_share_type: default_share_type
173 share_name_template: share-%s
174 rootwrap_config: '/etc/manila/rootwrap.conf'
175 api_paste_config: '/etc/manila/api-paste.ini'
176 oslo_concurrency:
177 lock_path: '/var/lock/manila'
178
Oleksandr Pidrepnyi3d2a8912019-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