This guide provides detailed steps for diagnosing and resolving common issues with the Connectors CSI Driver when mounting OCI registry configurations in workloads.
Issue | Potential Causes | Impact |
---|---|---|
Volume mount failures | Incorrect CSI configuration, driver unavailable | Workload can't start |
Docker config not found | Wrong mount path, missing volumes | Image pull/push operations fail |
Authentication failures | Token issues, configuration errors | Registry access denied |
Insecure registry issues | Misconfigured Docker daemon | TLS/certificate errors |
Verify the CSI volume configuration in your workload YAML:
Common configuration options:
Configuration Name | Description | Use Case |
---|---|---|
docker-config | Standard Docker configuration | General container operations |
dockerd | Docker daemon configuration | For Docker daemon in Docker pattern |
buildkitd | BuildKit daemon configuration | For BuildKit based operations |
Common configuration issues:
Issue | Symptom | Resolution |
---|---|---|
Incorrect driver name | MountVolume.SetUp failed error | Set driver exactly to connectors-csi |
Connector not found | could not get connector error | Ensure connector exists in the same namespace |
Wrong configuration name | No Docker config generated | Set correct configuration.names value |
Namespace mismatch | Volume attachment fails | Make sure connector is in the same namespace as pod |
How to verify:
Check if the volume mount configuration is correct:
Common mount paths for different configurations:
Configuration | Recommended Mount Path | Description |
---|---|---|
docker-config | /root/.docker or $HOME/.docker | Docker client configuration directory |
dockerd | /etc/docker | Docker daemon configuration directory |
buildkitd | /etc/buildkit | BuildKit daemon configuration directory |
Check Pod events for mount-related issues:
Common error messages and solutions:
Error Message | Cause | Solution |
---|---|---|
MountVolume.SetUp failed | CSI driver issues or configuration errors | Check driver health and volume configuration |
waiting for ephemeral inline CSI driver | CSI driver not ready or not found | Verify CSI driver pods are running |
connector not found | Connector doesn't exist or wrong namespace | Create connector or fix namespace |
failed to generate configuration | Template rendering errors | Check connector and ConnectorClass status |
Example error and resolution:
Resolution: Create the connector or correct the connector name in the volume attributes.
Locate the configuration files:
If configuration files are not found, check:
Check the generated config.json
file:
Expected configuration elements:
Check the generated daemon.json
file:
Expected configuration elements:
Check the generated buildkitd.toml
file:
Expected configuration elements:
Symptoms:
server certificate verification failed
errorsTroubleshooting:
Verify insecure registry settings are correctly configured:
Check if the container runtime is using the mounted configuration:
For containerd, verify proxy address is properly configured:
Check CSI driver logs for detailed error information:
Check the proxy service logs for authentication or access issues:
Create a diagnostic pod to test OCI functionality: