Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1546920

Summary: [RFE] [Glance] Inject metadata properties automatically to non-admin images
Product: Red Hat OpenStack Reporter: MD Sufiyan <msufiyan>
Component: openstack-tripleo-heat-templatesAssignee: Cyril Roelandt <cyril>
Status: CLOSED ERRATA QA Contact: Mike Abrams <mabrams>
Severity: low Docs Contact: James Smith <jamsmith>
Priority: low    
Version: 12.0 (Pike)CC: akekane, cschwede, cyril, eglynn, fpercoco, jamsmith, lucas.vanzin, mabrams, mariel, mburns, pdeore, pgrist, sclewis, scohen, srevivo, tshefi
Target Milestone: Upstream M1Keywords: FutureFeature, TestOnly, Triaged
Target Release: 14.0 (Rocky)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-9.0.1-0.20181013060867.ffbe879.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1640759 (view as bug list) Environment:
Last Closed: 2019-01-11 11:48:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1640759    

Description MD Sufiyan 2018-02-20 03:09:19 UTC
1. Description

The operator provides public images to the users and users can also add their own images in glance and use these images to launch VMs. As an operator, all images provided by an operator should be launched on a specific set of compute nodes whereas images that are created by non-admin users should be launched on other set of compute nodes. The decision to launch VMs on certain compute nodes will be decided based on image metadata. When an operator will create images, they can specify certain image metadata which will be used by placement api or scheduler service to decide where the vm should be launched but if user creates image, there is no way user will know what image metadata properties to set and hence in the present placement api and scheduler logic, it is possible to launch a VM on any compute nodes. This is a big problem.

3. Upstream reference
        Bugzillas? No
        Blueprints? Yes https://blueprints.launchpad.net/glance/+spec/inject-automatic-metadata
        Specs? No

4. RH bugzilla dependencies?
   No


5. Primary Red Hat contact:
   a. Name:  MD Sufiyan
   b. Email:   msufiyan

Comment 1 Cyril Roelandt 2018-02-20 16:59:26 UTC
Adding a link to the merged lite-spec.

Someone upstream seems assigned to this feature. Depending on when the upstream patches merge, we may or may not have time to test and include this feature in Queens.

Comment 3 Christian Schwede (cschwede) 2018-03-07 12:22:01 UTC
Upstream work done: https://review.openstack.org/#/c/527635/ -> TestOnly for OSP14.

Comment 8 Cyril Roelandt 2018-05-04 15:03:26 UTC
The upstream patch was merged.

Comment 23 Cyril Roelandt 2018-10-17 12:49:59 UTC
Pranali's patches have been merged, let's go to QA!

Comment 39 errata-xmlrpc 2019-01-11 11:48:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:0045