[k8s-R5.0-Single-Yaml-Prov]: k8s provisioning using single yaml failed
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R5.0 |
Fix Committed
|
Critical
|
Sachchidanand Vaidya | |||
Trunk |
In Progress
|
Critical
|
Sachchidanand Vaidya |
Bug Description
BUG Tempelate:
Configuration:
K8s 1.9.2
Docker version 17.03.1-ce
Centos -7.4
Setup:
3 node setup.
1 Kube master. 1 Controller.
2 Agent+ K8s slaves
Followed steps suggested by Sachin to provision k8s contrail cluster using single yaml provisioning.
Agent containers keep on restarting and do not get spawned.
State of agent containers was:
kube-system contrail-
kube-system contrail-
There are multiple problem leading to this state:
1. By default in contrail.yaml, the PHYSICAL_INTERFACE: is always set to:
PHYSICAL_INTERFACE: eno1
At that time the agent will give following errors:
2018-03-01 Thu 16:49:30:061.102 UTC nodec58 [Thread 140193993205952, Pid 1]: Error reading interface <eno1>. Error number 19 : No such device
2018-03-01 Thu 16:54:33:048.405 UTC nodec58 [Thread 140017763444928, Pid 1]: Error reading interface <eno1>. Error number 19 : No such device
2. To correct this, this line can be deleted manually from contrail.yaml and the file can be loaded again.
This resulted in losing the connectivity to agents as they lose default routes.
Workaround to this is adding the default routes manually.
3. After above problems are corrected, it lands up in an issue to connect to the API server.
ERROR Tue Feb 27 06:53:43 UTC 2018: Config API servers 10.204.217.108 are not responding on port 8082. Exiting...
WARNING Tue Feb 27 06:53:43 UTC 2018: Some of Config API servers 10.204.217.108 are not responding on port 8082.
Provisioning: provision_
Traceback (most recent call last):
File “/opt/contrail/
main()
File “/opt/contrail/
VrouterProv
File “/opt/contrail/
api_
File “/opt/contrail/
auth_
File “/usr/lib/
retry_
File “/usr/lib/
raise ConnectionError
requests.
Provisioning: provision_
Traceback (most recent call last):
File “/opt/contrail/
main()
File “/opt/contrail/
VrouterProv
File “/opt/contrail/
api_
File “/opt/contrail/
auth_
File “/usr/lib/
retry_
File “/usr/lib/
raise ConnectionError
requests.
tags: | added: sanityblocker |
tags: |
added: sanity removed: sanityblocker |
Review in progress for https:/ /review. opencontrail. org/40827
Submitter: Sachchidanand Vaidya (<email address hidden>)