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

[BUG] lbagent panic导致haproxy重启 #22312

Open
yulongz opened this issue Mar 20, 2025 · 0 comments
Open

[BUG] lbagent panic导致haproxy重启 #22312

yulongz opened this issue Mar 20, 2025 · 0 comments
Assignees
Labels
bug Something isn't working state/awaiting processing

Comments

@yulongz
Copy link

yulongz commented Mar 20, 2025

问题描述/What happened:
lbagent日志中出现了panic导致haproxy重启

[info 2025-03-20 08:00:15 lbagent.(*ApiHelper).doUseCorpus(api.go:419)] make effect new corpus and params
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x23ba4b3]

goroutine 358 [running]:
yunion.io/x/onecloud/pkg/lbagent/models.(*LoadbalancerCorpus).genHaproxyConfigTcp(0xc001ea59c0?, 0x2d1608c?, 0xc0038f5780, 0x2?)
        /root/go/src/yunion.io/x/onecloud/pkg/lbagent/models/haproxy.go:554 +0x133
yunion.io/x/onecloud/pkg/lbagent/models.(*LoadbalancerCorpus).GenHaproxyConfigs(0xc000349b80, {0xc0042b09c0, 0x40}, 0xc002b7f710)
        /root/go/src/yunion.io/x/onecloud/pkg/lbagent/models/haproxy.go:137 +0xdbb
yunion.io/x/onecloud/pkg/lbagent.(*HaproxyHelper).handleUseCorpusCmd.func1({0xc0042b09c0, 0x40})
        /root/go/src/yunion.io/x/onecloud/pkg/lbagent/haproxy.go:163 +0x2c5
yunion.io/x/onecloud/pkg/lbagent/utils.(*ConfigDirManager).NewDir(0xc000158f4c?, 0xc000158e58)
        /root/go/src/yunion.io/x/onecloud/pkg/lbagent/utils/configdir.go:68 +0xb1
yunion.io/x/onecloud/pkg/lbagent.(*HaproxyHelper).handleUseCorpusCmd(0xc000279080, {0x3245da0, 0xc0013e1bc0}, 0xc006832420?)
        /root/go/src/yunion.io/x/onecloud/pkg/lbagent/haproxy.go:143 +0x93
yunion.io/x/onecloud/pkg/lbagent.(*HaproxyHelper).handleCmd(0xc000158f80?, {0x3245da0?, 0xc0013e1bc0?}, 0x0?)
        /root/go/src/yunion.io/x/onecloud/pkg/lbagent/haproxy.go:99 +0x8e
yunion.io/x/onecloud/pkg/lbagent.(*HaproxyHelper).Run(0xc0001a4fd0?, {0x3245da0, 0xc0013e1bc0})
        /root/go/src/yunion.io/x/onecloud/pkg/lbagent/haproxy.go:88 +0xd3
created by yunion.io/x/onecloud/pkg/lbagent.StartService
        /root/go/src/yunion.io/x/onecloud/pkg/lbagent/service.go:115 +0x885

环境/Environment:
v3.10.15

  • OS (e.g. cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Host: (e.g. dmidecode | egrep -i 'manufacturer|product' |sort -u)
  • Service Version (e.g. kubectl exec -n onecloud $(kubectl get pods -n onecloud | grep climc | awk '{print $1}') -- climc version-list):
@yulongz yulongz added the bug Something isn't working label Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working state/awaiting processing
Projects
None yet
Development

No branches or pull requests

2 participants