Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/(curveadm-deploy): create pool need calc chunkservers #358

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cli/command/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,12 @@ func genDeployPlaybook(curveadm *cli.CurveAdm,
if step == CREATE_PHYSICAL_POOL {
options[comm.KEY_CREATE_POOL_TYPE] = comm.POOL_TYPE_PHYSICAL
options[comm.KEY_POOLSET] = poolset
options[comm.KEY_NUMBER_OF_CHUNKSERVER] = calcNumOfChunkserver(curveadm, dcs)
} else if step == CREATE_LOGICAL_POOL {
options[comm.KEY_CREATE_POOL_TYPE] = comm.POOL_TYPE_LOGICAL
options[comm.POOLSET] = poolset
options[comm.POOLSET_DISK_TYPE] = diskType
options[comm.KEY_NUMBER_OF_CHUNKSERVER] = calcNumOfChunkserver(curveadm, dcs)
}

pb.AddStep(&playbook.PlaybookStep{
Expand Down
2 changes: 2 additions & 0 deletions cli/command/scale_out.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ func genScaleOutPlaybook(curveadm *cli.CurveAdm,
options[comm.KEY_CREATE_POOL_TYPE] = comm.POOL_TYPE_PHYSICAL
options[comm.KEY_SCALE_OUT_CLUSTER] = dcs2scaleOut
options[comm.KEY_NEW_TOPOLOGY_DATA] = data
options[comm.KEY_NUMBER_OF_CHUNKSERVER] = calcNumOfChunkserver(curveadm, dcs) +
calcNumOfChunkserver(curveadm, dcs2scaleOut)
options[comm.KEY_POOLSET] = poolset
case CREATE_LOGICAL_POOL:
options[comm.KEY_CREATE_POOL_TYPE] = comm.POOL_TYPE_LOGICAL
Expand Down