snmp-collector failed due to undefined exception e
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R2.20 |
Fix Committed
|
High
|
ted ghose | |||
R3.0 |
Fix Committed
|
High
|
ted ghose | |||
Trunk |
Fix Committed
|
High
|
ted ghose |
Bug Description
R2.22 Build 116 Ubuntu 14.04 Juno multi node
Looks like an indentation issue...
12/28/2015 11:31:23 AM [contrail-
12/28/2015 11:31:23 AM [contrail-
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
controller.
File "/usr/lib/
if constnt_
File "/usr/lib/
self.
File "/usr/lib/
auth_
File "/usr/lib/
raise e
UnboundLocalError: local variable 'e' referenced before assignment
root@anushka-
-------------
/usr/lib/
78 @staticmethod
79 def get_vnc(usr, passwd, tenant, api_servers, auth_host=None,
80 auth_port=None, auth_protocol=None, notifycb=None):
81 for rt in (5, 2, 7, 9, 16, 25):
82 for api_server in api_servers:
83 srv = api_server.
84 if len(srv) == 2:
85 ip, port = srv[0], int(srv[1])
86 else:
87 ip, port = '127.0.0.1', int(srv[0])
88 try:
89 vnc = VncApi(usr, passwd, tenant, ip, port,
90 auth_host=
91 auth_protocol=
92 if callable(notifycb):
93 notifycb('api', 'Connected', servers=api_server)
94 return vnc
95 except Exception as e:
96 traceback.
97 if callable(notifycb):
98 notifycb('api', 'Not connected', servers=api_server,
99 up=False)
100 time.sleep(rt)
101 raise e
Review in progress for https:/ /review. opencontrail. org/17288
Submitter: ted ghose (<email address hidden>)