Thread: [Ryu-devel] ArgsAlreadyParsedError in Ryu-manager ver 3.4
Brought to you by:
nz_gizmoguy
From: Srini S. <sri...@gm...> - 2013-12-13 05:19:14
|
Hi I did a git clone of Ryu today (Ryu-manager version 3.4). When I ran the manager with ryu/topology/switches and ryu/topology/dumper, I got the ArgsAlreadyParsedError error. I read on the archive that it was fixed previously. But, looks like there's some issue now. ubuntu@ubuntu:~/ryu$ ./bin/ryu-manager --verbose --observe-links ryu/topology/switches ryu/topology/dumper loading app ryu/topology/switches Traceback (most recent call last): File "./bin/ryu-manager", line 19, in <module> main() File "/home/ubuntu/ryu/ryu/cmd/manager.py", line 70, in main app_mgr.load_apps(app_lists) File "/home/ubuntu/ryu/ryu/base/app_manager.py", line 210, in load_apps cls = self.load_app(app_cls_name) File "/home/ubuntu/ryu/ryu/base/app_manager.py", line 194, in load_app mod = utils.import_module(name) File "/home/ubuntu/ryu/ryu/utils.py", line 86, in import_module __import__(name) File "/home/ubuntu/ryu/ryu/topology/switches.py", line 52, in <module> help='link discovery: explicitly drop lldp packet in') File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1579, in __inner result = f(self, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1741, in register_cli_opts self.register_cli_opt(opt, group, clear_cache=False) File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1583, in __inner return f(self, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1733, in register_cli_opt raise ArgsAlreadyParsedError("cannot register CLI option") oslo.config.cfg.ArgsAlreadyParsedError: arguments already parsed: cannot register CLI option When I did a dump of the _args in the code that threw the ArgsAlreadyParsedError, I saw the following entries in it: ['--verbose', '--observe-links', 'ryu/topology/switches', 'ryu/topology/dumper'] What am I doing wrong? I haven't made any changes after the git pull. Thanks Srini. |
From: <yam...@va...> - 2013-12-13 05:54:05
|
> Hi > I did a git clone of Ryu today (Ryu-manager version 3.4). When I ran the > manager with ryu/topology/switches and ryu/topology/dumper, I got the > ArgsAlreadyParsedError error. I read on the archive that it was fixed > previously. But, looks like there's some issue now. > > ubuntu@ubuntu:~/ryu$ ./bin/ryu-manager --verbose --observe-links > ryu/topology/switches ryu/topology/dumper please use ryu.topology.switches or ryu/topology/switches.py i recommend the former. YAMAMOTO Takashi > loading app ryu/topology/switches > Traceback (most recent call last): > File "./bin/ryu-manager", line 19, in <module> > main() > File "/home/ubuntu/ryu/ryu/cmd/manager.py", line 70, in main > app_mgr.load_apps(app_lists) > File "/home/ubuntu/ryu/ryu/base/app_manager.py", line 210, in load_apps > cls = self.load_app(app_cls_name) > File "/home/ubuntu/ryu/ryu/base/app_manager.py", line 194, in load_app > mod = utils.import_module(name) > File "/home/ubuntu/ryu/ryu/utils.py", line 86, in import_module > __import__(name) > File "/home/ubuntu/ryu/ryu/topology/switches.py", line 52, in <module> > help='link discovery: explicitly drop lldp packet in') > File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line > 1579, in __inner > result = f(self, *args, **kwargs) > File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line > 1741, in register_cli_opts > self.register_cli_opt(opt, group, clear_cache=False) > File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line > 1583, in __inner > return f(self, *args, **kwargs) > File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line > 1733, in register_cli_opt > raise ArgsAlreadyParsedError("cannot register CLI option") > oslo.config.cfg.ArgsAlreadyParsedError: arguments already parsed: cannot > register CLI option > > When I did a dump of the _args in the code that threw the > ArgsAlreadyParsedError, I saw the following entries in it: > ['--verbose', '--observe-links', 'ryu/topology/switches', > 'ryu/topology/dumper'] > > What am I doing wrong? I haven't made any changes after the git pull. > > Thanks > Srini. |
From: Srini S. <sri...@gm...> - 2013-12-13 05:56:56
|
Ah, ok. That works. Thanks Yamamoto-san. On Thu, Dec 12, 2013 at 9:53 PM, YAMAMOTO Takashi <yam...@va...>wrote: > > Hi > > I did a git clone of Ryu today (Ryu-manager version 3.4). When I ran the > > manager with ryu/topology/switches and ryu/topology/dumper, I got the > > ArgsAlreadyParsedError error. I read on the archive that it was fixed > > previously. But, looks like there's some issue now. > > > > ubuntu@ubuntu:~/ryu$ ./bin/ryu-manager --verbose --observe-links > > ryu/topology/switches ryu/topology/dumper > > please use > ryu.topology.switches > or > ryu/topology/switches.py > > i recommend the former. > > YAMAMOTO Takashi > > > loading app ryu/topology/switches > > Traceback (most recent call last): > > File "./bin/ryu-manager", line 19, in <module> > > main() > > File "/home/ubuntu/ryu/ryu/cmd/manager.py", line 70, in main > > app_mgr.load_apps(app_lists) > > File "/home/ubuntu/ryu/ryu/base/app_manager.py", line 210, in load_apps > > cls = self.load_app(app_cls_name) > > File "/home/ubuntu/ryu/ryu/base/app_manager.py", line 194, in load_app > > mod = utils.import_module(name) > > File "/home/ubuntu/ryu/ryu/utils.py", line 86, in import_module > > __import__(name) > > File "/home/ubuntu/ryu/ryu/topology/switches.py", line 52, in <module> > > help='link discovery: explicitly drop lldp packet in') > > File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line > > 1579, in __inner > > result = f(self, *args, **kwargs) > > File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line > > 1741, in register_cli_opts > > self.register_cli_opt(opt, group, clear_cache=False) > > File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line > > 1583, in __inner > > return f(self, *args, **kwargs) > > File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line > > 1733, in register_cli_opt > > raise ArgsAlreadyParsedError("cannot register CLI option") > > oslo.config.cfg.ArgsAlreadyParsedError: arguments already parsed: cannot > > register CLI option > > > > When I did a dump of the _args in the code that threw the > > ArgsAlreadyParsedError, I saw the following entries in it: > > ['--verbose', '--observe-links', 'ryu/topology/switches', > > 'ryu/topology/dumper'] > > > > What am I doing wrong? I haven't made any changes after the git pull. > > > > Thanks > > Srini. > |