Bug 1293960 - [RFE] Control policy.json and schedule.json changes from ansible for all masters in HA setup
Summary: [RFE] Control policy.json and schedule.json changes from ansible for all mast...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Jason DeTiberus
QA Contact: Ma xiaoqiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-23 17:33 UTC by Ryan Howe
Modified: 2016-07-04 00:46 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-12 16:37:22 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1065 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise atomic-openshift-utils bug fix update 2016-05-12 20:32:56 UTC

Description Ryan Howe 2015-12-23 17:33:14 UTC
Description of problem:
-Looking for the ability to control all needed configs that change in /etc/origin/master/* via ansible. 

Example would be having ansible control all changes made to the scheduler. 


Version-Release number of selected component (if applicable):
OSE 3.1 


Additional info:
- Also changes made in /etc/sysconfig would be nice if ansible could control

Comment 1 Brenton Leanhardt 2016-01-05 16:13:11 UTC
Would it be helpful in the short term to product admins a way to specify a custom configuration file so that they could control these files themselves?

Alternatively, if you provide a prioritized list of fixes we can address them in order.

Comment 3 Jason DeTiberus 2016-04-04 21:34:34 UTC
The scheduler config has been addressed in https://github.com/openshift/openshift-ansible/pull/1680

It doesn't really make sense to support modifying the policy config on disk since it is only loaded if the policy doesn't already exist in etcd.

Comment 4 Ma xiaoqiang 2016-04-05 09:10:27 UTC
check on openshift-ansible -b master

scenarios 1:
Install env without 'openshift_master_scheduler_predicates' and 'openshift_master_scheduler_priorities'

check the configuration file, compare with the configuration from template,
the "ServiceSpreadingPriority" is changed to 'SelectorSpreadPriority', is it by design?


scenarios 2:
Install ha-master env with 'openshift_master_scheduler_predicates' and 'openshift_master_scheduler_priorities'
<--snip-->
openshift_master_scheduler_predicates=[{"name": "MatchNodeSelector"}, {"name": "PodFitsResources"}, {"name": "PodFitsPorts"}, {"name": "NoDiskConflict"}, {"name" : "MaxEBSVolumeCount"}]
openshift_master_scheduler_priorities=[{"name": "LeastRequestedPriority", "weight": 1}, {"name": "ServiceSpreadingPriority", "weight": 1}]
<--snip-->

check the configuration file after installation, the specified value take effect.

For the first scenario, if the change is by design, QE will move this issue to VERIFIED.

Comment 5 Jason DeTiberus 2016-04-06 02:22:30 UTC
Yes, the change from ServiceSpreadingPriority to SelectorSpreadPriority was to address the following Github Issue: https://github.com/openshift/openshift-ansible/issues/476

Comment 7 errata-xmlrpc 2016-05-12 16:37:22 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/RHBA-2016:1065


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