Skip to content

Conversation

vydrazde
Copy link
Contributor

@vydrazde vydrazde commented Aug 6, 2025

Closes #3482

Links to the line numbers/files in the OpenStack source code that support the
code in this PR:

https://github.com/openstack/tap-as-a-service/blob/7984544610ed949414967cfe950f18336fa21880/neutron_taas/db/tap_mirror_db.py#L82
https://github.com/openstack/tap-as-a-service/blob/7acc6654ecdffafb22e6ef9ad64606e0c902a722/neutron_taas/services/taas/drivers/linux/ovs_taas.py#L584

I am not sure how to best deal with the Directions. According to docs and unit tests the values of the Directions should be integers. However, using the python taas client with python openstack client from bash sets the values as strings. From my testing the taas accepts both int and str as long as the str can be converted to int and saves the str unchanged (eq '002' is valid and returned as '002'). To not fail when listing or showing Tap Mirrors created by the python client I set the type as str, but I am open to suggestions.

@github-actions github-actions bot added edit:networking This PR updates networking code semver:minor Backwards-compatible change backport-v2 This PR will be backported to v2 labels Aug 6, 2025
@coveralls
Copy link

coveralls commented Aug 6, 2025

Coverage Status

coverage: 63.73% (-0.008%) from 63.738%
when pulling 2c6c60b on vydrazde:taas-tapmirrors-create
into 671161f on gophercloud:main.

@github-actions github-actions bot added edit:actions This PR updates GitHub Actions code edit:testinfra This PR updates testing infrastructure code labels Aug 7, 2025
@vydrazde vydrazde changed the title Add networking taas tapmirror create Add networking taas tapmirror suite Aug 7, 2025
@kayrus kayrus force-pushed the taas-tapmirrors-create branch 2 times, most recently from 428fb45 to 8fd72d2 Compare August 8, 2025 09:57
@kayrus
Copy link
Contributor

kayrus commented Aug 8, 2025

we can not enable this service in devstack. taap requires q-agt/neutron-agt, while:

lib/neutron_plugins/ovn_agent:ovn_sanity_check:365 : die 365 'The q-agt/neutron-agt service must be disabled with OVN.'

@kayrus kayrus force-pushed the taas-tapmirrors-create branch from 8fd72d2 to bc9ccfa Compare August 8, 2025 10:20
@kayrus
Copy link
Contributor

kayrus commented Aug 8, 2025

@vydrazde have you tried to run functional tests in your environment?

@vydrazde
Copy link
Contributor Author

vydrazde commented Aug 8, 2025

@kayrus I have run the acceptance tests, I wouldn't push them if they didn't pass.

kayrus
kayrus previously approved these changes Aug 8, 2025
@kayrus
Copy link
Contributor

kayrus commented Aug 8, 2025

@EmilienM @stephenfin @pierreprinetti please review

@stephenfin
Copy link
Contributor

On the assumption that the new tests have been run locally. We likely want to add a new functional-networking-alt or functional-networking-ovs job for these down the line.

@stephenfin stephenfin merged commit 46ad0a9 into gophercloud:main Aug 11, 2025
16 checks passed
@vydrazde vydrazde deleted the taas-tapmirrors-create branch August 12, 2025 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v2 This PR will be backported to v2 edit:actions This PR updates GitHub Actions code edit:networking This PR updates networking code edit:testinfra This PR updates testing infrastructure code semver:minor Backwards-compatible change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support of Networking TaaS TapMirrors
4 participants