distrax.filesystems.ceph_filesystem class#

This holds the CephFilesystem Class, that allows for the mounting and unmounting of the Ceph filesystem.

class distrax.filesystems.ceph_filesystem.CephFilesystem(folder='ceph', timeout=5)[source]#

Ceph Filesystem Class.

This class contains all the methods required to mount and unmount a Ceph Filesystem

To read more about the Ceph Gateway please see: https://docs.ceph.com/en/latest/glossary/#term-CephFS

Examples

>>> filesystem = CephFilesystem()
>>> filesystem = CephFilesystem(folder="ceph")
mount_filesystem()[source]#

Mount the Ceph Filesystem.

This mounts the filesystem for the user in the /mnt/distrax/ location

Return type:

None

Examples

>>> filesystem.mount_filesystem()
unmount_filesystem()[source]#

Unmount the Ceph filesystem.

Return type:

None

Examples

>>> filesystem.unmount_filesystem()