Heat does not find nova endpoint

Bug #1364408 reported by Thomas Spatzier
This bug report is a duplicate of:  Bug #1364463: Incorrect key in endpoint dictionary. Edit Remove
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Heat
New
Undecided
Sergey Kraynev

Bug Description

One a current devstack with latest code from master I hit the problem that Heat does not seem to be able to find the nova endpoint in keystone. Doing a stack-create with a basic template results in the following error:

ERROR: Property error : server: key_name publicURL endpoint for compute service in RegionOne region not found

This is the really basic template I am using:

heat_template_version: 2013-05-23

parameters:
  key_name:
    type: string
    description: Keypair name
    default: heat_key
  flavor:
    type: string
    description: Flavor name
    default: m1.tiny
  image:
    type: string
    description: Image name

resources:
  server:
    type: OS::Nova::Server
    properties:
      image: { get_param: image }
      flavor: { get_param: flavor }
      key_name: { get_param: key_name }

outputs:
  ip_address:
    description: IP address of the server
    value: { get_attr: [ server, networks, private, 0 ] }

Revision history for this message
Thomas Spatzier (thomas-spatzier) wrote :

Note: this could also be a nova or keystone related bug which only surfaces when using Heat. A current Heat running against a slightly older version of other services works fine. I only hit this bug when running a complete fresh devstack.

Revision history for this message
Thomas Spatzier (thomas-spatzier) wrote :

I debugged into the issue and got to this point where the error occurs:

https://github.com/openstack/python-keystoneclient/blob/master/keystoneclient/service_catalog.py#L132

I turns out that endpoint does not have a 'region' attribute but a 'region_id' attribute. But no idea where this change comes from ...

Revision history for this message
William C. Arnold (barnold-8) wrote :

maybe this? https://github.com/openstack/keystone/commit/1028eb7794f6b9cdfbb98cbbfb5145ead4b9259a
"Merge "Endpoint table is missing reference to region table"

Revision history for this message
William C. Arnold (barnold-8) wrote :

and here is patch:
Merge "Endpoint table is missing reference to region table"

Revision history for this message
William C. Arnold (barnold-8) wrote :
Revision history for this message
Sergey Kraynev (skraynev) wrote :

lol, I recently finished debug my problem with Heat autoscaling and got same result for image service:

" ImageId publicURL endpoint for image service in RegionOne region not found "

Link on bug:

https://bugs.launchpad.net/keystone/+bug/1364463

Link on review:

https://review.openstack.org/#/c/118383/

Revision history for this message
William C. Arnold (barnold-8) wrote :

Thanks, that patch unbreaks heat for me.

Revision history for this message
William C. Arnold (barnold-8) wrote :

patch rev 2 (https://review.openstack.org/#/c/118383/) works as well, and is more complete

Revision history for this message
Jamie Lennox (jamielennox) wrote :

Does this represent an API break on keystone? How did this used to work otherwise?

Changed in heat:
assignee: nobody → Sergey Kraynev (skraynev)
Revision history for this message
Dolph Mathews (dolph) wrote :

This looks to be a duplicate of bug 1364463 but I'm confused as to how this was reported before the offending code landed in Keystone?

Revision history for this message
Steven Hardy (shardy) wrote :

Thomas, Sergey - can we close this as a duplicate of the keystone bug?

Revision history for this message
Thomas Spatzier (thomas-spatzier) wrote :

Done, marked it as duplicate of the ks bug.

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.