Activity log for bug #1507712

Date Who What changed Old value New value Message
2015-10-19 18:12:31 John George bug added bug
2015-10-19 18:15:18 Andres Rodriguez maas: milestone 1.9.0
2015-10-19 18:15:20 Andres Rodriguez maas: importance Undecided Low
2015-10-19 18:15:31 Andres Rodriguez maas: importance Low Medium
2015-10-19 18:17:03 John George description maas cli commands fail if run at the same time as 'maas logout' for any other profile. The setup where this bug is frequently seen involves a host which interacts with 4 separate MAAS servers. The host is a test driver and uses the maas cli, when a test is being run, to collect information about the nodes that have been allocated: 1. maas login maas_A http://10.0.40.100/MAAS/api/1.0/ <apikey> 2. <maas cli commands to query nodes> 3. maas logout maas_A Tests are run in parallel against all 4 MAAS server (maas_A, maas_B, maas_C, maas_D). When the timing lines up is a way that 'maas logout' is called, for example against maas_A, within close proximity to maas cli commands against maas_B, maas_C or maas_D, the following error is reported back to the shell running the latter. jenkins@finfolk:~$ maas maas_B nodes list Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/usr/lib/python2.7/dist-packages/maascli/__main__.py", line 20, in <module> main() File "/usr/lib/python2.7/dist-packages/maascli/__init__.py", line 41, in main parser = prepare_parser(argv) File "/usr/lib/python2.7/dist-packages/maascli/parser.py", line 80, in prepare_parser api.register_api_commands(parser) File "/usr/lib/python2.7/dist-packages/maascli/api.py", line 480, in register_api_commands profile = config[profile_name] File "/usr/lib/python2.7/dist-packages/maascli/config.py", line 56, in __getitem__ raise KeyError(name) KeyError: u'maas_foo' This bug can easily be re-produced by opening two shells that are logged into two different MAAS servers. Log out of one server and then immediately attempt to run a maas cli command against the other. A re-try will generally work, so it seems there is a small window when this occurs but not so small that it's hard to reproduce. ii maas-cli 1.9.0~alpha4+bzr4371-0ubuntu1~trusty1 all MAAS command line API tool un maas-region-controller-min <none> <none> (no description available) ii python-maas-client 1.9.0~alpha4+bzr4371-0ubuntu1~trusty1 all MAAS python API client maas cli commands fail if run at the same time as 'maas logout' for any other profile. The setup where this bug is frequently seen involves a host which interacts with 4 separate MAAS servers. The host is a test driver and uses the maas cli, when a test is being run, to collect information about the nodes that have been allocated:     1. maas login maas_A http://10.0.40.100/MAAS/api/1.0/ <apikey>     2. <maas cli commands to query nodes>     3. maas logout maas_A Tests are run in parallel against all 4 MAAS server (maas_A, maas_B, maas_C, maas_D). When the timing lines up is a way that 'maas logout' is called, for example against maas_A, within close proximity to maas cli commands against maas_B, maas_C or maas_D, the following error is reported back to the shell running the latter. jenkins@finfolk:~$ maas maas_B nodes list Traceback (most recent call last):   File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main     "__main__", fname, loader, pkg_name)   File "/usr/lib/python2.7/runpy.py", line 72, in _run_code     exec code in run_globals   File "/usr/lib/python2.7/dist-packages/maascli/__main__.py", line 20, in <module>     main()   File "/usr/lib/python2.7/dist-packages/maascli/__init__.py", line 41, in main     parser = prepare_parser(argv)   File "/usr/lib/python2.7/dist-packages/maascli/parser.py", line 80, in prepare_parser     api.register_api_commands(parser)   File "/usr/lib/python2.7/dist-packages/maascli/api.py", line 480, in register_api_commands     profile = config[profile_name]   File "/usr/lib/python2.7/dist-packages/maascli/config.py", line 56, in __getitem__     raise KeyError(name) KeyError: u'maas_foo' This bug can easily be re-produced by: 1. Open two shells on the same host and log into two different MAAS servers. 2. From one shell call 'maas logout <profile>' 3. Immediately attempt to run any maas cli command from the second shell. A re-try will generally work, so it seems there is a small window when this occurs but not so small that it's hard to reproduce. ii maas-cli 1.9.0~alpha4+bzr4371-0ubuntu1~trusty1 all MAAS command line API tool un maas-region-controller-min <none> <none> (no description available) ii python-maas-client 1.9.0~alpha4+bzr4371-0ubuntu1~trusty1 all MAAS python API client
2015-10-21 15:54:07 Gavin Panella maas: status New Triaged
2017-09-01 21:17:10 Andres Rodriguez maas: milestone 1.9.0 2.3.0
2017-09-15 14:13:33 Jason Hobbs tags cdo-qa-blocker
2017-09-15 14:15:28 Chris Gregan tags cdo-qa-blocker cdo-qa cdo-qa-blocker
2017-09-15 16:52:58 Andres Rodriguez maas: assignee Blake Rouse (blake-rouse)
2017-09-15 19:30:00 Greg Lutostanski maas: assignee Blake Rouse (blake-rouse) Greg Lutostanski (lutostag)
2017-09-15 19:40:38 Launchpad Janitor merge proposal linked https://code.launchpad.net/~lutostag/maas/+git/maas/+merge/330860
2017-09-16 16:47:57 Andres Rodriguez maas: status Triaged In Progress
2017-09-18 15:07:52 MAAS Lander maas: status In Progress Fix Committed
2017-09-19 15:41:03 Andres Rodriguez nominated for series maas/2.2
2017-09-19 15:41:03 Andres Rodriguez bug task added maas/2.2
2017-09-19 15:41:11 Andres Rodriguez maas/2.2: milestone 2.2.3
2017-09-19 15:41:15 Andres Rodriguez maas/2.2: importance Undecided Medium
2017-09-19 15:41:17 Andres Rodriguez maas/2.2: status New Triaged
2017-09-19 15:41:20 Andres Rodriguez maas/2.2: assignee Andres Rodriguez (andreserl)
2017-09-19 17:18:21 Launchpad Janitor merge proposal linked https://code.launchpad.net/~andreserl/maas/+git/maas/+merge/331000
2017-09-19 17:44:02 MAAS Lander maas/2.2: status Triaged Fix Committed
2017-09-25 19:20:55 Andres Rodriguez maas: milestone 2.3.0 2.3.0beta1
2017-10-04 14:19:09 Andres Rodriguez maas: status Fix Committed Fix Released
2018-03-27 18:48:34 Andres Rodriguez maas/2.2: status Fix Committed Fix Released