Getting the following error executing the overcloud-deploy.sh
***
...
Processing environment files /home/stack/tripleo-heat-templates/environments/net-single-nic-with-vlans.yaml
Redirecting env file /home/stack/tripleo-heat-templates/environments/net-single-nic-with-vlans.yaml to /tmp/tripleoclient-7yIBX5/tripleo-heat-templates/environments/net-single-nic-with-vlans.yaml
Error Could not fetch contents for file:///tmp/tripleoclient-7yIBX5/tripleo-heat-templates/network/config/single-nic-vlans/compute.yaml processing environment file /tmp/tripleoclient-7yIBX5/tripleo-heat-templates/environments/net-single-nic-with-vlans.yaml
Rewriting /tmp/tripleoclient-7yIBX5/tripleo-heat-templates/environments/net-single-nic-with-vlans.yaml environment to /tmp/tripleoclient-7yIBX5/tripleo-heat-templates/env-net-single-nic-with-vlans-r5vByh.yaml
Could not fetch contents for file:///tmp/tripleoclient-7yIBX5/tripleo-heat-templates/network/config/single-nic-vlans/compute.yaml
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/site-packages/tripleoclient/command.py", line 25, in run
super(Command, self).run(parsed_args)
File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
return super(Command, self).run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/command.py", line 184, in run
return_code = self.take_action(parsed_args) or 0
File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_deploy.py", line 950, in take_action
self._deploy_tripleo_heat_templates_tmpdir(stack, parsed_args)
File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_deploy.py", line 415, in _deploy_tripleo_heat_templates_tmpdir
new_tht_root, tht_root)
File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_deploy.py", line 478, in _deploy_tripleo_heat_templates
cleanup=not parsed_args.no_cleanup)
File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_deploy.py", line 237, in _process_multiple_environments
env_path=f.name)
File "/usr/lib/python2.7/site-packages/heatclient/common/template_utils.py", line 319, in process_environment_and_files
env_base_url)
File "/usr/lib/python2.7/site-packages/heatclient/common/template_utils.py", line 357, in resolve_environment_urls
is_object=is_object, object_request=object_request)
File "/usr/lib/python2.7/site-packages/heatclient/common/template_utils.py", line 161, in get_file_contents
file_content = utils.read_url_content(str_url)
File "/usr/lib/python2.7/site-packages/heatclient/common/utils.py", line 417, in read_url_content
raise exc.CommandError(_('Could not fetch contents for %s') % url)
CommandError: Could not fetch contents for file:///tmp/tripleoclient-7yIBX5/tripleo-heat-templates/network/config/single-nic-vlans/compute.yaml
clean_up DeployOvercloud: Could not fetch contents for file:///tmp/tripleoclient-7yIBX5/tripleo-heat-templates/network/config/single-nic-vlans/compute.yaml
...
***
TO REPRODUCE THE ISSUE
======================
Installing tripleO with tripleo-quickstart with the following command:
/quickstart.sh -X -T all --retain-inventory -t untagged,provision,environment,libvirt,undercloud-scripts,undercloud-inventory,overcloud-scripts,undercloud-setup,undercloud-install,undercloud-post-install,tripleoui-validate,overcloud-prep-config --requirements quickstart-extras-requirements.txt -N config/nodes/1ctlr_1comp_64gb.yml -c /home/installer/.quickstart/config/general_config/containers_minimal.yml -R master 192.168.1.45
Once on the undercloud cloning the tripleo-heat-templates and modified the overcloud-prep-containers.sh and the overcloud-deploy.sh scripts to use the new t-h-t location and adding the --debug and -e /home/stack/tripleo-heat-templates/environments/debug.yaml.
WORKAROUND
==========
1.-Removed all the roles from the tripleo-heat-templates/roles_data.yaml except the compute and controller.
2.-Modified the parameter deprecated_nic_config_name on the two roles (compute & controller) the new values will be:
controller --> deprecated_nic_config_name: 'controller-role.yaml'
compute --> deprecated_nic_config_name: 'compute-role.yaml'
Seems that we default to role.name.lower() not rolename-role.yaml:
https:/ /github. com/openstack/ tripleo- heat-templates/ blob/master/ environments/ net-single- nic-with- vlans.j2. yaml#L11