Skip to content

Instantly share code, notes, and snippets.

@satyamz
Created October 10, 2017 15:04
Show Gist options
  • Save satyamz/2942b20df80c0cce5fa020e1a6444fb7 to your computer and use it in GitHub Desktop.
Save satyamz/2942b20df80c0cce5fa020e1a6444fb7 to your computer and use it in GitHub Desktop.
Log & Description of PV in `ContainerCreating` status
ubuntu@kubemaster-01:~$ kubectl get pods 
NAME                                                             READY     STATUS              RESTARTS   AGE
maya-apiserver-3416621614-qm09x                                  1/1       Running             0          1h
node-exporter-934fl                                              1/1       Running             0          8h
node-exporter-k1jth                                              1/1       Running             1          8h
node-exporter-sr3bh                                              1/1       Running             1          8h
openebs-provisioner-4230626287-gt29w                             1/1       Running             3          1h
percona                                                          0/1       ContainerCreating   0          1h
prometheus-deployment-2597070772-7sh3r                           1/1       Running             1          8h
pvc-36ada529-adcb-11e7-95b9-021c6f7dbe9d-ctrl-2617481313-c6m23   1/1       Running             0          4m
pvc-36ada529-adcb-11e7-95b9-021c6f7dbe9d-rep-2899545413-h0jpd    0/1       ContainerCreating   0          4m
pvc-36ada529-adcb-11e7-95b9-021c6f7dbe9d-rep-2899545413-nbfd3    1/1       Running             0          4m
pvc-49631c2e-adc1-11e7-95b9-021c6f7dbe9d-ctrl-1102258111-6j0ln   1/1       Running             0          1h
pvc-49631c2e-adc1-11e7-95b9-021c6f7dbe9d-rep-2468377660-4fp6m    0/1       ContainerCreating   0          1h
pvc-49631c2e-adc1-11e7-95b9-021c6f7dbe9d-rep-2468377660-k7km5    1/1       Running             0          1h
pvc-70644e7c-adcb-11e7-95b9-021c6f7dbe9d-ctrl-2912351896-chbnx   1/1       Running             0          2m
pvc-70644e7c-adcb-11e7-95b9-021c6f7dbe9d-rep-272042747-885dj     1/1       Running             0          2m
pvc-70644e7c-adcb-11e7-95b9-021c6f7dbe9d-rep-272042747-jjh6q     0/1       ContainerCreating   0          2m
ubuntu@kubemaster-01:~$ kubectl describe pvc-36ada529-adcb-11e7-95b9-021c6f7dbe9d-rep-2899545413-h0jpd 
the server doesn't have a resource type "pvc-36ada529-adcb-11e7-95b9-021c6f7dbe9d-rep-2899545413-h0jpd"
ubuntu@kubemaster-01:~$ kubectl describe pods  pvc-36ada529-adcb-11e7-95b9-021c6f7dbe9d-rep-2899545413-h0jpd 
Name:		pvc-36ada529-adcb-11e7-95b9-021c6f7dbe9d-rep-2899545413-h0jpd
Namespace:	default
Node:		kubeminion-01/172.28.128.4
Start Time:	Tue, 10 Oct 2017 14:58:52 +0000
Labels:		openebs/replica=jiva-replica
		pod-template-hash=2899545413
		vsm=pvc-36ada529-adcb-11e7-95b9-021c6f7dbe9d
Annotations:	kubernetes.io/created-by={"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"ReplicaSet","namespace":"default","name":"pvc-36ada529-adcb-11e7-95b9-021c6f7dbe9d-rep-2899545413","uid":"...
Status:		Pending
IP:		
Created By:	ReplicaSet/pvc-36ada529-adcb-11e7-95b9-021c6f7dbe9d-rep-2899545413
Controlled By:	ReplicaSet/pvc-36ada529-adcb-11e7-95b9-021c6f7dbe9d-rep-2899545413
Containers:
  pvc-36ada529-adcb-11e7-95b9-021c6f7dbe9d-rep-con:
    Container ID:	
    Image:		openebs/jiva:0.4.0
    Image ID:		
    Ports:		9502/TCP, 9503/TCP, 9504/TCP
    Command:
      launch
    Args:
      replica
      --frontendIP
      10.99.123.105
      --size
      5G
      /openebs
    State:		Waiting
      Reason:		ContainerCreating
    Ready:		False
    Restart Count:	0
    Environment:	<none>
    Mounts:
      /openebs from openebs (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-dt11c (ro)
Conditions:
  Type		Status
  Initialized 	True 
  Ready 	False 
  PodScheduled 	True 
Volumes:
  openebs:
    Type:	HostPath (bare host directory volume)
    Path:	/var/openebs/pvc-36ada529-adcb-11e7-95b9-021c6f7dbe9d/openebs
  default-token-dt11c:
    Type:	Secret (a volume populated by a Secret)
    SecretName:	default-token-dt11c
    Optional:	false
QoS Class:	BestEffort
Node-Selectors:	<none>
Tolerations:	node.alpha.kubernetes.io/notReady:NoExecute
		node.alpha.kubernetes.io/unreachable:NoExecute
Events:
  FirstSeen	LastSeen	Count	From			SubObjectPath	Type		Reason			Message
  ---------	--------	-----	----			-------------	--------	------			-------
  5m		5m		1	default-scheduler			Normal		Scheduled		Successfully assigned pvc-36ada529-adcb-11e7-95b9-021c6f7dbe9d-rep-2899545413-h0jpd to kubeminion-01
  2m		2m		1	kubelet, kubeminion-01			Normal		SuccessfulMountVolume	MountVolume.SetUp succeeded for volume "openebs" 
  2m		2m		1	kubelet, kubeminion-01			Normal		SuccessfulMountVolume	MountVolume.SetUp succeeded for volume "default-token-dt11c" 
  22s		22s		1	kubelet, kubeminion-01			Warning		FailedSync		Error syncing pod
  13s		13s		1	kubelet, kubeminion-01			Normal		SandboxChanged		Pod sandbox changed, it will be killed and re-created.
ubuntu@kubemaster-01:~$ kubectl logs pvc-36ada529-adcb-11e7-95b9-021c6f7dbe9d-rep-2899545413-h0jpd 
Error from server (BadRequest): container "pvc-36ada529-adcb-11e7-95b9-021c6f7dbe9d-rep-con" in pod "pvc-36ada529-adcb-11e7-95b9-021c6f7dbe9d-rep-2899545413-h0jpd" is waiting to start: ContainerCreating

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment