api7 / apisix-seed

Do service discovery on the CP side
Apache License 2.0
26 stars 15 forks source link

failed to set upstream: discovery zookeeper is uninitialized #85

Open wdy62808 opened 1 month ago

wdy62808 commented 1 month ago

Zookeeper autodiscovery with apisix-seed encounters the following errors

[error] 51#51: 4 [lua] config_etcd.lua:535: load_full_data(): failed to check item data of [/apisix/routes] err:property "upstream" validation failed: additional properties forbidden, found _discovery_type ,val: {"create_time":1722587116,"upstream":{"scheme":"http","_discovery_type":"zookeeper","hash_on":"vars","_service_name":"APISIX-ZK","pass_host":"pass","nodes":[{"priority":0,"weight":100,"host":"10.20.210.37","port":30103}],"type":"roundrobin"},"hosts":["test.apisix.web"],"name":"test_zk","status":1,"uri":"/","id":"1","priority":0,"update_time":1722587116}, context: init_worker_by_lua*

[error] 50#50: *1945 [lua] init.lua:548: handle_upstream(): failed to set upstream: discovery zookeeper is uninitialized,

wdy62808 commented 1 month ago

env: doker apache/apisix:3.9.0-debian zookeeper:3.7.0