Bug 1501845 - the router configuration is not reloaded in 10 minutes after adding namespace label
Summary: the router configuration is not reloaded in 10 minutes after adding namespace...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 3.7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.7.0
Assignee: Ravi Sankar
QA Contact: zhaozhanqi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-13 10:24 UTC by Hongan Li
Modified: 2022-08-04 22:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Feature: Sharded router will notice routes immediately Reason: Otherwise router had to wait up to 2 resync intervals for it to notice which may not be acceptable. Result: Sharded router behavior matches with non-sharded router when routes added or deleted.
Clone Of:
Environment:
Last Closed: 2017-11-28 22:17:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3188 0 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-29 02:34:54 UTC

Description Hongan Li 2017-10-13 10:24:10 UTC
Description of problem:
If add NAMESPACE_LABELS to router firstly then adding the label to namespace, the router configuration cannot be reloaded in 10 minutes.

Version-Release number of selected component (if applicable):
openshift v3.7.0-0.147.1
kubernetes v1.7.6+a08f5eeb62
etcd 3.2.1


How reproducible:
always

Steps to Reproduce:
1. add NAMESPACE_LABELS to router
   # oc env dc/router NAMESPACE_LABELS=team=red

2. create project, pod, service and route.

3. add label to the project.
   # oc label namespace u1p1 team=red

4. check the router configuration
   # oc rsh router-2-xxxxx cat haproxy.config

Actual results:
Try several times and it need almost 20~30 minutes to load the configuration.

Expected results:
the router configuration should be reloaded in 10 minutes after namespace label changed.

Additional info:
https://bugzilla.redhat.com/show_bug.cgi?id=1415112

Comment 1 Ravi Sankar 2017-10-16 22:47:11 UTC
Fixed in https://github.com/openshift/origin/pull/16039

Comment 2 zhaozhanqi 2017-10-20 06:35:20 UTC
Verified this bug on v3.7.0-0.158.0

this issue have been fixed. the route will be moved to the correct router once the namespace label changed.

Comment 5 errata-xmlrpc 2017-11-28 22:17:21 UTC
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/RHSA-2017:3188


Note You need to log in before you can comment on or make changes to this bug.