ipdevpoll : Save stage failed with unhandled AttributeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Network Administration Visualized |
Fix Released
|
Medium
|
Morten Brekkevold |
Bug Description
NAV : 3.6.0b6
OS : RHEL 5.5
ipdevpoll gives this error for a number of our netboxes. I cant find any similarities between them :
2010-09-29 10:55:54,464 [ERROR] [nav.ipdevpoll.
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
context.
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
--- <exception caught here> ---
File "/usr/lib/
result = f(*args, **kwargs)
File "/usr/local/
result = func(*args, **kwargs)
File "/usr/local/
return func(*args, **kwargs)
File "/usr/local/
result = self.perform_save()
File "/usr/local/
obj_model = obj.convert_
File "/usr/local/
model = self.get_
File "/usr/local/
result = self.lookup_
File "/usr/local/
query = manage.
exceptions.
Changed in nav: | |
assignee: | nobody → Morten Brekkevold (mbrekkevold) |
importance: | Undecided → Medium |
milestone: | none → 3.6.0 |
status: | New → Confirmed |
summary: |
- ipdevpoll : Save stage failed with unhandled error + ipdevpoll : Save stage failed with unhandled AttributeError |
Changed in nav: | |
status: | Fix Committed → Fix Released |
I sent a patch for macrom to test, but a similar thing happened (the reasoning is the same: Some plugin called upon the containers factory function and created a new Interface that the Interfaces plugin did not see. Probably some mumbo jumbo response from a MIB). The traceback after the first patch was:
2010-09-29 12:52:42,322 [ERROR] [nav.ipdevpoll. jobs.jobhandler .inventory. (switch. foo.tld) ] The last query was: {'time': '0.020', 'sql': 'INSERT INTO "interface" ("netboxid", "moduleid", "ifindex", "ifname", "ifdescr", "iftype", "speed", "ifphysaddress", "ifadminstatus", "ifoperstatus", "iflastchange", "ifconnectorpre sent", "ifpromiscuousm ode", "ifalias", "baseport", "media", "vlan", "trunk", "duplex", "to_netboxid", "to_interfaceid", "gone_since") VALUES (513, NULL, NULL, E\'\', E\'\', NULL, NULL, NULL, NULL, NULL, NULL, false, false, E\'\', 21, NULL, NULL, false, NULL, NULL, NULL, NULL)'} jobs.jobhandler .inventory. (switch. foo.tld) ] Save stage failed with unhandled error: python2. 4/threading. py", line 422, in run __target( *self._ _args, **self.__kwargs) python2. 4/site- packages/ Twisted- 8.1.0-py2. 4-linux- i686.egg/ twisted/ python/ threadpool. py", line 161, in _worker call(ctx, function, *args, **kwargs) python2. 4/site- packages/ Twisted- 8.1.0-py2. 4-linux- i686.egg/ twisted/ python/ context. py", line 59, in callWithContext text(). callWithContext (ctx, func, *args, **kw) python2. 4/site- packages/ Twisted- 8.1.0-py2. 4-linux- i686.egg/ twisted/ python/ context. py", line 37, in callWithContext python2. 4/site- packages/ Twisted- 8.1.0-py2. 4-linux- i686.egg/ twisted/ internet/ threads. py", line 24, in _putResultInDef erred nav/lib/ python/ nav/ipdevpoll/ utils.py" , line 143, in _commit_on_success nav/lib/ python/ nav/ipdevpoll/ utils.py" , line 162, in _cleanup nav/lib/ python/ nav/ipdevpoll/ jobs.py" , line 269, in complete_save_cycle nav/lib/ python/ nav/ipdevpoll/ jobs.py" , line 331, in perform_save model.save( ) python2. 4/site- packages/ django/ db/models/ base.py" , line 311, in save save_base( force_insert= force_insert, force_update= force_update) python2. 4/site- packages/ django/ db/models/ base.py" , line 383, in save_base _insert( values, return_ id=update_ pk) python2. 4/site- packages/ django/ db/models/ manager. py", line 138, in _insert query(self. model, values, **kwargs) python2. 4/site- packages/ django/ db/models/ query.py" , line 894, in insert_query sql(return_ id) python2. 4/site- packages/ django/ db/models/ sql/subqueries. py", line 309, in execute_sql sql(None) python2. 4/site- packages/ django/ db/models/ ...
2010-09-29 12:52:55,616 [ERROR] [nav.ipdevpoll.
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
context.
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
--- <exception caught here> ---
File "/usr/lib/
result = f(*args, **kwargs)
File "/usr/local/
result = func(*args, **kwargs)
File "/usr/local/
return func(*args, **kwargs)
File "/usr/local/
result = self.perform_save()
File "/usr/local/
obj_
File "/usr/lib/
self.
File "/usr/lib/
result = manager.
File "/usr/lib/
return insert_
File "/usr/lib/
return query.execute_
File "/usr/lib/
cursor = super(InsertQuery, self).execute_
File "/usr/lib/