tridentctl get backend is very slow or fails due to 'command terminated with exit code 1'
Applies to
- Astra Trident
- ONTAP Backend
- ONTAP cluster has more than 99 online data LIFs
Issue
tridentctl get backend
fails due to 'command terminated with exit code 1
'
# ./tridentctl get backend -d
Operating mode = tunnel, Trident pod = trident-csi-84c99f54d-v4psr, Namespace = trident, CLI = oc
Invoking tunneled command: oc exec trident-csi-84c99f54d-v4psr -n trident -c trident-main -- tridentctl --debug get backend
Operating mode = direct, Server = 127.0.0.1:8000, Autosuport server = 127.0.0.1:8003
Trident URL: http://127.0.0.1:8000/trident/v1
--------------------------------------------------------------------------------
Request Method: GET
Request URL: http://127.0.0.1:8000/trident/v1/backend
Request headers: map[Content-Type:[application/json]]
Request body:
................................................................................
Error: Get http://127.0.0.1:8000/trident/v1/backend: EOF
command terminated with exit code 1
tridentctl get backend
succeeds but takes a very long time- If debug logging for a backend is enabled by including
debugTraceFlags
in the backend definition, trident controller log shows thatnet-interface-get-iter
API was invoked repeatatively