@@ -35,8 +35,15 @@ is not enabled by default. To enable it, set the following in
3535 kolla_enable_manila : true
3636 kolla_enable_manila_backend_cephfs_native : true
3737
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.
4047
4148To test it, you will need two virtual machines. Cirros does not support the Ceph
4249kernel client, so you will need to use a different image. Any regular Linux
@@ -108,35 +115,35 @@ Then create a share type and share:
108115
109116.. code-block :: bash
110117
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
114121
115122 Wait until the share is available:
116123
117124.. code-block :: bash
118125
119- manila list
126+ openstack share list
120127
121128 Then allow access to the shares to two users:
122129
123130.. code-block :: bash
124131
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
127134
128135 Show the access list to make sure the state of both entries is ``active `` and
129136take note of the access keys:
130137
131138.. code-block :: bash
132139
133- manila access- list test-share
140+ openstack share access list test-share
134141
135142 And take note of the path to the share:
136143
137144.. code-block :: bash
138145
139- manila share- export- location- list test-share
146+ openstack share export location list test-share
140147
141148 SSH into the first instance, create a directory for the share, and mount it:
142149
0 commit comments