The --templates path must match the -e path, e.g:
openstack overcloud upgrade prepare \
--templates ~/tripleo-heat-templates
-e ~/tripleo-heat-templates/*.yaml
Though, there are totally valid cases when --templates is
mixed with auto generated -e files residing in either temp
dirs or the user's home dir. For example, heat undercloud
installer generates such files. So we can not blindly
prohibit non matching --templates and -e's.
To adress that UX issue, add additional contstraints for
undercloud tht env files validation:
* "-e" files can not refer external files normally
processed from jinja2 in t-h-t. Those must come from
the templates path only.
NOTE: the similar change for overcloud should be done
in follow-ups.
Partial-bug: #1762403
Depends-On: I10d4dffcd3802f62fc824c808728c0b5b4f1002c
Change-Id: Ia9c62c787d6c581a66b2fde030a60499cfa18b82
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>