Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tobiko] Add tcpdump and prepare to run containers as root #131

Conversation

eduolivares
Copy link
Contributor

Some tobiko tests capture traffic on the tobiko container where tests are executed using tcpdump.

For that reason:

  • tcpdump needs to be added to the list of packages that need to be installed on the tobiko image.
  • the container will need to be executed with root permissions, so the run_tobiko.sh script needs to manage properly the mounted files and directories.

eduolivares added a commit to eduolivares/ci-framework that referenced this pull request Feb 7, 2024
Running the tobiko container as rootless is not possible because some
tobiko tests need to capture traffic on an interface from the test
machine, i.e. from the tobiko container.

Depends-On: openstack-k8s-operators/tcib#131
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/894a6f63f85749e48051a64b4688828c

✔️ tcib-build-containers SUCCESS in 1h 41m 58s
tcib-crc-podified-edpm-baremetal RETRY_LIMIT in 12m 57s
tcib-podified-multinode-edpm-deployment-crc FAILURE in 1h 00m 53s

@lpiwowar
Copy link
Contributor

lpiwowar commented Feb 8, 2024

From the standpoint of the test-operator this change is backwards compatible and the tests that were working previously with the test-operator didn't break. So LGTM!
I'm going to test more thoroughly:

neutron -- tobiko/tests/scenario/neutron/test_qos.py::QoSNetworkTest::test_ping_dscp

Some tobiko tests capture traffic on the tobiko container where tests
are executed using tcpdump.

For that reason:
- tcpdump needs to be added to the list of packages that need to be
  installed on the tobiko image.
- the container will need to be executed with root permissions, so the
  run_tobiko.sh script needs to manage properly the mounted files and
  directories.
@viroel
Copy link
Contributor

viroel commented Feb 14, 2024

/lgtm

@viroel
Copy link
Contributor

viroel commented Feb 14, 2024

/assign @raukadah

@raukadah
Copy link
Collaborator

recheck

Copy link
Contributor

openshift-ci bot commented Feb 15, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: eduolivares, raukadah

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 4375bf0 into openstack-k8s-operators:main Feb 15, 2024
5 checks passed
@eduolivares eduolivares deleted the add-tcpdump2tobiko branch February 16, 2024 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants