Bug 1389649 - [3.4] [quick install]Installation summary is not correct when specifying a dedicated etcd in installer.cfg.yml
Summary: [3.4] [quick install]Installation summary is not correct when specifying a de...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Samuel Munilla
QA Contact: liujia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-28 06:01 UTC by liujia
Modified: 2017-03-08 18:43 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: The installation summary was only printing etcd hosts if they were also masters. Consequence: Dedicated etcd hosts were not appearing in the installation summary. Fix: Removed the check for masters prior to the check for etcd hosts. Result: Installation Summary is now correct.
Clone Of:
Environment:
Last Closed: 2017-01-31 21:10:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0224 0 normal SHIPPED_LIVE OpenShift Container Platform atomic-openshift-utils bug fix update 2017-02-01 02:10:09 UTC

Description liujia 2016-10-28 06:01:00 UTC
Description of problem:
Edit installer.cfg.yml to have a dedicated etcd host, and then trigger an install/scaleup, the installation summary output is not correct.
*** Installation Summary ***

Hosts:
- openshift-118.x.x.x
  - OpenShift master
  - OpenShift node (Unscheduled)
  - Etcd (Embedded) //should not be etcd
  - Storage
- openshift-136.x.x.x
  - OpenShift node (Dedicated)
- openshift-116.lab.eng.nay.redhat.com  //should be etcd role

Total OpenShift masters: 1
Total OpenShift nodes: 2


Version-Release number of selected component (if applicable):
atomic-openshift-utils-3.4.13-1.git.0.ff1d588.el7.noarch


How reproducible:
always

Steps to Reproduce:
1.Edit installer.cfg.yml
#cat /root/.config/openshift/installer.cfg.yml
<--snip-->
deployment:
  ansible_ssh_user: root
  hosts:
  - connect_to: openshift-x.x.x
    hostname: 192.168.2.4
    ip: 192.168.2.4
    public_hostname: 10.66.147.118
    public_ip: 10.66.147.118
    roles:
    - master
    - node
    - storage
  - connect_to: openshift-x.x.x
    hostname: 192.168.2.53
    ip: 192.168.2.53
    node_labels: '{''region'': ''infra''}'
    public_hostname: 10.66.147.136
    public_ip: 10.66.147.136
    roles:
    - node
  - connect_to: openshift-x.x.x
    hostname: 192.168.2.46
    ip: 192.168.2.46
    public_hostname: 10.66.147.116
    public_ip: 10.66.147.116
    roles:
    - etcd

2.trigger an install
# atomic-openshift-installer -c /root/.config/openshift/installer.cfg.yml install


Actual results:
*** Installation Summary ***

Hosts:
- openshift-118.x.x.x
  - OpenShift master
  - OpenShift node (Unscheduled)
  - Etcd (Embedded) //should not be etcd
  - Storage
- openshift-136.x.x.x
  - OpenShift node (Dedicated)
- openshift-116.lab.eng.nay.redhat.com  //should be etcd role

Total OpenShift masters: 1
Total OpenShift nodes: 2

Expected results:
The printed summary should be consistent with installer.cfg.yml.

Comment 3 liujia 2017-01-09 09:40:43 UTC
Version:
openshift-ansible-roles-3.4.43-1.git.0.a9dbe87.el7.noarch

Steps:
1.Edit installer.cfg.yml
# cat installer.cfg.yml
<--snip-->
deployment:
  ansible_ssh_user: root
  hosts:
  - connect_to: openshift-109.x.x.x
    hostname: openshift-109.x.x.x
    ip: 192.168.2.141
    node_labels: '{''region'': ''infra''}'
    public_hostname: openshift-109.x.x.x
    public_ip: 10.66.147.109
    roles:
    - master
    - node
    - storage
  - connect_to: openshift-129.x.x.x
    hostname: openshift-129.x.x.x
    ip: 192.168.2.140
    public_hostname: openshift-129.x.x.x
    public_ip: 10.66.147.129
    roles:
    - etcd

2.trigger an install
# atomic-openshift-installer -c /root/work/inventory/test/installer.cfg.yml install/scaleup

Result:
*** Installation Summary ***

Hosts:
- openshift-109.x.x.x
  - OpenShift master
  - OpenShift node
  - Storage
- openshift-129.x.x.x
  - Etcd

Total OpenShift masters: 1
Total OpenShift nodes: 1


The printed summary is consistent with installer.cfg.yml. So changed the status to verified.

Comment 5 errata-xmlrpc 2017-01-31 21:10:49 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-2017:0224


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