koderover/zadig

[Question] Can't create self test environment

Closed this issue · 6 comments

General Question

Failed to create self test environment, show err:

500 : Internal Error: failed to ensure EnvoyFilter in namespace istio-system: failed to build envoy operation of storing cache: unknown field "name" in structpb.Struct

image

How to debug and solve it?

{"bundles":{"envoy/authz":{"revision":"b5ef6f840888e27e942b7e13c8e0e5d9bc8cd66c26a675db48132d3f5407f0b3"}},"decision_id":"a01b0fda-3009-4e1f-9901-c9c7e6140542","input":{"attributes":{"destination":{"address":{"socketAddress":{"address":"10.233.68.237","portValue":8080}}},"metadataContext":{},"request":{"http":{"headers":{":authority":"xxx-hosts",":method":"GET",":path":"/api/aslan/cluster/istio/check/0123456789abcdef12345678",":scheme":"https","accept":"application/json, text/plain, */*","accept-encoding":"gzip, deflate, br","accept-language":"zh-CN,zh;q=0.9,en;q=0.8,en-US;q=0.7,en-GB;q=0.6,zh-TW;q=0.5","authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.xxxx-bareq.FqH_C42qKtDZfceP5QvPYtEpW_FC9gWpCAPeQRmkRZs","cookie":"_ga=GA1.1.802042868.1661161577; _ga_ZTD7N9SFY6=GS1.1.1667184989.31.1.1667185000.0.0.0","referer":"https://xxx-hosts/v1/projects/detail/xxxx-project/envs/detail?envName=dev-hb","sec-ch-ua":"\"Microsoft Edge\";v=\"113\", \"Chromium\";v=\"113\", \"Not-A.Brand\";v=\"24\"","sec-ch-ua-mobile":"?0","sec-ch-ua-platform":"\"Windows\"","sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"same-origin","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36 Edg/113.0.314.57","x-forwarded-for":"132.47.122.31","x-forwarded-proto":"https","x-real-ip":"31.47.122.31","x-request-id":"2f13dc42-7a26-44bb-9e40-68a7a2ab277c"},"host":"xxx-hosts","id":"2874902820233533694","method":"GET","path":"/api/aslan/cluster/istio/check/0123456789abcdef12345678","protocol":"HTTP/1.1","scheme":"https"},"time":"2023-06-02T17:54:06.681288Z"},"source":{"address":{"socketAddress":{"address":"172.20.216.254","portValue":16438}}}},"parsed_body":null,"parsed_path":["api","aslan","cluster","istio","check","0123456789abcdef12345678"],"parsed_query":{},"truncated_body":false,"version":{"encoding":"protojson","ext_authz":"v3"}},"labels":{"id":"c6adeb02-85d9-4942-b3c1-ce21391fc3bb","version":"0.33.1-envoy-2"},"level":"info","metrics":{"timer_rego_external_resolve_ns":2650,"timer_rego_query_compile_ns":99641,"timer_rego_query_eval_ns":9699224,"timer_server_handler_ns":10157330},"msg":"Decision Log","query":"data.rbac.response","requested_by":"","result":{"allowed":true,"headers":{"Roles":"[{\"name\":\"admin\",\"namespace\":\"*\"},{\"name\":\"project-admin\",\"namespace\":\"\"}]"}},"time":"2023-06-02T17:54:06Z","timestamp":"2023-06-02T17:54:06.695540436Z","type":"openpolicyagent.org/decision_logs"}
{"bundles":{"envoy/authz":{"revision":"b5ef6f840888e27e942b7e13c8e0e5d9bc8cd66c26a675db48132d3f5407f0b3"}},"decision_id":"23e873b2-0f83-442e-9dc1-f781c2586e46","input":{"attributes":{"destination":{"address":{"socketAddress":{"address":"10.233.68.237","portValue":8080}}},"metadataContext":{},"request":{"http":{"headers":{":authority":"xxx-hosts",":method":"GET",":path":"/api/aslan/environment/environments/dev-hb/check/workloads/k8services?projectName=xxxx-project",":scheme":"https","accept":"application/json, text/plain, */*","accept-encoding":"gzip, deflate, br","accept-language":"zh-CN,zh;q=0.9,en;q=0.8,en-US;q=0.7,en-GB;q=0.6,zh-TW;q=0.5","authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.xxxx-bareq.FqH_C42qKtDZfceP5QvPYtEpW_FC9gWpCAPeQRmkRZs","cookie":"_ga=GA1.1.802042868.1661161577; _ga_ZTD7N9SFY6=GS1.1.1667184989.31.1.1667185000.0.0.0","referer":"https://xxx-hosts/v1/projects/detail/xxxx-project/envs/detail?envName=dev-hb","sec-ch-ua":"\"Microsoft Edge\";v=\"113\", \"Chromium\";v=\"113\", \"Not-A.Brand\";v=\"24\"","sec-ch-ua-mobile":"?0","sec-ch-ua-platform":"\"Windows\"","sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"same-origin","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36 Edg/113.0.314.57","x-forwarded-for":"132.47.122.31","x-forwarded-proto":"https","x-real-ip":"132.47.122.31","x-request-id":"1326656d-3cea-40aa-949f-9f06c3958b34"},"host":"xxx-hosts","id":"4092361257066641717","method":"GET","path":"/api/aslan/environment/environments/dev-hb/check/workloads/k8services?projectName=xxxx-project","protocol":"HTTP/1.1","scheme":"https"},"time":"2023-06-02T17:54:06.684846Z"},"source":{"address":{"socketAddress":{"address":"172.21.116.254","portValue":28545}}}},"parsed_body":null,"parsed_path":["api","aslan","environment","environments","dev-hb","check","workloads","k8services"],"parsed_query":{"projectName":["xxxx-project"]},"truncated_body":false,"version":{"encoding":"protojson","ext_authz":"v3"}},"labels":{"id":"c6adeb02-85d9-4942-b3c1-ce21391fc3bb","version":"0.33.1-envoy-2"},"level":"info","metrics":{"timer_rego_external_resolve_ns":2580,"timer_rego_query_eval_ns":10085979,"timer_server_handler_ns":10419794},"msg":"Decision Log","query":"data.rbac.response","requested_by":"","result":{"allowed":true,"headers":{"Roles":"[{\"name\":\"admin\",\"namespace\":\"*\"},{\"name\":\"project-admin\",\"namespace\":\"\"}]"}},"time":"2023-06-02T17:54:06Z","timestamp":"2023-06-02T17:54:06.699214247Z","type":"openpolicyagent.org/decision_logs"}
{"level":"info","msg":"Bundle loaded and activated successfully. Etag updated to 96099efef496c5c80ae94211f3509dd9413ed802a124789f567657fea1640ddf.","name":"envoy/authz","plugin":"bundle","time":"2023-06-02T17:54:07Z"}
{"bundles":{"envoy/authz":{"revision":"96099efef496c5c80ae94211f3509dd9413ed802a124789f567657fea1640ddf"}},"decision_id":"b946b809-9f1f-42ed-9588-5ce7b7feda97","input":{"attributes":{"destination":{"address":{"socketAddress":{"address":"10.233.68.237","portValue":8080}}},"metadataContext":{},"request":{"http":{"headers":{":authority":"xxx-hosts",":method":"POST",":path":"/api/aslan/environment/environments/dev-hb/share/enable?projectName=xxxx-project",":scheme":"https","accept":"application/json, text/plain, */*","accept-encoding":"gzip, deflate, br","accept-language":"zh-CN,zh;q=0.9,en;q=0.8,en-US;q=0.7,en-GB;q=0.6,zh-TW;q=0.5","authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.xxxx-bareq.FqH_C42qKtDZfceP5QvPYtEpW_FC9gWpCAPeQRmkRZs","content-length":"0","cookie":"_ga=GA1.1.802042868.1661161577; _ga_ZTD7N9SFY6=GS1.1.1667184989.31.1.1667185000.0.0.0","origin":"https://xxx-hosts","referer":"https://xxx-hosts/v1/projects/detail/xxxx-project/envs/detail?envName=dev-hb","sec-ch-ua":"\"Microsoft Edge\";v=\"113\", \"Chromium\";v=\"113\", \"Not-A.Brand\";v=\"24\"","sec-ch-ua-mobile":"?0","sec-ch-ua-platform":"\"Windows\"","sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"same-origin","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36 Edg/113.0.314.57","x-forwarded-for":"132.47.122.31","x-forwarded-proto":"https","x-real-ip":"132.47.122.31","x-request-id":"815e8f4e-abdb-4b18-8453-6044f551fe01"},"host":"xxx-hosts","id":"11806976267462028695","method":"POST","path":"/api/aslan/environment/environments/dev-hb/share/enable?projectName=xxxx-project","protocol":"HTTP/1.1","scheme":"https"},"time":"2023-06-02T17:54:07.646712Z"},"source":{"address":{"socketAddress":{"address":"172.13.116.254","portValue":18014}}}},"parsed_body":null,"parsed_path":["api","aslan","environment","environments","dev-hb","share","enable"],"parsed_query":{"projectName":["xxxx-project"]},"truncated_body":false,"version":{"encoding":"protojson","ext_authz":"v3"}},"labels":{"id":"c6adeb02-85d9-4942-b3c1-ce21391fc3bb","version":"0.33.1-envoy-2"},"level":"info","metrics":{"timer_rego_external_resolve_ns":2690,"timer_rego_query_compile_ns":97571,"timer_rego_query_eval_ns":8900313,"timer_server_handler_ns":9378079},"msg":"Decision Log","query":"data.rbac.response","requested_by":"","result":{"allowed":true,"headers":{"Roles":"[{\"name\":\"admin\",\"namespace\":\"*\"},{\"name\":\"project-admin\",\"namespace\":\"\"}]"}},"time":"2023-06-02T17:54:07Z","timestamp":"2023-06-02T17:54:07.660158968Z","type":"openpolicyagent.org/decision_logs"}

No log found in aslan pod

I had the same problem, I tried multiple versions of istio, but the problem persisted.
image

what's your Zadig version ? @graphenn @ScottStorehub

what's your Zadig version ? @graphenn @ScottStorehub

I was originally using version 1.17.0. Then I switched to use version 1.14.0 of zadig and it turned on fine.

Zadig 1.17
K8s: 1.26.4

self test environment doesn't work in v1.17.0, it is a known problem, we have tracked it.
we'll inform you in time if there is any progress

Thanks.