Non-unicode and unicode dicts cannot be compared.
That makes paunch failing to detect config changes and
rebuilding containers w/o a need.
Use yaml safe_load in order to produce a non-unicode dict
for the right comparison of config data.
NOTE: This change is different for <= Rocky as we refactored in Stein.
Conflicts:
paunch/builder/base.py
Change-Id: I507f4b07af2c515fd8548af7dbe6b35ad2a269a9
Closes-Bug: #1810690
Signed-off-by: Bogdan Dobrelya <email address hidden>
(cherry picked from commit 5558e521abc48f5cf1bd3fcfdaec1149a05dcfaa)
Reviewed: https:/ /review. openstack. org/630750 /git.openstack. org/cgit/ openstack/ paunch/ commit/ ?id=e52fdc08541 2b7631364b1c93c 98a5e5a25d4320
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit e52fdc085412b76 31364b1c93c98a5 e5a25d4320
Author: Bogdan Dobrelya <email address hidden>
Date: Fri Jan 11 12:35:36 2019 +0100
Fix comparing dictionaries for changes detection
Non-unicode and unicode dicts cannot be compared.
That makes paunch failing to detect config changes and
rebuilding containers w/o a need.
Use yaml safe_load in order to produce a non-unicode dict
for the right comparison of config data.
NOTE: This change is different for <= Rocky as we refactored in Stein. builder/ base.py 5fd8548af7dbe6b 35ad2a269a9 cf1bd3fcfdaec11 49a05dcfaa)
Conflicts:
paunch/
Change-Id: I507f4b07af2c51
Closes-Bug: #1810690
Signed-off-by: Bogdan Dobrelya <email address hidden>
(cherry picked from commit 5558e521abc48f5