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

OCPBUGS-32946: Default to watch all interfaces and IPs for router lis… #3285

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

pacevedom
Copy link
Contributor

…tenAddress

During first boot MicroShift will start scanning all IP addresses in the host to setup the router load balancer service. When this happens, not all interfaces may have an IP yet, leaving them out until the next microshift restart.

By leaving the defaults empty we allow the IP address subscription handler to add anything that is not forbidden automatically. If this list is fixed with the IPs and interfaces that were present only when MicroShift started, we might miss out on some of hte listening IPs unless the user restarts.

Which issue(s) this PR addresses:

Closes #

…tenAddress

During first boot MicroShift will start scanning all IP addresses in the host to
setup the router load balancer service. When this happens, not all interfaces
may have an IP yet, leaving them out until the next microshift restart.

By leaving the defaults empty we allow the IP address subscription handler to add
anything that is not forbidden automatically. If this list is fixed with the IPs
and interfaces that were present only when MicroShift started, we might miss out
on some of hte listening IPs unless the user restarts.
@openshift-ci-robot openshift-ci-robot added jira/severity-important Referenced Jira bug's severity is important 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 Apr 25, 2024
@openshift-ci-robot
Copy link

@pacevedom: This pull request references Jira Issue OCPBUGS-32946, which is invalid:

  • expected the bug to target the "4.16.0" version, but no target version was set

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:

…tenAddress

During first boot MicroShift will start scanning all IP addresses in the host to setup the router load balancer service. When this happens, not all interfaces may have an IP yet, leaving them out until the next microshift restart.

By leaving the defaults empty we allow the IP address subscription handler to add anything that is not forbidden automatically. If this list is fixed with the IPs and interfaces that were present only when MicroShift started, we might miss out on some of hte listening IPs unless the user restarts.

Which issue(s) this PR addresses:

Closes #

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 review from ggiguash and pmtk April 25, 2024 12:36
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 25, 2024
@pacevedom
Copy link
Contributor Author

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 25, 2024
@pacevedom
Copy link
Contributor Author

/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 Apr 25, 2024
@openshift-ci-robot
Copy link

@pacevedom: This pull request references Jira Issue OCPBUGS-32946, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @ShudiLi

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 ShudiLi April 25, 2024 13:10
@pacevedom
Copy link
Contributor Author

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 25, 2024
@ShudiLi
Copy link
Member

ShudiLi commented Apr 26, 2024

Tested it with cluster-Bot created cluster

1.
% oc -n openshift-ingress get svc
NAME                      TYPE           CLUSTER-IP     EXTERNAL-IP                         PORT(S)                      AGE
router-default            LoadBalancer   10.43.95.21    10.192.10.159,10.42.0.2,10.44.0.0   80:30096/TCP,443:31278/TCP   26m
router-internal-default   ClusterIP      10.43.196.83   <none>                              80/TCP,443/TCP,1936/TCP      26m
% 

2. debug node and check the host's ip address
sh-5.1# ip address | grep "inet " 
    inet 127.0.0.1/8 scope host lo
    inet 10.192.10.159/24 brd 10.192.10.255 scope global dynamic noprefixroute eth0
    inet 10.44.0.0/32 scope global br-ex
    inet 169.254.169.2/29 brd 169.254.169.7 scope global br-ex
    inet 10.42.0.2/24 brd 10.42.0.255 scope global ovn-k8s-mp0
sh-5.1# 

3. configure the config.yaml, then restart the microshift service

4.
shudi@Shudis-MacBook-Pro microshift % oc -n openshift-ingress get svc
NAME                      TYPE           CLUSTER-IP     EXTERNAL-IP               PORT(S)                           AGE
router-default            LoadBalancer   10.43.95.21    10.192.10.159,10.44.0.0   10080:30096/TCP,10443:31278/TCP   27m
router-internal-default   ClusterIP      10.43.196.83   <none>                    80/TCP,443/TCP,1936/TCP           27m

5. removed the custom ip address and ports from the config.yaml, then restart the microshift service
6. 
% oc -n openshift-ingress get svc
NAME                      TYPE           CLUSTER-IP     EXTERNAL-IP                         PORT(S)                      AGE
router-default            LoadBalancer   10.43.95.21    10.192.10.159,10.42.0.2,10.44.0.0   80:30096/TCP,443:31278/TCP   28m
router-internal-default   ClusterIP      10.43.196.83   <none>                              80/TCP,443/TCP,1936/TCP      28m
% 

@ShudiLi
Copy link
Member

ShudiLi commented Apr 26, 2024

/label qe-approved
thanks

@openshift-ci openshift-ci bot added the qe-approved Signifies that QE has signed off on this PR label Apr 26, 2024
@openshift-ci-robot
Copy link

@pacevedom: This pull request references Jira Issue OCPBUGS-32946, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @ShudiLi

In response to this:

…tenAddress

During first boot MicroShift will start scanning all IP addresses in the host to setup the router load balancer service. When this happens, not all interfaces may have an IP yet, leaving them out until the next microshift restart.

By leaving the defaults empty we allow the IP address subscription handler to add anything that is not forbidden automatically. If this list is fixed with the IPs and interfaces that were present only when MicroShift started, we might miss out on some of hte listening IPs unless the user restarts.

Which issue(s) this PR addresses:

Closes #

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.

Copy link
Member

@pmtk pmtk 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 Apr 26, 2024
Copy link
Contributor

openshift-ci bot commented Apr 26, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pacevedom, pmtk

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 58bf2d1 and 2 for PR HEAD 626ecb7 in total

@pacevedom
Copy link
Contributor Author

/retest-required

@pacevedom
Copy link
Contributor Author

/test ocp-conformance-rhel-eus

Copy link
Contributor

openshift-ci bot commented Apr 26, 2024

@pacevedom: 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/test-infra repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit 1d083af into openshift:main Apr 26, 2024
8 checks passed
@openshift-ci-robot
Copy link

@pacevedom: Jira Issue OCPBUGS-32946: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-32946 has been moved to the MODIFIED state.

In response to this:

…tenAddress

During first boot MicroShift will start scanning all IP addresses in the host to setup the router load balancer service. When this happens, not all interfaces may have an IP yet, leaving them out until the next microshift restart.

By leaving the defaults empty we allow the IP address subscription handler to add anything that is not forbidden automatically. If this list is fixed with the IPs and interfaces that were present only when MicroShift started, we might miss out on some of hte listening IPs unless the user restarts.

Which issue(s) this PR addresses:

Closes #

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. jira/severity-important Referenced Jira bug's severity is important 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. qe-approved Signifies that QE has signed off on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants