Vasyl Saienko | 7a4ae40 | 2018-01-30 16:37:14 +0200 | [diff] [blame] | 1 | ============== |
| 2 | Manila Formula |
| 3 | ============== |
| 4 | |
| 5 | Manila is an OpenStack project to provide “Shared Filesystems as a service”. |
| 6 | |
| 7 | Sample pillars |
| 8 | ============== |
| 9 | |
| 10 | Single manila service |
| 11 | |
| 12 | .. code-block:: yaml |
| 13 | |
| 14 | manila: |
| 15 | common: |
Ivan Berezovskiy | 4c724a1 | 2019-11-19 17:50:13 +0400 | [diff] [blame] | 16 | concurrency: |
| 17 | lock_path: '/var/lock/manila' |
Vasyl Saienko | 7a4ae40 | 2018-01-30 16:37:14 +0200 | [diff] [blame] | 18 | 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 Polreich | 2c7a5fd | 2019-12-17 14:09:03 +0100 | [diff] [blame^] | 48 | Change 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 Saienko | bf5c120 | 2018-03-01 22:24:14 +0200 | [diff] [blame] | 61 | Backend configuration |
| 62 | ===================== |
| 63 | |
| 64 | |
Vasyl Saienko | ae9441c | 2018-03-02 12:08:54 +0200 | [diff] [blame] | 65 | Nexenta driver |
Vasyl Saienko | bf5c120 | 2018-03-01 22:24:14 +0200 | [diff] [blame] | 66 | |
| 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 Saienko | ae9441c | 2018-03-02 12:08:54 +0200 | [diff] [blame] | 82 | Glusterfs 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 Saienko | 0343ebf | 2018-04-12 11:33:28 +0300 | [diff] [blame] | 110 | Client usage: |
| 111 | ============= |
| 112 | |
| 113 | The `manila.client` state provides ability to manage manila resources. |
| 114 | |
| 115 | Manage `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 Saienko | ae9441c | 2018-03-02 12:08:54 +0200 | [diff] [blame] | 129 | |
sgarbuz | e8677fc | 2018-05-15 16:37:17 +0300 | [diff] [blame] | 130 | Enhanced logging with logging.conf |
| 131 | ---------------------------------- |
| 132 | |
| 133 | By default logging.conf is disabled. |
| 134 | |
| 135 | That 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 | |
| 139 | Only WatchedFileHandler and FluentHandler are available. |
| 140 | |
| 141 | Also 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 Shyshko | 9de5638 | 2018-09-07 17:32:21 +0300 | [diff] [blame] | 155 | Enable x509 and ssl communication between Manila and Galera cluster. |
| 156 | --------------------- |
| 157 | By default communication between Manila and Galera is unsecure. |
| 158 | |
| 159 | manila: |
| 160 | common: |
| 161 | database: |
| 162 | x509: |
| 163 | enabled: True |
| 164 | |
| 165 | You able to set custom certificates in pillar: |
| 166 | |
| 167 | manila: |
| 168 | common: |
| 169 | database: |
| 170 | x509: |
| 171 | cacert: (certificate content) |
| 172 | cert: (certificate content) |
| 173 | key: (certificate content) |
| 174 | |
| 175 | You can read more about it here: |
| 176 | https://docs.openstack.org/security-guide/databases/database-access-control.html |
| 177 | |
Oleksandr Bryndzii | ee122b9 | 2019-05-22 17:49:44 +0300 | [diff] [blame] | 178 | Configmap 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 Bryndzii | ee122b9 | 2019-05-22 17:49:44 +0300 | [diff] [blame] | 191 | |
Oleksandr Pidrepnyi | 3d2a891 | 2019-06-10 17:49:41 +0300 | [diff] [blame] | 192 | Don't manage services scheduling while upgrade |
| 193 | ---------------------------------------------- |
| 194 | For some special cases, don't manage services scheduling both enable and disable |
| 195 | before and after upgrade procedure. |
| 196 | |
| 197 | If 'manage_service_maintenance: true' or not present - default behavior, disable services |
| 198 | before upgrade and enable it after upgrade. |
| 199 | If 'manage_service_maintenance: false' - don't disable and don't enable upgraded services |
| 200 | scheduling before and after upgrade. |
| 201 | |
| 202 | .. code-block:: yaml |
| 203 | |
| 204 | manila: |
| 205 | upgrade: |
| 206 | manage_service_maintenance: false |
| 207 | |
| 208 | |
Vasyl Saienko | 7a4ae40 | 2018-01-30 16:37:14 +0200 | [diff] [blame] | 209 | More 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 |