Repository navigation
Conversation
| [instance_id], port_name_suffix=PEER_PORT_NAME_SUFFIX) | ||
| port = neutron_client.list_ports( | ||
| device_id=instance_id, | ||
| network_id=undercloud_subnet["network_id"])["ports"][0] |
There was a problem hiding this comment.
not really critical problem but do we have option that searching by name like selecting the exact one?
ports[0] seems not rigid
There was a problem hiding this comment.
I would agree that if we have more filters, like the name, we should use them.
brianphaley
left a comment
There was a problem hiding this comment.
I think since there are two similar comments we should look into trying to improve the code if possible.
| external_cidr = ipaddress.ip_network(network_config["external_net_cidr"]) | ||
| undercloud_subnet = next( | ||
| (subnet | ||
| for subnet in neutron_client.list_subnets(ip_version=4)["subnets"] |
There was a problem hiding this comment.
nit: I think list_subnets() can take the subnet cidr as an argument, at least the neutron API doc says it can. So not sure if you should add 'cidr=str(external_cidr)' here. The result should be the same, just will be filtered in neutron code.
There was a problem hiding this comment.
So are we punting this to a follow-on change?
There was a problem hiding this comment.
Good catch I updated. Just making sure the functests all still run fine.
| [instance_id], port_name_suffix=PEER_PORT_NAME_SUFFIX) | ||
| port = neutron_client.list_ports( | ||
| device_id=instance_id, | ||
| network_id=undercloud_subnet["network_id"])["ports"][0] |
There was a problem hiding this comment.
I would agree that if we have more filters, like the name, we should use them.
* update:
- charmcraft.yaml for v3
- tox.ini to use py3.12 by default
- test-requirements.in to use zaza for juju3
- update test bundles to work with charmcraft v3
- pin dnspython<2.9 to avoid pulling in rustup
- functional tests to noble-caracal and noble-caracal-ovn
* generate:
- merged-requirements-py312.txt
- test-requirements-py312.txt
* add:
- update-requirements env to tox.ini and src/tox.ini
- add noble-caracal-ovn.yaml test bundle
- disable distributed fip on neutron ovn plugin (network toplogy in
the functests can lead to failures otherwise)
Change-Id: I3a22932ae2285b1012639701b49c18f25b147c51
Func-Test-PR: openstack-charmers/zaza-openstack-tests#1446
Assisted-By: opencode (deepseek/deepseek-v4.1-flash; openrouter)
Signed-off-by: Zachary Raines <zachary.raines@canonical.com>
* Update charm-neutron-dynamic-routing from branch 'master'
to 2473af6aa834ce4fab300f778545f24c2f48fcd6
- Cleanup Master CI
* update:
- charmcraft.yaml for v3
- tox.ini to use py3.12 by default
- test-requirements.in to use zaza for juju3
- update test bundles to work with charmcraft v3
- pin dnspython<2.9 to avoid pulling in rustup
- functional tests to noble-caracal and noble-caracal-ovn
* generate:
- merged-requirements-py312.txt
- test-requirements-py312.txt
* add:
- update-requirements env to tox.ini and src/tox.ini
- add noble-caracal-ovn.yaml test bundle
- disable distributed fip on neutron ovn plugin (network toplogy in
the functests can lead to failures otherwise)
Change-Id: I3a22932ae2285b1012639701b49c18f25b147c51
Func-Test-PR: openstack-charmers/zaza-openstack-tests#1446
Assisted-By: opencode (deepseek/deepseek-v4.1-flash; openrouter)
Signed-off-by: Zachary Raines <zachary.raines@canonical.com>
36325b2 to
d90c8be
Compare
Neutron Dynamic Routing advertises tenant prefixes with a next hop on the external network. By default the BGP peer unit only has the port created by juju when deploying the model. If this is on a different L2 segment, it can make the advertised routes unreachable from the peer unit and cause dragent tests to fail. Give the BGP peer an address from the undercloud subnet that bridges to the external network. The next hop is then on-link, so floating IP traffic works. Assisted-By: opencode (deepseek/deepseek-v4.1-flash-1017; openrouter) Signed-off-by: Zachary Raines <zachary.raines@canonical.com>
d90c8be to
40a511c
Compare
Neutron Dynamic Routing advertises tenant prefixes with a next hop on
the external network. By default the BGP peer unit only has the port
created by juju when deploying the model. If this is on a different L2
segment, it can make the advertised routes unreachable from the peer
unit and cause dragent tests to fail.
Give the BGP peer an address from the undercloud subnet that bridges to
the external network. The next hop is then on-link, so floating IP
traffic works.