Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orphaned pod (...) found, but volume paths are still present on disk #485

Closed
sebastiansirch opened this issue Apr 17, 2019 · 3 comments
Closed
Labels

Comments

@sebastiansirch
Copy link

Our kubelet logs are full with thousands of lines like this:

E0416 19:44:35.803861    2391 kubelet_volumes.go:154] Orphaned pod "017aa18b-44cb-11e9-84a1-eeeeeeeeeeee" found, but volume paths are still present on disk : There were a total of 155 errors similar to th
is. Turn up verbosity to see them.

Not sure if it is actually a Longhorn issue, but as discussed with @yasker , we at least wanted to document it.

@KuroObi
Copy link

KuroObi commented Apr 17, 2019

We've encountered this problem too.
There is already a kubernetes Ticket open.

we delete the orphaned pods from time to time manual by running:

num=$(docker logs --tail 20 kubelet 2>&1 | grep "errors similar to this. Turn up verbosity to see them." | tail -1 | awk '{print $23}' | sed 's/"//g')

while [ $num ]

do

  rm -r /var/lib/kubelet/pods/$(docker logs --tail 20 kubelet 2>&1 | grep "errors similar to this. Turn up verbosity to see them." | tail -1 | awk '{print $7}' | sed 's/"//g')

  sleep 2s

  num=$(docker logs --tail 10 kubelet 2>&1 | grep "errors similar to this. Turn up verbosity to see them." | tail -1 | awk '{print $23}' | sed 's/"//g')

  echo "$num remaining"

done

@sfgroups-k8s
Copy link

my centos 7 box kubelet running as process. Used this script to remove the old volume


#!/bin/bash
num=$(grep "errors similar to this. Turn up verbosity to see them."  /var/log/messages |tail -1 | awk '{print $12}' |sed 's/"//g')
echo $num

while [ $num ]
do
   [ -d "/var/lib/kubelet/pods/${num}" ] && rm -rf /var/lib/kubelet/pods/${num}

  sleep 2s
  num=$(grep "errors similar to this. Turn up verbosity to see them."  /var/log/messages |tail -1 | awk '{print $12}' |sed 's/"//g')
  [ -d "/var/lib/kubelet/pods/${num}" ] || num=

  echo "$num remaining"

done

@stale
Copy link

stale bot commented Nov 22, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 22, 2019
@stale stale bot closed this as completed Nov 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants