k8s_5.0: pod creation fails as token variable is set to empty in the kube-manager

Bug #1752582 reported by Venkatesh Velpula
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Invalid
High
Venkatesh Velpula

Bug Description

for now we are adding the token manually and proceeding but this need to be taken

orchestrator :K8s
image :latest

Setup

master :nodei23
nodes : nodei24, nodei25

[root@nodei23 contrail]# kubectl get nodes
NAME STATUS ROLES AGE VERSION
nodei23 NotReady master 16m v1.9.2
nodei24 Ready <none> 16m v1.9.2
nodei25 Ready <none> 16m v1.9.2

[root@nodei23 contrail]#
[root@nodei23 contrail]# kubectl get pods --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
default test-75c49697d7-krg8r 0/1 ContainerCreating 0 5m<<<<<<,
kube-system contrail-kube-manager-zwlrc 1/1 Running 0 16m
kube-system etcd-nodei23 1/1 Running 0 11m
kube-system kube-apiserver-nodei23 1/1 Running 0 11m
kube-system kube-controller-manager-nodei23 1/1 Running 0 11m
kube-system kube-dns-6f4fd4bdf-r8gcp 0/3 ContainerCreating 0 16m<<<<<<<
kube-system kube-proxy-vkmw4 1/1 Running 0 16m
kube-system kube-proxy-vqt7v 1/1 Running 0 16m
kube-system kube-proxy-xcr5t 1/1 Running 0 16m
kube-system kube-scheduler-nodei23 1/1 Running 0 11m

[root@nodei23 contrail]#
[root@nodei23 contrail]# kubectl logs kube-dns-6f4fd4bdf-r8gcp -n kube-system
Error from server (BadRequest): a container name must be specified for pod kube-dns-6f4fd4bdf-r8gcp, choose one of: [kubedns dnsmasq sidecar]

[root@nodei23 contrail]# docker version
Client:
 Version: 17.03.1-ce
 API version: 1.27
 Go version: go1.7.5
 Git commit: c6d412e
 Built: Fri Mar 24 00:36:45 2017
 OS/Arch: linux/amd64

Server:
 Version: 17.03.1-ce
 API version: 1.27 (minimum version 1.12)
 Go version: go1.7.5
 Git commit: c6d412e
 Built: Fri Mar 24 00:36:45 2017
 OS/Arch: linux/amd64
 Experimental: false
[root@nodei23 contrail]#
[root@nodei23 contrail]# kubectl version
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.3", GitCommit:"d2835416544f298c919e2ead3be3d0864b52323b", GitTreeState:"clean", BuildDate:"2018-02-07T12:22:21Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.2", GitCommit:"5fa2db2bd46ac79e5e00a4e6ed24191080aa463b", GitTreeState:"clean", BuildDate:"2018-01-18T09:42:01Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}

yaml_file
=========
provider_config:
  bms:
    ssh_pwd: c0ntrail123
    ssh_user: root
    ssh_public_key: /root/.ssh/id_rsa.pub
    ssh_private_key: /root/.ssh/id_rsa
    domainsuffix: local
instances:
  bms1:
    provider: bms
    roles:
       config_database:
       config:
       control:
       analytics_database:
       analytics:
       webui:
       k8s_master:
    ip: 10.204.217.135
  bms2:
    provider: bms
    roles:
       vrouter:
       k8s_node:
    ip: 10.204.217.136
  bms3:
    provider: bms
    roles:
       vrouter:
       k8s_node:
    ip: 10.204.217.137
contrail_configuration:
  CONTAINER_REGISTRY: docker.io/opencontrailnightly
  CONTRAIL_VERSION: latest

Changed in juniperopenstack:
importance: Critical → High
description: updated
Vineet Gupta (vineetrf)
Changed in juniperopenstack:
assignee: nobody → Sachchidanand Vaidya (vaidyasd)
Revision history for this message
Sachchidanand Vaidya (vaidyasd) wrote :

Venkatesh, Can you check if you still seeing this issue ?

Thanks
Sachin

Changed in juniperopenstack:
assignee: Sachchidanand Vaidya (vaidyasd) → Venkatesh Velpula (vvelpula)
Revision history for this message
Venkatesh Velpula (vvelpula) wrote :

Hi Sachin...this issue is not seen any more with latest image version of ansible-deployer and with latest image

Revision history for this message
Venkatesh Velpula (vvelpula) wrote :

dont see this any more ...hence closing

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.