Bug 1358723 - openshift_hosted_router_replicas option didn't work
Summary: openshift_hosted_router_replicas option didn't work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.2.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Andrew Butcher
QA Contact: Gaoyun Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-21 11:32 UTC by Gaoyun Pei
Modified: 2016-08-18 19:29 UTC (History)
5 users (show)

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.
Clone Of:
Environment:
Last Closed: 2016-08-18 19:29:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1639 0 normal SHIPPED_LIVE OpenShift Enterprise atomic-openshift-utils bug fix and enhancement update 2016-08-18 23:26:45 UTC

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


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