Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1358723

Summary: openshift_hosted_router_replicas option didn't work
Product: OpenShift Container Platform Reporter: Gaoyun Pei <gpei>
Component: InstallerAssignee: Andrew Butcher <abutcher>
Status: CLOSED ERRATA QA Contact: Gaoyun Pei <gpei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.2.1CC: abutcher, adellape, aos-bugs, jokerman, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Previously, the installer failed when using the openshift_hosted_router_replicas Ansible variable. This bug fix ensures that the number of router replicas can be set using this variable, and as a result this issue no longer occurs.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-18 19:29:20 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 Gaoyun Pei 2016-07-21 11:32:11 UTC
Description of problem:
If set openshift_hosted_router_replicas option in ansible inventory file, the installation will fail at "set_fact" of "replicas" step during creating OpenShift router.


Version-Release number of selected component (if applicable):
openshift-ansible-3.2.13-1.git.0.0afa976.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1.Set the following router deployment options in ansible inventory:

openshift_hosted_router_selector="role=node,router=enabled"
openshift_hosted_router_replicas=1


Actual results:
...
TASK: [openshift_hosted | Retrieve list of openshift nodes matching router selector] *** 
skipping: [openshift-x.com]

TASK: [openshift_hosted | set_fact ] ****************************************** 
fatal: [openshift-x.com] => Failed to template {{ openshift.hosted.router.replicas | default((openshift_hosted_router_nodes_json.stdout | from_json)['items'] | length) }}: an unexpected type error occurred. Error was expected string or buffer

FATAL: all hosts have already failed -- aborting


Expected results:
Installation succeed, one router pod was created on "role=node,router=enabled" labeled node.

Additional info:
openshift_hosted_registry_replicas should not work either.

Comment 1 openshift-github-bot 2016-07-21 17:09:44 UTC
Commit pushed to master at https://github.com/openshift/openshift-ansible

https://github.com/openshift/openshift-ansible/commit/19b6794f877e723c0828e6e592dfaa99f0207d18
Merge pull request #2192 from abutcher/replicas

Bug 1358723 - openshift_hosted_router_replicas option didn't work

Comment 4 Gaoyun Pei 2016-08-09 04:05:21 UTC
Verify this bug with openshift-ansible-3.2.19-1.git.0.fad29ad.el7.noarch.rpm

openshift_hosted_router_replicas and openshift_hosted_registry_replicas work well

Comment 6 errata-xmlrpc 2016-08-18 19:29:20 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:1639