tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/graphql/execute.lua:309: in function 'getFieldEntry' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/graphql/execute.lua:322: in function </app/.rocks/share/tarantool/graphql/execute.lua:314> tarantool-cartridge-starter.router | [C]: in function 'xpcall' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/errors.lua:145: in function 'pcall' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/cartridge/graphql.lua:300: in function </app/.rocks/share/tarantool/cartridge/graphql.lua:226> tarantool-cartridge-starter.router | [C]: in function 'xpcall' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/errors.lua:145: in function 'pcall' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/cartridge/graphql.lua:335: in function 'sub' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/http/server.lua:658: in function </app/.rocks/share/tarantool/http/server.lua:636> tarantool-cartridge-starter.router | [C]: in function 'pcall' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/http/server.lua:736: in function 'process_client' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/http/server.lua:1199: in function </app/.rocks/share/tarantool/http/server.lua:1198> tarantool-cartridge-starter.router | [C]: in function 'pcall' tarantool-cartridge-starter.router | builtin/socket.lua:1081: in function <builtin/socket.lua:1079>
tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/errors.lua:145: in function 'pcall' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/cartridge/graphql.lua:335: in function 'sub' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/http/server.lua:658: in function </app/.rocks/share/tarantool/http/server.lua:636> tarantool-cartridge-starter.router | [C]: in function 'pcall' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/http/server.lua:736: in function 'process_client' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/http/server.lua:1199: in function </app/.rocks/share/tarantool/http/server.lua:1198> tarantool-cartridge-starter.router | [C]: in function 'pcall' tarantool-cartridge-starter.router | builtin/socket.lua:1081: in function <builtin/socket.lua:1079> tarantool-cartridge-starter.router | 2021-07-27 12:10:28.997 [88] main/118/http/172.17.0.1:35254 graphql.lua:313 E> GetSchemaError: Current instance isn't bootstrapped yet tarantool-cartridge-starter.router | stack traceback: tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/cartridge/webui/api-ddl.lua:33: in function 'call' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/cartridge/graphql.lua:38: in function 'defaultResolver' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/graphql/execute.lua:303: in function 'getFieldEntry' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/graphql/execute.lua:322: in function 'evaluateSelections' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/graphql/execute.lua:224: in function 'completeValue' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/graphql/execute.lua:309: in function 'getFieldEntry' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/graphql/execute.lua:322: in function </app/.rocks/share/tarantool/graphql/execute.lua:314> tarantool-cartridge-starter.router | [C]: in function 'xpcall' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/errors.lua:145: in function 'pcall' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/cartridge/graphql.lua:300: in function </app/.rocks/share/tarantool/cartridge/graphql.lua:226> tarantool-cartridge-starter.router | [C]: in function 'xpcall' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/errors.lua:145: in function 'pcall' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/cartridge/graphql.lua:335: in function 'sub' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/http/server.lua:658: in function </app/.rocks/share/tarantool/http/server.lua:636> tarantool-cartridge-starter.router | [C]: in function 'pcall' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/http/server.lua:736: in function 'process_client' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/http/server.lua:1199: in function </app/.rocks/share/tarantool/http/server.lua:1198> tarantool-cartridge-starter.router | [C]: in function 'pcall' tarantool-cartridge-starter.router | builtin/socket.lua:1081: in function <builtin/socket.lua:1079> tarantool-cartridge-starter.router | 2021-07-27 12:10:30.034 [88] main/118/http/172.17.0.1:35254 graphql.lua:313 E> Config download failed: Current instance isn't bootstrapped yet tarantool-cartridge-starter.router | stack traceback: tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/cartridge/webui/api-config.lua:199: in function 'call' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/cartridge/graphql.lua:38: in function 'defaultResolver' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/graphql/execute.lua:303: in function 'getFieldEntry' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/graphql/execute.lua:322: in function 'evaluateSelections' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/graphql/execute.lua:224: in function 'completeValue'
Есть, да, видимо, какой-то мой косяк, хотя, я, вроде, конфиги не правил. Неизвестнfя роль storage tarantool-cartridge-starter.router | 2021-07-27 11:49:32.615 [88] main/112/remote_control/172.17.0.1:32872 twophase.lua:558 E> Invalid cluster topology config: replicasets[40f26285-1ca8-49a2-8a60-2606e7e4f2b0] can not enable unknown role "app.roles.api_storage" tarantool-cartridge-starter.router | stack traceback: tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/cartridge/topology.lua:701: in function 'validate_upgrade' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/cartridge/topology.lua:736: in function </app/.rocks/share/tarantool/cartridge/topology.lua:720> tarantool-cartridge-starter.router | [C]: in function 'xpcall' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/errors.lua:145: in function 'validate' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/cartridge/twophase.lua:556: in function </app/.rocks/share/tarantool/cartridge/twophase.lua:489> tarantool-cartridge-starter.router | [C]: in function 'xpcall' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/errors.lua:145: in function 'pcall' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/cartridge/twophase.lua:609: in function 'patch_clusterwide' tarantool-cartridge-starter.router | ...ocks/share/tarantool/cartridge/lua-api/edit-topology.lua:367: in function <...ocks/share/tarantool/cartridge/lua-api/edit-topology.lua:279> tarantool-cartridge-starter.router | [C]: in function 'dofile' tarantool-cartridge-starter.router | [string "eval"]:1: in function 'fun' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/cartridge/remote-control.lua:52: in function </app/.rocks/share/tarantool/cartridge/remote-control.lua:49> tarantool-cartridge-starter.router | [C]: in function 'pcall' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/cartridge/remote-control.lua:218: in function </app/.rocks/share/tarantool/cartridge/remote-control.lua:133> tarantool-cartridge-starter.router | [C]: in function 'xpcall' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/errors.lua:145: in function 'pcall' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/cartridge/remote-control.lua:321: in function </app/.rocks/share/tarantool/cartridge/remote-control.lua:279> tarantool-cartridge-starter.router | [C]: in function 'pcall' tarantool-cartridge-starter.router | builtin/socket.lua:1081: in function <builtin/socket.lua:1079> tarantool-cartridge-starter.router | 2021-07-27 12:10:28.177 [88] main/118/http/172.17.0.1:35254 graphql.lua:313 E> Config download failed: Current instance isn't bootstrapped yet tarantool-cartridge-starter.router | stack traceback: tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/cartridge/webui/api-config.lua:199: in function 'call' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/cartridge/graphql.lua:38: in function 'defaultResolver' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/graphql/execute.lua:303: in function 'getFieldEntry' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/graphql/execute.lua:322: in function 'evaluateSelections' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/graphql/execute.lua:224: in function 'completeValue' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/graphql/execute.lua:309: in function 'getFieldEntry' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/graphql/execute.lua:322: in function </app/.rocks/share/tarantool/graphql/execute.lua:314> tarantool-cartridge-starter.router | [C]: in function 'xpcall' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/errors.lua:145: in function 'pcall' tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/cartridge/graphql.lua:300: in function </app/.rocks/share/tarantool/cartridge/graphql.lua:226> tarantool-cartridge-starter.router | [C]: in function 'xpcall'
Покажите как создаёте контейнер в коде
private static final TarantoolCartridgeContainer container = new TarantoolCartridgeContainer("cartridge/instances.yml", "cartridge/topology.lua") .withDirectoryBinding("cartridge") .withRouterHost("localhost") .withRouterPort(3301) .withAPIPort(8081) .withRouterUsername("admin") .withRouterPassword("tarantool-cartridge-starter-cluster-cookie") .withReuse(true);
картридж в основных ресурсах лежит src/main/resources/cartridge
А в папке cartridge/app/roles что?
Там только катомная роль, роли сторадж нет 🙈
Надо поправить topology.lua тогда, вместо app.roles.api_storage указать vshard-storage и вместо app.roles.api-router указать vshard-router
А не хотели бы вы это в документацию внести? 😃 Ну, и, наверное, много у кого будет кейс тестирования только REST endpoints, которыве поднимает tarantool, так что, возможно, хорошо было бы в документации отразить процесс получения портов, которые заэкпоузил поднятый контейнер 😃 Я-то знаю, но вот, кто до этого не пользовался testcontainers, им, наверное, полезно будет 😃
Будем очень признательны, если напишете такой тикет. Пока не очень понял насчёт получения портов
Это про роли? Если про роли, то хорошо, открою 😃
Да, про роли, и про порты если нужно
https://github.com/tarantool/cartridge-java-testcontainers/issues/19
Спасибо!
Обсуждают сегодня