Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1524219 - template service broker installer assumes all the nodes in the same region
template service broker installer assumes all the nodes in the same region
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer (Show other bugs)
3.7.1
Unspecified Unspecified
unspecified Severity unspecified
: ---
: 3.7.z
Assigned To: Jim Minter
Weihua Meng
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-12-10 16:27 EST by raffaele spazzoli
Modified: 2018-01-30 08:43 EST (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: node selectors incorrectly set on template service broker daemonset object Consequence: looping failed deployment of template service broker pods and excessive cpu usage on master and nodes Fix: set node selectors correctly on template service broker daemonset object Result: template service broker pods now deploy correctly
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-01-23 12:59:00 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0113 normal SHIPPED_LIVE OpenShift Container Platform 3.7 and 3.6 bug fix and enhancement update 2018-01-23 17:55:59 EST

  None (edit)
Description raffaele spazzoli 2017-12-10 16:27:27 EST
the template service broker is installed as a daemonset.
It creates a project without checking whether there is a default node selector and the tries to schedule the pods to all the nodes.
This fails if the cluster is installed with different regions and some of the regions are not schedulable with the default node selector. 
This always happens in standard installs because there are at least two regions:
infranodes  and worker nodes. Sometime masters are also in a separate region.
Comment 2 Jim Minter 2017-12-18 14:22:49 EST
QE, please can you ensure that after install, for the TSB daemonset, there is one pod per infra node, in state Running, and that no other pods exist for the TSB daemonset.
Comment 4 Jim Minter 2017-12-19 11:04:40 EST
The fix is in the installer, not in OCP.  To test, need to install OCP 3.7 with a version of the ansible installer that includes the PR.
Comment 5 Weihua Meng 2017-12-19 21:08:40 EST
Not fixed with latest OCP 3.7 build 
openshift-ansible-3.7.15-1.git.0.b20e6be.el7.noarch.rpm

Could you please indicate which build to verify the bug

Thanks.
Comment 6 Jim Minter 2017-12-20 11:15:27 EST
Yes, looks like the fix is not in 3.7.15.  Presumably it will be in the following release.
Comment 8 Weihua Meng 2018-01-04 06:14:57 EST
not work as expected.

openshift-ansible-3.7.18-1.git.0.a01e769.el7.noarch.rpm

PR is included

# cat main.yml 
---
# placeholder file?
template_service_broker_remove: False
template_service_broker_install: True
openshift_template_service_broker_namespaces: ['openshift']
template_service_broker_selector: { "region": "infra" }


[root@host-172-16-120-8 ~]# oc get ds -n openshift-template-service-broker
NAME        DESIRED   CURRENT   READY     UP-TO-DATE   AVAILABLE   NODE-SELECTOR   AGE
apiserver   5         5         5         5            5           role=node       24m
Comment 9 Jim Minter 2018-01-04 11:05:31 EST
Weihua, please could you provide more detail on how you're running ansible / access to your environment?

I'm pretty sure that role=node must be being overridden somewhere by your config, but I'm not clear where.
Comment 10 Weihua Meng 2018-01-05 01:30:23 EST
Thanks, Jim. You are right. 

This Bug is Fixed.
openshift-ansible-3.7.18-1.git.0.a01e769.el7.noarch.rpm

[root@host-172-16-120-49 ~]# oc get ds -n openshift-template-service-broker
NAME        DESIRED   CURRENT   READY     UP-TO-DATE   AVAILABLE   NODE-SELECTOR   AGE
apiserver   0         0         0         0            0           region=infra    36m
Comment 13 errata-xmlrpc 2018-01-23 12:59:00 EST
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:0113

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