-
Notifications
You must be signed in to change notification settings - Fork 45
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
Improve app configurability via hypervisor and make it persistent #111
Improve app configurability via hypervisor and make it persistent #111
Conversation
@nkryuchkov This PR looks good. What is the status of it? |
@evanlinjin It's implemented. Visor restarts apps to update their config. However, I've found out that restarting apps doesn't work right now, so I'm fixing this. |
# Conflicts: # cmd/skywire-visor/commands/root.go # pkg/visor/visor.go
# Conflicts: # pkg/visor/visor.go
@nkryuchkov great work overall.
Despite these errors, everything worked as expected, so not sure we need to worry about it. |
@jdknives These are expected errors happening because of stopped app and lost connection. However, I think the log level needs to be decreased from error to warning. Fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
Fixes #66
Fixes #86
Fixes #121
Depends on https://github.com/SkycoinPro/skywire-services/pull/56
#66
Changes:
PUT /api/visors/{pk}/apps/{app} API
endpoint, the new value is restored after stopping the visor and starting it again.How to test this PR:
make integration-run-generic
command of theskywire-services
repository.GET /api/nodes/024ec47420176680816e0406250e7156465e4531f5b26057c9f6297bb0303558c7
. Theautostart
property of theskychat
will betrue
PUT /api/nodes/024ec47420176680816e0406250e7156465e4531f5b26057c9f6297bb0303558c7/apps/skychat
with{autostart: false}
as content, to stop theskychat
app.GET /api/nodes/024ec47420176680816e0406250e7156465e4531f5b26057c9f6297bb0303558c7
again. Theautostart
property of theskychat
will befalse
make integration-teardown; tmux kill-server
in the command window that is running theskywire-services
test enviroment, to stop it. Then callmake integration-run-generic
to start it again.GET /api/nodes/024ec47420176680816e0406250e7156465e4531f5b26057c9f6297bb0303558c7
again. Theautostart
property of theskychat
will befalse
.#86
Changes:
skysocks
app password andskysocks-client
app public key of a server via thePUT /api/visors/{pk}/apps/{app} API
endpoint.How to test this PR:
make integration-run-proxy
command of theskywire-services
repository.skysocks
app passcode inintegration/proxy/nodeA.json
file.PUT /api/nodes/024ec47420176680816e0406250e7156465e4531f5b26057c9f6297bb0303558c7/apps/skysocks
with{"passcode": "test"}
as content, to update the passcode in the config. This should also restart theskysocks
app.skysocks
app passcode inintegration/proxy/nodeA.json
file is changed totest
.NodeA
pane intmux
and make sure that no error happened while restartingskysocks
.ps aux | grep skysocks
and check ifskysocks
is running.1-6
forskysocks-client
PK (argument is namedpk
) on node031b80cd5773143a39d940dc0710b93dcccc262a85108018a7a95ab9af734f8055
#121
Changes:
How to test this PR:
skysocks
app config fromintegration/proxy/nodeA.json
tointegration/generic/nodeA.json
as the second app.make integration-run-generic
command of theskywire-services
repository.NodeA
pane intmux
.ps aux
should show them.PUT /api/nodes/024ec47420176680816e0406250e7156465e4531f5b26057c9f6297bb0303558c7/apps/skysocks
with{"passcode": "test"}
as content, to update the passcode in the config. This should also restart theskysocks
app.skysocks
, it also should present in the output ofps aux | grep skysocks
.