nova/nova/tests/unit/cells
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
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fakes.py Removal of unnecessary `import_opt`s for cells config options 2016-02-12 14:16:54 +02:00
test_cells_filters.py Cells: cell scheduler anti-affinity filter 2015-06-22 12:00:03 -04:00
test_cells_manager.py Removal of unnecessary `import_opt`s for cells config options 2016-02-12 14:16:54 +02:00
test_cells_messaging.py Removal of unnecessary `import_opt`s for cells config options 2016-02-12 14:16:54 +02:00
test_cells_rpc_driver.py Removal of unnecessary `import_opt`s for cells config options 2016-02-12 14:16:54 +02:00
test_cells_rpcapi.py Merge "Fix Cells RPC API by accepting a RequestSpec arg" 2016-03-01 16:40:55 +00:00
test_cells_scheduler.py Avoid lazy-loads of ec2_ids on Instance 2016-03-15 07:07:15 -07:00
test_cells_state_manager.py Add service binary/host to service is down log for context 2016-02-26 12:57:57 -05:00
test_cells_utils.py Cells: Limit instances pulled in _heal_instances 2015-09-22 11:03:55 -04:00
test_cells_weights.py Use TimeFixture from oslo_utils to override time in tests 2015-12-18 12:15:00 -05:00