From caa8b9cb2f1b07fa961e9b2edec62ee4bca29b4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Wed, 21 Aug 2019 23:44:40 +0200 Subject: [PATCH] ceph: external refuse cluster older than Nautilus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The external cluster must run at least on Nautilus. The main reason being the msgr2 knowledge by the Operator and the Ceph CLI. Signed-off-by: Sébastien Han --- pkg/operator/ceph/cluster/controller.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/operator/ceph/cluster/controller.go b/pkg/operator/ceph/cluster/controller.go index 09438bd69..8f9d1bb01 100644 --- a/pkg/operator/ceph/cluster/controller.go +++ b/pkg/operator/ceph/cluster/controller.go @@ -291,6 +291,11 @@ func (c *ClusterController) configureExternalCephCluster(namespace, name string, return fmt.Errorf("failed to get ceph mon version. %+v", err) } + // We only support Nautilus or newer + if !cephMonVersion.IsAtLeastNautilus() { + return fmt.Errorf("unsupported ceph version %s, need at least nautilus", cephMonVersion.String()) + } + logger.Infof("detecting the image version provided for the external cluster...") specCephVersionImage, err := cluster.detectCephVersion(c.rookImage, cluster.Spec.CephVersion.Image, detectCephVersionTimeout) if err != nil {