delorean-repo:
replaced by tripleo-repos and other repo setup approaches
hosts:
heat hasn't manage hosts file for many releases
localboot:
replaced by diskimage-builder grub2, bootloader elements
ntp:
replaced by installing chrony package
os-net-config:
the package is installed by other elements, and the script is now
called from ansible
overcloud-dracut:
replaced by diskimage-builder dracut-regenerate element
overcloud-partition:
no image now uses this, overcloud-hardened-uefi-full uses
overcloud-partition-uefi
Change-Id: I990493b51d87a40140c1648f2b04c982ce959b1d
There was a leading \n and a trailing \n that is causing the script to
add two lines everytime it's run.
Change-Id: I42530b64efc8e7be0d309401c284f16050256e8a
Most elements in this repo are old, untested and no longer used, so
remove all those we're not using (as proven via CI).
I think there are some remaining things we build into the images but no
longer need, but those can be handled via follow-up patches.
Change-Id: I221c5a3f82a2500c90646fc69439a210cf64e5e1
The issue is how awk is used to update hosts files. When
os-apply-config produces sufficiently large amounts of lines
to be added (or ensure in) hosts files, awk will error out.
To work around it, instead use sed, and reconstruct the
host file(s) to ensure the entries between the comment delimeters
of "# HEAT_HOSTS_START" and "# HEAT_HOSTS_END" are swapped with
the new entries.
Also get rid of blank lines produced by os-apply-config
Partial-Bug: #1674732
Change-Id: Ibe0a9f6ec10d55750e3b0e16301236141f988d69
The entries received from Heat are based on Heat names of
OS::Nova::Server resources, which can contain uppercase letters. However
the hostnames set by Nova are lowercase. This can make the actual
hostname differ from entries in /etc/hosts, which can make the output of
`hostname -f` differ from `facter fqdn`, which can cause failed Puppet
runs.
This patch makes sure that the /etc/hosts entries that Heat adds are
lowercase.
Change-Id: Iec5b6450c5730c081c8f2ca4d6c9786b956c87d5
Partial-Bug: #1447497
diff exits non-zero when a diff actually exists. This causes 51-hosts to
exit and fails the os-refresh-config run. This issue is manifested when
doing a stack-update and a new host is added to the stack.
Closes-Bug: #1355646
Change-Id: Ia0e3670960b4b136fda9b09c188baf1f23d45d6b
This should prevent writing duplicates to /etc/hosts and also
preserve the entries when cloudinit runs on reboot since they are
present in /etc/cloud/templates/hosts.tmpl.
Closes-Bug: #1333649
Change-Id: Icabdb423b16eb143a5ab6f62084d01e8fd4ac384
/etc/hosts is modified and ends up having the wrong SELinux file
context. Run restorecon to correct it.
Change-Id: I07da602db49b0f122a86a95b5dc5d294fc95ce5c
Closes-Bug: 1344417