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: |
| 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 Saienko | bf5c120 | 2018-03-01 22:24:14 +0200 | [diff] [blame] | 46 | Backend configuration |
| 47 | ===================== |
| 48 | |
| 49 | |
Vasyl Saienko | ae9441c | 2018-03-02 12:08:54 +0200 | [diff] [blame] | 50 | Nexenta driver |
Vasyl Saienko | bf5c120 | 2018-03-01 22:24:14 +0200 | [diff] [blame] | 51 | |
| 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 Saienko | ae9441c | 2018-03-02 12:08:54 +0200 | [diff] [blame] | 67 | Glusterfs 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 Saienko | 0343ebf | 2018-04-12 11:33:28 +0300 | [diff] [blame] | 95 | Client usage: |
| 96 | ============= |
| 97 | |
| 98 | The `manila.client` state provides ability to manage manila resources. |
| 99 | |
| 100 | Manage `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 Saienko | ae9441c | 2018-03-02 12:08:54 +0200 | [diff] [blame] | 114 | |
sgarbuz | e8677fc | 2018-05-15 16:37:17 +0300 | [diff] [blame] | 115 | Enhanced logging with logging.conf |
| 116 | ---------------------------------- |
| 117 | |
| 118 | By default logging.conf is disabled. |
| 119 | |
| 120 | That 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 | |
| 124 | Only WatchedFileHandler and FluentHandler are available. |
| 125 | |
| 126 | Also 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 Shyshko | 9de5638 | 2018-09-07 17:32:21 +0300 | [diff] [blame] | 140 | Enable x509 and ssl communication between Manila and Galera cluster. |
| 141 | --------------------- |
| 142 | By default communication between Manila and Galera is unsecure. |
| 143 | |
| 144 | manila: |
| 145 | common: |
| 146 | database: |
| 147 | x509: |
| 148 | enabled: True |
| 149 | |
| 150 | You able to set custom certificates in pillar: |
| 151 | |
| 152 | manila: |
| 153 | common: |
| 154 | database: |
| 155 | x509: |
| 156 | cacert: (certificate content) |
| 157 | cert: (certificate content) |
| 158 | key: (certificate content) |
| 159 | |
| 160 | You can read more about it here: |
| 161 | https://docs.openstack.org/security-guide/databases/database-access-control.html |
| 162 | |
Oleksandr Bryndzii | ee122b9 | 2019-05-22 17:49:44 +0300 | [diff] [blame] | 163 | Configmap 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 Pidrepnyi | 3d2a891 | 2019-06-10 17:49:41 +0300 | [diff] [blame] | 179 | Don't manage services scheduling while upgrade |
| 180 | ---------------------------------------------- |
| 181 | For some special cases, don't manage services scheduling both enable and disable |
| 182 | before and after upgrade procedure. |
| 183 | |
| 184 | If 'manage_service_maintenance: true' or not present - default behavior, disable services |
| 185 | before upgrade and enable it after upgrade. |
| 186 | If 'manage_service_maintenance: false' - don't disable and don't enable upgraded services |
| 187 | scheduling before and after upgrade. |
| 188 | |
| 189 | .. code-block:: yaml |
| 190 | |
| 191 | manila: |
| 192 | upgrade: |
| 193 | manage_service_maintenance: false |
| 194 | |
| 195 | |
Vasyl Saienko | 7a4ae40 | 2018-01-30 16:37:14 +0200 | [diff] [blame] | 196 | More 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 |