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.
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
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
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