yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #45386
[Bug 1537842] [NEW] Instance Metadata should only show metadata definitions with properties_target: metadata
Public bug reported:
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://review.openstack.org/209680
[1] https://review.openstack.org/243624
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://review.openstack.org/#/c/271100
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::Instance to OS::Nova::Server to
align with the heat resource type.
http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Nova::Server
** It should be noted that updating namespaces is already possible with
glance-manage. E.g.
ttripp@ubuntu:/opt/stack/glance$ glance-manage db_load_metadefs etc/metadefs -h
usage: glance-manage db_load_metadefs [-h]
[path] [merge] [prefer_new] [overwrite]
positional arguments:
path
merge
prefer_new
overwrite
So, you just have to call:
ttripp@ubuntu:/opt/stack/glance$ glance-manage db_load_metadefs
etc/metadefs true true
** Affects: horizon
Importance: Undecided
Status: New
** Summary changed:
- NG Launch Instance Metadata should only show metadata definitions with properties_target: metadata
+ Instance Metadata should only show metadata definitions with properties_target: metadata
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1537842
Title:
Instance Metadata should only show metadata definitions with
properties_target: metadata
Status in OpenStack Dashboard (Horizon):
New
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://review.openstack.org/209680
[1] https://review.openstack.org/243624
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://review.openstack.org/#/c/271100
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::Instance to OS::Nova::Server
to align with the heat resource type.
http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Nova::Server
** It should be noted that updating namespaces is already possible
with glance-manage. E.g.
ttripp@ubuntu:/opt/stack/glance$ glance-manage db_load_metadefs etc/metadefs -h
usage: glance-manage db_load_metadefs [-h]
[path] [merge] [prefer_new] [overwrite]
positional arguments:
path
merge
prefer_new
overwrite
So, you just have to call:
ttripp@ubuntu:/opt/stack/glance$ glance-manage db_load_metadefs
etc/metadefs true true
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1537842/+subscriptions
Follow ups