Bug 1382062
Summary: | Upper case letters in HostnameFormat parameters cause trouble | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Jiri Stransky <jstransk> |
Component: | openstack-tripleo-heat-templates | Assignee: | Alex Schultz <aschultz> |
Status: | CLOSED ERRATA | QA Contact: | Gurenko Alex <agurenko> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 10.0 (Newton) | CC: | agurenko, aschultz, egallen, gkadam, jraju, jslagle, jstransk, mburns, mcornea, ohochman, rhel-osp-director-maint, tvignaud |
Target Milestone: | Upstream M2 | Keywords: | Triaged |
Target Release: | 12.0 (Pike) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openstack-tripleo-heat-templates-7.0.0-0.20170616123155.el7ost puppet-tripleo-7.1.1-0.20170623015402.2625756.el7ost | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-12-13 20:46:56 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jiri Stransky
2016-10-05 15:56:26 UTC
The problems could be deeper than just the bootstrap node checks, e.g. see: [root@controller0 hieradata]# grep -r CONTROLLER /etc/puppet/hieradata/ /etc/puppet/hieradata/controller.yaml:bootstack_nodeid: CONTROLLER0 /etc/puppet/hieradata/bootstrap_node.yaml:bootstrap_nodeid: CONTROLLER0 /etc/puppet/hieradata/ceph_cluster.yaml:ceph_mon_initial_members: CONTROLLER0,CONTROLLER1,CONTROLLER2 /etc/puppet/hieradata/all_nodes.yaml:controller_node_names: CONTROLLER0,CONTROLLER1,CONTROLLER2 /etc/puppet/hieradata/all_nodes.yaml:galera_node_names: CONTROLLER0,CONTROLLER1,CONTROLLER2 I wonder if we should simply disallow uppercase letters in the *HostnameFormat parameters. i think the right fix here is to make the bootstrap node hostname checks case insensitive, as hostnames are generally considered case insensitive Do we have any specific errors around this? I only see redis and mongo not correctly using downcase($bootstrap_nodeid). I will fix those but unless we have some additional information, this shouldn't be an issue. It looks like we also don't have the same case insensitive comparisons in the THT scripts. so i'm looking into those as well but any specific errors would be handy The issue we actually hit was just with the bootstrap node check, which i think is handled by https://review.openstack.org/474762 verified with openstack-tripleo-heat-templates-7.0.3-3.el7ost.noarch [root@undercloud74 ~]# cat /usr/share/openstack-puppet/modules/tripleo/manifests/profile/base/database/redis.pp | grep downcase if downcase($bootstrap_nodeid) == $::hostname { 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/RHEA-2017:3462 |