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

NETOBSERV-1756 Allow filtering based on TCPFlags values #554

Merged
merged 2 commits into from
Aug 6, 2024

Conversation

msherif1234
Copy link
Contributor

@msherif1234 msherif1234 commented Jul 10, 2024

Description

Allow filtering based on TCP flags

Dependencies

netobserv/netobserv-ebpf-agent#367
netobserv/network-observability-operator#710

Checklist

If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.

  • Is this PR backed with a JIRA ticket? If so, make sure it is written as a title prefix (in general, PRs affecting the NetObserv/Network Observability product should be backed with a JIRA ticket - especially if they bring user facing changes).
  • Does this PR require product documentation?
    • If so, make sure the JIRA epic is labelled with "documentation" and provides a description relevant for doc writers, such as use cases or scenarios. Any required step to activate or configure the feature should be documented there, such as new CRD knobs.
  • Does this PR require a product release notes entry?
    • If so, fill in "Release Note Text" in the JIRA.
  • Is there anything else the QE team should know before testing? E.g: configuration changes, environment setup, etc.
    • If so, make sure it is described in the JIRA ticket.
  • QE requirements (check 1 from the list):
    • Standard QE validation, with pre-merge tests unless stated otherwise.
    • Regression tests only (e.g. refactoring with no user-facing change).
    • No QE (e.g. trivial change with high reviewer's confidence, or per agreement with the QE team).

@msherif1234
Copy link
Contributor Author

/ok-to-test

@openshift-ci openshift-ci bot added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Jul 10, 2024
Copy link

New image:
quay.io/netobserv/network-observability-console-plugin:7e21acf

It will expire after two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=7e21acf make set-plugin-image

Copy link

codecov bot commented Jul 10, 2024

Codecov Report

Attention: Patch coverage is 42.30769% with 15 lines in your changes missing coverage. Please review.

Project coverage is 56.31%. Comparing base (1431348) to head (c5dc2a0).
Report is 6 commits behind head on main.

Files Patch % Lines
web/src/components/drawer/record/record-field.tsx 12.50% 7 Missing ⚠️
web/src/utils/filter-options.ts 40.00% 3 Missing ⚠️
web/src/utils/tcp_flags.ts 66.66% 3 Missing ⚠️
web/src/utils/filter-definitions.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #554      +/-   ##
==========================================
- Coverage   56.34%   56.31%   -0.03%     
==========================================
  Files         189      190       +1     
  Lines        9155     9181      +26     
  Branches     1186     1191       +5     
==========================================
+ Hits         5158     5170      +12     
- Misses       3626     3641      +15     
+ Partials      371      370       -1     
Flag Coverage Δ
uitests 57.64% <40.00%> (-0.05%) ⬇️
unittests 52.54% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
pkg/model/fields/fields.go 88.88% <100.00%> (ø)
web/src/utils/columns.ts 55.09% <100.00%> (+0.20%) ⬆️
web/src/utils/filter-definitions.ts 74.09% <0.00%> (-0.91%) ⬇️
web/src/utils/filter-options.ts 42.20% <40.00%> (-0.11%) ⬇️
web/src/utils/tcp_flags.ts 66.66% <66.66%> (ø)
web/src/components/drawer/record/record-field.tsx 51.14% <12.50%> (-1.87%) ⬇️

... and 2 files with indirect coverage changes

Copy link
Contributor

@jpinsonneau jpinsonneau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @msherif1234 !

@openshift-ci openshift-ci bot added the lgtm label Jul 11, 2024
@openshift-ci openshift-ci bot removed the lgtm label Jul 11, 2024
@github-actions github-actions bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Jul 11, 2024
@msherif1234
Copy link
Contributor Author

/ok-to-test

@openshift-ci openshift-ci bot added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Jul 11, 2024
Copy link

New image:
quay.io/netobserv/network-observability-console-plugin:46e1fe5

It will expire after two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=46e1fe5 make set-plugin-image

@github-actions github-actions bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Jul 11, 2024
@msherif1234
Copy link
Contributor Author

image

@msherif1234
Copy link
Contributor Author

image

@msherif1234
Copy link
Contributor Author

/ok-to-test

@openshift-ci openshift-ci bot added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Jul 11, 2024
Copy link

New image:
quay.io/netobserv/network-observability-console-plugin:65bbf5e

It will expire after two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=65bbf5e make set-plugin-image

@jpinsonneau jpinsonneau changed the title Allow filtering based on TCPFlags values NETOBSERV-1756 Allow filtering based on TCPFlags values Jul 11, 2024
Copy link
Contributor

@jpinsonneau jpinsonneau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @msherif1234 !

@openshift-ci openshift-ci bot added lgtm and removed lgtm labels Jul 19, 2024
@github-actions github-actions bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Jul 23, 2024
Signed-off-by: Mohamed Mahmoud <mmahmoud@redhat.com>
@github-actions github-actions bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Jul 23, 2024
@msherif1234
Copy link
Contributor Author

/ok-to-test

@openshift-ci openshift-ci bot added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Jul 23, 2024
Copy link

New image:
quay.io/netobserv/network-observability-console-plugin:52e04b1

It will expire after two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=52e04b1 make set-plugin-image

@github-actions github-actions bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Jul 23, 2024
@msherif1234
Copy link
Contributor Author

/ok-to-test

@openshift-ci openshift-ci bot added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Jul 23, 2024
Copy link

New image:
quay.io/netobserv/network-observability-console-plugin:2f01b4d

It will expire after two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=2f01b4d make set-plugin-image

@github-actions github-actions bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Jul 23, 2024
Copy link
Contributor

@jpinsonneau jpinsonneau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the display part ! LGTM

@openshift-ci openshift-ci bot added the lgtm label Jul 23, 2024
case ColumnsId.tcpflags: {
let child = emptyText();
if (typeof value === 'number' && !isNaN(value)) {
const serviceClassName = gettcpFlagsServiceClassName(value);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I read correctly, this wouldn't decompose the OR-combination, e.g. we can have 3 that is 1+2 = FIN+SYN

Copy link
Contributor Author

@msherif1234 msherif1234 Jul 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ebpf agent doesn't generate this combo here is what we expect to see in the flags field today https://github.com/netobserv/netobserv-ebpf-agent/blob/main/bpf/utils.h#L11
but we also can or the flags https://github.com/netobserv/netobserv-ebpf-agent/blob/main/bpf/flows.c#L95, do we need to generate all possible combos ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the PR to bring in more combos but not the entire list as there some flags with less interest to decode but if I am wrong and we ended up we need to decode all possible combo I think we can revisit and the missing ones ?

Signed-off-by: Mohamed Mahmoud <mmahmoud@redhat.com>
Copy link

openshift-ci bot commented Jul 26, 2024

New changes are detected. LGTM label has been removed.

@msherif1234 msherif1234 requested a review from jotak July 26, 2024 12:11
@msherif1234
Copy link
Contributor Author

/ok-to-test

@openshift-ci openshift-ci bot added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Jul 30, 2024
Copy link

New image:
quay.io/netobserv/network-observability-console-plugin:a438e8c

It will expire after two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=a438e8c make set-plugin-image

@msherif1234
Copy link
Contributor Author

/approve

Copy link

openshift-ci bot commented Aug 6, 2024

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: msherif1234

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 ce7067e into netobserv:main Aug 6, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm ok-to-test To set manually when a PR is safe to test. Triggers image build on PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants