[noc@PTL_NN noc]$ ./noc user
2021-03-13 13:32:17,672 [noc.core.ioloop.util] Setting up asyncio event loop policy
2021-03-13 13:32:17,673 [noc.core.ioloop.util] Setting up default event loop
2021-03-13 13:32:17,747 [noc.core.dcs.base] Resolve near service postgres
2021-03-13 13:32:17,751 [noc.core.dcs.base] Resolved near service postgres to ['
192.168.52.111:5432']
2021-03-13 13:32:17,843 [noc.core.debug] UNHANDLED EXCEPTION (2021-03-13 13:32:17.827462)
PROCESS: ./commands/
user.pyVERSION: 20.4.3
BRANCH: HEAD CHANGESET: c86766dc
ERROR FINGERPRINT: 1a670080-c5b6-5234-8521-95e7584e0b52
WORKING DIRECTORY: /opt/noc
EXCEPTION: <class 'AttributeError'> 'Command' object has no attribute 'handle_None'
START OF TRACEBACK
------------------------------------------------------------------------
File: commands/
user.py (Line: 44)
Function: handle
37
38 def out(self, msg):
39 if not self.verbose_level:
40 return
41 print(msg)
42
43 def handle(self, cmd, *args, **options):
44 ==> return getattr(self, "handle_%s" % cmd)(*args, **options)
45
46 def handle_add(self, *args, **options):
47 if "username" not in options:
48 raise CommandError("Username is not set")
49 if "email" not in options:
50 raise CommandError("Email is not set")
Variables:
self = <
main.Command object at 0x7f46831a3bb0>
cmd = None
args = ()
options = {}
------------------------------------------------------------------------
File: core/management/
base.py (Line: 78)
Function: run_from_argv
71 self.no_progressbar = cmd_options.pop("no_progressbar", False)
72 if enable_profiling:
73 # Start profiler
74 import yappi
75
76 yappi.start()
77 try:
78 ==> return self.handle(*args, **cmd_options) or 0
79 except CommandError as e:
80 self.print(str(e))
81 return 1
82 except KeyboardInterrupt:
83 self.print("Ctrl+C")
84 return 3
Variables:
self = <
main.Command object at 0x7f46831a3bb0>
argv = []
parser =
ArgumentParser(prog='noc user', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
options = Namespace(cmd=None)
cmd_options = {'cmd': None}
args = ()
loglevel = 'info'
enable_profiling = False
show_metrics = False
error_report = <function error_report at 0x7f4670f80e50>
------------------------------------------------------------------------
END OF TRACEBACK
2021-03-13 13:32:17,844 [noc.core.debug] Writing CP report to /var/lib/noc/cp/crashinfo/new/1a670080-c5b6-5234-8521-95e7584e0b52.json