You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
Multus: [hostpath-provisioner/hostpath-provisioner-operator-...]: error getting pod: pods "hostpath-provisioner-operator-..." is forbidden: User "system:serviceaccount:kube-system:multus" cannot get resource "pods" in API group "" in the namespace "hostpath-provisioner"
#5
Open
jbpratt opened this issue
Nov 10, 2021
· 2 comments
On reboot, my node was failing to bring up the hostpath-provisioner and kube-cni-linux-bridge pods due to a change in the Multus clusterrolebinding. I'm not sure why it is happening but others have ran into this before k8snetworkplumbingwg/multus-cni#667
20m Warning FailedCreatePodSandBox pod/hostpath-provisioner-operator-bd4966b44-d6cm4 Failed to create pod sandbox: rpc error: code = Unknown desc = failed to create pod network sandbox k8s_hostpath-provisioner-operator-bd4966b44-d6cm4_hostpath-provisioner_63b16bb7-626f-426b-8beb-d90f7c7b29d0_0(ef47ddf1e279a20bf3c914129f1b52cf5eddc1f88c5fb882570db79b33046cd2): Multus: [hostpath-provisioner/hostpath-provisioner-operator-bd4966b44-d6cm4]: error getting pod: pods "hostpath-provisioner-operator-bd4966b44-d6cm4" is forbidden: User "system:serviceaccount:kube-system:multus" cannot get resource "pods" in API group "" in the namespace "hostpath-provisioner"
Following along with the ticket, it does seem that the namespace for the multus SA has been changed to cluster-network-addons
editing the value from cluster-network-addons -> kube-system allows the pods to be created
~
❯ oc get events -n hostpath-provisioner --sort-by=.metadata.creationTimestamp
LAST SEEN TYPE REASON OBJECT MESSAGE
9m17s Normal SandboxChanged pod/hostpath-provisioner-j6qw6 Pod sandbox changed, it will be killed and re-created.
9m18s Normal SandboxChanged pod/hostpath-provisioner-operator-b8bf65759-rjmhf Pod sandbox changed, it will be killed and re-created.
27m Normal ScalingReplicaSet deployment/hostpath-provisioner-operator Scaled up replica set hostpath-provisioner-operator-bd4966b44 to 1
27m Normal SuccessfulCreate replicaset/hostpath-provisioner-operator-bd4966b44 Created pod: hostpath-provisioner-operator-bd4966b44-d6cm4
27m Normal Scheduled pod/hostpath-provisioner-operator-bd4966b44-d6cm4 Successfully assigned hostpath-provisioner/hostpath-provisioner-operator-bd4966b44-d6cm4 to node1
...
26m Warning FailedCreatePodSandBox pod/hostpath-provisioner-operator-bd4966b44-d6cm4 Failed to create pod sandbox: rpc error: code = Unknown desc = failed to create pod network sandbox k8s_hostpath-provisioner-operator-bd4966b44-d6cm4_hostpath-provisioner_63b16bb7-626f-426b-8beb-d90f7c7b29d0_0(0112e752706fd4205779caea7dac919f26926e70a9d77e8ed9d78192c163745c): Multus: [hostpath-provisioner/hostpath-provisioner-operator-bd4966b44-d6cm4]: error getting pod: pods "hostpath-provisioner-operator-bd4966b44-d6cm4" is forbidden: User "system:serviceaccount:kube-system:multus" cannot get resource "pods" in API group "" in the namespace "hostpath-provisioner"
...
7m5s Warning FailedCreatePodSandBox pod/hostpath-provisioner-operator-bd4966b44-d6cm4 (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to create pod network sandbox k8s_hostpath-provisioner-operator-bd4966b44-d6cm4_hostpath-provisioner_63b16bb7-626f-426b-8beb-d90f7c7b29d0_0(3d22dd7351133fe957b342b7a504bdac85c068169411c8ced07742c990b331a0): Multus: [hostpath-provisioner/hostpath-provisioner-operator-bd4966b44-d6cm4]: error getting pod: pods "hostpath-provisioner-operator-bd4966b44-d6cm4" is forbidden: User "system:serviceaccount:kube-system:multus" cannot get resource "pods" in API group "" in the namespace "hostpath-provisioner"
6m26s Normal AddedInterface pod/hostpath-provisioner-operator-b8bf65759-rjmhf Add eth0 [10.233.90.98/32] from cni0
6m23s Normal AddedInterface pod/hostpath-provisioner-j6qw6 Add eth0 [10.233.90.101/32] from cni0
6m22s Normal SuccessfulDelete replicaset/hostpath-provisioner-operator-b8bf65759 Deleted pod: hostpath-provisioner-operator-b8bf65759-rjmhf
6m22s Normal AddedInterface pod/hostpath-provisioner-operator-bd4966b44-d6cm4 Add eth0 [10.233.90.102/32] from cni0
6m22s Normal ScalingReplicaSet deployment/hostpath-provisioner-operator Scaled down replica set hostpath-provisioner-operator-b8bf65759 to 0
~
❯ oc get pods -n hostpath-provisioner
NAME READY STATUS RESTARTS AGE
hostpath-provisioner-j6qw6 1/1 Running 1 4d5h
hostpath-provisioner-operator-bd4966b44-d6cm4 1/1 Running 0 28m
Based on the response from the issue, this may be due to how we are installing things? Just wanted to report this with a patch in case others run into this. 🐱
The text was updated successfully, but these errors were encountered:
On reboot, my node was failing to bring up the
hostpath-provisioner
andkube-cni-linux-bridge
pods due to a change in the Multus clusterrolebinding. I'm not sure why it is happening but others have ran into this before k8snetworkplumbingwg/multus-cni#667with the event of
Following along with the ticket, it does seem that the
namespace
for the multus SA has been changed tocluster-network-addons
editing the value from
cluster-network-addons
->kube-system
allows the pods to be createdBased on the response from the issue, this may be due to how we are installing things? Just wanted to report this with a patch in case others run into this. 🐱
The text was updated successfully, but these errors were encountered: