CSI Workload Configuration Troubleshooting
This guide provides detailed steps for diagnosing and resolving common issues with the Connectors CSI Driver when mounting configurations in workloads.
TOC
Common Issues OverviewChecking CSI Volume ConfigurationVerifying Volume MountExamining Pod EventsFinding the Generated Git ConfigurationExamining Git Configuration ContentAdvanced TroubleshootingCSI Driver LogsTesting with a Diagnostic PodAdditional ResourcesCommon Issues Overview
Checking CSI Volume Configuration
Verify the CSI volume configuration in your workload YAML:
- Set
driverexactly toconnectors-csi - Ensure connector exists in the same namespace
- Set
configuration.namestogitconfigfor Git operations - Make sure connector is in the same namespace as pod
How to verify:
Verifying Volume Mount
Check if the volume mount configuration is correct:
Important considerations:
- The mount path must match the home directory of the user running Git commands
- For Git configuration, the file is always created at
<mountPath>/.gitconfig
Finding the correct home directory:
Verifying mount success:
Examining Pod Events
Check Pod events for mount-related issues:
Common error messages and solutions:
Example error and resolution:
Resolution: Create the connector or correct the connector name in the volume attributes.
Finding the Generated Git Configuration
Locate the Git configuration file:
If no configuration file is found, check:
- Volume mount is successful
- CSI driver is healthy
- ServiceAccount has permissions
- Connector is Ready
Examining Git Configuration Content
Check the generated .gitconfig file content:
Expected configuration elements:
-
HTTP header with authentication token:
-
URL rewriting rule:
Advanced Troubleshooting
CSI Driver Logs
Check CSI driver logs for detailed error information:
Testing with a Diagnostic Pod
Create a diagnostic pod to test CSI functionality: