Skip to content

Commit 60cee71

Browse files
authored
Merge pull request #264 from SeanHai/auth
fix generate target.json when curvefs
2 parents d750c94 + 8c55ada commit 60cee71

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

cli/command/client/map.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ func genMapPlaybook(curveadm *cli.CurveAdm,
174174
steps := MAP_PLAYBOOK_STEPS
175175
pb := playbook.NewPlaybook(curveadm)
176176
for _, step := range steps {
177+
if step == playbook.CREATE_VOLUME && !options.create {
178+
continue
179+
}
177180
pb.AddStep(&playbook.PlaybookStep{
178181
Type: step,
179182
Configs: ccs,

internal/configure/monitor.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ func parsePrometheusTarget(dcs []*topology.DeployConfig) (string, error) {
208208
case topology.ROLE_ETCD:
209209
item = fmt.Sprintf("%s:%d", ip, dc.GetListenClientPort())
210210
case topology.ROLE_MDS,
211-
topology.ROLE_CHUNKSERVER:
211+
topology.ROLE_CHUNKSERVER,
212+
topology.ROLE_METASERVER:
212213
item = fmt.Sprintf("%s:%d", ip, dc.GetListenPort())
213214
case topology.ROLE_SNAPSHOTCLONE:
214215
item = fmt.Sprintf("%s:%d", ip, dc.GetListenDummyPort())

internal/task/task/monitor/sync_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func NewSyncConfigTask(curveadm *cli.CurveAdm, cfg *configure.MonitorConfig) (*t
8686
Lambda: common.CheckContainerExist(cfg.GetHost(), cfg.GetRole(), containerId, &out),
8787
})
8888
if role == ROLE_PROMETHEUS {
89-
t.AddStep(&step.CreateAndUploadDir{ // prepare prometheus conf upath
89+
t.AddStep(&step.CreateAndUploadDir{ // prepare prometheus conf path
9090
HostDirName: "prometheus",
9191
ContainerDestId: &containerId,
9292
ContainerDestPath: "/etc",

0 commit comments

Comments
 (0)