Skip to content

Commit 35d498c

Browse files
committed
7298-IstioAdapterTroubleshooting: Added a troubleshooting section for the 3scale Istio Adapter.
1 parent 1e62b7c commit 35d498c

File tree

4 files changed

+59
-0
lines changed

4 files changed

+59
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * service_mesh/v1x/threescale_adapter/threescale-adapter.adoc
4+
// * service_mesh/v2x/threescale_adapter/threescale-adapter.adoc
5+
6+
[id="ossm-threescale-istio-adapter-troubleshooting-checklist_{context}"]
7+
= 3scale Istio adapter troubleshooting checklist
8+
9+
As the administrator installing the 3scale Istio adapter, there are a number of scenarios that might be causing your integration to not function properly. Use the following list to troubleshoot your installation:
10+
11+
* Incorrect YAML indentation.
12+
* Missing YAML sections.
13+
* Forgot to apply the changes in the YAML to the cluster.
14+
* Forgot to label the service workloads with the `service-mesh.3scale.net/credentials` key.
15+
* Forgot to label the service workloads with `service-mesh.3scale.net/service-id` when using handlers that do not contain a `service_id` so they are reusable per account.
16+
* The _Rule_ custom resource points to the wrong handler or instance custom resources, or the references lack the corresponding namespace suffix.
17+
* The _Rule_ custom resource `match` section cannot possibly match the service you are configuring, or it points to a destination workload that is not currently running or does not exist.
18+
* Wrong access token or URL for the 3scale Admin Portal in the handler.
19+
* The _Instance_ custom resource's `params/subject/properties` section fails to list the right parameters for `app_id`, `app_key`, or `client_id`, either because they specify the wrong location such as the query parameters, headers, and authorization claims, or the parameter names do not match the requests used for testing.
20+
* Failing to use the configuration generator without realizing that it actually lives in the adapter container image and needs `oc exec` to invoke it.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * service_mesh/v1x/threescale_adapter/threescale-adapter.adoc
4+
// * service_mesh/v2x/threescale_adapter/threescale-adapter.adoc
5+
6+
[id="ossm-threescale-istio-adapter-verification_{context}"]
7+
= 3scale Istio adapter verification
8+
9+
You might want to check whether the 3scale Istio adapter is working as expected. If your adapter is not working, use the following steps to help troubleshoot the problem.
10+
11+
.Procedure
12+
13+
. Ensure the _3scale-adapter_ pod is running in the control plane namespace:
14+
+
15+
[source,terminal]
16+
----
17+
$ oc get pods -n <istio-system>
18+
----
19+
. Check that the _3scale-adapter_ pod has printed out information about itself booting up, such as its version:
20+
+
21+
[source,terminal]
22+
----
23+
$ oc logs <istio-system>
24+
----
25+
. When performing requests to the services protected by the 3scale adapter integration, always try requests that lack the right credentials and ensure they fail. Check the 3scale adapter logs to gather additional information.

service_mesh/v1x/threescale-adapter.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,10 @@ include::modules/ossm-threescale-caching.adoc[leveloffset=+1]
2626
include::modules/ossm-threescale-authentication.adoc[leveloffset=+1]
2727

2828
include::modules/ossm-threescale-metrics-1x.adoc[leveloffset=+1]
29+
30+
include::modules/ossm-threescale-istio-adapter-verification.adoc[leveloffset=+1]
31+
32+
.Additional resources
33+
* link:https://docs.openshift.com/container-platform/4.7/support/troubleshooting/investigating-pod-issues.html#inspecting-pod-and-container-logs_investigating-pod-issues[Inspecting pod and container logs].
34+
35+
include::modules/ossm-threescale-istio-adapter-troubleshooting-checklist.adoc[leveloffset=+1]

service_mesh/v2x/threescale-adapter.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,10 @@ include::modules/ossm-threescale-metrics.adoc[leveloffset=+1]
3434
include::modules/threescale-backend-cache.adoc[leveloffset=+1]
3535

3636
include::modules/threescale-istio-adapter-apicast.adoc[leveloffset=+1]
37+
38+
include::modules/ossm-threescale-istio-adapter-verification.adoc[leveloffset=+1]
39+
40+
.Additional resources
41+
* link:https://docs.openshift.com/container-platform/4.7/support/troubleshooting/investigating-pod-issues.html#inspecting-pod-and-container-logs_investigating-pod-issues[Inspecting pod and container logs].
42+
43+
include::modules/ossm-threescale-istio-adapter-troubleshooting-checklist.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)