Comment 4 for bug 1161022

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

Reviewed: https://review.openstack.org/25614
Committed: http://github.com/openstack/nova/commit/f29ecbaa21fc51ce2c6c60ac395378cb8436e0c2
Submitter: Jenkins
Branch: milestone-proposed

commit f29ecbaa21fc51ce2c6c60ac395378cb8436e0c2
Author: Dan Smith <email address hidden>
Date: Wed Mar 27 11:30:49 2013 -0700

    Make tenant_usage fall back to instance_type_id

    In order to expose historical usage information about instances that
    were deleted at the time migration #153 was run, we need to fall back
    to looking up type information by instance_type_id.

    This patch does that (only for deleted instances) and replicates the
    previous behavior of skipping instances that have an instance_type_id
    that points to a non-existent type.

    Fixes bug 1161022

    (cherry-picked from 30631d0077424001e2fa57674e6e9f2a12f0683e)

    Change-Id: I39d30c59d1711d8f2a61c7a5e2545b3952e55dbe