ibm-apiconnect / v2018-postmortem

Log collection tool for API Connect v2018.
Apache License 2.0
0 stars 6 forks source link

Please add command to collect oc routes data for APIC deployments #31

Closed subindani closed 3 years ago

subindani commented 3 years ago

Regarding : https://www.ibm.com/support/knowledgecenter/en/SSMNED_2018/com.ibm.apic.overview.doc/rapic_overview_release_notes_2018_4_1_0.html :

Ingress timeout settings might need adjustment to enable improved synchronization in Version 4.1.8

API Connect Version 4.1.8 contains a set of core updates designed to improve synchronization, and to strengthen stability and data integrity. Due to the changes, we recommend increasing the ingress time-out settings if you see 504 or 409 errors when trying to create or delete a provider organization or catalog. The increased stability also means that APIs and Products take longer to process, compared to versions prior to 2018.4.1.8.

To change ingress timeout settings, see the section Kubernetes/ingress-nginx ingress controller config.map settings in the topic Kubernetes ingress controller prerequisites.

From https://www.ibm.com/support/knowledgecenter/SSMNED_2018/com.ibm.apic.install.doc/tapic_install_K8s_ingress_ctl_reqs.html?view=kc :

In OpenShift, you must individually annotate all routes are for the Management subsystem (updating the corresponding configuration for an ingress controller affects all ingresses). Refer to the OpenShift docs on how to annotate the routes: https://docs.openshift.com/container-platform/4.2/networking/routes/route-configuration.html.

We used the following script to collect routes data:

oc get routes --all-namespaces &> routes_all.out
for __ns in $(oc get ns -o name --all-namespaces | cut -d'/' -f2); do
  echo "Log creation started in namespace $__ns ..."
  for __route in $(oc get routes -n $__ns -o name | cut -d'/' -f2); do
    echo "Log creation started for route $__route ...."
    oc get route/$__route -n $__ns -o yaml &> ${__ns}_${__route}_get.yaml
    oc describe route/$__route -n __ns &> ${__ns}_${__route}_describe.out
    echo "Log creation completed route for $__route ..."
  done
  echo "Log creation completed in namespace $__ns ..."
done

Please add to postmortem script (v2018 and v10) so we could collect the routes data from openshift project where APIC is deployed.

nitekon1 commented 3 years ago

Added in commit 9b9b8cb78a30e6ca672081a72ec5fefd7ba2db8f.