Translator should use common image properties from glance

Bug #1689673 reported by Alvaro Lopez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Heat Translator
Fix Released
Medium
Bob Haddleton

Bug Description

Glance defines a set of common properties to be defined on an image [1]. These include, among others "os_distro" and "os_version". If these properties are defined, Heat Translator should rely on them, instead of relying on the "distribution" and "version" properties.

[1] https://docs.openstack.org/developer/glance/common-image-properties.html

Revision history for this message
Bob Haddleton (bob-haddleton) wrote :

Hi @Alvaro - thanks for the bug report. I think we should add the os_distro and os_version properties and keep the existing distribution/version properties for now. We can deprecate/remove them later if no one is using them.

Changed in heat-translator:
importance: Undecided → Medium
status: New → Confirmed
assignee: nobody → Bob Haddleton (bob-haddleton)
Revision history for this message
Sahdev Zala (spzala) wrote :

@Bob, thanks for taking ownership of it. I agree with the approach that it's OK to keep existing properties, doesn't hurt. I am with Alvaro at the summit :-)

Revision history for this message
Bob Haddleton (bob-haddleton) wrote :

Thanks @Sahdev. After looking at this code I'm wondering if we want to continue to support a defined set of versions of images? It seems like it will be impossible to keep up with the latest releases of Ubuntu/Fedora/Cirros/etc. We are already way behind, and we don't have newer images like coreOS. If there is a maintained list of "well-known" images somewhere we could try to leverage that instead of trying to keep our list up-to-dare. Thoughts? Thanks!

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat-translator (master)

Fix proposed to branch: master
Review: https://review.openstack.org/465788

Changed in heat-translator:
status: Confirmed → In Progress
Revision history for this message
Sahdev Zala (spzala) wrote :

@Bob, true. The images as we have listed were the ones that had default support in OpenStack. As you said, if we don't have to maintain it that would be good but they way we have images plus OS metadata we may not have an easy desired solution but definitely something to keep in mind. Thanks!

Revision history for this message
Bob Haddleton (bob-haddleton) wrote :

I took a quick look for a list of "standard" or "official" images in OpenStack but I didn't find anything. If there is such a list it would be nice to include it by reference so that when it changes we automatically pick up those changes. Otherwise we could continue with the images we have and leave out the versions so they don't get out of date as fast.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat-translator (master)

Reviewed: https://review.openstack.org/465788
Committed: https://git.openstack.org/cgit/openstack/heat-translator/commit/?id=6904aab001d754bff8ace83c53c33bebd8332531
Submitter: Jenkins
Branch: master

commit 6904aab001d754bff8ace83c53c33bebd8332531
Author: Bob.Haddleton <email address hidden>
Date: Wed May 17 21:53:36 2017 -0500

    Support os_version, os_type, and os_distro image properties

    Modified default images to use os_type, os_version and os_distro
    properties. Added logic to look for distribution/os_distro,
    type/os_type and version/os_version image properties when
    matching image properties.

    Cleaned up minor python warnings in tosca_compute.py

    Removed DOS-style newline characters from
    tosca_cluster_policies_scaling.py

    Change-Id: I72043cf4a4358cfdbc8f98238276d85dc2f5bcc0
    Closes-Bug: 1689673

Changed in heat-translator:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/heat-translator 0.9.0

This issue was fixed in the openstack/heat-translator 0.9.0 release.

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.