threefoldtech / rmb-rs

RMB implementation in rust
Apache License 2.0
3 stars 1 forks source link

devnet: running a second rmb instance, breaks the first #177

Closed coesensbert closed 7 months ago

coesensbert commented 7 months ago

https://github.com/threefoldtech/grid_deployment/tree/development/docker-compose/devnet

Upon running a second instance of the grid backend (complete stack, including rmb) I notice breaking relay.dev.grid.tf .

What happens

Then

Upon restarting the k8s gridproxy pod, https://dashboard.dev.grid.tf/explorer/nodes workload details load again. But workload details stop loading at https://dashboard.bknd1.dev.ava.tf/explorer/nodes (with same error in gridproxy, but the one serving ava.tf)

image

Reproducible every time

muhamadazmy commented 7 months ago

I did some debugging and find out the new relay at relay.bknd1.dev.grid.tf can't reach the internet completely (can't even ping google or 1.1.1.1)

This makes it impossible for that relay to do federation correctly and forward the message to the proper relay.

I will leave the issue open until resolved

coesensbert commented 7 months ago

ok so recently removed the static networking and started working with hostnames, this made docker deploy into the 192.168.0.0/16 range, which was not masqueraded by nftables, now it is:

  chain postrouting {
    type nat hook postrouting priority srcnat; policy accept;
    ip saddr 172.16.0.0/12 masquerade
    ip saddr 192.168.0.0/16 masquerade
    ip6 saddr 2001:db8:1::/64 masquerade
  }

image

coesensbert commented 7 months ago

both instances ran the same mnemonic, resolved