-
Notifications
You must be signed in to change notification settings - Fork 73
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
enter_modify #342
enter_modify #342
Conversation
Signed-off-by: Cyber-SiKu <[email protected]>
Signed-off-by: Cyber-SiKu <[email protected]>
With database disk records commited by `disks.yaml`, disk formatting cloud be performed without `format.yaml`. And it will get and wirte disk `size` and `URI` during disk formatting, thus record the ID of service(chunkserver) with associated disk when deploy curvebs cluster. Use `curveadm disks ls` to view all disk information. Usage: curveadm disks commit /path/to/disks.yaml curveadm disks ls curveadm format Signed-off-by: Lijin Xiong <[email protected]>
Feature: support managing disk information in database
Disk UUID will be wrote into the config of service(chunkserver) container during curvebs deployment if disks `service_mount_device` was set `true`, then the service could directly mount disk device via `entrypoint.sh` and restart automatically after host power recover. Signed-off-by: Lijin Xiong <[email protected]>
Feature: support direct disk mounting for service container
Signed-off-by: Cyber-SiKu <[email protected]>
Signed-off-by: Cyber-SiKu <[email protected]> Set the restart policy of the client container to unless-stopped, so that it will automatically remount when the machine restarts Signed-off-by: Cyber-SiKu <[email protected]>
Signed-off-by: fengshunli <[email protected]>
Signed-off-by: fengshunli <[email protected]>
Signed-off-by: fengshunli <[email protected]>
Signed-off-by: fengshunli <[email protected]>
Fix: format code
Co-authored-by: jolly-sy <[email protected]> Co-authored-by: Hanqing Wu <[email protected]> Signed-off-by: jolly-sy <[email protected]>
Signed-off-by: Cyber-SiKu <[email protected]>
Signed-off-by: wanghai01 <[email protected]>
Signed-off-by: wanghai01 <[email protected]>
Signed-off-by: wanghai01 <[email protected]>
Support manage curve monitor, curve website and support http service
Signed-off-by: montaguelhz <[email protected]>
Signed-off-by: wanghai01 <[email protected]>
fix clean monitor
Signed-off-by: wanghai01 <[email protected]>
fix generate target.json when curvefs
Signed-off-by: wanghai01 <[email protected]>
add dirs http service need
Signed-off-by: wanghai01 <[email protected]>
Signed-off-by: sjf <[email protected]>
Signed-off-by: jyf111 <[email protected]>
[fix]playbook: fix format related variables position
Signed-off-by: Wine93 <[email protected]>
…tion solution: execute the ss command in a temporary container to precheck for ports in use instead Signed-off-by: jyf111 <[email protected]>
Signed-off-by: xiaoming <[email protected]> [fix]playbook: fix format related variables position Signed-off-by: sjf <[email protected]> [fix] add support for recognizing kernel versions like "3.15.0_.*" Signed-off-by: jyf111 <[email protected]> support enable etcd auth Signed-off-by: wanghai01 <[email protected]> Feature: podman can be an alternative container engine Signed-off-by: caoxianfei1 <[email protected]> bugfix: docker ps specify both --format and --quiet will warning since v24.0.0. WARNING: Ignoring custom format, because both --format and --quiet are set. Signed-off-by: caoxianfei1 <[email protected]> change replicas to instances Signed-off-by: tec-rubbish maker <[email protected]> change topology variable change service_replicas_sequence and format_replicas_sequence to service_instances_sequence and format_instances_sequence Signed-off-by: tec-rubbish maker <[email protected]> fix the worng instances Signed-off-by: tec-rubbish maker <[email protected]> mistake Signed-off-by: tec-rubbish maker <[email protected]> Update cli/command/status.go Signed-off-by: Wine93 <[email protected]> [fix] older versions of the ss command do not have the --no-header option solution: execute the ss command in a temporary container to precheck for ports in use instead Signed-off-by: jyf111 <[email protected]> Signed-off-by: xiaoming <[email protected]>
Signed-off-by: sjf <[email protected]>
@LYPWYT BTW, squash into one commit first. |
cli/command/enter.go
Outdated
} else { | ||
// If no id parameter, execute the following | ||
// 2) generate get status playbook | ||
statusForLeaderOptions := statusOptions{id: "*", role: "*", host: "*"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be only need role: "mds"
cli/command/enter.go
Outdated
if err != nil { | ||
return err | ||
} | ||
// 4) display service status |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment is improper
cli/command/enter.go
Outdated
} | ||
// 4) display service status | ||
statuses := []task.ServiceStatus{} | ||
value := curveadm.MemStorage().Get(comm.KEY_ALL_SERVICE_STATUS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be we can set other KEY that no need to be same with status command.
internal/playbook/factory.go
Outdated
case GET_SERVICE_STATUS_FOR_LEADER: | ||
t, err = comm.NewGetServiceStatusForLeaderTask(curveadm, config.GetDC(i)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GET_MDS_LEADER is better?
t.AddStep(&Step2GetListenPorts{ | ||
ContainerId: containerId, | ||
Status: &status, | ||
Ports: &ports, | ||
ExecOptions: curveadm.ExecOptions(), | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The step is not necessary and define other function and struct instead of using ServiceStatus.
t.AddStep(&step2FormatServiceStatus{ | ||
dc: dc, | ||
serviceId: serviceId, | ||
containerId: containerId, | ||
isLeader: &isLeader, | ||
ports: &ports, | ||
status: &status, | ||
memStorage: curveadm.MemStorage(), | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Completed modifications as required
Signed-off-by: lyp <[email protected]> enter_modify_1 Signed-off-by: lyp <[email protected]> error handling enter Signed-off-by: lyp <[email protected]> error handling enter Signed-off-by: lyp <[email protected]> enter handling enter Signed-off-by: lyp <[email protected]> enter modify 2 Signed-off-by: lyp <[email protected]>
please push it to develop branch again. |
@LYPWYT rebase mistake? |
fix #324
Make the curveadm enter command enter the leader container without parameters