yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #66383
[Bug 1708458] [NEW] Expose instance system_metadata in compute API
Public bug reported:
Via the nova compute API I can see it is possible to GET metadata for an
instance but it does not seem to be possible to get system_metadata. It
is useful to be able to GET the system metadata fro an instance if you
want to query the point in time properties that where inherited from an
image during the launch.
I noticed in change
https://review.openstack.org/#/c/7045/5/nova/db/api.py there is a db api
definition to read this from the database but this does not seem to be
exposed in the compute api.
I assume something like the below in compute/api.py would be a starting
point to expose this.
def get_instance_system_metadata(self, context, instance):
"""Get all system metadata associated with an instance."""
return self.db.instance_system_metadata_get(context, instance.uuid)
** Affects: nova
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1708458
Title:
Expose instance system_metadata in compute API
Status in OpenStack Compute (nova):
New
Bug description:
Via the nova compute API I can see it is possible to GET metadata for
an instance but it does not seem to be possible to get
system_metadata. It is useful to be able to GET the system metadata
fro an instance if you want to query the point in time properties that
where inherited from an image during the launch.
I noticed in change
https://review.openstack.org/#/c/7045/5/nova/db/api.py there is a db
api definition to read this from the database but this does not seem
to be exposed in the compute api.
I assume something like the below in compute/api.py would be a
starting point to expose this.
def get_instance_system_metadata(self, context, instance):
"""Get all system metadata associated with an instance."""
return self.db.instance_system_metadata_get(context, instance.uuid)
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1708458/+subscriptions
Follow ups