tarantool / migrations

BSD 2-Clause "Simplified" License
21 stars 5 forks source link

Migrator requires running http server on each node. #26

Closed vrogach2020 closed 3 years ago

vrogach2020 commented 3 years ago

To reproduce scenario configure a cartridge cluster with a storage node with http_enabled set to false. Try to create replicaset with that node and observe the error:

ApplyConfigError: ...m-sandbox/mdm-person/.rocks/share/tarantool/migrator.lua:38: attempt to index local 'httpd' (a nil value)

stack traceback:
    [C]: in function 'xpcall'
    ...mdm-sandbox/mdm-person/.rocks/share/tarantool/errors.lua:145: in function 'pcall'
    ...ox/mdm-person/.rocks/share/tarantool/cartridge/roles.lua:303: in function 'apply_config'
    ...-person/.rocks/share/tarantool/cartridge/confapplier.lua:258: in function <...-person/.rocks/share/tarantool/cartridge/confapplier.lua:221>
    [C]: in function 'xpcall'
    ...mdm-sandbox/mdm-person/.rocks/share/tarantool/errors.lua:145: in function <...mdm-sandbox/mdm-person/.rocks/share/tarantool/errors.lua:139>
    ...rson/.rocks/share/tarantool/cartridge/remote-control.lua:93: in function <...rson/.rocks/share/tarantool/cartridge/remote-control.lua:66>
    [C]: in function 'pcall'
    ...rson/.rocks/share/tarantool/cartridge/remote-control.lua:266: in function <...rson/.rocks/share/tarantool/cartridge/remote-control.lua:153>
    [C]: in function 'xpcall'
    ...mdm-sandbox/mdm-person/.rocks/share/tarantool/errors.lua:145: in function 'pcall'
    ...rson/.rocks/share/tarantool/cartridge/remote-control.lua:341: in function <...rson/.rocks/share/tarantool/cartridge/remote-control.lua:299>
    [C]: in function 'pcall'
    builtin/socket.lua:1081: in function <builtin/socket.lua:1079>
during net.box call to localhost:3304, function "_G.__cartridge_clusterwide_config_commit_2pc"
stack traceback:
    ...box/mdm-person/.rocks/share/tarantool/cartridge/pool.lua:151: in function <...box/mdm-person/.rocks/share/tarantool/cartridge/pool.lua:141>