-
Sub-task
-
Resolution: Done
-
Major
-
None
-
None
-
None
Istio-agent sidecar binary doesn't have the entries for the other mesh hosts.
Here's the relevant log of the agent when I run the curl from the sleep container:
oc -n mesh2-bookinfo exec -it sleep-5d54c5cfc9-wjw2m -c sleep -- curl -v ratings.mesh2-bookinfo.svc.mesh1-imports.local:9080
$ oc logs sleep-5d54c5cfc9-wjw2m -c istio-proxy -f | grep -i dns 2021-09-09T17:50:11.551527Z info FLAG: --log_output_level="dns:debug,default:info" 2021-09-09T17:50:11.551776Z info Apply proxy config from env {"discoveryAddress":"istiod-fed-import.mesh2-system.svc:15012","proxyMetadata":{"ISTIO_META_DNS_CAPTURE":"true","PROXY_XDS_VIA_AGENT":"true"},"meshId":"mesh2.local"} ISTIO_META_DNS_CAPTURE: "true" 2021-09-09T17:50:11.614693Z debug dns initialized DNS search=[mesh2-bookinfo.svc.cluster.local svc.cluster.local cluster.local us-west-1.compute.internal] servers=[172.30.0.10:53] 2021-09-09T17:50:11.623954Z info dns Starting local udp DNS server at localhost:15053 2021-09-09T17:50:11.624019Z info dns Starting local tcp DNS server at localhost:15053 2021-09-09T17:50:11.895118Z debug dns updated lookup table with 78 hosts 2021-09-09T17:50:12.636335Z debug dns updated lookup table with 78 hosts 2021-09-09T17:51:25.370334Z debug dns updated lookup table with 78 hosts 2021-09-09T17:55:56.252492Z debug dns request ;; opcode: QUERY, status: NOERROR, id: 44918 protocol=udp edns=false id=9c9bc30c-8796-45a7-b342-a8155bc6a966 2021-09-09T17:55:56.252734Z debug dns request ;; opcode: QUERY, status: NOERROR, id: 44502 protocol=udp edns=false id=cef3a252-0540-4fb8-aa4d-356ac8bb9b29 2021-09-09T17:55:56.253903Z debug dns response for hostname "ratings.mesh2-bookinfo.svc.mesh1-imports.local.mesh2-bookinfo.svc.cluster.local." (found=false): ;; opcode: QUERY, status: NXDOMAIN, id: 44918 cluster.local. 5 IN SOA ns.dns.cluster.local. hostmaster.cluster.local. 1631209812 7200 1800 86400 5 ; EDNS: version 0; flags: ; udp: 512 protocol=udp edns=false id=9c9bc30c-8796-45a7-b342-a8155bc6a966 2021-09-09T17:55:56.253991Z debug dns response for hostname "ratings.mesh2-bookinfo.svc.mesh1-imports.local.mesh2-bookinfo.svc.cluster.local." (found=false): ;; opcode: QUERY, status: NXDOMAIN, id: 44502 cluster.local. 5 IN SOA ns.dns.cluster.local. hostmaster.cluster.local. 1631209812 7200 1800 86400 5 ; EDNS: version 0; flags: ; udp: 512 protocol=udp edns=false id=cef3a252-0540-4fb8-aa4d-356ac8bb9b29 2021-09-09T17:55:56.254243Z debug dns request ;; opcode: QUERY, status: NOERROR, id: 36968 protocol=udp edns=false id=350ce38c-64f4-428a-8e1f-aa18d3ed39cc 2021-09-09T17:55:56.254690Z debug dns response for hostname "ratings.mesh2-bookinfo.svc.mesh1-imports.local.svc.cluster.local." (found=false): ;; opcode: QUERY, status: NXDOMAIN, id: 36968 cluster.local. 5 IN SOA ns.dns.cluster.local. hostmaster.cluster.local. 1631209812 7200 1800 86400 5 ; EDNS: version 0; flags: ; udp: 512 protocol=udp edns=false id=350ce38c-64f4-428a-8e1f-aa18d3ed39cc 2021-09-09T17:55:56.254760Z debug dns request ;; opcode: QUERY, status: NOERROR, id: 36622 protocol=udp edns=false id=46e0f566-9b2f-4c23-96ad-b4f53487dc0e 2021-09-09T17:55:56.255190Z debug dns response for hostname "ratings.mesh2-bookinfo.svc.mesh1-imports.local.svc.cluster.local." (found=false): ;; opcode: QUERY, status: NXDOMAIN, id: 36622 cluster.local. 5 IN SOA ns.dns.cluster.local. hostmaster.cluster.local. 1631209812 7200 1800 86400 5 ; EDNS: version 0; flags: ; udp: 512 protocol=udp edns=false id=46e0f566-9b2f-4c23-96ad-b4f53487dc0e 2021-09-09T17:55:56.255418Z debug dns request ;; opcode: QUERY, status: NOERROR, id: 32389 protocol=udp edns=false id=c03f3d48-7cdc-45da-9915-6a65843a69e5 2021-09-09T17:55:56.255551Z debug dns request ;; opcode: QUERY, status: NOERROR, id: 31972 protocol=udp edns=false id=dbe0c6e5-fe0d-44ad-8250-cf0f4281b473 2021-09-09T17:55:56.255971Z debug dns response for hostname "ratings.mesh2-bookinfo.svc.mesh1-imports.local.cluster.local." (found=false): ;; opcode: QUERY, status: NXDOMAIN, id: 32389 cluster.local. 5 IN SOA ns.dns.cluster.local. hostmaster.cluster.local. 1631209812 7200 1800 86400 5 ; EDNS: version 0; flags: ; udp: 512 protocol=udp edns=false id=c03f3d48-7cdc-45da-9915-6a65843a69e5 2021-09-09T17:55:56.256040Z debug dns response for hostname "ratings.mesh2-bookinfo.svc.mesh1-imports.local.cluster.local." (found=false): ;; opcode: QUERY, status: NXDOMAIN, id: 31972 cluster.local. 5 IN SOA ns.dns.cluster.local. hostmaster.cluster.local. 1631209812 7200 1800 86400 5 ; EDNS: version 0; flags: ; udp: 512 protocol=udp edns=false id=dbe0c6e5-fe0d-44ad-8250-cf0f4281b473 2021-09-09T17:55:56.256419Z debug dns request ;; opcode: QUERY, status: NOERROR, id: 12111 protocol=udp edns=false id=72bc6e0d-6d68-4975-8f3e-b1e067251923 2021-09-09T17:55:56.256570Z debug dns request ;; opcode: QUERY, status: NOERROR, id: 11751 protocol=udp edns=false id=8ce315b2-1fd3-45f5-b2e3-db9c611acd71 2021-09-09T17:55:56.258799Z debug dns response for hostname "ratings.mesh2-bookinfo.svc.mesh1-imports.local.us-west-1.compute.internal." (found=false): ;; opcode: QUERY, status: NXDOMAIN, id: 12111 ; EDNS: version 0; flags: ; udp: 512 protocol=udp edns=false id=72bc6e0d-6d68-4975-8f3e-b1e067251923 2021-09-09T17:55:56.258876Z debug dns response for hostname "ratings.mesh2-bookinfo.svc.mesh1-imports.local.us-west-1.compute.internal." (found=false): ;; opcode: QUERY, status: NXDOMAIN, id: 11751 ; EDNS: version 0; flags: ; udp: 512 protocol=udp edns=false id=8ce315b2-1fd3-45f5-b2e3-db9c611acd71 2021-09-09T17:55:56.259020Z debug dns request ;; opcode: QUERY, status: NOERROR, id: 62345 protocol=udp edns=false id=c5d765e1-6a50-49f5-90f0-d03ac861a2d1 2021-09-09T17:55:56.259234Z debug dns request ;; opcode: QUERY, status: NOERROR, id: 62116 protocol=udp edns=false id=d680319a-a0c1-48fc-9e21-41d5df4b4ca0 2021-09-09T17:55:56.259916Z debug dns response for hostname "ratings.mesh2-bookinfo.svc.mesh1-imports.local." (found=false): ;; opcode: QUERY, status: NXDOMAIN, id: 62345 ; EDNS: version 0; flags: ; udp: 512 protocol=udp edns=false id=c5d765e1-6a50-49f5-90f0-d03ac861a2d1 2021-09-09T17:55:56.260008Z debug dns response for hostname "ratings.mesh2-bookinfo.svc.mesh1-imports.local." (found=false): ;; opcode: QUERY, status: NXDOMAIN, id: 62116 ; EDNS: version 0; flags: ; udp: 512 protocol=udp edns=false id=d680319a-a0c1-48fc-9e21-41d5df4b4ca0 2021-09-09T17:56:26.353953Z debug dns updated lookup table with 78 hosts