Skip to content

Commit

Permalink
Merge pull request #264 from SeanHai/auth
Browse files Browse the repository at this point in the history
fix generate target.json when curvefs
  • Loading branch information
SeanHai authored Jul 6, 2023
2 parents d750c94 + 8c55ada commit 60cee71
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions cli/command/client/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ func genMapPlaybook(curveadm *cli.CurveAdm,
steps := MAP_PLAYBOOK_STEPS
pb := playbook.NewPlaybook(curveadm)
for _, step := range steps {
if step == playbook.CREATE_VOLUME && !options.create {
continue
}
pb.AddStep(&playbook.PlaybookStep{
Type: step,
Configs: ccs,
Expand Down
3 changes: 2 additions & 1 deletion internal/configure/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ func parsePrometheusTarget(dcs []*topology.DeployConfig) (string, error) {
case topology.ROLE_ETCD:
item = fmt.Sprintf("%s:%d", ip, dc.GetListenClientPort())
case topology.ROLE_MDS,
topology.ROLE_CHUNKSERVER:
topology.ROLE_CHUNKSERVER,
topology.ROLE_METASERVER:
item = fmt.Sprintf("%s:%d", ip, dc.GetListenPort())
case topology.ROLE_SNAPSHOTCLONE:
item = fmt.Sprintf("%s:%d", ip, dc.GetListenDummyPort())
Expand Down
2 changes: 1 addition & 1 deletion internal/task/task/monitor/sync_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func NewSyncConfigTask(curveadm *cli.CurveAdm, cfg *configure.MonitorConfig) (*t
Lambda: common.CheckContainerExist(cfg.GetHost(), cfg.GetRole(), containerId, &out),
})
if role == ROLE_PROMETHEUS {
t.AddStep(&step.CreateAndUploadDir{ // prepare prometheus conf upath
t.AddStep(&step.CreateAndUploadDir{ // prepare prometheus conf path
HostDirName: "prometheus",
ContainerDestId: &containerId,
ContainerDestPath: "/etc",
Expand Down

0 comments on commit 60cee71

Please sign in to comment.