Skip to content

Commit

Permalink
Collect /var/run/aws-node/ipam.json
Browse files Browse the repository at this point in the history
L-IPAMD now checkpoints IPAM state to a file.  Collect
/var/run/aws-node/ipam.json file (if present) for debugging.

See also aws/amazon-vpc-cni-k8s#972
  • Loading branch information
anguslees authored and mogren committed Jun 8, 2020
1 parent df3b246 commit 32a58b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions log-collector-script/linux/eks-log-collector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ get_k8s_info() {
KUBECONFIG="/var/lib/kubelet/kubeconfig"
command -v kubectl > /dev/null && kubectl get --kubeconfig=${KUBECONFIG} svc > "${COLLECT_DIR}"/kubelet/svc.log
command -v kubectl > /dev/null && kubectl --kubeconfig=${KUBECONFIG} config view --output yaml > "${COLLECT_DIR}"/kubelet/kubeconfig.yaml

else
echo "======== Unable to find KUBECONFIG, IGNORING POD DATA =========" >> "${COLLECT_DIR}"/kubelet/svc.log
fi
Expand Down Expand Up @@ -406,7 +406,7 @@ get_k8s_info() {

get_ipamd_info() {
if [[ "${ignore_introspection}" == "false" ]]; then
try "collect L-IPAMD introspectioon information"
try "collect L-IPAMD introspection information"
for entry in ${IPAMD_DATA[*]}; do
curl --max-time 3 --silent http://localhost:61679/v1/"${entry}" >> "${COLLECT_DIR}"/ipamd/"${entry}".json
done
Expand All @@ -421,6 +421,9 @@ get_ipamd_info() {
echo "Ignoring Prometheus Metrics collection as mentioned"| tee -a "${COLLECT_DIR}"/ipamd/ipam_metrics_ignore.txt
fi

try "collect L-IPAMD checkpoint"
cp /var/run/aws-node/ipam.json "${COLLECT_DIR}"/ipamd/ipam.json

ok
}

Expand Down

0 comments on commit 32a58b6

Please sign in to comment.