k8s:Multi interface pod creation fails unless kubemanager is restarted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
Invalid
|
Critical
|
Venkatraman Venkatapathy |
Bug Description
pod creation fails while associating multiple interface and also repeated Error messages are popped up in kube-manager logs .
work around is to restart the kube manager
deployer :contrail-command
ansible :2.5.2
docker :18.03.1-ce
HostOs :CentOS
build :Queens-Master-422
Topology
=========
[root@nodec21 ~]# kubectl get nodes
NAME STATUS ROLES AGE VERSION
nodec21 NotReady master 60m v1.12.1
nodei18 Ready <none> 59m v1.12.1
[root@nodec21 ~]#
[root@nodec21 ~]# kubectl describe multinetworkpod
error: the server doesn't have a resource type "multinetworkpo
[root@nodec21 ~]# kubectl describe pods multinetworkpod
Name: multinetworkpod
Namespace: default
Priority: 0
PriorityClassName: <none>
Node: nodei18/
Start Time: Mon, 10 Dec 2018 00:07:32 +0530
Labels: <none>
Annotations: k8s.v1.
Status: Pending
IP:
Containers:
busybox10:
Container ID:
Image: busybox
Image ID:
Port: <none>
Host Port: <none>
Command:
sleep
3600
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Environment: <none>
Mounts:
/
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
default-
Type: Secret (a volume populated by a Secret)
SecretName: default-token-dn992
Optional: false
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: node.kubernetes
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 10m default-scheduler Successfully assigned default/
Warning FailedCreatePod
kube-manager logs
=================
12/10/2018 12:16:06 AM [contrail-
12/10/2018 12:16:06 AM [contrail-
yaml file used to create the pod and network attachment definitions
[root@nodec21 ~]# cat pod.yaml
apiVersion: k8s.cni.cncf.io/v1
kind: NetworkAttachme
metadata:
name: net100
annotations:
opencontrai
opencontrai
opencontrai
spec:
config: '{
cniVersion: "0.3.0",
type: "contrail-k8s-cni"
}'
---
apiVersion: v1
kind: Pod
metadata:
name: multinetworkpod
annotations:
k8s.
{ "name": "net100" }
]'
spec:
containers:
- image: busybox
command:
- sleep
- "3600"
imagePullPo
name: busybox10
stdin: true
tty: true
restartPolicy: Always
Changed in juniperopenstack: | |
milestone: | none → r5.1.1 |
no longer affects: | juniperopenstack/r5.0 |
no longer affects: | juniperopenstack/trunk |
Changed in juniperopenstack: | |
assignee: | Sachchidanand Vaidya (vaidyasd) → Venkatraman Venkatapathy (vvenkatapath) |
tags: | added: blocker |
Does this happen only with contrail command or otherwise too? I tried locally and I don't see this happening.