build icon indicating copy to clipboard operation
build copied to clipboard

Error from server (BadRequest): container "nop" in pod

Open graphdb2 opened this issue 6 years ago • 1 comments

Hello,

I try to build this sample on minikube : https://github.com/knative/build/blob/master/test/git-source/1-branch.yaml

I am getting this Error from server (BadRequest): container "nop" in pod "test-git-branch-pod-92a9 49" is waiting to start: PodInitializing

any idea ?

Name:           test-git-branch-pod-92a949
Namespace:      default
Node:           minikube/192.168.99.157
Start Time:     Thu, 10 Jan 2019 14:53:14 +0000
Labels:         build.knative.dev/buildName=test-git-branch
Annotations:    sidecar.istio.io/inject=false
Status:         Failed
IP:             172.17.0.20
Controlled By:  Build/test-git-branch
Init Containers:
  build-step-credential-initializer:
    Container ID:   docker://e3fd2fc69c1b8c3b2d6c681756fc757a6087a327a97f1f7d110da3a933e65986
    Image:          gcr.io/knative-releases/github.com/knative/build/cmd/creds-init@sha256:7492c3a729101066d959281182a1322a4f5e273f2335f3ea47ee7f049cde424c
    Image ID:       docker-pullable://gcr.io/knative-releases/github.com/knative/build/cmd/creds-init@sha256:7492c3a729101066d959281182a1322a4f5e273f2335f3ea47ee7f049cde424c
    Port:           <none>
    Host Port:      <none>
    State:          Terminated
      Reason:       Completed
      Exit Code:    0
      Started:      Thu, 10 Jan 2019 14:53:29 +0000
      Finished:     Thu, 10 Jan 2019 14:53:29 +0000
    Ready:          True
    Restart Count:  0
    Environment:
      HOME:  /builder/home
    Mounts:
      /builder/home from home (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-mrn94 (ro)
      /workspace from workspace (rw)
  build-step-git-source-0:
    Container ID:  docker://94229c1bc9af66ebe1d477d72cf90696f77a008633125362ffe0c268cbcacefb
    Image:         gcr.io/knative-releases/github.com/knative/build/cmd/git-init@sha256:6186bee422a984b5bc4e5f794c24fc33b430af8e6a8541751a6fde7c4776c079
    Image ID:      docker-pullable://gcr.io/knative-releases/github.com/knative/build/cmd/git-init@sha256:6186bee422a984b5bc4e5f794c24fc33b430af8e6a8541751a6fde7c4776c079
    Port:          <none>
    Host Port:     <none>
    Args:
      -url
      https://github.com/bazelbuild/rules_docker
      -revision
      master
    State:          Terminated
      Reason:       Error
      Exit Code:    1
      Started:      Thu, 10 Jan 2019 14:53:39 +0000
      Finished:     Thu, 10 Jan 2019 14:53:39 +0000
    Ready:          False
    Restart Count:  0
    Environment:
      HOME:  /builder/home
    Mounts:
      /builder/home from home (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-mrn94 (ro)
      /workspace from workspace (rw)
  build-step-dump-workspace:
    Container ID:  
    Image:         ubuntu:latest
    Image ID:      
    Port:          <none>
    Host Port:     <none>
    Args:
      cat
      WORKSPACE
    State:          Waiting
      Reason:       PodInitializing
    Ready:          False
    Restart Count:  0
    Environment:
      HOME:  /builder/home
    Mounts:
      /builder/home from home (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-mrn94 (ro)
      /workspace from workspace (rw)
Containers:
  nop:
    Container ID:   
    Image:          gcr.io/knative-releases/github.com/knative/build/cmd/nop@sha256:1acff01d02c30e9a5b2911a06d65b451d62d6ea70091e87032d9e53f356975f7
    Image ID:       
    Port:           <none>
    Host Port:      <none>
    State:          Waiting
      Reason:       PodInitializing
    Ready:          False
    Restart Count:  0
    Environment:    <none>
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-mrn94 (ro)
Conditions:
  Type           Status
  Initialized    False 
  Ready          False 
  PodScheduled   True 
Volumes:
  workspace:
    Type:    EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:  
  home:
    Type:    EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:  
  default-token-mrn94:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  default-token-mrn94
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  <none>
Tolerations:     <none>
Events:
  Type    Reason                 Age   From               Message
  ----    ------                 ----  ----               -------
  Normal  Scheduled              56m   default-scheduler  Successfully assigned test-git-branch-pod-92a949 to minikube
  Normal  SuccessfulMountVolume  56m   kubelet, minikube  MountVolume.SetUp succeeded for volume "home"
  Normal  SuccessfulMountVolume  56m   kubelet, minikube  MountVolume.SetUp succeeded for volume "workspace"
  Normal  SuccessfulMountVolume  56m   kubelet, minikube  MountVolume.SetUp succeeded for volume "default-token-mrn94"
  Normal  Pulling                56m   kubelet, minikube  pulling image "gcr.io/knative-releases/github.com/knative/build/cmd/creds-init@sha256:7492c3a729101066d959281182a1322a4f5e273f2335f3ea47ee7f049cde424c"
  Normal  Pulled                 55m   kubelet, minikube  Successfully pulled image "gcr.io/knative-releases/github.com/knative/build/cmd/creds-init@sha256:7492c3a729101066d959281182a1322a4f5e273f2335f3ea47ee7f049cde424c"
  Normal  Created                55m   kubelet, minikube  Created container
  Normal  Started                55m   kubelet, minikube  Started container
  Normal  Pulling                55m   kubelet, minikube  pulling image "gcr.io/knative-releases/github.com/knative/build/cmd/git-init@sha256:6186bee422a984b5bc4e5f794c24fc33b430af8e6a8541751a6fde7c4776c079"
  Normal  Pulled                 55m   kubelet, minikube  Successfully pulled image "gcr.io/knative-releases/github.com/knative/build/cmd/git-init@sha256:6186bee422a984b5bc4e5f794c24fc33b430af8e6a8541751a6fde7c4776c079"
  Normal  Created                55m   kubelet, minikube  Created container
  Normal  Started                55m   kubelet, minikube  Started container

graphdb2 avatar Jan 10 '19 15:01 graphdb2

@graphdb2 : Does your minukube have access gcr.io? I am able to pull nop image on my machine.

shashwathi avatar Jan 17 '19 21:01 shashwathi