Bootstrap FreeKB - OpenShift - Resolve "Throttling request took"
OpenShift - Resolve "Throttling request took"

Updated:   |  OpenShift articles

If you are not familiar with the oc command, refer to OpenShift - Getting Started with the oc command.

Let's say something like this is being returned when issuing an "oc" command such as oc get pods (or any other oc command).

I0714 01:32:35.145752   57272 request.go:621] Throttling request took 1.07743819s, request: GET:https://api.openshift.example.com:6443/apis/velero.io/v1?timeout=32s

 

This blog post and this blog post and this stackoverflow post mention that this may occur if the users hidden .kube folder is not owned by the user. For example, let's say that user john.doe is the user issuing the oc command. In this example, you'll want to determine if john.doe hidden .kube folder is owned by john.doe.

[john.doe@server1 ~]$ ls -lisa /home/john.doe
5202018 0 drwxr-xr-x.  5 john.doe john.doe  155 Jun 29 03:40 .
     64 4 drwxr-xr-x. 50 root     root     4096 Jul 14 03:15 ..
5202039 4 -rw-------.  1 john.doe john.doe 1491 Jun 29 04:00 .bash_history
5202021 4 -rw-r--r--.  1 john.doe john.doe   18 Jun 14 03:54 .bash_logout
5202025 4 -rw-r--r--.  1 john.doe john.doe  193 Jun 14 03:54 .bash_profile
5202026 4 -rw-r--r--.  1 john.doe john.doe  231 Jun 14 03:54 .bashrc
5339191 0 drwxr-xr-x.  3 john.doe john.doe   18 Jun 14 03:54 .cache
6294534 0 drwxr-xr-x.  3 john.doe john.doe   18 Jun 14 03:54 .config
5202027 4 -rw-r--r--.  1 john.doe john.doe  172 Jun 14 03:54 .kshrc
7341329 0 drwxr-xr-x.  3 john.doe john.doe   33 Jun 14 03:56 .kube
5202042 4 -rw-------.  1 john.doe john.doe  753 Jun 29 03:40 .viminfo

 

The find command can also be used to determine if all of the files in the users hidden .kube directory are owned by the user.

find /home/john.doe/.kube -user john.doe

 

Or, it's probably more practical to determine if there are any files in the users hidden .kube directory that are now owned by the user.

find /home/john.doe/.kube ! -user john.doe

 

And the chown command can be used to update all files in the users hidden .kube directory to be owned by the user.

chown --recursive /home/john.doe/.kube john.doe

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 5fc6e7 in the box below so that we can be sure you are a human.