CreateContainerConfigError: failed to prepare subPath for volumeMount "volume-name" of container "container-name"
Issue
-
Prometheus container inside the pod prometheus-k8s-xxx cannot mount the prometheus-db volume
//1.1.1.1:8443/metrics msg="append failed" err="WAL log samples: log series: write /prometheus/wal/031880: input/output error" level=warn ts=2020-01-30T09:05:12.3008117Z caller=scrape.go:713 component="scrape manager" scrape_pool=openshift-monitoring/node-exporter/0 target=https://1.1.1.1:9100/metrics msg="append failed" err="WAL log samples: log series: write /prometheus/wal/031880: input/output error" level=warn ts=2020-01-30T09:05:12.301054093Z caller=scrape.go:717
-
The logs from
sosreport/sos_commands/origin/journalctl_--no-pager_--unit_atomic-openshift-node
shows the error below:failed to prepare subPath for volumeMount "prometheus-k8s-db" of container "prometheus"
Environment
- Red Hat OpenShift Container Platform(OCP) 3.11
- Red Hat OpenShift Container Storage(OCS) 3.11
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.