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: apisix When only the active health check configuration is modified through the interface, the passive health check is also turned on through dashbord #8000

Closed
jiahui1988 opened this issue Sep 27, 2022 · 3 comments
Labels

Comments

@jiahui1988
Copy link

Current Behavior

1): 通过接口添加一个被动健康检查
curl http://127.0.0.1:9080/apisix/admin/routes/101 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
"uri": "/index.html",
"plugins": {
"limit-count": {
"count": 2,
"time_window": 60,
"rejected_code": 503,
"key": "remote_addr"
}
},
"upstream": {
"nodes": {
"127.0.0.1:1980": 1
},
"type": "roundrobin",
"retries": 2,
"checks": {
"active": {
"http_path": "/status",
"host": "foo.com",
"healthy": {
"interval": 2,
"successes": 1
},
"unhealthy": {
"interval": 1,
"http_failures": 2
}
}
}
}
}'
2):通过dashboard查看该配置,发现被健康检查也被打开了(且通过响应的数据看,响应数据确实携带了被动健康检查等相关字段)。

Expected Behavior

此时的被动健康检查自带应该是关闭状态。且响应数据不应该携带被动健康检查字段

Error Logs

无日志输出。

Steps to Reproduce

1): 通过接口添加一个被动健康检查
curl http://127.0.0.1:9080/apisix/admin/routes/101 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
"uri": "/index.html",
"plugins": {
"limit-count": {
"count": 2,
"time_window": 60,
"rejected_code": 503,
"key": "remote_addr"
}
},
"upstream": {
"nodes": {
"127.0.0.1:1980": 1
},
"type": "roundrobin",
"retries": 2,
"checks": {
"active": {
"http_path": "/status",
"host": "foo.com",
"healthy": {
"interval": 2,
"successes": 1
},
"unhealthy": {
"interval": 1,
"http_failures": 2
}
}
}
}
}'
2):通过dashboard查看该配置,发现被健康检查也被打开了(且通过响应的数据看,响应数据确实携带了被动健康检查等相关字段)。

Environment

  • APISIX version:通过docker安装的2.15(自带dashboard)
@guitu168
Copy link
Contributor

fixed! please refer to: #7850

@moonming moonming changed the title bug: apisix 当通过接口只修改主动健康检查的配置时候,再通过dashbord查看发现被动健康检查也被打开了 bug: apisix When only the active health check configuration is modified through the interface, the passive health check is also turned on through dashbord Sep 28, 2022
@github-actions
Copy link

This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Sep 17, 2023
@github-actions
Copy link

github-actions bot commented Oct 1, 2023

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants