Open
Description
Currently an attempt to use restart server <name>
in a non-tarantool repository leads to an error:
[001] TarantoolInpector.handle() received the following error:
[001] Traceback (most recent call last):
[001] File "/Users/gerold/Work/Repositories/vshard/test-run/lib/inspector.py", line 92, in handle
[001] result = self.parser.parse_preprocessor(line)
[001] File "/Users/gerold/Work/Repositories/vshard/test-run/lib/preprocessor.py", line 106, in parse_preprocessor
[001] return self.server(stype, sname, options)
[001] File "/Users/gerold/Work/Repositories/vshard/test-run/lib/preprocessor.py", line 338, in server
[001] return getattr(self, attr)(ctype, sname, opts)
[001] File "/Users/gerold/Work/Repositories/vshard/test-run/lib/preprocessor.py", line 318, in server_restart
[001] 'create', 'proxy', {'script': '"box/proxy.lua"'}
[001] File "/Users/gerold/Work/Repositories/vshard/test-run/lib/preprocessor.py", line 261, in server_create
[001] temp.install(silent=True)
[001] File "/Users/gerold/Work/Repositories/vshard/test-run/lib/tarantool_server.py", line 715, in install
[001] self.copy_files()
[001] File "/Users/gerold/Work/Repositories/vshard/test-run/lib/tarantool_server.py", line 741, in copy_files
[001] shutil.copy(self.script, self.script_dst)
[001] File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 139, in copy
[001] copyfile(src, dst)
[001] File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 96, in copyfile
[001] with open(src, 'rb') as fsrc:
[001] IOError: [Errno 2] No such file or directory: '/Users/gerold/Work/Repositories/vshard/test/box/proxy.lua'
Test case: I have 2 servers. 'Default' and 'storage_1_a'. I switch to default
and call restart server storage_1_a
. And get this error. At the same time, if I call
stop server <name>
start server <name>
everything works fine. I would expect that restart should be equivalent to stop/start.