Newton: Heat not validating images

Bug #1665851 reported by Gianpietro Lavado on 2017-02-18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Heat

Bug Description

I'm seeing this error when Heat validates the existence of an image:

2017-02-18 00:44:03.777 7906 INFO heat.engine.resource [req-593e2bad-c87f-4308-8fe8-fe8652286201 - - - - -] Validating Server "server"
2017-02-18 00:44:03.779 7906 DEBUG heat.engine.stack [req-593e2bad-c87f-4308-8fe8-fe8652286201 - - - - -] Property error: "cirros" does not validate glance.image (constraint not found) validate /usr/lib/python2.7/dist-packages/heat/engine/
2017-02-18 00:44:03.783 7906 DEBUG oslo_messaging.rpc.server [req-593e2bad-c87f-4308-8fe8-fe8652286201 - - - - -] Expected exception during message handling () _process_incoming /usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/

The image, however, exists and is public:

os@controller:~$ openstack image list
| ID | Name | Status |
| 7ab5d7aa-0d0d-4a38-bf05-03089f49d2d7 | cirros | active |

I have been updating some componentes related to Tacker and Openstackclient, so I think one of those updates triggered the bug.
Please let me know which information to recollect.


affects: horizon → heat

Found out that this is happening with python-glanceclient 2.6.0 and heat 1.8.0.
Downgraded to python-glanceclient 2.5.0, reloaded heat services, and the problem is gone.

no longer affects: heat-templates
Rico Lin (rico-lin) wrote :

I think this might be a duplicate issue with

Saverio Proto (zioproto) wrote :

please check your heat-engine.log

As soon as you start heat-engine check if you have the following ERROR likes:

ERROR stevedore.extension [-] Could not load 'glance': No module named openstack.common.apiclient
ERROR stevedore.extension [-] Could not load 'glance.image': No module named openstack.common.apiclient

if you do have this error check the version of glance client installed on your system.

In my case I had a glance client version 2.6.0 installed in /usr/local/lib/python2.7/dist-packages/glanceclient/ that triggered this error.

Installing the glance client from packages at version 2.0.0 fixed the problem for me.

Saverio Proto (zioproto) wrote :

This bug should be fixed with review in stable/ocata.

I confirm I was seeing this bug in Mitaka

Submitter: Jenkins
Branch: stable/newton

commit 84d61316ed552217698f2db9c271ddbbccf93058
Author: rabi <email address hidden>
Date: Tue Sep 27 16:52:22 2016 +0530

    Don't use oslo-incubator in glance client plugin

    There is plan to remove all oslo incubator code from the
    clients. This removes the usage of deprecated
    openstack.common.apiclient.exceptions in glance client

    The available glance HTTPNotFound exception is not usable
    for validations(no message) and there is no UniqueMatch

    This adds a new custom client_exception module with two
    exceptions to ensure that the error messages remain the
    same as before.

    Closes-bug: #1665851

    Change-Id: I5b32eef047a1fe38382f649532c8bb8a910315e5
    (cherry picked from commit e1237f48effcd074f080090232561b0e5f550249)

tags: added: in-stable-newton
Rico Lin (rico-lin) wrote :

Mark it as Invalid since it seems already fixed. Please let us know otherwise:)

Changed in heat:
status: New → Invalid
Erno Kuvaja (jokke) wrote :


Changed in glance:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers