Skip to content

Commit ae86e13

Browse files
committed
fix: zstor config generation
1 parent 54ff00d commit ae86e13

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

quantumd/internal/grid/deploy.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ func DeployBackends(gridClient deployer.TFPluginClient, cfg *config.Config) ([]w
7777
return nil, nil, errors.Wrap(err, "failed to deploy data ZDBs")
7878
}
7979

80-
return metaDeployments, dataDeployments, nil
80+
allMetaDeployments := append(existingMetaDeployments, metaDeployments...)
81+
allDataDeployments := append(existingDataDeployments, dataDeployments...)
82+
83+
return allMetaDeployments, allDataDeployments, nil
8184
}
8285

8386
// deployInBatches handles the entire lifecycle of deploying a group of ZDBs,

quantumd/internal/zstor/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ key = "%s"`, cfg.MinShards, cfg.ExpectedShards, cfg.QsfsMountpoint, cfg.ZdbRootP
6969

7070
// Add data backends
7171
configBuilder.WriteString("\n\n[[groups]]")
72-
for _, deployment := range meta {
72+
for _, deployment := range data {
7373
zdb := deployment.Zdbs[0]
7474
mappedIPs := util.MapIPs(zdb.IPs)
7575
ip, ok := mappedIPs[cfg.ZdbConnectionType]

0 commit comments

Comments
 (0)