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

Unable to modify the log level for storaged. #498

Open
catchdog007 opened this issue Apr 20, 2024 · 4 comments
Open

Unable to modify the log level for storaged. #498

catchdog007 opened this issue Apr 20, 2024 · 4 comments
Labels
affects/none PR/issue: this bug affects none version. severity/none Severity of bug type/bug Type: something is unexpected

Comments

@catchdog007
Copy link

Please check the FAQ documentation before raising an issue

Describe the bug (required)

使用kubectl edit nc nebula 修改storaged服务的config,设置minloglevel为1,2,3,4,均不生效,进入容器后,执行curl nebula-storaged-headless:19779/flags 看到的minloglevel还是0
但是,一模一样的操作,对于graphd和metad却是能立马生效的

Your Environments (required)

使用helm3安装的nebula-operator-1.7.6和nebula-cluster-1.7.0组建的nebula集群,k8s的版本是1.23.9

How To Reproduce(required)

使用上面的方式,必现

Expected behavior

Additional context

@catchdog007 catchdog007 added the type/bug Type: something is unexpected label Apr 20, 2024
@github-actions github-actions bot added affects/none PR/issue: this bug affects none version. severity/none Severity of bug labels Apr 20, 2024
@QingZ11 QingZ11 changed the title storaged无法修改日志级别 Unable to modify the log level for storaged. Apr 22, 2024
@kqzh kqzh transferred this issue from vesoft-inc/nebula Apr 22, 2024
@kqzh
Copy link
Contributor

kqzh commented Apr 22, 2024

hi @catchdog007 ,thank you for reporting the bug, we will fix it in the next version

@MegaByte875
Copy link
Contributor

image

I did a test found that flag minloglevel reset to 0 ifself seconds later after operator apply the config, may it's a bug. Only storaged can reproduce the issue.

@Sahil333
Copy link

I am facing the same issue. I can reproduce the same issue in other components metad and graphd as well. It seems to be happening with "minloglevel" and "memory_tracker_limit_ratio" field in my case. Some fields like "redirect_stdout" and "stderrthreshold" are not overwritten and correct value is used given in the config field of cluster yaml.

@Sahil333
Copy link

Sahil333 commented Nov 23, 2024

I was looking at the configMaps in which dynamic flags are not updated instead separate http calls are made in the control loop to update these flags. I am not facing the OP's issue, my mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/none PR/issue: this bug affects none version. severity/none Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

4 participants