[ Build : 4.1.1.0-104 ][contrail-snmp-collector]: Exception NotFoundException connecting to Config DB
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R4.1 |
Fix Committed
|
High
|
Zhiqiang Cui | |||
Trunk |
Fix Committed
|
High
|
Zhiqiang Cui |
Bug Description
The issue was seen in the sanity :
[Build "Ubuntu 16.04.2 LTS" 4.1.1.0-104~ocata] SMLite-
Topology :
DISTRO : "Ubuntu 16.04.2 LTS"
SKU : ocata
Config Nodes : [u'nodem16', u'nodem17', u'nodem18']
Control Nodes : [u'nodem16', u'nodem17', u'nodem18']
Compute Nodes : [u'nodem19', u'nodem20', u'nodem5']
Openstack Node : [u'nodem16', u'nodem17', u'nodem18']
WebUI Node : [u'nodem16', u'nodem17', u'nodem18']
Analytics Node! s : [u'nodem16', u'nodem17', u'nodem18']
Database Nodes : [u'nodem16', u'nodem17', u'nodem18']
Physical Devices : [u'blr-mx2', u"'blr-mx2'"]
LB Nodes : [u'nodea10']
contrail-
contrail-topology failed to come up on the other analytics node due to the same issue.
root@nodem18(
== Contrail Analytics ==
contrail-collector: active
contrail-
contrail-
contrail-alarm-gen: active
contrail-
contrail-topology: inactive
contrail-
root@nodem17:~# docker exec -it analytics contrail-status
== Contrail Analytics ==
contrail-collector: active
contrail-
contrail-
contrail-alarm-gen: active
contrail-
contrail-topology: active
contrail-
root@nodem17:~#
Contrail-
03/12/2018 01:16:41 PM [contrail-
03/12/2018 01:16:41 PM [contrail-
(None,): Traceback (most recent call last):
File "/usr/lib/
credential=
File "/usr/lib/
obj_
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
**cf_kwargs)
File "/usr/lib/
self.
File "/usr/lib/
raise nfe
NotFoundException: NotFoundExcepti
Logs copied here:
/cs-shared/
This traceback would be seen if contrail- snmp-collector tries to connect to config db before contrail-api creates obj_uuid_table. This is a timing issue and should recover upon creation of obj_uuid_table.
https:/ /github. com/Juniper/ contrail- controller/ blob/R4. 1/src/opserver/ config_ handler. py#L52
replacing exit() with exit(2) should fix the issue