Bug 1666675 - [OpenStack] process-templates.py doesnt generate the files in the output directory
Summary: [OpenStack] process-templates.py doesnt generate the files in the output dire...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 13.0 (Queens)
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: ---
: 13.0 (Queens)
Assignee: Jill Rouleau
QA Contact: Sasha Smolyak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-16 10:59 UTC by Madhur Gupta
Modified: 2019-03-14 13:55 UTC (History)
7 users (show)

Fixed In Version: openstack-tripleo-heat-templates-8.0.7-35.el7ost.src.rpm
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-03-14 13:55:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 633808 0 None MERGED In process-templates script write output files to provided dir when using base path 2020-05-18 06:12:35 UTC
Red Hat Product Errata RHBA-2019:0448 0 None None None 2019-03-14 13:55:19 UTC

Comment 16 Artem Hrechanychenko 2019-02-27 09:57:54 UTC
VERIFIED
openstack-tripleo-heat-templates-8.2.0-4.el7ost.noarch

[stack@undercloud-0 ~]$ cat core_puddle_version 
2019-02-25.2

Running without output dir

[stack@undercloud-0 ~]$ /usr/share/openstack-tripleo-heat-templates/tools/process-templates.py --base_path /usr/share/openstack-tripleo-heat-templates --roles-data /usr/share/openstack-tripleo-heat-templates/roles_data.yaml --network-data /usr/share/openstack-tripleo-heat-templates/network_data.yaml  --safe
jinja2 rendering normal template net-config-bond.j2.yaml
rendering j2 template to file: /usr/share/openstack-tripleo-heat-templates/net-config-bond.yaml
Traceback (most recent call last):
  File "/usr/share/openstack-tripleo-heat-templates/tools/process-templates.py", line 327, in <module>
    network_data_path, (not opts.safe))
  File "/usr/share/openstack-tripleo-heat-templates/tools/process-templates.py", line 254, in process_templates
    overwrite)
  File "/usr/share/openstack-tripleo-heat-templates/tools/process-templates.py", line 93, in _j2_render_to_file
    with open(outfile_name, 'w') as out_f:
IOError: [Errno 13] Permission denied: '/usr/share/openstack-tripleo-heat-templates/net-config-bond.yaml'

Running with specified output dir

[stack@undercloud-0 ~]$ /usr/share/openstack-tripleo-heat-templates/tools/process-templates.py --base_path /usr/share/openstack-tripleo-heat-templates --roles-data /usr/share/openstack-tripleo-heat-templates/roles_data.yaml --network-data /usr/share/openstack-tripleo-heat-templates/network_data.yaml -o /home/stack/test --safe
jinja2 rendering normal template net-config-bond.j2.yaml
rendering j2 template to file: /home/stack/test/net-config-bond.yaml
jinja2 rendering normal template net-config-bridge.j2.yaml
rendering j2 template to file: /home/stack/test/net-config-bridge.yaml
jinja2 rendering normal template net-config-linux-bridge.j2.yaml
rendering j2 template to file: /home/stack/test/net-config-linux-bridge.yaml
jinja2 rendering normal template net-config-noop.j2.yaml
rendering j2 template to file: /home/stack/test/net-config-noop.yaml
jinja2 rendering normal template net-config-static-bridge-with-external-dhcp.j2.yaml
rendering j2 template to file: /home/stack/test/net-config-static-bridge-with-external-dhcp.yaml
jinja2 rendering normal template net-config-static-bridge.j2.yaml
rendering j2 template to file: /home/stack/test/net-config-static-bridge.yaml
jinja2 rendering normal template net-config-static.j2.yaml
rendering j2 template to file: /home/stack/test/net-config-static.yaml
jinja2 rendering normal template net-config-undercloud.j2.yaml
rendering j2 template to file: /home/stack/test/net-config-undercloud.yaml
jinja2 rendering normal template overcloud-resource-registry-puppet.j2.yaml
rendering j2 template to file: /home/stack/test/overcloud-resource-registry-puppet.yaml
jinja2 rendering normal template overcloud.j2.yaml
rendering j2 template to file: /home/stack/test/overcloud.yaml
jinja2 rendering normal template post.j2.yaml
rendering j2 template to file: /home/stack/test/common/post.yaml
jinja2 rendering normal template host-config-and-reboot.j2.yaml
rendering j2 template to file: /home/stack/test/environments/host-config-and-reboot.yaml
jinja2 rendering normal template net-bond-with-vlans.j2.yaml
rendering j2 template to file: /home/stack/test/environments/net-bond-with-vlans.yaml
jinja2 rendering normal template net-multiple-nics-v6.j2.yaml
rendering j2 template to file: /home/stack/test/environments/net-multiple-nics-v6.yaml
jinja2 rendering normal template net-multiple-nics.j2.yaml
rendering j2 template to file: /home/stack/test/environments/net-multiple-nics.yaml
jinja2 rendering normal template network-environment.j2.yaml
rendering j2 template to file: /home/stack/test/environments/network-environment.yaml
jinja2 rendering normal template network-isolation-v6.j2.yaml
rendering j2 template to file: /home/stack/test/environments/network-isolation-v6.yaml
jinja2 rendering normal template deployed-server-environment.j2.yaml
rendering j2 template to file: /home/stack/test/environments/deployed-server-environment.yaml
jinja2 rendering normal template network-isolation.j2.yaml
rendering j2 template to file: /home/stack/test/environments/network-isolation.yaml
jinja2 rendering normal template net-bond-with-vlans-v6.j2.yaml
rendering j2 template to file: /home/stack/test/environments/net-bond-with-vlans-v6.yaml
jinja2 rendering normal template networks-disable.j2.yaml
rendering j2 template to file: /home/stack/test/environments/networks-disable.yaml
jinja2 rendering normal template net-bond-with-vlans-no-external.j2.yaml
rendering j2 template to file: /home/stack/test/environments/net-bond-with-vlans-no-external.yaml
jinja2 rendering normal template net-dpdkbond-with-vlans.j2.yaml
rendering j2 template to file: /home/stack/test/environments/net-dpdkbond-with-vlans.yaml
jinja2 rendering normal template net-single-nic-linux-bridge-with-vlans.j2.yaml
rendering j2 template to file: /home/stack/test/environments/net-single-nic-linux-bridge-with-vlans.yaml
jinja2 rendering normal template net-single-nic-with-vlans-no-external.j2.yaml
rendering j2 template to file: /home/stack/test/environments/net-single-nic-with-vlans-no-external.yaml
jinja2 rendering normal template net-single-nic-with-vlans-v6.j2.yaml
rendering j2 template to file: /home/stack/test/environments/net-single-nic-with-vlans-v6.yaml
jinja2 rendering normal template net-single-nic-with-vlans.j2.yaml
rendering j2 template to file: /home/stack/test/environments/net-single-nic-with-vlans.yaml
jinja2 rendering normal template network-environment-v6.j2.yaml
rendering j2 template to file: /home/stack/test/environments/network-environment-v6.yaml
jinja2 rendering normal template network-isolation-no-tunneling.j2.yaml
rendering j2 template to file: /home/stack/test/environments/network-isolation-no-tunneling.yaml
jinja2 rendering normal template overcloud-baremetal.j2.yaml
rendering j2 template to file: /home/stack/test/environments/overcloud-baremetal.yaml
jinja2 rendering normal template split-stack-consistent-hostname-format.j2.yaml
rendering j2 template to file: /home/stack/test/environments/split-stack-consistent-hostname-format.yaml
jinja2 rendering normal template mac_hostname.j2.yaml
rendering j2 template to file: /home/stack/test/extraconfig/all_nodes/mac_hostname.yaml
jinja2 rendering normal template random_string.j2.yaml
rendering j2 template to file: /home/stack/test/extraconfig/all_nodes/random_string.yaml
jinja2 rendering normal template swap-partition.j2.yaml
rendering j2 template to file: /home/stack/test/extraconfig/all_nodes/swap-partition.yaml
jinja2 rendering normal template swap.j2.yaml
rendering j2 template to file: /home/stack/test/extraconfig/all_nodes/swap.yaml
jinja2 rendering normal template krb-service-principals.j2.yaml
rendering j2 template to file: /home/stack/test/extraconfig/nova_metadata/krb-service-principals.yaml
jinja2 rendering normal template post_puppet_pacemaker.j2.yaml
rendering j2 template to file: /home/stack/test/extraconfig/tasks/post_puppet_pacemaker.yaml
jinja2 rendering network template network.network.j2.yaml
jinja2 rendering networks InternalApi,Management,Storage,StorageMgmt,External,Tenant
rendering j2 template to file: /home/stack/test/network/internal_api.yaml
rendering j2 template to file: /home/stack/test/network/management.yaml
rendering j2 template to file: /home/stack/test/network/storage.yaml
rendering j2 template to file: /home/stack/test/network/storage_mgmt.yaml
rendering j2 template to file: /home/stack/test/network/external.yaml
rendering j2 template to file: /home/stack/test/network/tenant.yaml
jinja2 rendering network template network_v6.network.j2.yaml
jinja2 rendering networks InternalApi,Management,Storage,StorageMgmt,External,Tenant
rendering j2 template to file: /home/stack/test/network/internal_api_v6.yaml
rendering j2 template to file: /home/stack/test/network/management_v6.yaml
rendering j2 template to file: /home/stack/test/network/storage_v6.yaml
rendering j2 template to file: /home/stack/test/network/storage_mgmt_v6.yaml
rendering j2 template to file: /home/stack/test/network/external_v6.yaml
rendering j2 template to file: /home/stack/test/network/tenant_v6.yaml
jinja2 rendering normal template networks.j2.yaml
rendering j2 template to file: /home/stack/test/network/networks.yaml
jinja2 rendering normal template service_net_map.j2.yaml
rendering j2 template to file: /home/stack/test/network/service_net_map.yaml
jinja2 rendering normal template controller-no-external.j2.yaml
rendering j2 template to file: /home/stack/test/network/config/bond-with-vlans/controller-no-external.yaml
jinja2 rendering normal template controller-v6.j2.yaml
rendering j2 template to file: /home/stack/test/network/config/bond-with-vlans/controller-v6.yaml
jinja2 rendering role template role.role.j2.yaml
jinja2 rendering roles Controller,Compute,BlockStorage,ObjectStorage,CephStorage
rendering j2 template to file: /home/stack/test/network/config/bond-with-vlans/controller.yaml
rendering j2 template to file: /home/stack/test/network/config/bond-with-vlans/compute.yaml
rendering j2 template to file: /home/stack/test/network/config/bond-with-vlans/cinder-storage.yaml
rendering j2 template to file: /home/stack/test/network/config/bond-with-vlans/swift-storage.yaml
rendering j2 template to file: /home/stack/test/network/config/bond-with-vlans/ceph-storage.yaml
jinja2 rendering normal template compute-dvr.j2.yaml
rendering j2 template to file: /home/stack/test/network/config/multiple-nics/compute-dvr.yaml
jinja2 rendering normal template controller-v6.j2.yaml
rendering j2 template to file: /home/stack/test/network/config/multiple-nics/controller-v6.yaml
jinja2 rendering role template role.role.j2.yaml
jinja2 rendering roles Controller,Compute,BlockStorage,ObjectStorage,CephStorage
rendering j2 template to file: /home/stack/test/network/config/multiple-nics/controller.yaml
rendering j2 template to file: /home/stack/test/network/config/multiple-nics/compute.yaml
rendering j2 template to file: /home/stack/test/network/config/multiple-nics/cinder-storage.yaml
rendering j2 template to file: /home/stack/test/network/config/multiple-nics/swift-storage.yaml
rendering j2 template to file: /home/stack/test/network/config/multiple-nics/ceph-storage.yaml
jinja2 rendering normal template controller-v6.j2.yaml
rendering j2 template to file: /home/stack/test/network/config/single-nic-linux-bridge-vlans/controller-v6.yaml
jinja2 rendering role template role.role.j2.yaml
jinja2 rendering roles Controller,Compute,BlockStorage,ObjectStorage,CephStorage
rendering j2 template to file: /home/stack/test/network/config/single-nic-linux-bridge-vlans/controller.yaml
rendering j2 template to file: /home/stack/test/network/config/single-nic-linux-bridge-vlans/compute.yaml
rendering j2 template to file: /home/stack/test/network/config/single-nic-linux-bridge-vlans/cinder-storage.yaml
rendering j2 template to file: /home/stack/test/network/config/single-nic-linux-bridge-vlans/swift-storage.yaml
rendering j2 template to file: /home/stack/test/network/config/single-nic-linux-bridge-vlans/ceph-storage.yaml
jinja2 rendering normal template controller-no-external.j2.yaml
rendering j2 template to file: /home/stack/test/network/config/single-nic-vlans/controller-no-external.yaml
jinja2 rendering normal template controller-v6.j2.yaml
rendering j2 template to file: /home/stack/test/network/config/single-nic-vlans/controller-v6.yaml
jinja2 rendering role template role.role.j2.yaml
jinja2 rendering roles Controller,Compute,BlockStorage,ObjectStorage,CephStorage
rendering j2 template to file: /home/stack/test/network/config/single-nic-vlans/controller.yaml
rendering j2 template to file: /home/stack/test/network/config/single-nic-vlans/compute.yaml
rendering j2 template to file: /home/stack/test/network/config/single-nic-vlans/cinder-storage.yaml
rendering j2 template to file: /home/stack/test/network/config/single-nic-vlans/swift-storage.yaml
rendering j2 template to file: /home/stack/test/network/config/single-nic-vlans/ceph-storage.yaml
jinja2 rendering normal template net_ip_list_map.j2.yaml
rendering j2 template to file: /home/stack/test/network/ports/net_ip_list_map.yaml
jinja2 rendering normal template net_ip_map.j2.yaml
rendering j2 template to file: /home/stack/test/network/ports/net_ip_map.yaml
jinja2 rendering normal template net_vip_map_external.j2.yaml
rendering j2 template to file: /home/stack/test/network/ports/net_vip_map_external.yaml
jinja2 rendering normal template net_vip_map_external_v6.j2.yaml
rendering j2 template to file: /home/stack/test/network/ports/net_vip_map_external_v6.yaml
jinja2 rendering network template port.network.j2.yaml
jinja2 rendering networks InternalApi,Management,Storage,StorageMgmt,External,Tenant
rendering j2 template to file: /home/stack/test/network/ports/internal_api.yaml
rendering j2 template to file: /home/stack/test/network/ports/management.yaml
rendering j2 template to file: /home/stack/test/network/ports/storage.yaml
rendering j2 template to file: /home/stack/test/network/ports/storage_mgmt.yaml
rendering j2 template to file: /home/stack/test/network/ports/external.yaml
rendering j2 template to file: /home/stack/test/network/ports/tenant.yaml
jinja2 rendering network template port_from_pool.network.j2.yaml
jinja2 rendering networks InternalApi,Management,Storage,StorageMgmt,External,Tenant
rendering j2 template to file: /home/stack/test/network/ports/internal_api_from_pool.yaml
rendering j2 template to file: /home/stack/test/network/ports/management_from_pool.yaml
rendering j2 template to file: /home/stack/test/network/ports/storage_from_pool.yaml
rendering j2 template to file: /home/stack/test/network/ports/storage_mgmt_from_pool.yaml
rendering j2 template to file: /home/stack/test/network/ports/external_from_pool.yaml
rendering j2 template to file: /home/stack/test/network/ports/tenant_from_pool.yaml
jinja2 rendering network template port_from_pool_v6.network.j2.yaml
jinja2 rendering networks InternalApi,Management,Storage,StorageMgmt,External,Tenant
rendering j2 template to file: /home/stack/test/network/ports/internal_api_from_pool_v6.yaml
rendering j2 template to file: /home/stack/test/network/ports/management_from_pool_v6.yaml
rendering j2 template to file: /home/stack/test/network/ports/storage_from_pool_v6.yaml
rendering j2 template to file: /home/stack/test/network/ports/storage_mgmt_from_pool_v6.yaml
rendering j2 template to file: /home/stack/test/network/ports/external_from_pool_v6.yaml
rendering j2 template to file: /home/stack/test/network/ports/tenant_from_pool_v6.yaml
jinja2 rendering network template port_v6.network.j2.yaml
jinja2 rendering networks InternalApi,Management,Storage,StorageMgmt,External,Tenant
rendering j2 template to file: /home/stack/test/network/ports/internal_api_v6.yaml
rendering j2 template to file: /home/stack/test/network/ports/management_v6.yaml
rendering j2 template to file: /home/stack/test/network/ports/storage_v6.yaml
rendering j2 template to file: /home/stack/test/network/ports/storage_mgmt_v6.yaml
rendering j2 template to file: /home/stack/test/network/ports/external_v6.yaml
rendering j2 template to file: /home/stack/test/network/ports/tenant_v6.yaml
jinja2 rendering normal template all-nodes-config.j2.yaml
rendering j2 template to file: /home/stack/test/puppet/all-nodes-config.yaml
jinja2 rendering role template role.role.j2.yaml
jinja2 rendering roles Controller,Compute,BlockStorage,ObjectStorage,CephStorage
rendering j2 template to file: /home/stack/test/puppet/controller-role.yaml
rendering j2 template to file: /home/stack/test/puppet/compute-role.yaml
rendering j2 template to file: /home/stack/test/puppet/blockstorage-role.yaml
rendering j2 template to file: /home/stack/test/puppet/objectstorage-role.yaml
rendering j2 template to file: /home/stack/test/puppet/cephstorage-role.yaml
jinja2 rendering normal template neutron-ml2-cisco-nexus-ucsm.j2.yaml
rendering j2 template to file: /home/stack/test/puppet/extraconfig/all_nodes/neutron-ml2-cisco-nexus-ucsm.yaml
jinja2 rendering normal template apache.j2.yaml
rendering j2 template to file: /home/stack/test/puppet/services/apache.yaml
jinja2 rendering normal template haproxy-internal-tls-certmonger.j2.yaml
rendering j2 template to file: /home/stack/test/puppet/services/haproxy-internal-tls-certmonger.yaml

[stack@undercloud-0 ~]$ ls test/
all-nodes-validation.yaml        default_passwords.yaml  hosts-config.yaml                                 net-config-static-bridge.yaml            overcloud.yaml              scripts
bootstrap-config.yaml            deployed-server         j2_excludes.yaml                                  net-config-static.yaml                   plan-environment.yaml       tools
capabilities-map.yaml            docker                  net-config-bond.yaml                              net-config-undercloud.yaml               plan-samples                validation-scripts
ci                               docker_config_scripts   net-config-bridge.yaml                            network                                  puppet
common                           environments            net-config-linux-bridge.yaml                      network_data_ganesha.yaml                roles
config-download-software.yaml    extraconfig             net-config-noop.yaml                              network_data.yaml                        roles_data_undercloud.yaml
config-download-structured.yaml  firstboot               net-config-static-bridge-with-external-dhcp.yaml  overcloud-resource-registry-puppet.yaml  roles_data.yaml

Comment 18 errata-xmlrpc 2019-03-14 13:55:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:0448


Note You need to log in before you can comment on or make changes to this bug.