Hi, having an issue with upstream health being set to “health”:“HEALTHCHECKS_OFF”, and not sure why, if i actually try to send request through it seems to work, but im not sure why HEALTHCHECKS_OFF is returned in query.
config.yml
----------
services:
- name: my_service
host: my_service_host
routes:
- name: my_service
hosts:
- my_service_host
strip_path: false
upstreams:
- name: my_service.upstream
hash_fallback: none
hash_on: header
hash_on_header: X-User-ID
targets:
- target: my_service.route53.srv
weight: 100
/ # curl -X GET http://localhost:8001/upstreams/my_service.upstream/health
{"next":null,"data":[{"created_at":1565091126.975,"upstream":{"id":"e4fa5d33-f807-5fa6-a3b6-6178c230d9d9"},"id":"c08fb74f-444b-5e4b-aa43-d459071b5c31","health":"HEALTHCHECKS_OFF","target":"my_service.route53.srv","weight":100}],"node_id":"d9725a4d-3835-4f4e-8b8b-bc6913497658"}
when i send the curl to cehck the health, i see this error in the kong logs.
2019/08/06 11:56:51 [error] 292#0: *394962 [lua] targets.lua:240: page_collection(): failed getting upstream health: balancer not found, client: 127.0.0.1, server: kong_admin, request: "GET /upstreams/my_service.upstream/health HTTP/1.1", host: "localhost:8001"
and none of the targets get listed in targets, there should be about 20 targets, in kong 0.14 there is a different issue with DNS_ERROR, but it actually lists all the targets.
/ # curl -X GET http://localhost:8001/upstreams/my_service.upstream/targets/all
{"next":null,"data":[{"created_at":1565091126.975,"upstream":{"id":"e4fa5d33-f807-5fa6-a3b6-6178c230d9d9"},"id":"c08fb74f-444b-5e4b-aa43-d459071b5c31","tags":null,"target":"my_service.route53.srv","weight":100}]}
Is there any issues with the declarative configuration used to create the service/route/upstream targets?
after kong reload or start, get this error
2019/08/06 13:45:40 [error] 584#0: *434182 lua entry thread aborted: runtime error: /usr/local/share/lua/5.1/resty/dns/balancer/base.lua:798: expected a hostname (string), got nil