-
Bug
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
False
-
None
-
False
-
-
-
NetObserv - Sprint 260, NetObserv - Sprint 261, NetObserv - Sprint 262
Description of problem:
When enabling DNS/RTT features and using a non-admin user, naivgating to the Overview page triggers queries that produce an error: AxiosError: Request failed with status code 400 [500] Unknown error from Loki [400] Loki message: parse error at line 1, col 4079: syntax error: unexpected unwrap and/or: {"error":"could not enforce authorization label matchers: failed parsing LogQL expression: syntax error: unexpected CLOSE_PARENTHESIS: 1:207","errorType":"observatorium-api","status":"error"}
Steps to Reproduce:
1. Install netobserv with DNS/RTT enabled 2. Setup a user with 2 namespaces access, give him the netobserv-reader role 3. With this user, navigate to Overview page 4. .. or alternatively run: oc exec deployment/netobserv-plugin -n netobserv -- curl -G -s -H 'X-Scope-OrgID:network' -H 'Authorization: Bearer (token)' -k https://loki-gateway-http.netobserv.svc:8080/api/logs/v1/network/loki/api/v1/query --data-urlencode 'query=topk(5,(quantile_over_time(0.9,{app="netobserv-flowcollector",_RecordType="flowLog"}|~`"DnsLatencyMs`!~`"DnsLatencyMs":0[,}]`|json|unwrap DnsLatencyMs|__error__=""[45s]) by(SrcK8S_HostName,DstK8S_HostName)))'
Actual results:
Error displayed
Expected results:
no error
- links to
- mentioned on