IBM / ibm-spectrum-scale-csi

The IBM Spectrum Scale Container Storage Interface (CSI) project enables container orchestrators, such as Kubernetes and OpenShift, to manage the life-cycle of persistent storage.
Apache License 2.0
64 stars 50 forks source link

driver logging improvment #816

Open deeghuge opened 1 year ago

deeghuge commented 1 year ago

Describe the bug

When volume creation or other operations are tried in parallel, it is very difficult to track the flow of operation in the csi logs. Having context/transaction id passed in the flow will help track the flow of operations individually.

How to Reproduce?

Create multiple volume in parallel and check the driver logs

Expected behavior

I should be able to isolate logs of single operation

Data Collection and Debugging

Environmental output

Tool to collect the CSI snap:

./tools/spectrum-scale-driver-snap.sh -n < csi driver namespace>

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Add labels

Note : See labels for the labels

deeghuge commented 1 year ago

@hemalathagajendran Please consider these additional requirement. If you think these needs to be handled seperately that is also fine.

deeghuge commented 4 months ago

Most of the improvement in driver logging are complete. missing pieces are stats and verifying right logs are generated for given log levels