How to connect 2 private subnets in different regions
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

How to connect 2 private subnets in different regions

by
AbdelS2
Created on 2023-04-11 08:54:57 (edited on 2024-09-04 14:22:56) in Public Cloud

Hello everyone,

I have two instances in two regions that I want to connect on a private network.
I have created the private network on the two regions and also created a different subnet on each region.
GRA3 192.168.0.0/24
UK1 192.168.1.0/24

Could someone help me to connect the two subnets in Horizon or via api so that an instance A on the GRA3 subnet can communicate with an instance B on the UK1 subnet ?

Thanks.


2 Replies ( Latest reply on 2023-06-11 13:36:13 by
DarioQ
)

Hello I have the exact same issue.
In addition to the other things that @AbdelS has tested, I have gone a little further and seeing that the web does not allow assigning the same vlan to a network in different regions, I have searched the documentation and ended up trying a couple of openstack guides...
Ending with the private interface of each server configured with the same vlan Id:

* UK1 - ens7.23 -> 10.23.0.1/16
* GRA11 - ens7.23 -> 10.23.2.1/16

One of the things that I have noticed is that all the networks created with the web interface or with openstack by default come out as 'SHARED: FALSE', also if I try to manually create a shared network or a shared subnet I get this error:

`·Error while executing command: ForbiddenException: 403, (rule:create_network and rule:create_network:shared) is disallowed by policy·`

Any help or suggestion will be welcome by both of us...

Thank you very much for your help and your time, regards