Skip to main content
NetApp Stage KB

Trident failed to create backend on OCP 4.14 Error: error communicating with Trident REST API

Views:
Visibility:
Public
Votes:
0
Category:
astra_trident
Specialty:
SNAPX
Last Updated:

Applies to

  • Trident
  • OpenShift Container Platform(OCP) 4.14

Issue

Creating a backend fails with below error:

./tridentctl create backend -f trident-backend-tridentctl.yaml -n trident -d
DEBU[2024-08-12T13:25:47+12:00] >>>> command.ExecuteWithoutLog                args="[get pod -n trident -l app=controller.csi.trident.netapp.io -o=json --field-selector=status.phase=Running]" command=oc
DEBU[2024-08-12T13:25:47+12:00] <<<< command.ExecuteWithoutLog                command=oc error="<nil>"
Operating mode = tunnel, Trident pod = trident-controller-7cbf776784-gq7kj, Namespace = trident, CLI = oc
Invoking tunneled command: oc exec trident-controller-7cbf776784-gq7kj -n trident -c trident-main -- tridentctl --debug create backend --base64 eyJiYWNrZW5kTmFtZSI6InN2bS1vY3AtbWRyNWdjdGwwMSIsImRlYnVnVHJhY2VGbGFncyI6eyJhcGkiOnRydWUsIm1ldGhvZCI6dHJ1ZX0sIm1hbmFnZW1lbnRMSUYiOiIxMC4xNC4xMzQuMTEiLCJwYXNzd29yZCI6Ik9wMzRTaDE0NyIsInNhblR5cGUiOiJpc2NzaSIsInN0b3JhZ2VEcml2ZXJOYW1lIjoib250YXAtc2FuIiwic3ZtIjoic3ZtLW9jcC1tZHI1Z2N0bDAxIiwidXNlcm5hbWUiOiJ2c2FkbWluIiwidmVyc2lvbiI6MX0=
DEBU[2024-08-12T13:25:47+12:00] >>>> command.ExecuteWithoutLog                args="[exec trident-controller-7cbf776784-gq7kj -n trident -c trident-main -- tridentctl --debug create backend --base64 eyJiYWNrZW5kTmFtZSI6InN2bS1vY3AtbWRyNWdjdGwwMSIsImRlYnVnVHJhY2VGbGFncyI6eyJhcGkiOnRydWUsIm1ldGhvZCI6dHJ1ZX0sIm1hbmFnZW1lbnRMSUYiOiIxMC4xNC4xMzQuMTEiLCJwYXNzd29yZCI6Ik9wMzRTaDE0NyIsInNhblR5cGUiOiJpc2NzaSIsInN0b3JhZ2VEcml2ZXJOYW1lIjoib250YXAtc2FuIiwic3ZtIjoic3ZtLW9jcC1tZHI1Z2N0bDAxIiwidXNlcm5hbWUiOiJ2c2FkbWluIiwidmVyc2lvbiI6MX0=]" command=oc
DEBU[2024-08-12T13:27:17+12:00] <<<< command.ExecuteWithoutLog                command=oc error="exit status 1"
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
time="2024-08-12T01:25:47Z" level=debug msg="--------------------------------------------------------------------------------\n"
time="2024-08-12T01:25:47Z" level=debug msg="Request Method: POST\n"
time="2024-08-12T01:25:47Z" level=debug msg="Request URL: http://127.0.0.1:8000/trident/v1/backend\n"
time="2024-08-12T01:25:47Z" level=debug msg="Request headers: map[Content-Type:[application/json]]\n"
time="2024-08-12T01:25:47Z" level=debug msg="Request body: {\"backendName\":\"svm-ocp-mdr5gctl01\",\"debugTraceFlags\":{\"api\":true,\"method\":true},\"managementLIF\":\"10.14.134.11\",\"password\":<REDACTED>,\"sanType\":\"iscsi\",\"storageDriverName\":\"ontap-san\",\"svm\":\"svm-ocp-mdr5gctl01\",\"username\":<REDACTED>,\"version\":1}\n"
time="2024-08-12T01:25:47Z" level=debug msg="................................................................................\n"
Error: error communicating with Trident REST API; Post http://127.0.0.1:8000/trident/v1/backend: EOF
command terminated with exit code 1
Error: exit status 1

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.