I was getting 400 client request errors when running the default example for kubernetes.
When I switched the "port_range_min" value from 0 to 1, I didn't get the error.
security-group:
type: cloudify.nodes.openstack.SecurityGroup
properties:
client_config: { get_input: client_config_dict }
resource_config:
name: kubernetes-security-group
description: 'Kubernetes Openstack Group'
security_group_rules:
- direction: ingress
protocol: tcp
port_range_min: 0
port_range_max: 65535
- direction: ingress
protocol: udp
port_range_min: 0
port_range_max: 65535
- direction: ingress
protocol: icmp
port_range_min: null
port_range_max: null
BadRequestException: BadRequestException: 400: Client Error for url: https://10.200.0.5:9696/v2.0/security-group-rules, Invalid value for port 0
--------------------------------
Traceback (most recent call last):
File "/opt/mgmtworker/env/lib/python2.7/site-packages/cloudify/dispatch.py", line 813, in main
payload = handler.handle()
File "/opt/mgmtworker/env/lib/python2.7/site-packages/cloudify/dispatch.py", line 461, in handle
result = self._run_operation_func(ctx, kwargs)
File "/opt/mgmtworker/env/lib/python2.7/site-packages/cloudify/dispatch.py", line 519, in _run_operation_func
return self.func(*self.args, **kwargs)
File "/opt/mgmtworker/env/plugins/default_tenant/cloudify-openstack-plugin-3.2.9/lib/python2.7/site-packages/openstack_plugin/decorators.py", line 147, in wrapper
func(**kwargs_config)
File "/opt/mgmtworker/env/plugins/default_tenant/cloudify-openstack-plugin-3.2.9/lib/python2.7/site-packages/openstack_plugin/decorators.py", line 120, in wrapper_inner
causes=[exception_to_error_cause(errors, tb)])
NonRecoverableError: Failure while trying to run operation:cloudify.interfaces.lifecycle.configure: BadRequestException: 400
I am still working on this, so I will update if I find there is something wrong with this. Do we need port 0 for anything? Is this problem just me?