origin icon indicating copy to clipboard operation
origin copied to clipboard

Container creation fails because of "Failed create pod sandbox"

Open Ocimum-basilicum opened this issue 9 years ago • 35 comments

Pods are not getting created anymore

Version

oc v3.6.173.0.7 kubernetes v1.6.1+5115d708d7 features: Basic-Auth

Server https://api.starter-ca-central-1.openshift.com:443 openshift v3.7.0-0.143.7 kubernetes v1.7.0+80709908fd

Steps To Reproduce
  1. create a application (e.g. resid (persistent) from catalog)
  2. check pod/container creation
  3. wait for timeouts
Current Result

Warn messages on pod: `1:33:46 PM | Normal | Sandbox changed | Pod sandbox changed, it will be killed and re-created.

2 times in the last 5 minutes
1:33:42 PM Warning Failed create pod sand box Failed create pod sandbox.
2 times in the last 5 minutes`
--> pod is not created

the only real error I could grab was : Failed kill pod | error killing pod: failed to "KillPodSandbox" for "c4c2ec61-ba29-11e7-8b2c-02d8407159d1" with KillPodSandboxError: "rpc error: code = 2 desc = NetworkPlugin cni failed to teardown pod \"redis-1-deploy_instantsoundbot\" network: CNI request failed with status 400: 'Failed to execute iptables-restore: exit status 4 (Another app is currently holding the xtables lock. Perhaps you want to use the -w option?\n)\n'"

Expected Result

pod should start up as the used to do...

Additional Information

Couldn't get oc adm diagnostics working atm I guess it could have to do with the introduction of https://github.com/openshift/origin/pull/15880

Ocimum-basilicum avatar Oct 26 '17 12:10 Ocimum-basilicum

I'm facing the same in the starter-us-east-1.openshift.com environment. It's been unstable for couple of days already...

tumido avatar Oct 26 '17 13:10 tumido

/cc @jupierce

pweil- avatar Oct 26 '17 19:10 pweil-

This is a known issue that has a fix and it being rolled out to the starter clusters presently.

sjenning avatar Oct 26 '17 20:10 sjenning

I think 'm facing the same issue at starter-ca-central-1.openshift.com:

10:04:10 AM Normal Deadline exceeded Pod was active on the node longer than the specified deadline
10:00:03 AM Normal Sandbox changed Pod sandbox changed, it will be killed and re-created.14 times in the last 58 minutes
-- -- -- --
9:59:40 AM Warning Failed create pod sand box Failed create pod sandbox.14 times in the last 58 minutes

When will the fix finish rolling out?

skjolber avatar Oct 29 '17 09:10 skjolber

Facing same issue not possible to rollout anything on starter-ca-central-1.openshift.com. Hope will be fixed soon.

14yannick avatar Oct 29 '17 19:10 14yannick

i got same issue , i tried to create application using tomcat 8 , and try to build source code that exist in this path https://github.com/osamahassan245/samplepp

i got build error , when tried to check the log , got this log

container "sti-build" in pod is not available

osamahassan245 avatar Oct 30 '17 17:10 osamahassan245

Same problem on starter-ca-central-1.openshift.com

error streaming logs from build pod: sii-test/app-5-build container: , container "sti-build" in pod "app-5-build" is not available

Artod avatar Oct 30 '17 18:10 Artod

issue solved , i tried to use " Red Hat JBoss Web Server 3.1 Tomcat 8 1.0 " , it's working fine now

osamahassan245 avatar Oct 31 '17 18:10 osamahassan245

The issue is still actual on starter-us-east-1.openshift.com

edevyatkin avatar Nov 01 '17 14:11 edevyatkin

Still problem on ca-central

izderadicka avatar Nov 05 '17 10:11 izderadicka

Glad I'm not the only one seeing this issue. It's been occurring for me on console.starter-us-west-1.openshift.com since last weekend (11/4).

brianHollingsworth avatar Nov 09 '17 21:11 brianHollingsworth

still seeing this on starter-ca-central-1.openshift.com

sothawo avatar Nov 12 '17 20:11 sothawo

I have same issue . error streaming logs from build pod: mavajsunco-website/mavajsunco-msc-6-build container: , container "sti-build" in pod "mavajsunco-msc-6-build" is not available

mavajsunco avatar Nov 19 '17 13:11 mavajsunco

Same issue deploying rhscl/mysql-57-rhel7 on starter-us-east-1.

axl8713 avatar Nov 21 '17 09:11 axl8713

@dcbw this is the all too familiar iptables-restore issue. You are closer to this that I am and hopefully can provide better feedback about the progress.

sjenning avatar Nov 29 '17 16:11 sjenning

👍

warmchang avatar Jan 11 '18 11:01 warmchang

Still having this problem on starter-us-west-2.

I've got 7 failed deployments in a row for this error message.

nevadascout avatar Jan 17 '18 14:01 nevadascout

^same

skoorupa avatar Feb 04 '18 19:02 skoorupa

@dcbw @sjenning any input as to where the issue might be?

DanyC97 avatar Feb 21 '18 18:02 DanyC97

Seeing this on pro-us-east-1

jamestenglish avatar Feb 22 '18 03:02 jamestenglish