Hi, I tried to deploy a WASM filter using the wasme tools. I using the follow command to deploy a envoyFilter:
wasme deploy istio webassemblyhub.io/life4honor/tinygo-filter:newheader --id=myfilter --namespace=fzy
And, then I got the error ‘Error adding/updating listener(s) virtualInbound: Invalid path: \var\local\lib\wasme-cache\79b39bee1fba687b25f4b0845a2941ee557d5770faf176fea181a4f8a78687a7’ in the istio-proxy logs, which lead to the application pod coudn’t init successfully.
I use Istio 1.7.0 and wasme 0.0.31. Can someone tell me why? Thanks.
Istio proxy logs:
2020-12-02T11:23:33.554450Z warning envoy config gRPC config for type.googleapis.com/envoy.config.listener.v3.Listener rejected: Error adding/updating listener(s) virtualInbound: Invalid path: \var\local\lib\wasme-cache\79b39bee1fba687b25f4b0845a2941ee557d5770faf176fea181a4f8a78687a7
2020-12-02T11:23:35.104922Z warn Envoy proxy is NOT ready: config not received from Pilot (is Pilot running?): cds updates: 1 successful, 0 rejected; lds updates: 0 successful, 1 rejected
2020-12-02T11:23:37.099168Z warn Envoy proxy is NOT ready: config not received from Pilot (is Pilot running?): cds updates: 1 successful, 0 rejected; lds updates: 0 successful, 1 rejected
......
EnvoyFilter:
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
creationTimestamp: "2020-12-02T02:37:05Z"
generation: 2
name: httpbin-myfilter
namespace: fzy
resourceVersion: "947892"
selfLink: /apis/networking.istio.io/v1alpha3/namespaces/fzy/envoyfilters/httpbin-myfilter
uid: 51f512da-8b79-421a-a0be-659740115647
spec:
configPatches:
- applyTo: HTTP_FILTER
match:
context: SIDECAR_INBOUND
listener:
filterChain:
filter:
name: envoy.http_connection_manager
subFilter:
name: envoy.router
patch:
operation: INSERT_BEFORE
value:
name: envoy.filters.http.wasm
typedConfig:
'@type': type.googleapis.com/udpa.type.v1.TypedStruct
typeUrl: type.googleapis.com/envoy.extensions.filters.http.wasm.v3.Wasm
value:
config:
name: myfilter
rootId: root_id
vmConfig:
code:
local:
filename: \var\local\lib\wasme-cache\79b39bee1fba687b25f4b0845a2941ee557d5770faf176fea181a4f8a78687a7
runtime: envoy.wasm.runtime.v8
vmId: myfilter
workloadSelector:
labels:
app: httpbin
version: v1