Using microk8s 1.18.6 when installing the Cassandra operator 1.3 as instructed in README_CASSANDRA.MD
The pod is not ready even after 20+ minutes
kubectl -n cass-operator apply -f ./cassandra/11-install-cass-operator-v1.3.yaml
$ kubectl get pod
NAME READY STATUS RESTARTS AGE
cass-operator-56fcb9ff47-4njb5 0/1 Running 0 24m
It looks like the cause of the error is "apparmor failed to apply profile: write /proc/self/attr/exec: operation not permitted". Can you please help to sort that out?
$ kubectl describe pod -l name=cass-operator
Name: cass-operator-56fcb9ff47-4njb5
Namespace: cass-operator
Priority: 0
Node: silverbullet/192.168.1.98
Start Time: Wed, 29 Jul 2020 19:16:01 -0400
Labels: name=cass-operator
pod-template-hash=56fcb9ff47
Annotations:
Status: Running
IP: 10.1.4.181
IPs:
IP: 10.1.4.181
Controlled By: ReplicaSet/cass-operator-56fcb9ff47
Containers:
cass-operator:
Container ID: containerd://c968cb4b1dd2507090f0cffd71dada5742fe9a3d2144679f6ddf9b16b8840428
Image: datastax/cass-operator:1.3.0
Image ID: docker.io/datastax/cass-operator@sha256:6eb92d0e819cd8243dd8b1892561e319f3aa7e62b435f531a2d765c172a1dbb3
Port:
Host Port:
State: Running
Started: Wed, 29 Jul 2020 19:16:10 -0400
Ready: False
Restart Count: 0
Liveness: exec [pgrep .*operator] delay=5s timeout=5s period=5s #success=1 #failure=3
Readiness: exec [stat /tmp/operator-sdk-ready] delay=5s timeout=5s period=5s #success=1 #failure=1
Environment:
WATCH_NAMESPACE: cass-operator (v1:metadata.namespace)
POD_NAME: cass-operator-56fcb9ff47-4njb5 (v1:metadata.name)
OPERATOR_NAME: cass-operator
SKIP_VALIDATING_WEBHOOK: FALSE
Mounts:
/tmp/ from tmpconfig-volume (rw)
/tmp/k8s-webhook-server/serving-certs from cass-operator-certs-volume (rw)
/var/run/secrets/kubernetes.io/serviceaccount from cass-operator-token-hk6zj (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
tmpconfig-volume:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium: Memory
SizeLimit:
cass-operator-certs-volume:
Type: Secret (a volume populated by a Secret)
SecretName: cass-operator-webhook-config
Optional: false
cass-operator-token-hk6zj:
Type: Secret (a volume populated by a Secret)
SecretName: cass-operator-token-hk6zj
Optional: false
QoS Class: BestEffort
Node-Selectors:
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 11m default-scheduler Successfully assigned cass-operator/cass-operator-56fcb9ff47-4njb5 to silverbullet
Normal Pulling 11m kubelet, silverbullet Pulling image "datastax/cass-operator:1.3.0"
Normal Pulled 11m kubelet, silverbullet Successfully pulled image "datastax/cass-operator:1.3.0"
Normal Created 11m kubelet, silverbullet Created container cass-operator
Normal Started 11m kubelet, silverbullet Started container cass-operator
Warning Unhealthy 11m kubelet, silverbullet Readiness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "de2cbca4fc07bb19b0042b91c8e2a4ada1f398688740792ef10c17e671f1e35f": OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "apparmor failed to apply profile: write /proc/self/attr/exec: operation not permitted": unknown
Warning Unhealthy 11m kubelet, silverbullet Liveness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "43cad3eaf92cb3d926f304c372c18c551244d12b4208564d2cad19543db70150": OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "apparmor failed to apply profile: write /proc/self/attr/exec: operation not permitted": unknown
Warning Unhealthy 11m kubelet, silverbullet Readiness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "eb8bb2825e48a98ba9987815ab83eabb137bbb23ff80346ea050cb80e60f9c7c": OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "apparmor failed to apply profile: write /proc/self/attr/exec: operation not permitted": unknown
Warning Unhealthy 11m kubelet, silverbullet Liveness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "d248b9c04bdbc8718ab1fb45bf00dceef61ee27f64a06b98dc1bd2144299d003": OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "apparmor failed to apply profile: write /proc/self/attr/exec: operation not permitted": unknown
Warning Unhealthy 11m kubelet, silverbullet Readiness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "adddeb6f7e909eb4d2d19bde8d68cbb1ce90339bd7ff73026e34a46c44cfb82b": OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "apparmor failed to apply profile: write /proc/self/attr/exec: operation not permitted": unknown
Warning Unhealthy 11m kubelet, silverbullet Liveness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "5bae60b7185ef9d19cad57484979a5963a01296bf00ccb57ee5f9c5183632ba6": OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "apparmor failed to apply profile: write /proc/self/attr/exec: operation not permitted": unknown
Warning Unhealthy 10m kubelet, silverbullet Readiness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "3a9ee77df2999af4db4d4d6b286ba946cdd0de96a4dfa3acec6af3aa9374eab6": OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "apparmor failed to apply profile: write /proc/self/attr/exec: operation not permitted": unknown
Warning Unhealthy 10m kubelet, silverbullet Liveness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "96471636575d0281febfee1c2b4691b577e4713d138e702caab205732e25a62d": OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "apparmor failed to apply profile: write /proc/self/attr/exec: operation not permitted": unknown
Warning Unhealthy 10m kubelet, silverbullet Readiness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "a6560a06f0fa5a50be1d957002022425c0eec2e530a27210cb9168f61c7be549": OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "apparmor failed to apply profile: write /proc/self/attr/exec: operation not permitted": unknown
Warning Unhealthy 87s (x226 over 10m) kubelet, silverbullet (combined from similar events): Readiness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "1626f0efe87a8268f8bd37f63e443a77e990732a3723033c2f31ddfe75c25a37": OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "apparmor failed to apply profile: write /proc/self/attr/exec: operation not permitted": unknown