Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error creating senlin profile with HEAT yaml

This is the error encountered

Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 134, in run ret_val = super(OpenStackShell, self).run(argv) File "/usr/lib/python2.7/site-packages/cliff/app.py", line 279, in run result = self.run_subcommand(remainder) File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 169, in run_subcommand ret_value = super(OpenStackShell, self).run_subcommand(argv) File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand result = cmd.run(parsed_args) File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run return super(Command, self).run(parsed_args) File "/usr/lib/python2.7/site-packages/cliff/display.py", line 113, in run column_names, data = self.take_action(parsed_args) File "/usr/lib/python2.7/site-packages/heatclient/osc/v1/stack.py", line 183, in take_action stack = client.stacks.create(*fields)['stack'] File "/usr/lib/python2.7/site-packages/heatclient/v1/stacks.py", line 171, in create data=kwargs, headers=headers) File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 294, in post return self.request(url, 'POST', *kwargs) File "/usr/lib/python2.7/site-packages/heatclient/common/http.py", line 317, in request raise exc.from_response(resp) HTTPBadRequest: ERROR: Property error: : resources.profile.properties.type: : Could not find requested endpoint in Service Catalog.

HTTPBadRequest: ERROR: Property error: : resources.profile.properties.type: : Could not find requested endpoint in Service Catalog.

I am able to create prolies, cluster , everything is working perfectly when working directly with senlin.

Issue is when creating heat stack for senlin.

HEAT template used:

heat_template_version: 2016-04-08

description: > This template demostrate how to use senlin resources to create a flexible cluster. parameters: flavor: description: Flavor for the instances to be created. type: string default: 1 image: description: Name or ID of the image to use for the instances. type: string default: cirros key_name: description: Name of an existing key pair to use for the instances. type: string network: description: The network for the instances. type: string default: private

resources: profile: type: OS::Senlin::Profile properties: type: os.nova.server-1.0 properties: flavor: {get_param: flavor} image: {get_param: image} key_name: {get_param: key_name} networks: - network: {get_param: network}

cluster: type: OS::Senlin::Cluster properties: desired_capacity: 1 profile: {get_resource: profile}

scale_in_policy: type: OS::Senlin::Policy properties: type: senlin.policy.scaling-1.0 bindings: - cluster: {get_resource: cluster} properties: event: CLUSTER_SCALE_IN adjustment: type: CHANGE_IN_CAPACITY number: 1

scale_out_policy: type: OS::Senlin::Policy properties: type: senlin.policy.scaling-1.0 bindings: - cluster: {get_resource: cluster} properties: event: CLUSTER_SCALE_OUT adjustment: type: CHANGE_IN_CAPACITY number: 1

receiver_scale_out: type: OS::Senlin::Receiver properties: cluster: {get_resource: cluster} action: CLUSTER_SCALE_OUT type: webhook

receiver_scale_in: type: OS::Senlin::Receiver properties: cluster: {get_resource: cluster} action: CLUSTER_SCALE_IN type: webhook

outputs: webhook_scale_out: description: Webhook to scale out cluster. value: str_replace: template: curl -X POST LINK params: LINK: {get_attr: [receiver_scale_out, channel, alarm_url]}

webhook_scale_in: description: Webhook to scale in cluster. value: str_replace: template: curl -X POST LINK params: LINK: {get_attr: [receiver_scale_in, channel, alarm_url]}

Thanks in advance.