tht process-templates.py fails for custom output dirs

Bug #1748425 reported by Bogdan Dobrelya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Bogdan Dobrelya

Bug Description

The command like './tools/process-templates.py --roles-data roles_data_undercloud.yaml' works, while './tools/process-templates.py --output-dir /tmp/foo --roles-data roles_data_undercloud.yaml' fails with:

rendering j2 template to file: /tmp/fooba/./network/internal_api_v6.yaml
Error rendering template /tmp/fooba/./network/internal_api_v6.yaml : network.j2
Traceback (most recent call last):
  File "./tools/process-templates.py", line 293, in <module>
    network_data_path, (not opts.safe))
  File "./tools/process-templates.py", line 207, in process_templates
    out_f_path)
  File "./tools/process-templates.py", line 76, in _j2_render_to_file
    raise Exception(error_msg)
Exception: Error rendering template /tmp/fooba/./network/internal_api_v6.yaml : network.j2

Changed in tripleo:
importance: Undecided → Medium
milestone: none → queens-rc1
status: New → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

Fix proposed to branch: master
Review: https://review.openstack.org/542833

Changed in tripleo:
assignee: nobody → Bogdan Dobrelya (bogdando)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/542833
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=e6946bc5f2b81ef93178cc7088bb8647b78ee292
Submitter: Zuul
Branch: master

commit e6946bc5f2b81ef93178cc7088bb8647b78ee292
Author: Bogdan Dobrelya <email address hidden>
Date: Fri Feb 9 14:48:30 2018 +0100

    Fix custom output dir for templates processor

    Templates processor fails to locate *.j2 files,
    when a custom output dir is specified.

    Ensure *.j2 templates are on their expected search
    paths for upcoming pasring and rendering

    Change-Id: Idbc93e27574c66a9a5a73e3fcd7e88647282f201
    Closes-bug: #1748425
    Signed-off-by: Bogdan Dobrelya <email address hidden>

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 8.0.0.0rc1

This issue was fixed in the openstack/tripleo-heat-templates 8.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.