Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERROR:noc.lib.debug:UNHANDLED EXCEPTION (2014-09-06 10:13:42.714559)
- Working directory: /opt/noc
- <type 'exceptions.KeyError'>
- 'unique_indexes'
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/lib/collection.py (Line: 50)
- Function: __init__
- 43 self.ref_cache = {}
- 44 self.partial = set()
- 45 if hasattr(self.doc, "name"):
- 46 # Use .name field when present
- 47 self.get_name = attrgetter("name")
- 48 else:
- 49 # Or first unique field otherwise
- 50 ==> self.get_name = attrgetter(self.doc._meta["unique_indexes"][0][0][0])
- 51
- 52 def log(self, msg):
- 53 print msg
- 54
- 55 def die(self, msg):
- 56 raise ValueError(msg)
- Variables:
- c = 'oidaliases'
- name = 'fm.oidaliases'
- doc = <class 'noc.fm.models.oidalias.OIDAlias'>
- self = <noc.lib.collection.Collection object at 0x80f50eb50>
- m = 'fm'
- local = True
- ------------------------------------------------------------------------
- File: /opt/noc/main/management/commands/collection.py (Line: 171)
- Function: handle_sync
- 164 return d
- 165 raise CommandError(self.not_found(name))
- 166
- 167 def handle_sync(self):
- 168 DocCategory.fix_all()
- 169 try:
- 170 for name, doc in self.collections:
- 171 ==> lc = Collection(name, doc, local=True)
- 172 lc.load()
- 173 dc = Collection(name, doc)
- 174 dc.load()
- 175 lc.apply(dc)
- 176 except ValueError, why:
- 177 raise CommandError(why)
- Variables:
- doc = <class 'noc.fm.models.oidalias.OIDAlias'>
- self = <noc.main.management.commands.collection.Command object at 0x80f1a1d90>
- dc = <noc.lib.collection.Collection object at 0x80f4e71d0>
- name = 'fm.oidaliases'
- lc = <noc.lib.collection.Collection object at 0x80f3ca750>
- ------------------------------------------------------------------------
- File: /opt/noc/main/management/commands/collection.py (Line: 139)
- Function: _handle
- 132 raise
- 133 except:
- 134 error_report()
- 135
- 136 def _handle(self, *args, **options):
- 137 self.verbose = bool(options.get("verbosity"))
- 138 if options["cmd"] == "sync":
- 139 ==> return self.handle_sync()
- 140 elif options["cmd"] == "upgrade":
- 141 return self.handle_upgrade(args)
- 142 elif options["cmd"] == "install":
- 143 if len(args) < 2:
- 144 parts = args[0].split(os.path.sep)
- 145 if (len(parts) < 2 or parts[1] != "collections"):
- Variables:
- self = <noc.main.management.commands.collection.Command object at 0x80f1a1d90>
- args = ()
- options =
- {'cmd': 'sync',
- 'pythonpath': None,
- 'settings': None,
- 'traceback': None,
- 'verbosity': '1'}
- ------------------------------------------------------------------------
- File: /opt/noc/main/management/commands/collection.py (Line: 130)
- Function: handle
- 123 msg = "%s\nAvailable collections:" % msg
- 124 for n, d in self.collections:
- 125 msg = "%s\n %s" % (msg, n)
- 126 return msg
- 127
- 128 def handle(self, *args, **kwargs):
- 129 try:
- 130 ==> self._handle(*args, **kwargs)
- 131 except CommandError:
- 132 raise
- 133 except:
- 134 error_report()
- 135
- 136 def _handle(self, *args, **options):
- Variables:
- self = <noc.main.management.commands.collection.Command object at 0x80f1a1d90>
- args = ()
- kwargs =
- {'cmd': 'sync',
- 'pythonpath': None,
- 'settings': None,
- 'traceback': None,
- 'verbosity': '1'}
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement