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.
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
Hello,
In addition to the other things that @AbdelS has tried, I have gone a little further because using OVHcloud Control Panel does not allow assigning the same vlan number to a network in different regions, the documentation said that's the only requeriment to interconnect different regions, so I have searched deep in the documentation and ended up trying a couple of openstack guides…
The last steps I've done was to install vlan package in two servers one in UK1 and the other in GRA11, with IP of the subnet configured in each vlan interface:
Serv1 - UK1 - vLAN: ininterface ens7.23 10.23.0.1/16
Serv2 - GRA11 -vLAN: interface ens7.23 10.23.2.1/16
One of the things that I have noticed is that all the networks created (no matther if was created with openstack or with the OVHClous control panel) have the "shared" property disabled, and if you try to modify this value of if you try to create new network or new subnet with the tag '–shared' I get this error:
Error while executing command: ForbiddenException: 403, (rule:create_network and rule:create_network:shared) is disallowed by policy
Has anyone really been able to connect 2 instances in different regions?
Thank you everybody for taking your time to help us, regards
Hello @DarioQ,
I finally found a solution by using the same subnet on 2 regions.
First , the existing network must be extended to the other region by OVH API POST /cloud/project/{serviceName}/network/private/{networkId}/region.
Then, create the same subnet on the second region by api POST /cloud/project/{serviceName}/network/private/{networkId}/subnet
(same start/end IP and network as region 1)
Resutl of my GET /cloud/project/{serviceName}/network/private/{networkId}/subnet
[
-{
cidr: "192.168.0.0/24"
-ipPools: [
-{
start: "192.168.0.2"
end: "192.168.0.254"
region: "UK1"
dhcp: false
network: "192.168.0.0/24"
}
]
gatewayIp: "192.168.0.1"
}
-{
cidr: "192.168.0.0/24"
-ipPools: [
-{
start: "192.168.0.2"
end: "192.168.0.254"
region: "GRA3"
dhcp: false
network: "192.168.0.0/24"
}
]
gatewayIp: "192.168.0.1"
}
-{
cidr: "192.168.0.0/24"
-ipPools: [
-{
start: "192.168.0.2"
end: "192.168.0.254"
region: "GRA9"
dhcp: false
network: "192.168.0.0/24"
}
]
gatewayIp: "192.168.0.1"
}
]
Hope this will help you.
Hello,
I saw something that make me doubt, in your network details you had confgured 192.168.0.1 as gatewayIP, this means you purchased a gateway instence per region? Or it is only for configuration purposes?
Regards