Skip to content

Commit

Permalink
remove upmap-read balancer mode
Browse files Browse the repository at this point in the history
upmap-read mode of the balancer isn't supported by the kernel client.
There was a recent change on the RADOS side which actually enforced this
in ceph/ceph#57776.Prior to 18.2.4 and 19.1.1 all sorts of incompatibility
checks were missing in this area. So we need to revert upmap-read mode for now.

Signed-off-by: sp98 <sapillai@redhat.com>
  • Loading branch information
sp98 authored and openshift-cherrypick-robot committed Aug 13, 2024
1 parent 14a9612 commit 8f24151
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions controllers/storagecluster/cephcluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ const (
networkProvider = "multus"
publicNetworkSelectorKey = "public"
clusterNetworkSelectorKey = "cluster"
upmapReadBalancerMode = "upmap-read"
)

const (
Expand Down Expand Up @@ -1100,7 +1099,7 @@ func generateMgrSpec(sc *ocsv1.StorageCluster) rookCephv1.MgrSpec {
AllowMultiplePerNode: statusutil.IsSingleNodeDeployment(),
Modules: []rookCephv1.Module{
{Name: "pg_autoscaler", Enabled: true},
{Name: "balancer", Enabled: true, Settings: rookCephv1.ModuleSettings{BalancerMode: upmapReadBalancerMode}},
{Name: "balancer", Enabled: true},
},
}

Expand Down
8 changes: 4 additions & 4 deletions controllers/storagecluster/cephcluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func TestGenerateMgrSpec(t *testing.T) {
AllowMultiplePerNode: false,
Modules: []rookCephv1.Module{
{Name: "pg_autoscaler", Enabled: true},
{Name: "balancer", Enabled: true, Settings: rookCephv1.ModuleSettings{BalancerMode: upmapReadBalancerMode}},
{Name: "balancer", Enabled: true},
},
},
},
Expand All @@ -325,7 +325,7 @@ func TestGenerateMgrSpec(t *testing.T) {
AllowMultiplePerNode: false,
Modules: []rookCephv1.Module{
{Name: "pg_autoscaler", Enabled: true},
{Name: "balancer", Enabled: true, Settings: rookCephv1.ModuleSettings{BalancerMode: upmapReadBalancerMode}},
{Name: "balancer", Enabled: true},
},
},
},
Expand All @@ -348,7 +348,7 @@ func TestGenerateMgrSpec(t *testing.T) {
AllowMultiplePerNode: false,
Modules: []rookCephv1.Module{
{Name: "pg_autoscaler", Enabled: true},
{Name: "balancer", Enabled: true, Settings: rookCephv1.ModuleSettings{BalancerMode: upmapReadBalancerMode}},
{Name: "balancer", Enabled: true},
},
},
},
Expand All @@ -361,7 +361,7 @@ func TestGenerateMgrSpec(t *testing.T) {
AllowMultiplePerNode: true,
Modules: []rookCephv1.Module{
{Name: "pg_autoscaler", Enabled: true},
{Name: "balancer", Enabled: true, Settings: rookCephv1.ModuleSettings{BalancerMode: upmapReadBalancerMode}},
{Name: "balancer", Enabled: true},
},
},
},
Expand Down

0 comments on commit 8f24151

Please sign in to comment.