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

help request: config_etcd.lua:535: load_full_data(): failed to check item data of [/apisixgw/upstreams] err:additional properties forbidden, found _discovery_type #11709

Open
zsmlinux opened this issue Nov 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@zsmlinux
Copy link

zsmlinux commented Nov 5, 2024

Description

After I upgrade apisix from 3.5 to 3.10, apisix could not load upstream data any more.

2024/11/05 16:32:53 [error] 57#57: *3 [lua] config_etcd.lua:535: load_full_data(): failed to check item data of [/apisixgw/upstreams] err:additional properties forbidden, found _discovery_type ,val: {"keepalive_pool":{"requests":1000,"size":320,"idle_timeout":60},"_discovery_type":"eureka","_service_name":"a","create_time":1730360090,"update_time":1730360090,"id":"00000000000006511338","pass_host":"pass","nodes":[{"host":"10.x.x.4","weight":100,"priority":0,"port":10000},{"host":"10.x.x.0","weight":100,"priority":0,"port":10000}],"type":"roundrobin","name":"appms a","scheme":"http","hash_on":"vars","timeout":{"read":10,"connect":10,"send":10}}, context: init_worker_by_lua*
2024/11/05 16:32:53 [error] 57#57: *3 [lua] config_etcd.lua:535: load_full_data(): failed to check item data of [/apisixgw/upstreams] err:additional properties forbidden, found _discovery_type ,val: {"keepalive_pool":{"requests":1000,"size":320,"idle_timeout":60},"_discovery_type":"eureka","_service_name":"b","create_time":1730370140,"update_time":1730370140,"id":"00000000000006513617","pass_host":"pass","nodes":[{"host":"10.x.x.1","weight":100,"priority":0,"port":10000}],"type":"roundrobin","name":"appms b","scheme":"http","hash_on":"vars","timeout":{"read":10,"connect":10,"send":10}}, context: init_worker_by_lua*

Environment

  • APISIX version (run apisix version): 3.10.0
  • Operating system (run uname -a):
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Apache APISIX backlog Nov 5, 2024
@dosubot dosubot bot added the bug Something isn't working label Nov 5, 2024
@zsmlinux zsmlinux closed this as completed Nov 5, 2024
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Apache APISIX backlog Nov 5, 2024
@zsmlinux zsmlinux reopened this Nov 5, 2024
@github-project-automation github-project-automation bot moved this from ✅ Done to 📋 Backlog in Apache APISIX backlog Nov 5, 2024
@zsmlinux
Copy link
Author

zsmlinux commented Nov 5, 2024

I discovered that this issue is caused by Apache APISIX PR #10233.
image

When I configure an upstream with service discovery using the APISIX Dashboard, it automatically generates _discovery_type and _service_name properties. However, according to Apache APISIX PR #10233, these properties are not permitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant