Closed Winking-maniac closed 3 years ago
Hello,
--host
parameter along with --port
translate
from toscatranslator.common.translator_to_configuration_dsl
api_pb2
and api_pb2_grpc
are doubled in root and toscatranslator directoryserve
and parse_args
~ 15 minshell.py
and write my own function to execute the response ~2 hoursOnly testing remains
После установки зависимостей (pip install -r requirements.txt) и установки python setup.py install команда clouni-server --help выдаёт следующее
Traceback (most recent call last):
File "/home/user/virt-env/clouni-server/bin/clouni-server", line 33, in
Надо добавить необходимые зависимости вместе с версиями в requirements.txt (методом проб и ошибок выяснила что нужны protobuf и grpcio, всё ещё нужны версии и проверь другие зависимости)
Также нужно обновить README clouni-server --help и добавить туда пример запуска команды При это при выполнении @clouni-server --host 127.0.0.1@ он просто виснет, так не должно быть, он должен запускаться фоном и при этом выдавать на экран хотя бы "Clouni gRPC server successfully started"
Всё ещё нет тестов, или примеров использования grpc client с сервером в README
Added gRPC support:
shell.py
in order to follow DRY conceptsetup.py
&setup.cfg
in order to installclouni-server
as CLI-command andtoscatranslator
as python module