Comment 12 for bug 1540526

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

Reviewed: https://review.openstack.org/276861
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=3a761270581d1ac61a3b4669c130d211f1ad5a17
Submitter: Jenkins
Branch: master

commit 3a761270581d1ac61a3b4669c130d211f1ad5a17
Author: Dan Smith <email address hidden>
Date: Fri Feb 5 10:04:39 2016 -0800

    Avoid lazy-loads in metadata requests

    The metadata server currently doesn't pre-query for metadata and system_metadata,
    which ends up generating *two* lazy-loads on many requests. Since especially
    user metadata is almost definitely one of the things an instance is going to fetch
    from the metadata server, this is fairly inefficient.

    This patch makes us always pre-query the metadata twins when looking up (and
    caching) the instance.

    Change-Id: I8e565b6ce976fcbe6194b5960a3ebf2b76a45416
    Partial-bug: #1540526