IBM Support

Applying datapower special build in API Connect deployment fails with no endpoints available for service ibm-apiconnect-service

Troubleshooting


Problem

An attempt to apply a DataPower special build (dk10509cw.lts.nonprod.tar.gz) on API Connect version 10.0.5.6 encounters an error due to missing endpoints for the ibm-apiconnect-service. The issue arises after specifying the dataPowerOverride in the GatewayCluster YAML configuration following the steps outlined in IBM's documentation for overriding the DataPower image.

Symptom

Upon saving the Gateway Cluster configuration, the following error is observed:
error: gatewayclusters.gateway.apiconnect.ibm.com "gateway" could not be patched: Internal error occurred: failed calling webhook "mgatewaycluster.kb.io": failed to call webhook: Post "https://ibm-apiconnect-service.apic.svc:443/mutate-gateway-apiconnect-ibm-com-v1beta1-gatewaycluster?timeout=10s": no endpoints available for service "ibm-apiconnect-service"
Attempting to reapply the configuration using:
oc replace -f /tmp/oc-edit-1711759685.yaml
does not resolve the issue.

Additional symptoms include:

1. The OpenShift ingress router logs show that the ibm-apiconnect-service service cannot be found:
$ oc logs pod/router-default-67866bdf55-wgs4x_router -n openshift-ingress
E1004 14:53:11.707129       1 plugin.go:283] unable to find service apic/ibm-apiconnect-service: Service "ibm-apiconnect-service" not found
2. The ibm-apiconnect pod enters a CrashLoopBackOff state, indicated by:
$ oc get pods -n <namespace where API Connect is deployed>
  NAME                                 READY   STATUS             RESTARTS   AGE
  ibm-apiconnect-<pod>                 0/1     CrashLoopBackOff   5491       21d
3. Logs for the ibm-apiconnect pod indicate issues related to cache and API support:
$ oc logs pod/ibm-apiconnect-54d8bd4b78-5fdt2_ibm-apiconnect -n apic 
{"level":"error","ts":"2024-10-04T14:58:16.461Z","logger":"setup","msg":"unable to get deprecated leader lock config map","error":"the cache is not started, can not read objects","stacktrace":"main.main\n\t/workspace/ibm-apiconnect/main.go:229\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:267"}
I1004 14:58:21.662726       1 request.go:690] Waited for 1.888395517s due to client-side throttling, not priority and fairness, request: GET:https://172.21.0.1:443/apis/monitoring.coreos.com/v1beta1?timeout=32s
{"level":"error","ts":"2024-10-04T14:58:24.369Z","logger":"setup","msg":"unable to get api support","error":"unable to get Group and Resources: unable to retrieve the complete list of server APIs: packages.operators.coreos.com/v1: the server is currently unable to handle the request","stacktrace":"main.main\n\t/workspace/ibm-apiconnect/main.go:238\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:267"}
4. Running oc api-resources results in additional errors:
$ oc api-resources

bindings
componentstatuses
...
ippools.whereabouts.cni.cncf.io
overlappingrangeipreservations.whereabouts.cni.cncf.io
unable to retrieve the complete list of server APIs: packages.operators.coreos.com/v1: the server is currently unable to handle the request

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSMNED","label":"IBM API Connect"},"ARM Category":[{"code":"a8mKe000000CaZWIA0","label":"API Connect-\u003EAPIC Platform - Install\/Upgrade\/Migrate"}],"ARM Case Number":"TS016494741","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.0.5;and future releases"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
31 October 2024

UID

ibm17174591