Bug 1579414 - Openshift-on-OpenStack playbook fails if kuryr_openstack_public_net_id param is not specified
Summary: Openshift-on-OpenStack playbook fails if kuryr_openstack_public_net_id param ...
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.10.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 3.11.0
Assignee: Luis Tomas Bolivar
QA Contact: Itzik Brown
Depends On:
TreeView+ depends on / blocked
Reported: 2018-05-17 15:17 UTC by Jon Uriarte
Modified: 2019-01-30 15:19 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Ensures the playbook execution will fail soon, at the prerequisites checkings, if the public net id is not configured when the Kuryr SDN is used
Clone Of:
Last Closed: 2019-01-30 15:19:31 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift openshift-ansible pull 8436 0 None closed Ensure public net id is configured for Kuryr SDN 2020-03-10 02:09:53 UTC
Red Hat Product Errata RHBA-2019:0096 0 None None None 2019-01-30 15:19:36 UTC

Description Jon Uriarte 2018-05-17 15:17:34 UTC
Description of problem:

https://bugzilla.redhat.com/show_bug.cgi?id=1576001 implied adding a new parameter (kuryr_openstack_public_net_id) which is mandatory. The parameter must be specified in OpenStack configuration file (all.yml), but if not added the playbook fails.

Adding a check for the parameter existence in prerequisites stage would prevent the install playbook from failing, and getting the error before deploying the Openshift cluster. It will fail at the very beginning of the playbook, when checking the prerequisites.

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

rpm -q ansible

ansible --version
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/cloud-user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Feb  9 2018, 09:51:13) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]

How reproducible: always

Steps to Reproduce:
1. Run Openshift-on-Openstack playbook without setting the kuryr_openstack_public_net_id

Actual results:
TASK [kuryr : Create kuryr ConfigMap manifest] ********************************************************************************************************************************************************************
fatal: [master-0.openshift.example.com]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'kuryr_openstack_public_net_id' is undefined"}

  1. Hosts:    master-0.openshift.example.com
     Play:     Configure masters
     Task:     Create kuryr ConfigMap manifest
     Message:  AnsibleUndefinedVariable: 'kuryr_openstack_public_net_id' is undefined

Expected results:
Failure in prerequisites playbook, not in install playbook.

Comment 1 Itzik Brown 2018-12-17 12:18:40 UTC
Checked with:

The failure in prerequisites stage:
kuryr_openstack_public_net_id must be set when using Kuryr SDN

Comment 3 errata-xmlrpc 2019-01-30 15:19:31 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.


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