Bug 1274129 - the ansible will abort if not set 'nums_infra' in inventory host
Summary: the ansible will abort if not set 'nums_infra' in inventory host
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Andrew Butcher
QA Contact: Ma xiaoqiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-22 03:20 UTC by Ma xiaoqiang
Modified: 2016-07-04 00:45 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-20 15:41:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ma xiaoqiang 2015-10-22 03:20:27 UTC
Description of problem:
the ansible will abort if not set 'nums_infra' in inventory host


Version-Release number of selected component (if applicable):
https://github.com/openshift/openshift-ansible.git master

How reproducible:
100%


Steps to Reproduce:
1. install env with 'nums_infra' not in inventory host


Actual results:
TASK: [openshift_router | set_fact _ortr_images="--images='{{ openshift.master.registry_url }}'"] *** 
ok: [10.66.79.161] => {"ansible_facts": {"_ortr_images": "--images='registry.access.redhat.com/openshift3/ose-${component}:${version}'"}}

TASK: [openshift_router | set_fact _ortr_selector="--selector='{{ openshift.master.router_selector }}'"] *** 
fatal: [10.66.79.161] => One or more undefined variables: 'dict object' has no attribute 'router_selector'

FATAL: all hosts have already failed -- aborting



Expected results:
If user doesn't set 'nums_infra' in inventory host, pls do not create router/registry.


Additional info:

Comment 1 Jason DeTiberus 2015-10-22 20:08:21 UTC
https://github.com/openshift/openshift-ansible/pull/721

Comment 2 Naoya Hashimoto 2015-10-23 01:04:13 UTC
I believe that not nums_infra but num_infra should be added in the ansible inventory file.
I am facing the same issue and found it when I checked the below URL.

Comment 3 Ma xiaoqiang 2015-10-23 01:19:48 UTC
yeah, it should be num_infra. thx
Install env successfully when QE doesn't set num_infra in inventory file, and ansible doesn't  create router. Move it to VERIFIED.

Comment 4 Aleksandar Kostadinov 2015-11-13 14:40:18 UTC
where are these flags documented.


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