r/openstack • • Sep 08 '21

Problems with external access through Floating IPs

Hey there! I'm sure this is your favorite type of post - a lost Packstack user.

I've been working on setting up Openstack with RDO, but I've been running into a few problems.

The first, and probably most pressing issue is that I can't get external access inbound to my guest machines. I've noticed that the port that was created for my Neutron Router is added to br-ex as I would expect, but any other ports that are created after that - specifically with floating IP addresses - are not added to br-ex from there. So I can get outbound access with my Neutron Router, but I cannot access the guest instances from my external network. is there a configuration that needs to be done to get the allocation of floating IPs to trigger the addition of a port to br-ex? Or is it just a matter of allowing NAT to the address that has been taken?

The other problem that I'm now noticing is that I'm now getting a Missing value auth-url required for auth plugin password error - I've run the Openstack RC script that I've downloaded from the admin interface, but it still prompts with the same error. Not sure what that's about.

Any advice would be much appreciated! Even pointers as to which config files I can look at, where the log files for this issue might be, I'm all ears. I've checked all the spots that I would think of for logs - /var/log/neutron /var/log/openvswitch etc.

8 Upvotes

14 comments sorted by

3

u/keepah61 Sep 08 '21

For the auth url issue, did you run the open rc script or did you source it? You must source it.

3

u/theothertylaxguy Sep 08 '21

Spot on for this one - that fixed part 2 of the problem! Thank you for that!

2

u/slaweq Sep 08 '21

All router ports should be in the br-int. From there to br-ex (or any other physical bridge configured in bridge_mappings) packets should be send using OF rules installed by neutron. So in br-ex You should have only patch port which connects br-ex with br-int and physical interface which will be used to actually send packets to/from the physical network.

What backend do You use? Is it ML2/OVS or ML2/OVN or maybe something else?

1

u/theothertylaxguy Sep 09 '21 edited Sep 09 '21

Packstack will default to ML2/OVN, however I'm unsure if the parameter that I passed changed that default (--os-neutron-ovs-bridge-mappings=physnet:br-ex and --os-neutron-ovs-bridge-interfaces=br-ex:enp0s20u3) - since both specify the OVS connector. I didn't specify --os-neutron-l2-agent=openvswitch, so I'd think that it would stick to the default. I'm thinking I might reset and see if a little consistency helps, but do you think that would be a problem?

I'm also curious then what the additional port that pops up in the br-ex configuration is - it's been added by the packstack installer, is that just to connect br-ex and br-int? I assume so based on the options bit you can see.

output for context:

Bridge br-ex

    Port enp0s20u3

        Interface enp0s20u3

    Port patch-provnet-5394c3bc-1961-4329-96c7-3846d39e8639-to-br-int

        Interface patch-provnet-5394c3bc-1961-4329-96c7-3846d39e8639-to-br-int

            type: patch

            options: {peer=patch-br-int-to-provnet-5394c3bc-1961-4329-96c7-3846d39e8639}

    Port br-ex

        Interface br-ex

            type: internal

Bridge br-int

    fail_mode: secure

    datapath_type: system

    Port br-int

        Interface br-int

            type: internal

    Port tap341c70a0-60

        Interface tap341c70a0-60

    Port tapebd0f7f8-b8

        Interface tapebd0f7f8-b8

    Port patch-br-int-to-provnet-5394c3bc-1961-4329-96c7-3846d39e8639

        Interface patch-br-int-to-provnet-5394c3bc-1961-4329-96c7-3846d39e8639

            type: patch

            options: {peer=patch-provnet-5394c3bc-1961-4329-96c7-3846d39e8639-to-br-int}

ovs_version: "2.15.2"

1

u/slaweq Sep 09 '21

patch-provnet-5394c3bc-1961-4329-96c7-3846d39e8639-to-br-int

this port in br-ex is patch port which connects br-int and br-ex. It's normal and it is created by OVN automatically.

enp0s20u3

interface e.g. with tcpdump.

If You want to e.g. connect to such FIP from the node itself and if You are using some private subnet (like e.g. 10.0.0.0/24) for FIPs, You should add routing to those IPs through e.g. br-ex interface and then it should works fine.

1

u/theothertylaxguy Sep 15 '21

Alrighty, sorry for the delay on this one - when you say create the routing for that are you just meaning like a static route on my router for addresses in range x, hit openstack IP - or are you thinking a iptables command on the openstack host?

Sorry to ask what might be obvious, but I just want to make sure that I'm aware of exactly what you're saying here!

1

u/slaweq Sep 15 '21

Usually, when I install devstack (or packstack) locally and when I'm using e.g. 10.0.0.0/24 for my "public" network in that Openstack, I'm adding e.g. 10.0.0.250/24 (or any other IP from that subnet) to the br-ex interface. So that way Your system will know through which interface that subnet should be available and when packets will actually go the the br-ex, they should be send to the proper vm by OF rules configured in the bridges.

1

u/keepah61 Sep 08 '21

For the inbound access issue, did you create any security group rules? They are required

1

u/theothertylaxguy Sep 08 '21

Yeah, I had one created for full ingress and egress - Packstack seems to create this by default and I doublechecked to make sure that they were applied to everything I could apply it to.

1

u/keepah61 Sep 08 '21

Watch out for those default rules that also reference a remote security group. They do nothing afaict

1

u/theothertylaxguy Sep 08 '21

Yeah no dice on the creation of a fully open security group.

I also tried to delete the network and recreate just for testing purposes and it looks like I've not bricked my outbound access as well. Very curious what could have changed, since I followed my documented steps that worked the first time.

looks like the port is still there, but it's not getting access any longer - hm :\

2

u/slaweq Sep 08 '21

Those rules are not "do nothing". They are allowing ingress traffic from other ports in the same Security Group :)

1

u/keepah61 Sep 09 '21

Ahh, so they only apply to traffic between 2 VMs in the same project? At least now I know why they exist.

1

u/slaweq Sep 14 '21

Not exactly in same project - it may sometimes happen that You have SG shared between projects and vms from different project will use it. But generally in most cases Your statement is correct :)

BTW. Such SGs with rules which refers to the remote_group_id aren't scale well in Neutron so if You don't need them, it's better to remove them and use rules with CIDRs instead.