Instance Metadata should only show metadata definitions with properties_target: metadata
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Justin Pomeroy |
Bug Description
The ability to add metadata to an instance leveraging these definitions at launch time was recently added to horizon. [0] It was also added as an action on the instances table [1].
[0] https:/
[1] https:/
In a follow up discussion, somebody asked about using the metadata definitions to also choose nova scheduler hints at launch time and how to make sure that the two weren't confused. This raised our awareness that we don't have properties_target set to "metadata" (rather than "scheduler_hints") for OS::Nova::Instance on the following software namespace files:
The metadata definitions the Glance Metadata Definitions catalog allow each namespace to be associated with a resource type in OpenStack. Some types of resources have more than one type of properties, so the namespaces allow this to be specified using a properties_target attribute.
We have now updated the existing namespaces in Glance for OS::Nova::Instance to have a properties target set to "metadata" [3].
[3] https:/
So, the NG launch instance metadata step and project update metadata action should be updated to only show namespaces that have have the properties_target of metadata set.
Please note that there will be an additional bug opened on glance to change these namespaces from OS::Glance:
http://
** It should be noted that updating namespaces is already possible with glance-manage. E.g.
ttripp@
usage: glance-manage db_load_metadefs [-h]
positional arguments:
path
merge
prefer_new
overwrite
So, you just have to call:
ttripp@
summary: |
- NG Launch Instance Metadata should only show metadata definitions with + Instance Metadata should only show metadata definitions with properties_target: metadata |
Changed in horizon: | |
assignee: | nobody → Justin Pomeroy (jpomero) |
Changed in horizon: | |
importance: | Undecided → Medium |
milestone: | none → mitaka-3 |
Fix proposed to branch: master /review. openstack. org/272305
Review: https:/