Bug 1268687 - [Docs] [Director] Configuring after overcloud creation incorrect str_replace parameters in example
Summary: [Docs] [Director] Configuring after overcloud creation incorrect str_replace ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: documentation
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: async
: 7.0 (Kilo)
Assignee: Dan Macpherson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-04 18:14 UTC by Ramon Acedo
Modified: 2015-12-16 04:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-16 04:53:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ramon Acedo 2015-10-04 18:14:28 UTC
In section 8.2 the example uses str_replace incorrectly and when applying the suggested modification it fails:

$ openstack overcloud deploy --templates -e ~/templates/post_config.yaml
Deploying templates in the directory /usr/share/openstack-tripleo-heat-templates
ERROR: openstack ERROR: Failed to validate: Failed to validate: u'"str_replace" syntax should be str_replace:\n              template: This is var1 template var2\n              params:\n                var1: a\n                var2: string'

The reason seems to be that it uses str_replace with "parameters" instead of "params" as documented in:

 http://docs.openstack.org/developer/heat/template_guide/hot_spec.html#str-replace 

str_replace:
  template: <template string>
  params: <parameter mappings>

Comment 2 Andrew Dahms 2015-10-08 00:45:49 UTC
Assigning to Dan for review.

Comment 5 Ramon Acedo 2015-10-15 07:51:03 UTC
Yes, that matches my working configuration and upstream documentation at http://docs.openstack.org/developer/heat/template_guide/hot_spec.html#str-replace


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