tripleo-common/scripts
Michele Baldessari 3345557d7b Lowercase any hostname comparisons in bootstrap_* scripts
If you deploy a stack with mixed-case hostnames things will break
because no task that is supposed to run on boostrap nodes will run
due to the following code:
HOSTNAME=$(/bin/hostname -s)
SERVICE_NODEID=$(/bin/hiera -c /etc/puppet/hiera.yaml
"${SERVICE_NAME}_short_bootstrap_node_name")
if [[ "$HOSTNAME" == "$SERVICE_NODEID" ]]; then
...

The hiera key might contain mixed-case letters whereas the hostname
won't and the end result is going to be that no bootstrap tasks
will run on any nodes and, amongst other things, no database tables
will be created, making all services unusable.

Since we use bash explicitely we can leverage the ${var,,} expression
for this.

Change-Id: Ie240b8a4217827dd8ade82479a828817d63143ba
Related-Bug: #1773219
2018-05-28 10:52:58 +02:00
..
README-tripleo.sh Remove tripleo.sh (now in tripleo-ci repo) 2016-03-15 08:01:22 -04:00
bootstrap_host_exec Lowercase any hostname comparisons in bootstrap_* scripts 2018-05-28 10:52:58 +02:00
bootstrap_host_only_eval Lowercase any hostname comparisons in bootstrap_* scripts 2018-05-28 10:52:58 +02:00
bootstrap_host_only_exec Lowercase any hostname comparisons in bootstrap_* scripts 2018-05-28 10:52:58 +02:00
container-update.py Support packages list for updates in container 2018-05-13 18:07:47 +03:00
create_freeipa_enroll_envfile.py Add FreeIPA enrollment environment generator 2016-12-13 14:36:53 +00:00
pull-puppet-modules A script that pulls the latest puppet source 2017-01-09 21:03:13 -05:00
run-validation Configure run-validation to use the custom output 2016-09-29 12:21:40 +02:00
tripleo-build-images Fix build-image script output 2016-12-06 16:22:01 +01:00
tripleo-config-download Config download support for all deployments 2017-10-17 13:59:53 -04:00
upload-puppet-modules Change default deploy artifacts container name 2016-09-05 21:02:27 +01:00
upload-swift-artifacts Add file type check to upload-swift-artifacts 2018-02-15 07:20:12 -05:00