The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/7954
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === The config key is node-local, so as long as a different volume is used per server, this is perfectly fine to use. Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From d44832f3aee87c28ba2fb777300d05bd90942d00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com> Date: Tue, 29 Sep 2020 12:58:32 -0400 Subject: [PATCH] lxd/storage: Allow ceph/cephfs for images/backups MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The config key is node-local, so as long as a different volume is used per server, this is perfectly fine to use. Signed-off-by: Stéphane Graber <stgra...@ubuntu.com> --- lxd/daemon_storage.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lxd/daemon_storage.go b/lxd/daemon_storage.go index c9e1c78bc6..8369606854 100644 --- a/lxd/daemon_storage.go +++ b/lxd/daemon_storage.go @@ -93,16 +93,11 @@ func daemonStorageValidate(s *state.State, target string) error { volumeName := fields[1] // Validate pool exists. - poolID, dbPool, err := s.Cluster.GetStoragePool(poolName) + poolID, _, err := s.Cluster.GetStoragePool(poolName) if err != nil { return errors.Wrapf(err, "Unable to load storage pool %q", poolName) } - // Validate pool driver (can't be CEPH or CEPHFS). - if dbPool.Driver == "ceph" || dbPool.Driver == "cephfs" { - return fmt.Errorf("Server storage volumes cannot be stored on Ceph") - } - // Confirm volume exists. _, _, err = s.Cluster.GetLocalStoragePoolVolume(project.Default, volumeName, db.StoragePoolVolumeTypeCustom, poolID) if err != nil {
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel