-
Notifications
You must be signed in to change notification settings - Fork 4
Skeleton of rust server #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
avnik
wants to merge
10
commits into
mbssrc:main
Choose a base branch
from
avnik:avnik/rust-proto
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vilvo
added a commit
to tiiuae/dev-team-sandbox
that referenced
this pull request
May 22, 2024
* Depends on tiiuae#611 * Depends on mbssrc/givc#1 Status: * admin service running in admin-vm - [root@admin-vm:/home/ghaf]# ps aux|grep givc root ... /nix/store/...givc-admin-0.0.1/bin/givc-admin - [ghaf@admin-vm:~]$ netstat -na|grep 9001 tcp ... 192.168.101.10:9001 0.0.0.0:* LISTEN * Testing with grpcurl - added grpcurl to debug-tools module for all -debug build subsystems (host and guests) to access - [ghaf@admin-vm:~]$ grpcurl -vv -plaintext 192.168.101.10:9001 describe admin.AdminService Failed to resolve symbol "admin.AdminService": server does not support the reflection API - [ghaf@admin-vm:~]$ grpcurl -vv -plaintext 192.168.101.10:9001 admin.AdminService/Reboot Error invoking method "admin.AdminService/Reboot": failed to query for service descriptor "admin.AdminService": server does not support the reflection API TODO: * --reset-author - most of the givc-admin integration to gui-vm are authored by Manuel. Only refactored to admin-vm. Co-authored-by: Manuel Bluhm <manuel@ssrc.tii.ae> Co-authored-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
vilvo
added a commit
to tiiuae/dev-team-sandbox
that referenced
this pull request
May 22, 2024
* Depends on mbssrc/givc#1 Status: * admin service running in admin-vm - [root@admin-vm:/home/ghaf]# ps aux|grep givc root ... /nix/store/...givc-admin-0.0.1/bin/givc-admin - [ghaf@admin-vm:~]$ netstat -na|grep 9001 tcp ... 192.168.101.10:9001 0.0.0.0:* LISTEN * Testing with grpcurl - added grpcurl to debug-tools module for all -debug build subsystems (host and guests) to access - [ghaf@admin-vm:~]$ grpcurl -vv -plaintext 192.168.101.10:9001 describe admin.AdminService Failed to resolve symbol "admin.AdminService": server does not support the reflection API - [ghaf@admin-vm:~]$ grpcurl -vv -plaintext 192.168.101.10:9001 admin.AdminService/Reboot Error invoking method "admin.AdminService/Reboot": failed to query for service descriptor "admin.AdminService": server does not support the reflection API TODO: * --reset-author - most of the givc-admin integration to gui-vm are authored by Manuel. Only refactored to admin-vm. Co-authored-by: Manuel Bluhm <manuel@ssrc.tii.ae> Co-authored-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
vilvo
added a commit
to tiiuae/dev-team-sandbox
that referenced
this pull request
May 23, 2024
* Depends on mbssrc/givc#1 Status: * admin service running in admin-vm - [root@admin-vm:/home/ghaf]# ps aux|grep givc root ... /nix/store/...givc-admin-0.0.1/bin/givc-admin - [ghaf@admin-vm:~]$ netstat -na|grep 9001 tcp ... 192.168.101.10:9001 0.0.0.0:* LISTEN * Testing with grpcurl - added grpcurl to debug-tools module for all -debug build subsystems (host and guests) to access - [ghaf@admin-vm:~]$ grpcurl -vv -plaintext 192.168.101.10:9001 describe admin.AdminService Failed to resolve symbol "admin.AdminService": server does not support the reflection API - [ghaf@admin-vm:~]$ grpcurl -vv -plaintext 192.168.101.10:9001 admin.AdminService/Reboot Error invoking method "admin.AdminService/Reboot": failed to query for service descriptor "admin.AdminService": server does not support the reflection API TODO: * --reset-author - most of the givc-admin integration to gui-vm are authored by Manuel. Only refactored to admin-vm. Co-authored-by: Manuel Bluhm <manuel@ssrc.tii.ae> Co-authored-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
vilvo
pushed a commit
to tiiuae/dev-team-sandbox
that referenced
this pull request
May 24, 2024
* Depends on mbssrc/givc#1 * Integrates givc - ghaf/grpc inter-vm communications - framework to ghaf as new flake input. Future framework updates can be handled via flake givc input specific updates incrementally. * Integrates givc-admin module into the admin-vm and binds the server to port 9001 with allowed TCP firewall policy. * Depends on and the testing is based on the rust implementation. Does not yet support TLS but supports server grpc reflection even though the server methods are not yet implemented * -debug build testing is supported with grpcurl system wide * Refactored to admin-vm from Manuel Bluhm's more holistic module integration with givc-admin in gui-vm. Refactoring, format checks and testing by co-author Ville Ilvonen. Testing: 1. use ghaf -debug build to update and reboot: nixos-rebuild --flake .#lenovo-x1-carbon-gen11-debug \ --target-host root@<ghaf-host-debug-eth-ip> switch ssh ghaf@<ghaf-host-debug-eth-ip> [ghaf@ghaf-host:~]$ sudo reboot -n 2. log into ghaf-host and further into admin-vm [ghaf@ghaf-host:~]$ ssh 192.168.101.10 [ghaf@admin-vm:~]$ systemctl status givc-admin.service 3. test grpc admin service locally [ghaf@admin-vm:~]$ grpcurl -v -plaintext -use-reflection 192.168.101.10:9001 describe admin.AdminService is a service: service AdminService { ... # service methods 4. test grpc admin service from gui-vm [ghaf@ghaf-host:~]$ ssh 192.168.101.3 [ghaf@gui-vm:~]$ grpcurl -v -plaintext -use-reflection 192.168.101.10:9001 describe Co-authored-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
vilvo
pushed a commit
to tiiuae/dev-team-sandbox
that referenced
this pull request
May 24, 2024
* Depends on mbssrc/givc#1 * Integrates givc - ghaf/grpc inter-vm communications - framework to ghaf as new flake input. Future framework updates can be handled via flake givc input specific updates incrementally. * Integrates givc-admin module into the admin-vm and binds the server to port 9001 with allowed TCP firewall policy. * Depends on and the testing is based on the rust implementation. Does not yet support TLS but supports server grpc reflection even though the server methods are not yet implemented * -debug build testing is supported with grpcurl system wide * Refactored to admin-vm from Manuel Bluhm's more holistic module integration with givc-admin in gui-vm. Refactoring, format checks and testing by co-author Ville Ilvonen. Testing: 1. use ghaf -debug build to update and reboot: nixos-rebuild --flake .#lenovo-x1-carbon-gen11-debug \ --target-host root@<ghaf-host-debug-eth-ip> switch ssh ghaf@<ghaf-host-debug-eth-ip> [ghaf@ghaf-host:~]$ sudo reboot -n 2. log into ghaf-host and further into admin-vm [ghaf@ghaf-host:~]$ ssh 192.168.101.10 [ghaf@admin-vm:~]$ systemctl status givc-admin.service 3. test grpc admin service locally [ghaf@admin-vm:~]$ grpcurl -v -plaintext -use-reflection 192.168.101.10:9001 describe admin.AdminService is a service: service AdminService { ... # service methods 4. test grpc admin service from gui-vm [ghaf@ghaf-host:~]$ ssh 192.168.101.3 [ghaf@gui-vm:~]$ grpcurl -v -plaintext -use-reflection 192.168.101.10:9001 describe Co-authored-by: Ville Ilvonen <ville.ilvonen@unikie.com> Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
Signed-off-by: Alexander V. Nikolaev <avn@avnik.info>
Signed-off-by: Alexander V. Nikolaev <avn@avnik.info>
Signed-off-by: Alexander V. Nikolaev <avn@avnik.info>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Just draft PoC, server do nothing at the moment, I just checked if rust' protobuf implementation accept our .proto files