Bug 1614727
| Summary: | [W21FD0v0] router dynamic changes does not work after adding custom blueprints route | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Hongan Li <hongli> |
| Component: | Networking | Assignee: | Ram Ranganathan <ramr> |
| Networking sub component: | router | QA Contact: | zhaozhanqi <zzhao> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | medium | CC: | aos-bugs, dmace |
| Version: | 3.11.0 | ||
| Target Milestone: | --- | ||
| Target Release: | 3.11.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-10-11 07:24:38 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Hongan Li
2018-08-10 09:59:24 UTC
@hongli aargh found the bug, it is basically using the `blueprints` namespace when we dynamically add a blueprint. I fixed that (and on deleting a blueprint as well). Fix is in PR: https://github.com/openshift/origin/pull/20630 But once the fix is in, one reason I can see something similar happening is because of the order of processing of routes. 1. A new route is added to the blueprint namespace. 2. Router watch shows a new route added, so it adds a new "route" (non-blueprint) for the re-encrypt route. _Note:_ This is done before the blueprint watch process this route. So no matching blueprint route exists, so it needs a reload. 2. Router blueprint watch shows a new route and so it adds a new blueprint route. Subsequent add/deletes should not require a reload (until we exhaust the blueprint pool/dynamic servers). So once the fix is in, this might be a better test to see if we can reproduce a reload via a loop: $ # add blueprint route (route to blueprint namespace) and wait for it to $ # to be picked up. $ # And then: $ for i in `seq 5`; do oc delete route reen-route oc create route reencrypt reen-route --service=service-secure --dest-ca-cert=route_reencrypt_dest.ca -n hongli curl <route-host>; sleep 10 done and you can tail the router logs in another windows to verify that a reload doesn't occur. (In reply to Ram Ranganathan from comment #1) > @hongli aargh found the bug, it is basically using the `blueprints` > namespace > when we dynamically add a blueprint. I fixed that (and on deleting a > blueprint as well). > > Fix is in PR: https://github.com/openshift/origin/pull/20630 > Thank you Ram, will test it per your comments when the fix is in. verified in atomic-openshift-3.11.0-0.20.0.git.0.d80d8ad.el7 and the issue has been fixed. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:2652 |