cloudbridge icon indicating copy to clipboard operation
cloudbridge copied to clipboard

Gateway detection problem in JS2 from router quota 1

Open almahmoud opened this issue 2 years ago • 1 comments

We are currently using a dummy router to check for FIP connectivity. This particularly comes up when trying to get a gateway from a network eg: list(net.gateways)[0]. This method won't work well in JS2 because of the new default quota of 1 on routers (https://docs.jetstream-cloud.org/general/policies/#router-quota-policies), making the list gateways method not work unless you have 0 routers. https://github.com/CloudVE/cloudbridge/blob/d51933a28677e4f2cc2c077fed036c7851766145/cloudbridge/providers/openstack/services.py#L1236

@nuwang I am wondering if the last comment in the bug report https://bugs.launchpad.net/neutron/+bug/1743480 can be used instead? I.e. a python equivalent of the CLI openstack network list --external --no-share?

almahmoud avatar Aug 28 '22 21:08 almahmoud

@almahmoud It sure looks like we just remained with the original workaround and never got around to trying the equivalent of openstack network list --external --no-share. The workaround is truly horrendous, and if we can replace it, that would be great. Do you know what the equivalent API call would be? Perhaps we can trace the HTTP calls to find out?

nuwang avatar Aug 29 '22 19:08 nuwang

@nuwang I believe this is all we need to return the external non-shared network as a gateway https://github.com/CloudVE/cloudbridge/pull/307

almahmoud avatar Sep 06 '22 17:09 almahmoud

hey @almahmoud I want to work on this please accept my contribution to this issue.

vineetjain27 avatar Sep 07 '22 05:09 vineetjain27

Hey @vineetjain27, thank you for your interest, but I’ve already resolved this issue as it was time sensitive for internal use. We’d welcome contributions for some of the other open issues though!

almahmoud avatar Sep 07 '22 22:09 almahmoud