-
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
auto-peering visors to the hypervisor (skybian) #1309
Conversation
to test without using the default http endpoint for the public key (or any)
then invoke the visor as follows:
as you run this visor in the foreground, turn the (remote) hypervisor off and on to observe that the command string provided as an argument to the -l flag is executed on redial attempts to the hypervisor. To further test, one can edit the file to contain a different public key while this is happening, save the file, and it should then attempt to redial with the new public key. this needs to be made versatile enough to handle a list of remote hypervisor public keys. Ideally, the http endpoint would output the keys in the same format that they are read, to require minimal parsing. |
cmd/skywire-visor/commands/root.go
Outdated
} | ||
if autopeer { | ||
log.Infof("autopeering...") | ||
var hvkey string |
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.
Still left...
…plicit variable declaration
attempt to make visors re-peer to a new hypervisor when a new hypervisor is present at a predetermined static ip
Fixes #1312
this PR ports the existing auto-peering functionality from skybian to the skywire source code / binaries and attempts to extend this system to re-peer visors to the hypervisor when a connection is lost
testing requires a hypervisor running the following:
The srvpk endpoint may be used instead of the above command
run the visor from source as follows:
replace the ip address in the above command example with that of the running machine.