[pve-devel] [PATCH v6 storage/manager] Cephfs storage plugin

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Jul 4 16:59:58 CEST 2018


On 7/4/18 12:43 PM, Alwin Antreich wrote:
> This patch series is an update and adds the Cephfs to our list of storages.
> You can mount the storage through the kernel or fuse client. The plugin for
> now allows all content formats, but this needs further testing.
> 
> Config and keyfile locations are the same as in the RBD plugin.
> 
> Example entry:
> cephfs: cephfs0
> 	monhost 192.168.1.2:6789
> 	path /mnt/pve/cephfs0
> 	content iso,backup,images,vztmpl,rootdir
> 	subdir /blubb
> 	fuse 0
> 	username admin
> 
> Comments and tests are very welcome. ;)
> 
> Changes in V6:
> * use on_add_hook & on_delete_hook 
> * remove username field from CephFS (PVE) wizard
> 
> Alwin Antreich (6):
> Cephfs storage wizard
>  www/manager6/Makefile              |  1 +
>  www/manager6/Utils.js              | 10 +++++++
>  www/manager6/storage/CephFSEdit.js | 59 ++++++++++++++++++++++++++++++++++++++
>  3 files changed, 70 insertions(+)
>  create mode 100644 www/manager6/storage/CephFSEdit.js
> 
> Add cephfs to allowed storages for vzdump backup
>  PVE/VZDump.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> Merge RBD and CephFS code into a helper module
>  PVE/Storage/CephTools.pm | 55 ++++++++++++++++++++++++++++++++++++++++++++++++
>  PVE/Storage/Makefile     |  2 +-
>  3 files changed, 61 insertions(+), 51 deletions(-)
>  create mode 100644 PVE/Storage/CephTools.pm
> 
> Add simple keyring check for cephfs rbd
>  PVE/Storage/CephTools.pm | 33 +++++++++++++++++++++++++++++++++
>  1 file changed, 33 insertions(+)
> 
> Cephfs storage plugin
>  PVE/API2/Storage/Config.pm  |   8 +-
>  PVE/Storage.pm              |   2 +
>  PVE/Storage/CephFSPlugin.pm | 194 ++++++++++++++++++++++++++++++++++++++++++++
>  PVE/Storage/CephTools.pm    | 102 +++++++++++++++++++++++
>  PVE/Storage/Makefile        |   2 +-
>  PVE/Storage/Plugin.pm       |   1 +
>  debian/control              |   1 +
>  7 files changed, 306 insertions(+), 4 deletions(-)
>  create mode 100644 PVE/Storage/CephFSPlugin.pm
> 
> Use keyfile create/remove from CephTools
>  1 file changed, 2 insertions(+), 20 deletions(-)
> 

applied the pve-storage part, with two followups, and 2/2 from pve-manager.
Still waiting for the UI part for a review of my RBD UI merge patch,
as I do not want to have 4 ceph related add entries in the storage menu
if two are enough.




More information about the pve-devel mailing list