tripleo-common/tripleo_common/utils
Jiri Stransky 3eedf929e8 Fix overwriting downloaded config files
When we wrote downloaded config files over previously existing ones,
we sometimes got garbled files with remainders of the previous state,
e.g.:

step_4:
  keystone_refresh:
    action: exec
    command:
    - keystone
    - pkill
    - --signal
    - USR1
    - httpd
    start_order: 1
    user: root
start_order: 1
    user: root

This was because we opened the file for writing but didn't truncate
its size, so this commit adds O_TRUNC to the flags for opening
files. It's very similar to bug 1434187 which we had a long time ago.

Revert "Fix deploy health checks"
Depends-On: Ia2c12d7455564b6297c5f0934812b10fabbdc914

Change-Id: Ib1d3c68ec3c4048ffc7277daf84834288ea50e48
Closes-Bug: #1783866
(cherry picked from commit f6767eb21c)
2018-08-07 15:55:17 +00:00
..
__init__.py Initial workflow implementation of tripleo-common 2015-12-07 12:38:42 -05:00
config.py Fix overwriting downloaded config files 2018-08-07 15:55:17 +00:00
glance.py Accept glance image ID in addition to name 2017-10-24 15:22:03 -04:00
keystone.py Switch to use sessions on zaqar, nova and swift 2017-11-23 02:47:58 +00:00
nodes.py ensure unique ironic node ID with UCS driver 2018-07-20 15:55:10 -04:00
overcloudrc.py Stop setting IRONIC_API_VERSION and OS_BAREMETAL_API_VERSION in overcloudrc 2017-11-24 14:55:15 +01:00
parameters.py Derive Params (part 1): Initial workflow to start 2017-06-09 03:57:56 -04:00
passwords.py Manage legacy OS::TripleO::RandomString resources in constants 2018-01-08 20:28:27 +00:00
plan.py Fixes ordering of environment files in a deployment plan 2018-07-12 11:26:36 -04:00
roles.py Added networks_skip_config parameter to the roles file 2018-02-21 16:52:10 +05:30
swift.py Allow uploading big files to swift (5GB) 2018-04-24 16:18:48 +02:00
tarball.py Persist ceph-ansible fetch_directory using mistral 2018-07-17 12:47:30 +00:00
time_functions.py Add GUI logging workflows 2017-08-08 08:55:55 +02:00
validations.py Fix chown command for tripleo validation. 2017-11-22 15:09:08 +00:00