Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions doc/source/configuration/cephadm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,50 @@ post-deployment configuration is applied. Commands in the
``cephadm_commands_post`` list are executed after the rest of the Ceph
post-deployment configuration is applied.

Manila & CephFS
~~~~~~~~~~~~~~~

Using Manila with the CephFS backend requires the configuration of additional
resources.

A Manila key should be added to cephadm_keys:

.. code:: yaml

# Append the following to cephadm_keys:
- name: client.manila
caps:
mon: "allow r"
mgr: "allow rw"
state: present

A CephFS filesystem requires two pools, one for metadata and one for data:

.. code:: yaml

# Append the following to cephadm_pools:
- name: cephfs_data
application: cephfs
state: present
- name: cephfs_metadata
application: cephfs
state: present

Finally, the CephFS filesystem itself should be created:

.. code:: yaml

# Append the following to cephadm_commands_post:
- "fs new manila-cephfs cephfs_metadata cephfs_data"
- "orch apply mds manila-cephfs"

In this example, the filesystem is named ``manila-cephfs``. This name
should be used in the Kolla Manila configuration e.g.:

.. code:: yaml

manila_cephfs_filesystem_name: manila-cephfs

Deployment
==========

Expand Down
10 changes: 5 additions & 5 deletions doc/source/contributor/environments/ci-multinode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ Config changes
3. Also under vxlan_interfaces, add vni:x where x is between 500 and 1000
4. Also under vxlan_interfaces, check vxlan_dstport is not 4789 (this causes
conflicts, change to 4790)
5. In /etc/kayobe/environments/ci-multinode/tf-networks.yml, edit admin_ips so
5. In etc/kayobe/environments/ci-multinode/tf-networks.yml, edit admin_ips so
that the compute and controller IPs line up with the
instances that were created earlier, remove the other IPs for seed and
cephOSD
6. In /etc/kayobe/environments/ci-multinode/network-allocation.yml, remove all
6. In etc/kayobe/environments/ci-multinode/network-allocation.yml, remove all
the entries and just assign ``aio_ips:`` an empty set ``[]``
7. In etc/kayobe/environments/ci-multinode/inventory/hosts, remove the seed
8. run stackhpc-kayobe-config/etc/kayobe/ansible/growroot.yml (if this fails,
Expand All @@ -59,7 +59,7 @@ Manila
======
The Multinode environment supports Manila with the CephFS native backend, but it
is not enabled by default. To enable it, set the following in
``/etc/kayobe/environments/ci-multinode/kolla.yml``:
``etc/kayobe/environments/ci-multinode/kolla.yml``:

.. code-block:: yaml

Expand All @@ -71,7 +71,7 @@ deployment.

To test it, you will need two virtual machines. Cirros does not support the Ceph
kernel client, so you will need to use a different image. Any regular Linux
distribution should work. As an example, we will use Ubuntu 20.04.
distribution should work. As an example, this guide will use Ubuntu 20.04.

Download the image locally:

Expand Down Expand Up @@ -133,7 +133,7 @@ Back on the host, install the Manila client:

.. code-block:: bash

sudo dnf install -y python-manilaclient
pip install python-manilaclient

Then create a share type and share:

Expand Down