Skip to content

MGMT-20023: Route inventory deleted when route without next hop interface #999

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

Merged
merged 1 commit into from
Jun 30, 2025

Conversation

rivkyrizel
Copy link
Contributor

@rivkyrizel rivkyrizel commented May 7, 2025

Before this fix, if a node had a special route like route add -host 64.1.2.3 reject, the agent failed to get the route’s link name and stopped collecting any routes.
This resulted in an empty route list in the inventory and caused the host to fail validation.
Now, if one route causes an error, we log it and skip it. so the rest of the routes are still collected correctly.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label May 7, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented May 7, 2025

@rivkyrizel: This pull request references MGMT-20023 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.20.0" version, but no target version was set.

In response to this:

Before this fix, if a node had a special route like route add -host 64.1.2.3 reject, the agent failed to get the route’s link name and stopped collecting any routes. This resulted in an empty route list in the inventory and caused the host to fail validation. Now, if one route causes an error, we log it and skip itץ
so the rest of the routes are still collected correctly.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@rivkyrizel rivkyrizel marked this pull request as draft May 7, 2025 12:56
@openshift-ci openshift-ci bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 7, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented May 7, 2025

@rivkyrizel: This pull request references MGMT-20023 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.20.0" version, but no target version was set.

In response to this:

Before this fix, if a node had a special route like route add -host 64.1.2.3 reject, the agent failed to get the route’s link name and stopped collecting any routes. This resulted in an empty route list in the inventory and caused the host to fail validation. Now, if one route causes an error, we log it and skip itץ
so the rest of the routes are still collected correctly.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot
Copy link

openshift-ci-robot commented May 12, 2025

@rivkyrizel: This pull request references MGMT-20023 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.20.0" version, but no target version was set.

In response to this:

Before this fix, if a node had a special route like route add -host 64.1.2.3 reject, the agent failed to get the route’s link name and stopped collecting any routes. This resulted in an empty route list in the inventory and caused the host to fail validation. Now, if one route causes an error, we log it and skip it.
so the rest of the routes are still collected correctly.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot
Copy link

openshift-ci-robot commented May 12, 2025

@rivkyrizel: This pull request references MGMT-20023 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.20.0" version, but no target version was set.

In response to this:

Before this fix, if a node had a special route like route add -host 64.1.2.3 reject, the agent failed to get the route’s link name and stopped collecting any routes.
This resulted in an empty route list in the inventory and caused the host to fail validation.
Now, if one route causes an error, we log it and skip it. so the rest of the routes are still collected correctly.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@rivkyrizel rivkyrizel marked this pull request as ready for review May 12, 2025 14:44
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 12, 2025
@rivkyrizel
Copy link
Contributor Author

/cc @eliorerz @gamli75

@openshift-ci openshift-ci bot requested review from eliorerz, gamli75 and tsorya May 12, 2025 14:46
@rivkyrizel
Copy link
Contributor Author

/uncc @jhernand @omertuc

@openshift-ci openshift-ci bot removed request for jhernand and omertuc May 12, 2025 14:47
Copy link

codecov bot commented May 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.17%. Comparing base (36de72b) to head (307b6e8).
Report is 6 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #999      +/-   ##
==========================================
- Coverage   60.21%   60.17%   -0.04%     
==========================================
  Files          75       75              
  Lines        4044     4050       +6     
==========================================
+ Hits         2435     2437       +2     
- Misses       1432     1437       +5     
+ Partials      177      176       -1     
Files with missing lines Coverage Δ
src/inventory/routes.go 57.14% <100.00%> (ø)

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@eliorerz eliorerz left a comment

Choose a reason for hiding this comment

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

Look good, I think that we might want to add a UT that check the case that was before (except error) and the case now (except pass)

Copy link
Contributor

@eliorerz eliorerz left a comment

Choose a reason for hiding this comment

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

LGTM

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 26, 2025
@openshift-ci-robot
Copy link

/test remaining-required

Scheduling tests matching the pipeline_run_if_changed parameter:
/test edge-e2e-ai-operator-ztp
/test edge-e2e-metal-assisted-4-19

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 26, 2025
@eliorerz
Copy link
Contributor

/test okd-scos-e2e-aws-ovn

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD d19761e and 2 for PR HEAD a165468 in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD d19761e and 2 for PR HEAD a165468 in total

2 similar comments
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD d19761e and 2 for PR HEAD a165468 in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD d19761e and 2 for PR HEAD a165468 in total

@rivkyrizel
Copy link
Contributor Author

/retest

1 similar comment
@rivkyrizel
Copy link
Contributor Author

/retest

@gamli75
Copy link
Contributor

gamli75 commented May 28, 2025

/override ci/prow/okd-scos-e2e-aws-ovn

Copy link

openshift-ci bot commented May 28, 2025

@gamli75: Overrode contexts on behalf of gamli75: ci/prow/okd-scos-e2e-aws-ovn

In response to this:

/override ci/prow/okd-scos-e2e-aws-ovn

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@gamli75
Copy link
Contributor

gamli75 commented May 28, 2025

/retest

3 similar comments
@rivkyrizel
Copy link
Contributor Author

/retest

@gamli75
Copy link
Contributor

gamli75 commented Jun 3, 2025

/retest

@rivkyrizel
Copy link
Contributor Author

/retest

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jun 18, 2025
Copy link
Contributor

@eliorerz eliorerz left a comment

Choose a reason for hiding this comment

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

LGTM

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 27, 2025
@openshift-ci-robot
Copy link

/test remaining-required

Scheduling tests matching the pipeline_run_if_changed parameter:
/test edge-e2e-ai-operator-ztp
/test edge-e2e-metal-assisted-4-19

Copy link

openshift-ci bot commented Jun 27, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: eliorerz, rivkyrizel

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-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD cbe413e and 2 for PR HEAD 307b6e8 in total

@rivkyrizel
Copy link
Contributor Author

/retest

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD cbe413e and 2 for PR HEAD 307b6e8 in total

Copy link

openshift-ci bot commented Jun 30, 2025

@rivkyrizel: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit 45967dc into openshift:master Jun 30, 2025
16 checks passed
@openshift-bot
Copy link
Contributor

[ART PR BUILD NOTIFIER]

Distgit: ose-agent-installer-node-agent
This PR has been included in build ose-agent-installer-node-agent-container-v4.20.0-202506301643.p0.g45967dc.assembly.stream.el9.
All builds following this will include this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants