Commit Graph

653 Commits

Author SHA1 Message Date
Tony Breeds 5438eef466 Retire Packaging Deb project repos
This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).

Change-Id: I0a72f3bba5b5529fcc670df34aaaae76fcb2016c
2017-09-12 16:13:01 -06:00
OpenStack Proposal Bot 3f5476e442 Updated from global requirements
Change-Id: Ic2b6513c28174df8bd0c6d634a906c19e3ace76d
2017-07-21 00:23:48 +00:00
shangxdy 8d7519a717 Add exception info about get_explicit_relationship
Currently it's not convienent to debug about the
relationship between two nodetemplates, this patch
add more debug information when exception happends.

Change-Id: I91a6ed0cb6c9675d76f620c742c8546c457b239b
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2017-07-13 19:31:48 +08:00
shangxdy 5c58a3cd85 fix nested import list bug
When import list yaml in top service template, and the nested templates
 also import list yaml, the final type definition is not imported complete.

Change-Id: I8931d2ee4bcb9e3d4c82ac36ef3e6844ca78c165
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2017-07-12 01:19:35 +08:00
OpenStack Proposal Bot ea5500cf25 Updated from global requirements
Change-Id: Iad765612c2c8f556fa56cef98172e90206987214
2017-06-27 12:24:30 +00:00
Miguel Caballer 2b62122338 Fix error getting a boolean capability property with value false
Change-Id: I559868a01bc2739d70a8ee56823da539d7f51431
Related-Bug: #1697856
2017-06-20 06:18:04 +00:00
OpenStack Proposal Bot f03e48d59b Updated from global requirements
Change-Id: Icb3aa7ee7b42a5fe781aec1e2323b14d03c92eb5
2017-06-10 21:50:52 +00:00
Jenkins 5869822c70 Merge "Fix error getting relationshps in case of custom_def capability" 2017-05-17 14:23:05 +00:00
OpenStack Proposal Bot fabf882b45 Updated from global requirements
Change-Id: Ifa07045cec5c04793a151aedc0f7c241143077a3
2017-05-17 04:00:21 +00:00
OpenStack Proposal Bot c3aed2f800 Updated from global requirements
Change-Id: Ibc4a7af92a78f7b74787a75046a3bf0b83c7f08a
2017-05-15 00:56:59 +00:00
Miguel Caballer c3e180db79 Fix error getting relationshps in case of custom_def capability
Change-Id: I5bbc21113451d17e887ee79426e4205d40f57f6a
Related-Bug: #1687598
2017-05-11 05:41:36 +00:00
OpenStack Proposal Bot 04544f6262 Updated from global requirements
Change-Id: I0b291b59256a0233394caea424070f11cd384290
2017-04-26 18:21:22 +00:00
doantungbk 0b000ae4e8 Add more properties to trigger policy.
Currently monitoring policy in Tacker is not fully validated in tosca-parser.
This made monitoring feature beoken in Tacker.

Change-Id: Iebe961eb38e36ac55a212482596c2a30fd75f1c8
2017-04-16 19:10:16 -07:00
OpenStack Proposal Bot 8ead56f0d0 Updated from global requirements
Change-Id: Iba13100a27ec4024a6f949219b289b60becd9366
2017-04-12 04:23:47 +00:00
OpenStack Proposal Bot 35849fcf69 Updated from global requirements
Change-Id: I907d0d824eca1a66c80e2aa4baf4ae207dac71b8
2017-04-07 06:18:19 +00:00
Miguel Caballer e822838247 Fix _find_host_containing_property function to search for properties in capabilities
Change-Id: Ie21b74c225c7222b5333cab9d680cd728ed35ed7
Related-bug: #1675764
2017-03-27 10:40:00 +02:00
Jenkins ec16c17a41 Merge "Fix error not considering inheritance in valid_target_types checking in functions" 2017-03-21 16:04:31 +00:00
Miguel Caballer c71c7d37b2 Fix error not considering inheritance in valid_target_types checking in functions
Change-Id: Ifcf0ce478450340597fc112a87c367f5b832faca
Related-Bug: #1672989
2017-03-20 07:14:25 +00:00
Jenkins 9e31b142ba Merge "Add FloatingIP Node" 2017-03-18 03:03:03 +00:00
Saju Madhavan 0f2e5a5543 fix gate-tosca-parser-python35 issue
Change-Id: Id5a7b39a4c27b2afc264308891a0011cc38da4a0
Closes-Bug: #1672219
2017-03-13 02:56:25 +05:30
Saju Madhavan 0be59f0dc2 Add FloatingIP Node
Change-Id: I7ed187c7691a815e65a26a688e4a53d1cdf359df
Partial-Bug: 1537636
2017-03-13 02:11:19 +05:30
Jenkins 067f12e542 Merge "Changed the derived type of "tosca.nodes.SomeApp"" 2017-03-11 16:09:23 +00:00
OpenStack Proposal Bot f1c52369bb Updated from global requirements
Change-Id: I17599462b1f17420c9d3e3a497521aba99dab96c
2017-03-03 23:01:04 +00:00
Jenkins cc437400f7 Merge "Updated from global requirements" 2017-03-03 15:50:52 +00:00
Jenkins b76cf8a764 Merge "[Fix gate]Update test requirement" 2017-03-03 15:03:58 +00:00
Antonio Di Tommaso 5f4be56599 Changed the derived type of "tosca.nodes.SomeApp"
The node template "app" (that is the one instantiating
"example.SomeApp" in the topology) is connected to the node "websrv",
which is of type "tosca.nodes.WebServer", which is not a valid target
 for the requirement "host".

We fixed the definition of the type "example.SomeApp" to derive "example.SomeApp" from "tosca.nodes.WebApplication", whose "host"
requirement has to be satisfied by a "tosca.nodes.WebServer".

Change-Id: I16e697bcd9f1728df1d0b18595fdb4a703f41d26
Closes-bug: #1663681
2017-03-03 14:18:09 +01:00
Jenkins e809409db0 Merge "Add monitoring node in tosca-parser" 2017-03-03 10:28:14 +00:00
ricolin 7ec435d35c [Fix gate]Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: Id7c7d58c845335b8defb4fbb33ae4a0da848d00f
2017-03-02 20:21:44 +08:00
OpenStack Proposal Bot d9196b720f Updated from global requirements
Change-Id: I4b2f3d0a1989157ed13cb3d2efe2065b928e3d86
2017-03-02 11:56:58 +00:00
doantungbk 3d21f12576 Add monitoring node in tosca-parser
This patch will focus on:

1. Defining a monitoring node as an EXPERIMENTAL feature
2. Enhancing trigger to further support monitoring policy
3. Validating trigger policy

Change-Id: Idd5268b7ff0a19b57ea927f23c76db24220c462d
2017-02-27 23:51:44 -08:00
Anusree 22db270003 remove key from _get_node_type_by_cap
Change-Id: I5491c9bd96dd1804004d0efda7cd987c46f777bf
Closes-Bug: 1668075
2017-02-26 21:42:35 +05:30
OpenStack Proposal Bot 811ce4fa38 Updated from global requirements
Change-Id: I1160eb800643c48470846117c7d9ebf5d31d7395
2017-02-11 17:53:42 +00:00
OpenStack Proposal Bot 9a3dfa1cd4 Updated from global requirements
Change-Id: Ibba19779f56e8db7e0f9306d39fec6cd6947de5a
2017-02-10 06:01:24 +00:00
Jenkins c43d164445 Merge "Fix typo in compute_with_nested_atributes.yaml" 2017-01-24 14:28:12 +00:00
zhangyanxian 6936537d96 Fix typo in compute_with_nested_atributes.yaml
TrivialFix

Change-Id: Ie5f0963f31ffe67e19857a396045d6c06519bbb0
2017-01-22 01:59:55 +00:00
Anusree f233a15db0 Remove white space between print ()
There was a white space between print and ()

Change-Id: I233aab6e67aa2368066ae579acda2552a2b8cbdd
2017-01-20 03:16:17 +05:30
Jenkins e3aa060102 Merge "Provide parsing support for multiple policies" 2017-01-18 19:39:35 +00:00
sahdev zala 91482c21ca Provide parsing support for multiple policies
Change-Id: Iab8b9954c0edf311e3c239fb8d08f2ef328a2a63
Partially-Implements: blueprint tosca-multiple-policies-support
2017-01-17 16:28:35 -05:00
sahdev zala d3498b3652 Fix validation for invalid type
Fix validation for invalid type when found along with an imports section
in a TOSCA template.

Change-Id: I6b0c6299c1ef96b037527db68f9f86a5a81dded5
Closes-Bug: #1656994
2017-01-16 22:17:33 -05:00
sahdev zala 64afa7f2f6 Fix few keywords on TOSCA policy
Fix few keywords to work further on the multiple policy support work

Change-Id: I22ed1e9263bab84ba7635d86c39ad18b6941467d
2017-01-14 21:13:03 -05:00
Miguel Caballer f0b547a3a9 Bugfix in InterfacesDef __init__ function
Fixes a small bug in the __init__ function of the InterfacesDef class when node_template is None.

Change-Id: I6999531d04ee9548943311c3ba6cb73cbb89169f
2017-01-10 09:11:57 +01:00
sahdev zala 5d1647d5f5 Template to demonstrate properties override
Test template to provide an example of how to overrride TOSCA normative
type properties in custom type.

Change-Id: I91d1a9170d47f8313c24b194ad264898830a87c4
2017-01-07 23:04:24 -05:00
Bharath Thiruveedula ed70f10d7a Log the required inputs, instead of raising exceptions
Change-Id: If154aeebf277b3374aaff9c6b5d1d9522ea6c13c
Closes-Bug: #1653992
2017-01-05 00:05:42 +05:30
gecong1973 e076a18eab Delete unnecessary utf-8 coding
The file was added redundant utf-8 coding by some editor.
we can delete it .

Change-Id: If65ee62c8ac47e58746a6c3f7ac0c9ea72a0e1ab
2016-12-27 11:21:33 +08:00
Tony Breeds 4b1043f414 Add Constraints support
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.

This change adds constraints support by also adding a helper script to
edit the constraints to remove tosca-parser.

Change-Id: Ia9d0bee95a0541eb308d1fb273319209187ce64b
2016-12-21 13:53:04 +11:00
shangxdy d061ef025d Add output validation for substitution mappings
1. Validate that the attributes of the substitution mappings node type can be
accessed in the service template by substituted node.
2.Validate that an attempt to access any attributes not belong to a specific
node type or substitution mappings results into an expected error.

This patch is related to bp: https://review.openstack.org/#/c/345492/

Co-Authored-By: Sahdev Zala <spzala@us.ibm.com>

Change-Id: I5f6cdcf7eb66f20ba9e524b73edd249d2c7b1e31
2016-12-16 10:59:03 -05:00
shangxdy 9baadf93b5 Add input validation in substitution_mapping class
Add input validation in class of substitution_mapping according to
specification of
http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.0/
TOSCA-Simple-Profile-YAML-v1.0.html:
1) The properties of substituted node template which be mapped must be
in the inputs of nested service template which defines substutition
mappings;
2) The inputs of nested service template which are not in properties of
the substituted node template must have default values.
3) If the properties of node_type is required and no default value,
 must provide inputs for them;
4) Property names and the input names must be the same.

This patch is related to bp:https://review.openstack.org/#/c/345492/

Change-Id: Ib928434ec67661e689ac80cca1749b53d17e4ba8
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2016-12-06 01:12:05 +08:00
Jenkins 63384ef235 Merge "Using assertIsNone() instead of assertEqual(None, ...)" 2016-12-02 15:06:35 +00:00
OpenStack Proposal Bot 5ea32bc19d Updated from global requirements
Change-Id: I64b7ca9bf66577b90173bd652c8aa95dcf6ee15f
2016-12-02 05:15:29 +00:00
Cao Xuan Hoang c51af153b6 Using assertIsNone() instead of assertEqual(None, ...)
Following OpenStack Style Guidelines[1]:
[H203] Unit test assertions tend to give better messages for more
specific assertions. As a result, assertIsNone(...) is preferred
over assertEqual(None, ...) and assertIs(None, ...)

[1] http://docs.openstack.org/developer/hacking/#unit-tests-and-assertraises

Change-Id: I14f54cbb7dce27e70fed4ef1cb85748474f54fc5
2016-12-01 09:57:54 +07:00