Closed ryancurrah closed 9 years ago
Hi,
The "port" property is merely a syntactic sugar, meant to help users who want to define a rule for a specific port.
To define a port range, one should use the standard Openstack parameters - in the case of a Neutron security-group, the relevant ones are "port_range_min" and "port_range_max", while if you're using Nova security groups the parameters are "from_port" and "to_port".
These properties should go in the rule definition, instead of the "port" property which you've used.
It's important to note that the type you're currently using is a Neutron security-group, while the example you gave was using Nova. If you wish to use a Nova security-group, check out the "cloudify.openstack.nova_net.nodes.SecurityGroup" type, instead of the non-nova-net one.
Thanks,
Ran.
From: Ryan Currah notifications@github.com Sent: Thursday, December 04, 2014 4:43 PM To: cloudify-cosmo/cloudify-openstack-plugin Subject: [cloudify-openstack-plugin] Port statement does not allow port ranges. (#36)
I declared a port range in my blueprint...
node_templates:
node_security_group: type: cloudify.openstack.nodes.SecurityGroup properties: security_group: name: websphere_security_group rules:
but the 'neutron_plugin.security_group.create' task failed with a 'Invalid value for port 19000 19999'... is there a specific way to set the port range for this plugin?
I know in openstack's nova client it is possible to declare a range. http://docs.openstack.org/openstack-ops/content/security_groups.html
$ nova secgroup-add-rule
+-------------+-----------+---------+-----------+--------------+ | IP Protocol | From Port | To Port | IP Range | Source Group | +-------------+-----------+---------+-----------+--------------+ | tcp | 80 | 80 | 0.0.0.0/0 | | +-------------+-----------+---------+-----------+--------------+
cfy command execution and error output...
(env)[root@ryansaltdev blueprints]# cfy executions start -w deploy -d websphere_test_deploy -l
Executing workflow 'deploy' on deployment 'websphere_test_deploy' at management server 10.155.255.181 [timeout=900 seconds]
2014-12-04T09:18:22 CFY
— Reply to this email directly or view it on GitHubhttps://github.com/cloudify-cosmo/cloudify-openstack-plugin/issues/36.
In the future, please ask questions on the relevant Cloudify google group, which can be found here:
Users group: https://groups.google.com/forum/#!forum/cloudify-users Developers group: https://groups.google.com/forum/#!forum/cloudify-developers
Thank you.
I declared a port range in my blueprint...
but the 'neutron_plugin.security_group.create' task failed with a 'Invalid value for port 19000 19999'... is there a specific way to set the port range for this plugin?
I know in openstack's nova client it is possible to declare a range. http://docs.openstack.org/openstack-ops/content/security_groups.html
cfy command execution and error output...