ceph: external refuse cluster older than Nautilus

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 <seb@redhat.com>
This commit is contained in:
Sébastien Han
2019-08-22 17:19:33 +02:00
parent 83eca4b7ae
commit caa8b9cb2f
+5
View File
@@ -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 {