gravitl / netmaker

Netmaker makes networks with WireGuard. Netmaker automates fast, secure, and distributed virtual networks.
https://netmaker.io
Other
9.5k stars 552 forks source link

Server/Client install script fails with dual mac address #139

Closed MikePadge closed 2 years ago

MikePadge commented 3 years ago

When creating an access key to add the server as a client to itself And running the script output on the Netmaker client/server - the client install script attempts fails on:

Error installing: rpc error: code = Unknown desc = Key: 'Node.MacAddress' Error:Field validation for 'MacAddress' failed on the 'macaddress_unique' tag

This could be either due to failed cleanup install failure on the previous run; Where the cleanup occurs locally, but the mac address and initial connection attempt is not cleaned from the database?

or possibly the client just recognizing the servers mac address as its own, and does not liek

-- I re-ran it again, (I think I cleaned everything up before I did), and it failed with the doubled up macs again. So this does seem to be the server and client both claiming the same mac address? I could be wrong.

Note: I also deleted the key from the UI as well, before I created a new one for testing. I ran into the following issue.

so I decoded it, removed the "localNetwork" designation from the end, and changed the wan IP address to localhost:127.0.0.1, I tried both separately, re-encoded it and used it as the key in sudo curl netclient install command. This failed on the dual mac issue both attempts as well.

afeiszli commented 2 years ago

I'm going to put this as closed since we have changed the server client model since this was written, and the netmaker client is now automagically managed inside the container.