TridentBackendConfig is not properly created/initialized
Applies to
- NetApp Astra Trident
- NetApp Data ONTAP 9.X
- ontap-san driver
Issue
- When a new TridentBackendConfig is created, it is not properly set online and the following errors are seen in the trident-controller log:
time="YYYY-MM-DDThh:mm:ssZ" level=error msg="Error creating ONTAP REST API client for initial call. Falling back to ZAPI." crdControllerEvent=add error="&{<nil>} (*models.ErrorResponse) is not supported by the TextConsumer, can be resolved by supporting TextUnmarshaler interface" logLayer=core requestID=xyxyxyxy-yyyy-xxxx-zzzz-zyyzzyyzzyyz requestSource=CRD workflow="cr=reconcile"time="YYYY-MM-DDThh:mm:ssZ" level=error msg="Could not initialize storage driver." crdControllerEvent=add error="error initializing ontap-san driver: could not create Data ONTAP API client: error creating ONTAP REST API client: &{<nil>} (*models.ErrorResponse) is not supported by the TextConsumer, can be resolved by supporting TextUnmarshaler interface" logLayer=core requestID=xyxyxyxy-yyyy-xxxx-zzzz-zyyzzyyzzyyz requestSource=CRD workflow="cr=reconcile"time="YYYY-MM-DDThh:mm:ssZ" level=debug msg="Failed storagePools backend." backendName=backend-test backendUUID=trtrtrtr-ycyc-xzxz-yxyx-xzzxxzzxyyyy crdControllerEvent=add driver=ontap-san logLayer=core requestID=xyxyxyxy-yyyy-xxxx-zzzz-zyyzzyyzzyyz requestSource=CRD workflow="cr=reconcile"time="YYYY-MM-DDThh:mm:ssZ" level=debug msg="NewStorageBackendForConfig failed." backend="&{0xc0015a2488 backend-test trtrtrtr-ycyc-xzxz-yxyx-xzzxxzzxyyyy false failed 0xc00051a840 0xc00051a860 10840748-f815-45dd-85a9-f83d18057974 false}" backendUUID=trtrtrtr-ycyc-xzxz-yxyx-xzzxxzzxyyyy configRef=10840748-f815-45dd-85a9-f83d18057974 crdControllerEvent=add err="problem initializing storage driver 'ontap-san': error initializing ontap-san driver: could not create Data ONTAP API client: error creating ONTAP REST API client: &{<nil>} (*models.ErrorResponse) is not supported by the TextConsumer, can be resolved by supporting TextUnmarshaler interface" logLayer=core requestID=xyxyxyxy-yyyy-xxxx-zzzz-zyyzzyyzzyyz requestSource=CRD workflow="cr=reconcile"time="YYYY-MM-DDThh:mm:ssZ" level=warning msg="Cannot terminate an uninitialized backend." backend=backend-test backendUUID=trtrtrtr-ycyc-xzxz-yxyx-xzzxxzzxyyyy crdControllerEvent=add driver=ontap-san logLayer=core requestID=xyxyxyxy-yyyy-xxxx-zzzz-zyyzzyyzzyyz requestSource=CRD state=failed workflow="cr=reconcile"
- In the ontap audit log file, the following error is seen:
DDD MM DD hh:mm:ss +0100 [node: mgwd: security.invalid.login:alert]: Failed to authenticate login attempt to Vserver: SVM-test, username: pii_encrypt/xxxx---yyyy/pii_encrypt, application: http.
