Abstract Compute node template is not supported
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TOSCA Parser |
New
|
Undecided
|
Unassigned |
Bug Description
In case that try to use a simple abstract compute node like this one:
tosca_definitio
description: Template with requirements against hosting infrastructure.
topology_template:
node_templates:
mysql_compute:
type: Compute
capabilities:
host:
os:
type: linux
You get an error, as it is trying to validate the constraints without considering the "operator" functions:
Traceback (most recent call last):
File "/usr/local/
sys.
File "/usr/local/
ParserShell
File "/usr/local/
self.
File "/usr/local/
tosca = ToscaTemplate(path, None, a_file)
File "/usr/local/
self.
File "/usr/local/
return TopologyTemplat
File "/usr/local/
self.
File "/usr/local/
tpl.
File "/usr/local/
self.
File "/usr/local/
self.
File "/usr/local/
prop.validate()
File "/usr/local/
self.
File "/usr/local/
constraint.
File "/usr/local/
if not self._is_
File "/usr/local/
value >= self.constraint
TypeError: '>=' not supported between instances of 'dict' and 'int'