Merge pull request #3329 from leseb/no-tunables

ceph: stop forcing crush tunable
This commit is contained in:
Sébastien Han
2019-06-24 16:43:44 +02:00
committed by GitHub
2 changed files with 2 additions and 12 deletions
+1
View File
@@ -15,6 +15,7 @@ an example usage
- OSD: newly updated cluster from 0.9 to 1.0.3 and thus Ceph Nautilus will have their OSDs allowing new features for Nautilus
- Rgw instances have their own key and thus are properly reflected in the Ceph status
- The Rook Agent pods are now started when the CephCluster is created rather than immediately when the operator is started.
- Ceph CRUSH tunable are not enforced to "firefly" anymore, Ceph picks the right tunable for its own version, to read more about tunable [see the Ceph documentation](http://docs.ceph.com/docs/master/rados/operations/crush-map/#tunables)
## Breaking Changes
+1 -12
View File
@@ -205,17 +205,6 @@ func GetCrushHostName(context *clusterd.Context, clusterName string, osdID int)
}
func CreateDefaultCrushMap(context *clusterd.Context, clusterName string) (string, error) {
// first set crush tunables to a firefly profile in order to support older clients
// (e.g., hyperkube uses a firefly rbd tool)
crushTunablesProfile := "firefly"
logger.Infof("setting crush tunables to %s", crushTunablesProfile)
output, err := SetCrushTunables(context, clusterName, crushTunablesProfile)
if err != nil {
return output, fmt.Errorf("failed to set crush tunables to profile %s: %+v", crushTunablesProfile, err)
} else {
logger.Infof("succeeded setting crush tunables to profile %s: %s", crushTunablesProfile, output)
}
// create a temp file that we will use to write the default decompiled crush map to
decompiledMap, err := ioutil.TempFile("", "")
if err != nil {
@@ -240,7 +229,7 @@ func CreateDefaultCrushMap(context *clusterd.Context, clusterName string) (strin
// compile the crush map to an output file
args := []string{"-c", decompiledMap.Name(), "-o", compiledMap.Name()}
output, err = context.Executor.ExecuteCommandWithOutput(false, "", CrushTool, args...)
output, err := context.Executor.ExecuteCommandWithOutput(false, "", CrushTool, args...)
if err != nil {
return output, fmt.Errorf("failed to compile crushmap from %s: %+v", decompiledMap.Name(), err)
}