python-tripleoclient/tripleoclient
Bogdan Dobrelya 038ed01058 UC: validate paths for tht templates and env files
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>
2018-05-05 00:38:01 +00:00
..
tests Merge "Add --stack to update, upgrade and ffwd-upgrade 'run' CLI." 2018-05-05 00:06:30 +00:00
v1 UC: validate paths for tht templates and env files 2018-05-05 00:38:01 +00:00
workflows Add 'overcloud node clean' command to run metadata cleaning on nodes 2018-04-27 15:41:14 +02:00
__init__.py Add ReNo support 2016-10-08 00:28:43 +00:00
command.py Add each command to the history file 2017-11-27 15:37:00 +00:00
constants.py Merge "Revert "Alter default http boot path for containerized Ironic"" 2018-04-25 18:23:00 +00:00
exceptions.py Fix error handling for actions 2017-09-27 18:09:33 +02:00
heat_launcher.py Merge "Move heat_launcher data to /var/log/heat-launcher" 2018-04-20 13:59:44 +00:00
noauth_policy.json Add heat_launcher module to help launch heat-all 2017-02-08 15:49:24 -05:00
plugin.py Don't delete the tripleo Zaqar queue 2018-03-23 14:56:06 +00:00
utils.py Merge "Add --stack to update, upgrade and ffwd-upgrade 'run' CLI." 2018-05-05 00:06:30 +00:00