From 7ff1cfd6c07d5c482fe52de33807e55358de4b4f Mon Sep 17 00:00:00 2001 From: Akshay Havile Date: Fri, 24 May 2024 13:21:53 +0530 Subject: [PATCH 1/4] Update AKO log_collector.py file path --- docs/troubleshooting/troubleshooting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/troubleshooting/troubleshooting.md b/docs/troubleshooting/troubleshooting.md index 1338b43be..97f91ccf4 100644 --- a/docs/troubleshooting/troubleshooting.md +++ b/docs/troubleshooting/troubleshooting.md @@ -99,7 +99,7 @@ For every log collection, also collect the following information: ### How do I gather the AKO logs? -Get the script from [here](https://github.com/avinetworks/devops/tree/master/openshift/ako/log_collector.py) +Get the script from [here](https://github.com/avinetworks/devops/tree/master/tools/ako/log_collector.py) The script is used to collect all relevant information for the AKO pod. From 27af446fac8349ff21dd9866a993071d02ecbcd9 Mon Sep 17 00:00:00 2001 From: Akshay Havile Date: Thu, 30 May 2024 00:23:22 +0530 Subject: [PATCH 2/4] Update troubleshooting.md with details about command to run --- docs/troubleshooting/troubleshooting.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/troubleshooting/troubleshooting.md b/docs/troubleshooting/troubleshooting.md index 97f91ccf4..ac3c842ad 100644 --- a/docs/troubleshooting/troubleshooting.md +++ b/docs/troubleshooting/troubleshooting.md @@ -101,6 +101,17 @@ For every log collection, also collect the following information: Get the script from [here](https://github.com/avinetworks/devops/tree/master/tools/ako/log_collector.py) +Please use following command on shell prompt to collect AKO logs and configmap. +``` +root@vm-with-k8-cluster-access:/var# python3 log_collector.py -ako AKONAMESPACE -s SINCE +``` +Here: +1. Parameter `-ako` takes AKONAMESPACE and it is compulsory. +2. Parameter `-s` takes a duration for which logs needs to be collected. It is an optional parameter. For pod not having persistent volume storage the logs since a given time duration can be fetched.
+ Mention the time as 2s(for 2 seconds) or 4m(for 4 mins) or 24h(for 24 hours)
+ Example: if 24h is mentioned, the logs from the last 24 hours are fetched.
+ Default is taken to be 24h \n +3. Script has to be run in machine which has Kubernetes cluster access. The script is used to collect all relevant information for the AKO pod. **About the script:** From b49049a4625271d6d7560e7118497cfa7efe8b2a Mon Sep 17 00:00:00 2001 From: Akshay Havile Date: Thu, 30 May 2024 00:26:47 +0530 Subject: [PATCH 3/4] Re-phrasing --- docs/troubleshooting/troubleshooting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/troubleshooting/troubleshooting.md b/docs/troubleshooting/troubleshooting.md index ac3c842ad..20af4e154 100644 --- a/docs/troubleshooting/troubleshooting.md +++ b/docs/troubleshooting/troubleshooting.md @@ -111,7 +111,7 @@ Here: Mention the time as 2s(for 2 seconds) or 4m(for 4 mins) or 24h(for 24 hours)
Example: if 24h is mentioned, the logs from the last 24 hours are fetched.
Default is taken to be 24h \n -3. Script has to be run in machine which has Kubernetes cluster access. +3. Script has to be run on a machine which has Kubernetes cluster access. The script is used to collect all relevant information for the AKO pod. **About the script:** From fedae91a799b09121acd7e8c7d2e2f5331491573 Mon Sep 17 00:00:00 2001 From: Akshay Havile Date: Thu, 30 May 2024 00:27:43 +0530 Subject: [PATCH 4/4] Corrections. --- docs/troubleshooting/troubleshooting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/troubleshooting/troubleshooting.md b/docs/troubleshooting/troubleshooting.md index 20af4e154..bbd50afa3 100644 --- a/docs/troubleshooting/troubleshooting.md +++ b/docs/troubleshooting/troubleshooting.md @@ -110,7 +110,7 @@ Here: 2. Parameter `-s` takes a duration for which logs needs to be collected. It is an optional parameter. For pod not having persistent volume storage the logs since a given time duration can be fetched.
Mention the time as 2s(for 2 seconds) or 4m(for 4 mins) or 24h(for 24 hours)
Example: if 24h is mentioned, the logs from the last 24 hours are fetched.
- Default is taken to be 24h \n + Default is taken to be 24h. 3. Script has to be run on a machine which has Kubernetes cluster access. The script is used to collect all relevant information for the AKO pod.