@@ -35,8 +35,15 @@ is not enabled by default. To enable it, set the following in
35
35
kolla_enable_manila : true
36
36
kolla_enable_manila_backend_cephfs_native : true
37
37
38
- And re-run ``kayobe overcloud service deploy `` if you are working on an existing
39
- deployment.
38
+ If you are working on an existing deployment, you need to do the following first.
39
+
40
+ 1. Create CephFS pools: ``kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/cephadm-pools.yml ``
41
+ 2. Create cephx key for Manila: ``kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/cephadm-keys.yml ``
42
+ 3. Run Manila related Ceph commands: ``kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/cephadm-commands-post.yml ``
43
+ 4. Gather Ceph configuration and keyring for Manila: ``kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/cephadm-gather-keys.yml ``
44
+ 5. Configure Storage network on Seed node: ``kayobe seed host configure -t network,ip-allocation,snat ``
45
+
46
+ Then, run ``kayobe overcloud service deploy `` to deploy Manila.
40
47
41
48
To test it, you will need two virtual machines. Cirros does not support the Ceph
42
49
kernel client, so you will need to use a different image. Any regular Linux
@@ -108,35 +115,35 @@ Then create a share type and share:
108
115
109
116
.. code-block :: bash
110
117
111
- manila type- create cephfs-type false --is_public true
112
- manila type-key cephfs-type set vendor_name=Ceph storage_protocol=CEPHFS
113
- manila create --name test-share --share-type cephfs-type CephFS 2
118
+ openstack share type create cephfs-type false --public true
119
+ openstack share type set cephfs-type --extra-specs vendor_name=Ceph, storage_protocol=CEPHFS
120
+ openstack share create --name test-share --share-type cephfs-type --public true CephFS 2
114
121
115
122
Wait until the share is available:
116
123
117
124
.. code-block :: bash
118
125
119
- manila list
126
+ openstack share list
120
127
121
128
Then allow access to the shares to two users:
122
129
123
130
.. code-block :: bash
124
131
125
- manila access-allow test-share cephx alice
126
- manila access-allow test-share cephx bob
132
+ openstack share access create test-share cephx alice
133
+ openstack share access create test-share cephx bob
127
134
128
135
Show the access list to make sure the state of both entries is ``active `` and
129
136
take note of the access keys:
130
137
131
138
.. code-block :: bash
132
139
133
- manila access- list test-share
140
+ openstack share access list test-share
134
141
135
142
And take note of the path to the share:
136
143
137
144
.. code-block :: bash
138
145
139
- manila share- export- location- list test-share
146
+ openstack share export location list test-share
140
147
141
148
SSH into the first instance, create a directory for the share, and mount it:
142
149
0 commit comments