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

[feat] add http deployment method #351

Closed
wants to merge 57 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
b84a1c5
update: wrong word spelling
chengyu-l Apr 23, 2023
53f547c
Merge pull request #211 from chengyu-l/patch-1
zhanghuidinah Apr 26, 2023
c561337
Update topology.yaml
ilixiaocui May 4, 2023
cd641e3
Improve(clean): use install instead scp to sync recycle script.
Wine93 Apr 14, 2023
8221c3b
Bugfix(format): make mountpoint directories with wrong mode.
Wine93 Apr 14, 2023
a558356
Release v0.2.1
Wine93 Apr 14, 2023
abcbae2
Fix(map): report warning when both --format and --quiet are set for d…
Wine93 Jun 14, 2023
c38bed6
Revert "Bugfix(format): make mountpoint directories with wrong mode."
Wine93 Jun 15, 2023
8068f79
Fix(format): use blkid instead lsblk to get block device uuid.
Wine93 Jun 15, 2023
b236900
Improve: use embed module to embedded static shell scripts.
Wine93 Apr 17, 2023
377d0a0
Fix(support): download file failed by ssh when remote path is same as…
Wine93 Apr 17, 2023
fa83dc4
Fix(deploy): wait all chunkserver online time (#114).
Wine93 Jun 15, 2023
d7fb66e
Fix: remove deprecated ioutil.
fengshunli May 19, 2023
1fa2e98
Makefile: add golangci-lint.
fengshunli May 17, 2023
2b8e010
Feature: now we support execute the version 2 tools in service contai…
Cyber-SiKu Feb 28, 2023
1cf0a96
Feature(deploy): now we support deploy curvebs cluster by specified p…
Wine93 Jun 16, 2023
5756146
Fix(mount): path already mounted.
Wine93 Jun 16, 2023
e2f7782
Feature: now we support the rqlite which is distributed database as c…
Wine93 Jun 8, 2023
ba312cf
Improve(format): set reserved blocks percentage to 0 for device.
Wine93 Jun 16, 2023
3ded5dd
Feature(hosts): support setting variable for ssh user.
Wine93 Jun 16, 2023
b72801d
Fix(format): report warning when both --format and --quiet are set fo…
Wine93 Jun 19, 2023
aceec47
Fix(format): tune2fs not works due to the wrong command option.
Wine93 Jun 19, 2023
407973e
Fix: report warning when both --format and --quiet are set for docker…
Wine93 Jun 27, 2023
1962037
Fix: updated usage example.
montaguelhz Jun 25, 2023
125a0b0
Fix(format): use short option for blkid command.
Wine93 Jun 27, 2023
0ec624b
Improve(map): skip create volume task if create option not specified.
Wine93 Jul 3, 2023
590d10c
Bugfix: missing whitespace for config delimiter of tools v2.
Wine93 Jul 5, 2023
2940780
Feature(cluster): support import a cluster from sqlite database file.
Wine93 Jul 5, 2023
9430af0
Feature(format): support fomat with blocksize and chunksize.
wu-hanqing Jun 19, 2023
5b0cd13
Fix(map): wrong checker for create option.
Wine93 Jul 12, 2023
18394ff
Fix(map): create volume failed due to the problematic script.
Wine93 Jul 12, 2023
18841dd
Improve(client/status): added poolset aux info for curvebs volume.
Wine93 Jul 12, 2023
0b403f8
Fix(clean): execute recycle script failed.
Wine93 Jul 14, 2023
929c35e
Improve(client/status): show client config in verbose mode.
Wine93 Jul 18, 2023
1098a7f
Fix(deploy): fix deploy curvefs panic due to poolset is nil (#280).
Wine93 Aug 9, 2023
4b65b90
Improve(client/status): display statuses even if get status failed fo…
Wine93 Aug 17, 2023
06f0b00
Fix(deploy): fix set environment variables failed by ssh (#239).
Wine93 Aug 30, 2023
bc66ce1
playbook(logs): add rotate script which can rotate service logs.
Wine93 Sep 7, 2023
44987ee
Fix(precheck): fix get wrong external ip.
caoxianfei1 Nov 17, 2023
0138432
Fix(playground): replace image repo.
Cyber-SiKu Jun 21, 2023
1c09d35
Fix(precheck): support recognize kernel version like "3.15.0_.*".
jyf111 Aug 30, 2023
59bbb91
Fix: adjust const variables position.
Songjf-ttk Aug 30, 2023
e05a7e3
Improve(config): using more meaningful name for service instances.
tiansuo114 Aug 27, 2023
e771538
Improve(precheck): run ss command in container.
jyf111 Aug 19, 2023
f9830eb
playbook(memcache): support sudo alias.
Cyber-SiKu Feb 22, 2023
b86b5a6
Feature(deploy): support etcd authentication.
Wine93 Nov 22, 2023
11064cd
Improve: add commit id in version information.
Wine93 Nov 22, 2023
f39dbcd
Feature: podman can be an alternative container engine.
caoxianfei1 Aug 10, 2023
49e1d41
Improve(format): support specify the number of concurrent for formatt…
Wine93 Nov 22, 2023
2cf7c66
template: updated container image.
Wine93 Nov 22, 2023
f8de164
Feature(monitor): now we support deploy monitor.
SeanHai Apr 26, 2023
e92745d
Fix(migrate): fixed migration panic.
Songjf-ttk Sep 18, 2023
2728b7d
Release v0.3.0
Wine93 Nov 22, 2023
003ad85
fix/(curveadm-deploy): create pool need calc chunkservers
caoxianfei1 Nov 23, 2023
534e2cc
Fix(curveadm deploy): newer version ss answers invalid arument
caoxianfei1 Nov 22, 2023
580b26d
[FIX]: make build error with musl1.2.4
zztaki Nov 23, 2023
e17126e
1.add http deployment method
Nov 24, 2023
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
Prev Previous commit
Next Next commit
Fix(format): tune2fs not works due to the wrong command option.
Signed-off-by: Wine93 <wine93.info@gmail.com>
Wine93 committed Nov 22, 2023
commit aceec4779f3a0df5b95707c0bbf810541739dce4
6 changes: 3 additions & 3 deletions internal/task/step/shell.go
Original file line number Diff line number Diff line change
@@ -116,7 +116,7 @@ type (

Tune2FS struct {
Device string
ReservedBlocksPercentage int
ReservedBlocksPercentage string
Success *bool
Out *string
module.ExecOptions
@@ -395,8 +395,8 @@ func (s *UmountFilesystem) Execute(ctx *context.Context) error {

func (s *Tune2FS) Execute(ctx *context.Context) error {
cmd := ctx.Module().Shell().Tune2FS(s.Device)
if s.ReservedBlocksPercentage > 0 {
cmd.AddOption("-m %d", s.ReservedBlocksPercentage)
if len(s.ReservedBlocksPercentage) > 0 {
cmd.AddOption("-m %s", s.ReservedBlocksPercentage)
}

out, err := cmd.Execute(s.ExecOptions)
2 changes: 1 addition & 1 deletion internal/task/task/bs/format.go
Original file line number Diff line number Diff line change
@@ -241,7 +241,7 @@ func NewFormatChunkfilePoolTask(curveadm *cli.CurveAdm, fc *configure.FormatConf
})
t.AddStep(&step.Tune2FS{ // tune2fs -m 0 DEVICE
Device: device,
ReservedBlocksPercentage: 0,
ReservedBlocksPercentage: "0",
ExecOptions: curveadm.ExecOptions(),
})
// 3: run container to format chunkfile pool