Skip to content

Conversation

@cgoncalves
Copy link
Contributor

Conflict in go-controller/pkg/kubevirt/pod.go coming from 3e07236

$ git cherry-pick -x cc15dc1c0b87dcd98e2c8eb48fe06080aede552a 
Auto-merging go-controller/pkg/kubevirt/pod.go
CONFLICT (content): Merge conflict in go-controller/pkg/kubevirt/pod.go
Auto-merging test/e2e/egressip.go
Auto-merging test/e2e/util.go
error: could not apply cc15dc1c0... Fix GARP sending 0.0.0.0 due to incorrect IPv4 byte extraction
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config set advice.mergeConflict false"

$ git diff
diff --cc go-controller/pkg/kubevirt/pod.go
index 8cde9d713,3e423744f..000000000
--- a/go-controller/pkg/kubevirt/pod.go
+++ b/go-controller/pkg/kubevirt/pod.go
@@@ -532,7 -547,13 +532,17 @@@ func (r *DefaultGatewayReconciler) Reco
                if gwIP == nil {
                        continue
                }
++<<<<<<< HEAD
 +              garp := util.GARP{IP: gwIP, MAC: &lrpMAC}
++=======
+               if config.Layer2UsesTransitRouter {
+                       gwMAC = util.IPAddrToHWAddr(gwIP)
+               }
+               garp, err := util.NewGARP(gwIP, &gwMAC)
+               if err != nil {
+                       return fmt.Errorf("failed to create GARP for gateway IP %s: %w", gwIP, err)
+               }
++>>>>>>> cc15dc1c0 (Fix GARP sending 0.0.0.0 due to incorrect IPv4 byte extraction)
                if err := util.BroadcastGARP(r.interfaceName, garp); err != nil {
                        return err
                }

net.ParseIP() returns 16-byte IPv4-mapped IPv6 format where IPv4 bytes
are at the END, not beginning. [4]byte(garp.IP) took wrong bytes.

Fixed by calling To4() before, forcing validated creation via
NewGARP(). Interface prevents bypassing extracting the correct IPv4 address.

Signed-off-by: Patryk Diak <[email protected]>
(cherry picked from commit cc15dc1)

Conflicts:
	go-controller/pkg/kubevirt/pod.go
IPv6 equivalent of GARP functionality for EgressIP failover. Sends
unsolicited NAs when IPv6 addresses are added to secondary host interfaces.

Signed-off-by: Patryk Diak <[email protected]>
(cherry picked from commit 9eb1617)
@openshift-ci-robot openshift-ci-robot added jira/severity-critical Referenced Jira bug's severity is critical for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Nov 19, 2025
@openshift-ci-robot
Copy link
Contributor

@cgoncalves: This pull request references Jira Issue OCPBUGS-65618, which is invalid:

  • expected dependent Jira Issue OCPBUGS-61285 to be in one of the following states: VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA), but it is MODIFIED instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Conflict in go-controller/pkg/kubevirt/pod.go coming from 3e07236

$ git cherry-pick -x cc15dc1c0b87dcd98e2c8eb48fe06080aede552a 
Auto-merging go-controller/pkg/kubevirt/pod.go
CONFLICT (content): Merge conflict in go-controller/pkg/kubevirt/pod.go
Auto-merging test/e2e/egressip.go
Auto-merging test/e2e/util.go
error: could not apply cc15dc1c0... Fix GARP sending 0.0.0.0 due to incorrect IPv4 byte extraction
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config set advice.mergeConflict false"

$ git diff
diff --cc go-controller/pkg/kubevirt/pod.go
index 8cde9d713,3e423744f..000000000
--- a/go-controller/pkg/kubevirt/pod.go
+++ b/go-controller/pkg/kubevirt/pod.go
@@@ -532,7 -547,13 +532,17 @@@ func (r *DefaultGatewayReconciler) Reco
               if gwIP == nil {
                       continue
               }
++<<<<<<< HEAD
+              garp := util.GARP{IP: gwIP, MAC: &lrpMAC}
++=======
+               if config.Layer2UsesTransitRouter {
+                       gwMAC = util.IPAddrToHWAddr(gwIP)
+               }
+               garp, err := util.NewGARP(gwIP, &gwMAC)
+               if err != nil {
+                       return fmt.Errorf("failed to create GARP for gateway IP %s: %w", gwIP, err)
+               }
++>>>>>>> cc15dc1c0 (Fix GARP sending 0.0.0.0 due to incorrect IPv4 byte extraction)
               if err := util.BroadcastGARP(r.interfaceName, garp); err != nil {
                       return err
               }

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.

@cgoncalves
Copy link
Contributor Author

/retest-required

@huiran0826
Copy link

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Nov 20, 2025
@openshift-ci-robot
Copy link
Contributor

@huiran0826: This pull request references Jira Issue OCPBUGS-65618, which is valid.

7 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.20.z) matches configured target version for branch (4.20.z)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)
  • release note text is set and does not match the template
  • dependent bug Jira Issue OCPBUGS-61285 is in the state Verified, which is one of the valid states (VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA))
  • dependent Jira Issue OCPBUGS-61285 targets the "4.21.0" version, which is one of the valid target versions: 4.21.0
  • bug has dependents

Requesting review from QA contact:
/cc @huiran0826

In response to this:

/jira refresh

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 openshift-ci bot requested a review from huiran0826 November 20, 2025 05:42
@anuragthehatter
Copy link

/verified by @anuragthehatter

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Nov 20, 2025
@openshift-ci-robot
Copy link
Contributor

@anuragthehatter: This PR has been marked as verified by @anuragthehatter.

In response to this:

/verified by @anuragthehatter

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.

@anuragthehatter
Copy link

/test e2e-aws-ovn-local-gateway

@anuragthehatter
Copy link

/test e2e-aws-ovn-windows

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 20, 2025

@cgoncalves: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/security 6ea54c7 link false /test security

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.

@kyrtapz
Copy link
Contributor

kyrtapz commented Nov 24, 2025

/lgtm
/label backport-risk-assessed
/override ci/prow/lint

@openshift-ci openshift-ci bot added the backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. label Nov 24, 2025
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 24, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 24, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cgoncalves, kyrtapz

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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 24, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 24, 2025

@kyrtapz: Overrode contexts on behalf of kyrtapz: ci/prow/lint

In response to this:

/lgtm
/label backport-risk-assessed
/override ci/prow/lint

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.

@kyrtapz
Copy link
Contributor

kyrtapz commented Nov 24, 2025

https://issues.redhat.com/browse/OCPBUGS-65903
/override ci/prow/e2e-aws-ovn-windows

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 24, 2025

@kyrtapz: Overrode contexts on behalf of kyrtapz: ci/prow/e2e-aws-ovn-windows

In response to this:

https://issues.redhat.com/browse/OCPBUGS-65903
/override ci/prow/e2e-aws-ovn-windows

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.

@openshift-merge-bot openshift-merge-bot bot merged commit 60e7759 into openshift:release-4.20 Nov 24, 2025
28 of 29 checks passed
@openshift-ci-robot
Copy link
Contributor

@cgoncalves: Jira Issue Verification Checks: Jira Issue OCPBUGS-65618
✔️ This pull request was pre-merge verified.
✔️ All associated pull requests have merged.
✔️ All associated, merged pull requests were pre-merge verified.

Jira Issue OCPBUGS-65618 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓

In response to this:

Conflict in go-controller/pkg/kubevirt/pod.go coming from 3e07236

$ git cherry-pick -x cc15dc1c0b87dcd98e2c8eb48fe06080aede552a 
Auto-merging go-controller/pkg/kubevirt/pod.go
CONFLICT (content): Merge conflict in go-controller/pkg/kubevirt/pod.go
Auto-merging test/e2e/egressip.go
Auto-merging test/e2e/util.go
error: could not apply cc15dc1c0... Fix GARP sending 0.0.0.0 due to incorrect IPv4 byte extraction
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config set advice.mergeConflict false"

$ git diff
diff --cc go-controller/pkg/kubevirt/pod.go
index 8cde9d713,3e423744f..000000000
--- a/go-controller/pkg/kubevirt/pod.go
+++ b/go-controller/pkg/kubevirt/pod.go
@@@ -532,7 -547,13 +532,17 @@@ func (r *DefaultGatewayReconciler) Reco
               if gwIP == nil {
                       continue
               }
++<<<<<<< HEAD
+              garp := util.GARP{IP: gwIP, MAC: &lrpMAC}
++=======
+               if config.Layer2UsesTransitRouter {
+                       gwMAC = util.IPAddrToHWAddr(gwIP)
+               }
+               garp, err := util.NewGARP(gwIP, &gwMAC)
+               if err != nil {
+                       return fmt.Errorf("failed to create GARP for gateway IP %s: %w", gwIP, err)
+               }
++>>>>>>> cc15dc1c0 (Fix GARP sending 0.0.0.0 due to incorrect IPv4 byte extraction)
               if err := util.BroadcastGARP(r.interfaceName, garp); err != nil {
                       return err
               }

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.

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. backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. jira/severity-critical Referenced Jira bug's severity is critical for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. 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. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.