j2_excludes file is mandatory for using process_templates.py script

Bug #1806351 reported by Saravanan KR
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Saravanan KR

Bug Description

Script /usr/share/openstack-tripleo-heat-templates/tools/process-templates.py requires the file j2_execludes.yaml to be present in the base path (-b option) to complete the processing of jinja2 templates. As this processing can be used standalone without t-h-t repository, j2_excludes file could be made optional, in which case, users should be able to use below command:

  $ /usr/share/openstack-tripleo-heat-templates/tools/process-templates.py \
         -p ~/templates/ \
         -r ~/templates/roles_data.yaml \
         -n ~/templates/network_data.yaml

Saravanan KR (skramaja)
Changed in tripleo:
assignee: nobody → Saravanan KR (skramaja)
milestone: none → stein-2
importance: Undecided → Medium
Changed in tripleo:
status: New → In Progress
Revision history for this message
Saravanan KR (skramaja) wrote :
tags: added: queens-backport-potential rocky-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

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

commit 435e846779526b3e56a67537d7280b614068d190
Author: Saravanan KR <email address hidden>
Date: Fri Nov 30 15:27:09 2018 +0530

    Process the templates even if j2_excludes file is not present

    It is possible to use the process_templates script to generate the
    user's jinja templates based on role and network data. But the script
    expects the presence of j2_excludes file. Making it as optional, allows
    users to generate templates in user's template directory itself, like

      $ /usr/share/openstack-tripleo-heat-templates/tools/process-templates.py \
             -p ~/templates/ \
             -r ~/templates/roles_data.yaml \
             -n ~/templates/network_data.yaml

    Closes-Bug: #1806351
    Change-Id: I375cd9ff9b40bbdad34d0732ec8abd25fbdde46e

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 10.3.0

This issue was fixed in the openstack/tripleo-heat-templates 10.3.0 release.

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.