Trying to upgrade to 3.14.15926
mcc.py fails somwhere in the middle of moving switch-ports to ports with
File "/usr/local/nav/bin/mcc.py", line 29, in <module> start_config_creation(modules, config) File "/usr/local/nav/lib/python/nav/mcc/utils.py", line 65, in start_config_creation result = mod.make_config(config) File "/usr/local/nav/lib/python/nav/mcc/utils.py", line 49, in wrapper result = f(*args, **kwds) File "/usr/local/nav/lib/python/nav/mcc/interfaces.py", line 52, in make_config results.append(start_config_creation(module, configroot)) File "/usr/local/nav/lib/python/nav/mcc/utils.py", line 49, in wrapper result = f(*args, **kwds) File "/usr/local/nav/lib/python/nav/mcc/interfaces.py", line 111, in start_config_creation dbutils.updatedb(rrddatadir, containers) File "/usr/local/nav/lib/python/nav/mcc/utils.py", line 49, in wrapper result = f(*args, **kwds) File "/usr/local/lib/python2.7/site-packages/django/db/transaction.py", line 217, in inner res = func(*args, **kwargs) File "/usr/local/nav/lib/python/nav/mcc/dbutils.py", line 62, in updatedb category=category) File "/usr/local/lib/python2.7/site-packages/django/db/models/manager.py", line 132, in get return self.get_query_set().get(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py", line 351, in get % (self.model._meta.object_name, num, kwargs)) nav.models.rrd.MultipleObjectsReturned: get() returned more than one RrdFile -- it returned 2! Lookup parameters were {'category': 'port-counters', 'key': 'interface', 'value': '2001418'}
I guess there is some inconsistency in database, but where and after what shall I look?
--Ingeborg