522 Commits

Author SHA1 Message Date
huangtianhua
77e5072621 Allow function 'yaql' as condition function
Allow 'yaql' in condition definition, like:

parameters:
  ServiceNames:
    type: comma_delimited_list
    default: ['neutron', 'heat']
conditions:
  contains_neutron:
    yaql:
      expression: $.data.service_names.contains('neutron')
      data:
        service_names:
          get_param: ServiceNames

Closes-Bug: #1693093

Change-Id: I83a540336c01a696780621fb2b39486a6abf0917
2017-05-25 01:19:26 +00:00
huangtianhua
812e786efb Support 'list_concat_unique'
Adds function 'list_concat_unique' to concat
several lists using python's extend function
and make sure without repeating items.

Blueprint: support-list-concat-unique-function
Change-Id: Ia0e35eb578ebe91543c644155a86030b3258118b
2017-05-18 01:29:48 +00:00
Jenkins
d6d836ff62 Merge "Add the HOT fuction str_replace_vstrict" 2017-05-15 06:10:17 +00:00
ChangBo Guo(gcb)
381a84a4e8 Remove usage of parameter enforce_type
Oslo.config deprecated parameter enforce_type and change its default
value to True in Ifa552de0a994e40388cbc9f7dbaa55700ca276b0. Remove
the usage of it to avoid DeprecationWarning: "Using the 'enforce_type'
argument is deprecated in version '4.0' and will be removed in version
'5.0': The argument enforce_type has changed its default value to True
and then will be removed completely."

Change-Id: I91b0f0a52b5ce8654702510eed76d5dea8cc8fe4
Related--Bug: #1517839
2017-05-08 17:55:32 +08:00
Jenkins
9513feca7d Merge "Fix doc generation for Python3" 2017-05-01 20:45:34 +00:00
Crag Wolfe
1f8d70346a Add the HOT fuction str_replace_vstrict
The already existing str_replace_strict function raises an error if a
param is not present in the template. str_replace_vstrict, newly added
in this patch, is identical but also raises an error if any of the
params have an empty value.

Change-Id: I5407135cc0435cfbad2d18964fe2119c999f67a3
2017-04-21 19:08:20 -07:00
Juan Antonio Osorio Robles
19ba1c031f doc: Add description of list_concat in pike notes
Change-Id: Ifcc165112dd0bdd90d2a06df066cafde54f5bdfa
2017-04-21 11:27:06 +03:00
Juan Antonio Osorio Robles
98faf03be4 Implement list_concat function
This function uses python's extend function for lists in order to
concatenate lists. So, given the input: [['v1', 'v2'], ['v3', 'v4']]
the result would be ['v1', 'v2', 'v3', 'v4'].

This comes as an alternative to using yaql's concat.

Change-Id: I082833e73388540b29f71b78293fd36fe04b7b92
2017-04-20 19:08:25 +03:00
M V P Nitesh
776241e2fa Fix doc generation for Python3
Fix the Sphinx html_last_updated_fmt for Python3.
The html_last_updated_fmt option is interpeted as a
byte string in python3, causing Sphinx build to break.
This patch makes it utf-8 string.

Change-Id: I9acc4200751e63fa29be738cfa00c4637efd8287
2017-04-17 18:12:24 +05:30
Jenkins
a8ace9daa4 Merge "Get rid of undesirable properties.data usage" 2017-04-10 05:12:50 +00:00
Jenkins
b763be28de Merge "Update rally link" 2017-04-06 12:40:25 +00:00
Peter Razumovsky
b386d97825 Get rid of undesirable properties.data usage
Remove all undesirable properties.data usages in resource
plugins. This usages can be harmless replaced with self.properties.

Change-Id: Ic8f619adc09fc5a2bd8e5cdb02d058199318b6c9
2017-04-04 14:29:29 +00:00
Steven Hardy
a444d7718d Fix docs for length constraint supported types
This constraint actually supports list/map parameters not
only string

Change-Id: I68a9a98c3843e08199b6126d643c532a19372262
2017-03-30 10:20:38 +01:00
ricolin
709dc86917 Update rally link
Update rally link to the correct path.

Change-Id: Ifeee881465f812527eab4cc191c2140b803a613a
2017-03-24 11:58:38 +08:00
Zane Bitter
6e7b3be2b8 Add a make_url intrinsic function
A large proportion of uses of the str_replace function is to build URLs out
of various components from various sources. This is invariably brittle,
with a failure to escape special characters, deal with IPv6 addresses, and
so on. The make_url function provides a both a tidier interface and correct
handling of these edge cases.

Change-Id: I61b6dff01cd509b3d1c54bca118632c276569f4e
2017-03-14 15:34:31 -04:00
Zane Bitter
2a887c06d8 Add new HOT version for Pike release
The new version is "2017-09-01" or "pike".

Change-Id: I7f1bccb39edc036c2b7b1340d430937bd0dc1de2
2017-03-14 15:34:31 -04:00
Thomas Herve
ae6711d661 Make a backward compatible docutils fix
THe fix for docutils 0.13 doesn't work with 0.12, obviously. This works
around the issue handling both version of the internal API.

Change-Id: I3bebb206a3205a6f3fa77a7844e50c2e090630a4
2017-03-06 09:13:16 +01:00
Thomas Herve
3c0362e24c Fix doc build
This fixes an API change in our custom TableFromText sphinx extension.

Change-Id: Ibfae2628fe3cf2194abd6765d57a284c6e4cc66f
2017-03-03 10:08:10 +01:00
Jenkins
4e09241574 Merge "Fix wrong indents for docs" 2017-02-24 17:43:45 +00:00
chenxing
f6ad1e8584 Fix the incorrect link of the rdo installation guide
Change-Id: Ibd7a0e005675b55661dfcbaa3912d0b630ddb2d2
2017-02-20 07:01:05 +00:00
huangtianhua
80dfa8c9a7 Mark deprecated resources as HIDDEN
Change-Id: Ib271b2e51d8c65a2a76f7049d0fe12727869e400
2017-02-10 16:47:17 +08:00
Jenkins
56df8bf76b Merge "Switch to heat-agents for docs" 2017-02-09 05:02:44 +00:00
huangtianhua
5e71fa7269 Fix wrong indents for docs
Change-Id: If27fec6a20011098c772f8ab3eaaf56304d378e0
Closes-Bug: #1662444
2017-02-09 09:55:11 +08:00
Jenkins
6ce005c967 Merge "Add Pike version '9.0.0' in doc" 2017-02-07 02:41:28 +00:00
huangtianhua
1fabf0a88f Add Pike version '9.0.0' in doc
Change-Id: Ia2fc4593275c2f52ab202bf9331ef54dec548e0b
2017-02-04 14:53:55 +08:00
Crag Wolfe
98505288b2 Add heat-manage subcommand to migrate legacy prop. data
Add a subcommand to heat-manage to migrate resource and events
properties data from the legacy db locations to the new. I.e., migrate
properties data out of the legacy columns in the resource and event
tables into the recently added resource_properties_data table. No
attempt at de-duplication between resources and events is made for the
migration: a new row is created in resource_properties_data for every
row that has legacy properties data in the resource or event tables.

Change-Id: I364d509c357539d1929eb2e40704e60049469ea2
2017-01-31 13:45:52 -08:00
huangtianhua
a2248043e1 Switch to heat-agents for docs
We have already created a new heat-agents repo,
switch to use heat-agents in docs.

Change-Id: I21689bb5832cfc113762cfc63629db5a675424b5
2017-01-18 11:50:52 +08:00
ricolin
9087f24881 Add note for env prepare of Custom image script
Add note for `Custom image script` to make sure everyone
aware of requirements of environment before running the scripts.
Closes-Bug: #1651237

Change-Id: Ic9874765ff3d1925c4edf3b2b1b766cddaee550a
2017-01-08 00:34:18 +08:00
Jenkins
1f7925d8e8 Merge "Sanitize newly added heat-manage command" 2017-01-04 11:04:32 +00:00
huangtianhua
da864c8fa3 Use 'openstack' commands instead in docs
Use 'openstack' commands instead of 'heat' commands.

Change-Id: I493487d4cfa7279460bed5d267150408854044a5
2016-12-28 15:31:50 +08:00
Jenkins
642404d6ff Merge "Docs of configuring Devstack to enable heat" 2016-12-27 03:40:12 +00:00
rabi
0a66b7750f Sanitize newly added heat-manage command
This changes newly added heat-manage command for migrating
non-convergence stacks to convergence, to use '_' like other
commands. Also updates doc with the command.

Change-Id: I2ea5beb1c71cf51dceee7df6af6a6827d920c179
2016-12-23 12:25:03 +00:00
huangtianhua
798bb10b1a Several improvements of pluginguide.rst
Change-Id: Ia418ff2f8150e83b11e314aeaf3c77ebefeb7c31
2016-12-21 07:48:49 +00:00
ricolin
2310d0b3ea Update fedora image in devstack
Current image path is invalid, change to new path. Also update os
version to new version.

Change-Id: I9ef726d7ff3433dcbfb8450ff7a290e5ea10b5cd
2016-12-15 13:05:25 +08:00
liangshang
af4086b4fd Docs of configuring Devstack to enable heat
Heat code has been removed from devstack tree.
Users can just use Devstack heat by plugin.
https://review.openstack.org/#/c/317618/

Co-Authored-By: shizhihui <zhihui.shi@easystack.cn>

Change-Id: Ibcdc3e19f331307d91b90fb305932f8928a197fd
2016-11-17 03:52:58 +08:00
huangtianhua
b579d9f582 Give correct example for translation_rules definition
Change-Id: I21208ac0803b4dd7835bac619c64fc3b6fb25988
2016-11-16 01:55:17 +00:00
Thomas Herve
df674a715b Add filter function
Add a new HOT intrinsic function to filter out values from lists.

Closes-Bug: #1633512
Change-Id: Ie90001e6436b5ed5b29db7d3c166aba42299d3df
2016-11-04 10:46:12 +01:00
Jenkins
708bda5152 Merge "Add a modulo core constraint" 2016-10-26 04:12:29 +00:00
Jenkins
99df5cba64 Merge "Fix typo in documentation" 2016-10-26 03:27:25 +00:00
Peter Razumovsky
a7c7945d01 Add info to docs about heat devstack plugin
Since Newton release heat devstack plugin will be available,
so need to add info about that to documentation.

Change-Id: Ie2503fbdd9e3f72c20889a675664fb5149d2b287
Closes-bug: #1610987
2016-10-24 12:27:52 +03:00
Ana Krivokapic
b1144b22ce Add a modulo core constraint
A modulo constraint will be used to restrict numeric values to
leave a certain remainder when divided with certain divisor.
E.g. we can use this to constrain values to even/odd numbers.

Change-Id: I9d7db4307be2a2b93cc928cf5912af7b49c72076
2016-10-11 16:55:11 +02:00
Crag Wolfe
aac3e7aae6 Add new hot function str_replace_strict
In many cases, a user would rather see an error result if a
str_replace param is not substituted in the template, rather than the
function silently doing nothing.

Since str_replace is set in its ways, introduce a new function
str_replace_strict which behaves identically to str_replace except
that a ValueError is raised if any of the param's are not found
in the template.

Change-Id: I8b8c69bb49dfeb74e05af4871602c20493b081eb
2016-10-10 10:24:55 -07:00
Pierre Riteau
cd69fe37d5 Fix typo in documentation
Change-Id: I91edba9a3570580fdb2ee649be20996993e3b7c7
2016-10-08 14:28:50 -05:00
Jenkins
38b3d4349e Merge "Add a new HOT template version for Ocata" 2016-09-28 03:44:24 +00:00
Sylvain Baubeau
eaedf85c99 Fix indentation in get_param example
Change-Id: I116228897c1709b7cc0a8d0ec30020bb5588262a
2016-09-23 17:13:44 +02:00
ricolin
aa90b5a7ec Add a new HOT template version for Ocata
Add new template version `heat_template_version.2017-02-24`, and
add version `heat_template_version.ocata` refering to
`heat_template_version.2017-02-24`.

Change-Id: Ic89fc1a02988091dd2833cc50abee61edfabbb00
2016-09-22 09:34:07 +08:00
huangtianhua
2ca07d14b7 Add Ocata version '8.0.0' in doc
Change-Id: I06208036b2eb43eb6d40887a1dd66850b5f04c15
2016-09-21 14:53:36 +08:00
Ha Van Tu
7b6ac8a04e Update link reference
This patch update the outdated link reference inside the doc.

Change-Id: I0b27aecade2a4b37bdf1e52c9f049075ed18a2ce
2016-09-15 14:37:34 +07:00
Jenkins
9df7ee3a09 Merge "Allows condition name using boolean or function" 2016-09-15 05:11:02 +00:00
Jenkins
e80062b6ea Merge "Allow referencing conditions by name" 2016-09-14 22:43:56 +00:00