nova/nova/tests
Dan Smith c5a5a7f322 Avoid lazy-loads of ec2_ids on Instance
Right now, we only create the ec2_ids for an Instance when they are first
accessed, not at instance creation time. However, we always touch them
later for building metadata, configdrive, etc, which means we end up with
an expensive lazy-load later.

This makes us always create ec2_ids at instance create time. Since it's in
instance.create(), it runs on conductor, straight to the database, avoiding
a round-trip later (assuming this instance is passed to the compute node
for create and/or that the field is specified in a later call under
expected_attrs).

Partial-Bug: #1540526
Change-Id: I29bc317f990bfa0f01b4f9615699debcc3a3c2c6
2016-03-15 07:07:15 -07:00
..
functional Merge "Add functional regression test for bug 1552888" 2016-03-10 15:13:04 +00:00
live_migration/hooks Ceph for live-migration job 2016-01-22 16:27:58 +03:00
unit Avoid lazy-loads of ec2_ids on Instance 2016-03-15 07:07:15 -07:00
__init__.py
fixtures.py Change SpawnIsSynchronous fixture return 2016-03-10 13:48:41 -05:00
uuidsentinel.py Add uuidsentinel test module 2015-12-14 11:28:55 +01:00