tripleo-ansible-inventory fails with composable roles

Bug #1712190 reported by Michele Baldessari on 2017-08-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
High
Sofer Athlan-Guyot

Bug Description

So this *might* be partly related to https://bugs.launchpad.net/tripleo/+bug/1685544. In any case running tripleo-ansible-inventory --static against a composable architecture creates a broken hosts file:
ERROR! Attempted to read "/tmp/hosttestcacert" as YAML: Syntax Error while loading YAML.

The error appears to have been in '/tmp/hosttestcacert': line 1, column 16, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

[nova_placement:vars]
               ^ here

Attempted to read "/tmp/hosttestcacert" as ini file: /tmp/hosttestcacert:28: Section [overcloud:children] includes undefined group: galera

The generated hostfile:
[overcloud:children]
compute
controller
galera
rabbit
<snip>
[Galera:children]
overcloud-galera-0
overcloud-galera-1
overcloud-galera-2

Seems there is a capitalization mismatch somewhere

Fix proposed to branch: master
Review: https://review.openstack.org/495975

Changed in tripleo:
assignee: nobody → Sofer Athlan-Guyot (sofer-athlan-guyot)
status: Triaged → In Progress

Reviewed: https://review.openstack.org/495975
Committed: https://git.openstack.org/cgit/openstack/tripleo-validations/commit/?id=ddc025d4720e9d4fe276b6a82a91c08e4d3e5e46
Submitter: Jenkins
Branch: master

commit ddc025d4720e9d4fe276b6a82a91c08e4d3e5e46
Author: Sofer Athlan-Guyot <email address hidden>
Date: Mon Aug 21 22:21:21 2017 +0200

    Make sure to keep case when for host definition in host inventory.

    Config parser remove capitalization information when it writes the
    configuration file. Make sure to keep by removing any transformation.

    Change-Id: I7f46e4b7bdac5110d111537a044473c362d059f6
    Closes-Bug: #1712190

Changed in tripleo:
status: In Progress → Fix Released

This issue was fixed in the openstack/tripleo-validations 7.3.0 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers