David Tippett
10/31/2023, 3:20 PMa6871107bc42e9265df04a4" spec: failed to apply OCI options: failed to mkdir "/containers": mkdir /containers: read-only file system
Warning Failed 90s kubelet Error: failed to generate container "a31459cc345ec00ee278673c2767f0e956c411482Pat
10/31/2023, 3:23 PMPat
10/31/2023, 3:25 PMDavid Tippett
10/31/2023, 3:26 PMDavid Tippett
10/31/2023, 3:27 PMubectl describe pod -n fluent fluent-bit-qs6qc
Name: fluent-bit-qs6qc
Namespace: fluent
Priority: 0
Service Account: fluent-bit
Node: ip-192-168-27-255.us-west-2.compute.internal/192.168.27.255
Start Time: Tue, 31 Oct 2023 11:05:58 -0400
Labels: <http://app.kubernetes.io/name=fluent-bit|app.kubernetes.io/name=fluent-bit>
controller-revision-hash=5d7b4d5f86
pod-template-generation=1
Annotations: <none>
Status: Pending
IP: 192.168.21.118
IPs:
IP: 192.168.21.118
Controlled By: DaemonSet/fluent-bit
Containers:
fluent-bit:
Container ID:
Image: kubesphere/fluent-bit:v2.1.9
Image ID:
Port: 2020/TCP
Host Port: 0/TCP
State: Waiting
Reason: CreateContainerError
Ready: False
Restart Count: 0
Limits:
cpu: 500m
memory: 200Mi
Requests:
cpu: 10m
memory: 25Mi
Environment:
NODE_NAME: (v1:spec.nodeName)
HOST_IP: (v1:status.hostIP)
Mounts:
/containers from varlibcontainers (ro)
/fluent-bit/config from config (ro)
/fluent-bit/tail from positions (rw)
/var/log/ from varlogs (ro)
/var/log/journal from systemd (ro)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-p2lmt (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
varlibcontainers:
Type: HostPath (bare host directory volume)
Path: /containers
HostPathType:
config:
Type: Secret (a volume populated by a Secret)
SecretName: fluent-bit-config
Optional: false
varlogs:
Type: HostPath (bare host directory volume)
Path: /var/log
HostPathType:
systemd:
Type: HostPath (bare host directory volume)
Path: /var/log/journal
HostPathType:
positions:
Type: HostPath (bare host directory volume)
Path: /var/lib/fluent-bit/
HostPathType:
kube-api-access-p2lmt:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional: <nil>
DownwardAPI: true
QoS Class: Burstable
Node-Selectors: <none>
Tolerations: op=Exists
<http://node.kubernetes.io/disk-pressure:NoSchedule|node.kubernetes.io/disk-pressure:NoSchedule> op=Exists
<http://node.kubernetes.io/memory-pressure:NoSchedule|node.kubernetes.io/memory-pressure:NoSchedule> op=Exists
<http://node.kubernetes.io/not-ready:NoExecute|node.kubernetes.io/not-ready:NoExecute> op=Exists
<http://node.kubernetes.io/pid-pressure:NoSchedule|node.kubernetes.io/pid-pressure:NoSchedule> op=Exists
<http://node.kubernetes.io/unreachable:NoExecute|node.kubernetes.io/unreachable:NoExecute> op=Exists
<http://node.kubernetes.io/unschedulable:NoSchedule|node.kubernetes.io/unschedulable:NoSchedule> op=Exists
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 2m51s default-scheduler Successfully assigned fluent/fluent-bit-qs6qc to ip-192-168-27-255.us-west-2.compute.internal
Warning Failed 2m51s kubelet Error: failed to generate container "496b1793018e493a469060bcf059e375cc7b07731254ca2984a4fa510029c8d2" spec: failed to apply OCI options: failed to mkdir "/containers": mkdir /containers: read-only file system
Warning Failed 2m50s kubelet Error: failed to generate container "986782b16258f1384bbef56e0aebb5c3bd771cc8a694bda0ebf05e2eb34706f9" spec: failed to apply OCI options: failed to mkdir "/containers": mkdir /containers: read-only file system
Warning Failed 2m40s kubelet Error: failed to generate container "29cb60523b3bb724bc05946b58edd004244d3c7eab3f95257ee65de68b7cee0e" spec: failed to apply OCI options: failed to mkdir "/containers": mkdir /containers: read-only file system
Warning Failed 2m27s kubelet Error: failed to generate container "f70f7bc6b7610928363a5cf46e105006933d6f4bc09f7592df9cacbbc50854ea" spec: failed to apply OCI options: failed to mkdir "/containers": mkdir /containers: read-only file system
Warning Failed 2m14s kubelet Error: failed to generate container "d7a7b25eeaf95d22d63e2aae904ca79c0a16d020585e5869d56fba413050ac0f" spec: failed to apply OCI options: failed to mkdir "/containers": mkdir /containers: read-only file system
Warning Failed 2m kubelet Error: failed to generate container "2196d56881564dea3841962c8b633ad8775566ea03da4a9b2058889faf097954" spec: failed to apply OCI options: failed to mkdir "/containers": mkdir /containers: read-only file system
Warning Failed 105s kubelet Error: failed to generate container "f377e77f8fece1e03c6d8af54420107b7651d2337a6871107bc42e9265df04a4" spec: failed to apply OCI options: failed to mkdir "/containers": mkdir /containers: read-only file system
Warning Failed 90s kubelet Error: failed to generate container "a31459cc345ec00ee278673c2767f0e956c41148297c784c332bb4af2d1232ba" spec: failed to apply OCI options: failed to mkdir "/containers": mkdir /containers: read-only file system
Warning Failed 77s kubelet Error: failed to generate container "87539220889ce3beaee5af0ed35caa8486c6fac691c311725ab6116a6015a318" spec: failed to apply OCI options: failed to mkdir "/containers": mkdir /containers: read-only file system
Warning Failed 35s (x3 over 62s) kubelet (combined from similar events): Error: failed to generate container "6cd8caf4859ef9433809ff1a7f894c8827797e009a5ed5d85614f3b99adc7366" spec: failed to apply OCI options: failed to mkdir "/containers": mkdir /containers: read-only file system
Normal Pulled 20s (x13 over 2m51s) kubelet Container image "kubesphere/fluent-bit:v2.1.9" already present on machinePat
10/31/2023, 3:27 PMDavid Tippett
10/31/2023, 3:27 PMMounts:
/containers from varlibcontainers (ro)
Volumes:
varlibcontainers:
Type: HostPath (bare host directory volume)
Path: /containers
HostPathType:Pat
10/31/2023, 3:28 PMconfig:
Type: Secret (a volume populated by a Secret)
SecretName: fluent-bit-config
Optional: false
That should be the actual generated FB config. I'd be curious to see if it is using a DB file with a tail input for example - that requires writing an sqlite file and it may try to do it in the same directoryDavid Tippett
10/31/2023, 3:30 PMapiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterInput
metadata:
name: docker
labels:
fluentbit.fluent.io/enabled: "true"
fluentbit.fluent.io/component: logging
spec:
systemd:
tag: service.*
path: /var/log/journal
db: /fluent-bit/tail/systemd.db
dbSync: Normal
systemdFilter:
- _SYSTEMD_UNIT=docker.service
- _SYSTEMD_UNIT=kubelet.servicePat
10/31/2023, 3:33 PM/containers for the DB file:
tail:
tag: kube.*
path: /var/log/containers/*.log
parser: docker
refreshIntervalSeconds: 10
memBufLimit: 100MB
skipLongLines: true
db: /fluent-bit/tail/pos.db
dbSync: Normal
Something else must be though. I'd be tempted to remove the opensearch output and use stdout to see if it goes away - suggesting it is then something inside opensearch.David Tippett
10/31/2023, 3:35 PMPat
10/31/2023, 3:36 PMDavid Tippett
10/31/2023, 3:43 PMPat
10/31/2023, 3:44 PMDavid Tippett
10/31/2023, 4:08 PMelon cheng
11/03/2023, 7:44 AM