Closed
【问题】使用keepalived和haproxy拉起高可用集群时,会在master节点上绑定VIP地址,当集群被回收时,该VIP地址未能清理,导致已使用的VIP无法二次使用 #121
xuyouhAdd on  Feb 11Closed at  Mar 13
xuyouh
xuyouhCollaborators
Feb 11 Create

注意事项/ Notes

环境信息/ Environment

OpenEuler 22.03 arm64 openfuyao版本25.09

问题简述/ Brief Description

使用keepalived和haproxy拉起高可用集群时,会在master节点上绑定VIP地址,当集群被回收时,该VIP地址未能清理,导致已使用的VIP无法二次使用

问题详情&复现步骤 / Details & Reproduction Steps

1、拉起高可用集群1,填写VIP地址1;
2、回收集群;
3、再次拉起高可用集群2,填写VIP地址1,集群拉起失败。

期望结果/ Expected Results

拉起高可用集群2成功

实际结果/Actual Results

拉起高可用集群2失败

likedislike
openFuyao-botopenFuyao-botCollaborators
Feb 11 Added label: sig/sig-Installation
openFuyao-bot
openFuyao-botCollaborators
Feb 11 Comments:

欢迎来到 openFuyao 社区

Hey @xuyouhong , 感谢你对社区的贡献.

机器人使用手册

有关指令的使用,可以点击 此处 查看详情。开发人员可以在每个PR或Issue下方评论特定指令来触发机器人任务。

联系指引

有疑问可以联系 SIG: sig-Installation ,
维护者是: @foxbit, @javadoors, @regandy, @xuyouhong, @zhangxyjlu, @zqw1 ,

likedislike
xuyouh
xuyouhCollaborators
Feb 11 Comments:

问题根因:keepalived组件会将VIP绑定在master节点上,回收集群时未能清理VIP的绑定,导致残留,后续再次使用该VIP时,由于已经绑定到节点上,导致VIP不在可用。

临时规避解决:ip addr del 200.101.143.1/32 dev eth1 在master节点上手动删除VIP地址。

长期规划方案:集群回收时也能同步回收VIP地址,不出现残留。

likedislike
xuyouhxuyouhCollaborators
Feb 11 Modify description of issue
xuyouhxuyouhCollaborators
Feb 11 Associated milestone: v26.03
xuyouhxuyouhCollaborators
Mar 12 Associated pull request
xuyouh
xuyouhCollaborators
Mar 12 Comments:

已经资料更新

likedislike
xuyouhxuyouhCollaborators
Mar 13 associated Kanban: openFuyao - v26.03问题单
xuyouhxuyouhCollaborators
Mar 13 changed custom state from 开启 to 待测试
xuyouhxuyouhCollaborators
Mar 13 changed custom state from 待测试 to 已完成
xuyouhxuyouhCollaborators
Mar 13 Close issue