ipdevpoll inventory job fails with AttributeError: 'NoneType' object has no attribute 'strip'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Network Administration Visualized |
Fix Released
|
Medium
|
Morten Brekkevold |
Bug Description
Under NAV 4.3.0, the ipdevpoll inventory job fails every time on a Juniper device where there really is only chassis information in NetboxEntity (not from the ENTITY-MIB), when it appears a chassis has been replaced.
Traceback looks as follows (this is in fact compounded by the fact that the NetboxEntity class __unicode__ method does not behave properly on missing attributes):
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.run()
File "/usr/lib/
self.
--- <exception caught here> ---
File "/usr/local/
result = context.call(ctx, function, *args, **kwargs)
File "/usr/local/
return self.currentCon
File "/usr/local/
return func(*args,**kw)
File "/source/
return func(*args, **kwargs)
File "/source/
result = func(*args, **kw)
File "/source/
return func(*args, **kwargs)
File "/source/
self.
File "/source/
manager.
File "/source/
to_purge = self.get_
File "/source/
sub = subtree(graph, miss)
File "/usr/local/
T.add_
File "/usr/local/
for e in ebunch:
File "/usr/local/
stack = [(start,
File "/usr/local/
return self.adj[n]
exceptions.
Traceback (most recent call last):
File "/usr/local/
return formatter(o)
File "/usr/local/
u = unicode(self)
File "/source/
if klass and not title.strip(
AttributeError: 'NoneType' object has no attribute 'strip'
Changed in nav: | |
status: | Fix Committed → Fix Released |
fix here: https:/ /nav.uninett. no/hg/stable/ rev/2a32158f1b1 9