Two Azure confidential VMs from two datacenters cannot establish node channel #2632
-
Hello, CCF Team, thank you for this excellent open-source project. Log from the East US node: Log from the Canada Central node: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @MingyuanGao, You are setting up the node-to-node channels to listen on a private IP (10.2.1.4), which will only be visible to machines on the same vnet. Vnets cannot (as far as I know) span regions, they are scoped inside a resource group which is also only ever in a single region. The initial join is an RPC, and therefore happens over the RPC interface where a public (advertised) and private distinction can be made. That is why it's working. So you either need to set up some routing between the vnets you have set up across regions, or peer them so they effectively function as one: https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-peering-overview If you go down this route, you may find the following Azure CLI recipe helpful (adjust regions etc as necessary, don't forget to peer both ways each time):
I hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer. "vnet peering" solved this issue. |
Beta Was this translation helpful? Give feedback.
Hi @MingyuanGao,
You are setting up the node-to-node channels to listen on a private IP (10.2.1.4), which will only be visible to machines on the same vnet. Vnets cannot (as far as I know) span regions, they are scoped inside a resource group which is also only ever in a single region. The initial join is an RPC, and therefore happens over the RPC interface where a public (advertised) and private distinction can be made. That is why it's working.
So you either need to set up some routing between the vnets you have set up across regions, or peer them so they effectively function as one: https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-peering-overview
If you go down t…