Senlin integration broken in latest Pike

Bug #1760931 reported by Erik Olof Gunnar Andersson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
New
Undecided
Unassigned

Bug Description

There are two things broken in the Senlin integration for Heat.

The first issue I encountered was this.
> Error: ERROR: Property error: : resources.profile.properties.type: : Could not find requested endpoint in Service Catalog.

It was solved by cherry-picking the following patch from Queens.
https://github.com/openstack/heat/commit/ac3670eaf856120be7eb9993b1603125abe633ae#diff-b6958df5fc7e9ee167b5858c45ff11e4

The second issue is this, when creating a stack using Senlin.
> Property error: resources.profile.properties.type: Error validating value 'os.nova.server-1.0': Unable to find senlin profile type 'os.nova.server-1.0', available profile types are [u'container.dockerinc.docker', u'os.nova.server', u'os.heat.stack'].
https://github.com/openstack/heat/blob/stable/pike/heat/engine/clients/os/senlin.py#L129

The valid values should be followed by a version (e.g. -1.0), but for some reason the values returned by the Senlin client does not have these appended.

As a work-around, I was able to get it working by manually appending the version.
https://github.com/openstack/heat/blob/7fd82e1b7811038b2792124e9cfdf41b5657ded1/heat/engine/clients/os/senlin.py#L130

e.g.
> -names = [pt.name for pt in type_list]
> +names = ['%s-%s' % (pt.name, pt.support_status.keys()[0]) for pt in type_list]

description: updated
Rico Lin (rico-lin)
Changed in heat:
milestone: none → no-priority-tag-bugs
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.