svc-mon keeps crashing on startup with keyerror on instance_ip_address on a setup
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R2.20 |
Fix Committed
|
High
|
Rudra Rugge | |||
Trunk |
Fix Committed
|
High
|
Rudra Rugge |
Bug Description
R2.20 Build 40 Ubuntu 14.04 Juno multi-node setup
In this setup, somehow, there was an instance ip with no instance_ip_address key.
After upgrade to 2.20 Build 40, it was seen svc-mon keeps crashing due to this. This is even after i deleted any router objects and having no service instance objects.
Logs on the node running svc-mon will be in http://
root@nodec1:
+------
| id | name | mac_address | fixed_ips |
+------
| 20cf6b21-
| 79f59dd7-
| 8e7825d1-
| e87b7e13-
+------
root@nodec1:
instance_ip_address can be deleted on the instance-ip object when we update the instance-ip object(i.e. set_instance_
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
main()
File "/usr/lib/
run_
File "/usr/lib/
self.
File "/usr/lib/
func(*args, **kwargs)
File "/usr/lib/
func(*args, **kwargs)
File "/usr/lib/
monitor.
File "/usr/lib/
self.sync_sm()
File "/usr/lib/
InstanceIpS
File "/usr/lib/
cls._dict[key] = cls(key, *args)
File "/usr/lib/
self.
File "/usr/lib/
self.address = obj['instance_
KeyError: 'instance_
env.roledefs = {
'all': [host1, host2, host3, host4, host5, host6, host7],
'cfgm': [host1,
'openstack': [host1,
'control': [host1,
'compute': [host4,host5, host6, host7],
'collector': [host1,
'webui': [host1],
'database': [host1,
'toragent': [host6, host7],
'tsn': [host6, host7],
'build': [host_build],
}
env.hostnames = {
'all': ['nodec1', 'nodec2', 'nodec3', 'nodek1', 'nodek2', 'nodek3', 'nodeg11']
}
Changed in juniperopenstack: | |
milestone: | none → r2.30-fcs |
Review in progress for https:/ /review. opencontrail. org/11379
Submitter: Rudra Rugge (<email address hidden>)