Bug 1610360 - 'null' is undefined error when installing with ansible service broker
Summary: 'null' is undefined error when installing with ansible service broker
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Service Broker
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.11.0
Assignee: Jason Montleon
QA Contact: Zihan Tang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-31 13:38 UTC by Jason Montleon
Modified: 2018-10-11 07:23 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-11 07:22:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:2652 0 None None None 2018-10-11 07:23:06 UTC

Description Jason Montleon 2018-07-31 13:38:34 UTC
Description of problem:
When installing 3.11 with ansible-service-broker the installation fails.

Version-Release number of selected component (if applicable):
openshift-ansible-3.11.0-0.10.0.git.0.91bb588None.noarch

How reproducible:
Always

Steps to Reproduce:
1. Install Openshift using openshift-ansible with the ansible-service-broker

Actual results:
Failure

Expected results:
Successful install

Additional info:
    default: INSTALLER STATUS ***************************************************************
    default: Initialization              : Complete (0:00:15)
    default: 	[DEPRECATION WARNING]: The following are deprecated variables and will be no longer be used in the next minor release. Please update your inventory accordingly.
    default: 	openshift_node_labels
    default: Health Check                : Complete (0:00:18)
    default: Node Bootstrap Preparation  : Complete (0:02:41)
    default: etcd Install                : Complete (0:00:36)
    default: NFS Install                 : Complete (0:00:08)
    default: Master Install              : Complete (0:03:34)
    default: Master Additional Install   : Complete (0:00:53)
    default: Node Join                   : Complete (0:00:20)
    default: Hosted Install              : Complete (0:00:58)
    default: Web Console Install         : Complete (0:00:20)
    default: Console Install             : Complete (0:00:20)
    default: metrics-server Install      : Complete (0:00:01)
    default: Service Catalog Install     : In Progress (0:00:46)
    default: 	This phase can be restarted by running: playbooks/openshift-service-catalog/config.yml
    default: 
    default: 
    default: Failure summary:
    default: 
    default: 
    default:   1. Hosts:    192.168.121.76.nip.io
    default:      Play:     Service Catalog
    default:      Task:     set ansible_service_broker facts
    default:      Message:  The task includes an option with an undefined variable. The error was: 'null' is undefined
    default:                
    default:                The error appears to have been in '/usr/share/ansible/openshift-ansible/roles/ansible_service_broker/tasks/facts.yml': line 9, column 3, but may
    default:                be elsewhere in the file depending on the exact syntax problem.
    default:                
    default:                The offending line appears to be:
    default:                
    default:                
    default:                - name: set ansible_service_broker facts
    default:                  ^ here
    default:        

Description of problem:

Version-Release number of the following components:
rpm -q openshift-ansible
rpm -q ansible
ansible --version

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual results:
Please include the entire output from the last TASK line through the end of output if an error is generated

Expected results:

Additional info:
Please attach logs from ansible-playbook with the -vvv flag

Comment 1 Jason Montleon 2018-07-31 14:18:25 UTC
    default: ok: [192.168.121.164.nip.io] => (item=/usr/share/ansible/openshift-ansible/roles/ansible_service_broker/vars/openshift-enterprise.yml) => {
    default:     "ansible_facts": {
    default:         "__ansible_service_broker_registry_name": "rh", 
    default:         "__ansible_service_broker_registry_organization": null, 
    default:         "__ansible_service_broker_registry_password": "{{ oreg_auth_password | default(null) }}", 
    default:         "__ansible_service_broker_registry_tag": "{{ openshift_image_tag }}", 
    default:         "__ansible_service_broker_registry_type": "rhcc", 
    default:         "__ansible_service_broker_registry_url": "https://registry.redhat.io", 
    default:         "__ansible_service_broker_registry_user": "{{ oreg_auth_user | default(null) }}", 
    default:         "__ansible_service_broker_registry_whitelist": [
    default:             ".*-apb$"
    default:         ]
    default:     },

Comment 2 Jason Montleon 2018-07-31 15:41:47 UTC
Setting oreg_auth_password and oreg_auth_user appears to work around it in the mean time.

Comment 4 Jason Montleon 2018-08-06 13:41:56 UTC
Should be fixed in openshift-ansible-3.11.0-0.11.0.git.0.3c66516None

Comment 5 Zihan Tang 2018-08-09 06:03:10 UTC
Verified.

Comment 7 errata-xmlrpc 2018-10-11 07:22:47 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-2018:2652


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