process-templates script doesn't write to output dir when base_path is set

Bug #1794769 reported by Bob Fournier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Bob Fournier

Bug Description

When using the process-templates script with the -o OUTPUT_DIR param, the output is not written to this directory if the -p BASE_PATH is set to something other than the default ('.'). It will simply write the output to the base_path.

/home/stack/tripleo-heat-templates/tools/process-templates.py -p /home/stack/tripleo-heat-templates/ -r /home/stack/tripleo-heat-templates/roles_data.yaml -n /home/stack/tripleo-heat-templates/network_data.yaml -o /home/stack/dirname

Result:
/home/stack/dirname is created and empty
processed files are written to /home/stack/tripleo-heat-templates/

Bob Fournier (bfournie)
Changed in tripleo:
assignee: nobody → Bob Fournier (bfournie)
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/605736

Changed in tripleo:
status: New → In Progress
Changed in tripleo:
milestone: none → stein-1
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-heat-templates (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/605804

Changed in tripleo:
assignee: Bob Fournier (bfournie) → Harald Jensås (harald-jensas)
Changed in tripleo:
assignee: Harald Jensås (harald-jensas) → Bob Fournier (bfournie)
Changed in tripleo:
assignee: Bob Fournier (bfournie) → Harald Jensås (harald-jensas)
Changed in tripleo:
assignee: Harald Jensås (harald-jensas) → Bob Fournier (bfournie)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (master)

Change abandoned by Harald Jensås (<email address hidden>) on branch: master
Review: https://review.openstack.org/605804

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

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

commit 47f47c1deaca950bb45babb5c0bb799897273413
Author: Bob Fournier <email address hidden>
Date: Thu Sep 27 09:57:29 2018 -0400

    In process-templates script write output files to provided dir when using base path

    When running the process-templates script with both the -o OUTPUT_DIR and
    -p BASE_PATH options the output files were not being written to the output
    directory. This fix splits out the file path from the base path to properly
    write the files.

    Change-Id: I845e8a2cbd2b12a4a1552b2cfa3ac013466da6bd
    Closes-Bug: #1794769

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/607375

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/rocky)

Reviewed: https://review.openstack.org/607375
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=c46632b8513ddba313632e253d771046676190dc
Submitter: Zuul
Branch: stable/rocky

commit c46632b8513ddba313632e253d771046676190dc
Author: Bob Fournier <email address hidden>
Date: Thu Sep 27 09:57:29 2018 -0400

    In process-templates script write output files to provided dir when using base path

    When running the process-templates script with both the -o OUTPUT_DIR and
    -p BASE_PATH options the output files were not being written to the output
    directory. This fix splits out the file path from the base path to properly
    write the files.

    Change-Id: I845e8a2cbd2b12a4a1552b2cfa3ac013466da6bd
    Closes-Bug: #1794769
    (cherry picked from commit 47f47c1deaca950bb45babb5c0bb799897273413)

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 10.0.0

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 9.1.0

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/633808

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/queens)

Reviewed: https://review.openstack.org/633808
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=22f8389f067df502f499de4413bbd3ec69f14b20
Submitter: Zuul
Branch: stable/queens

commit 22f8389f067df502f499de4413bbd3ec69f14b20
Author: Bob Fournier <email address hidden>
Date: Thu Sep 27 09:57:29 2018 -0400

    In process-templates script write output files to provided dir when using base path

    When running the process-templates script with both the -o OUTPUT_DIR and
    -p BASE_PATH options the output files were not being written to the output
    directory. This fix splits out the file path from the base path to properly
    write the files.

    Change-Id: I845e8a2cbd2b12a4a1552b2cfa3ac013466da6bd
    Closes-Bug: #1794769
    (cherry picked from commit 47f47c1deaca950bb45babb5c0bb799897273413)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 8.3.0

This issue was fixed in the openstack/tripleo-heat-templates 8.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.