diff options
| author | Jay Pipes <jaypipes@gmail.com> | 2012-02-08 15:51:59 -0500 |
|---|---|---|
| committer | Jay Pipes <jaypipes@gmail.com> | 2012-02-10 17:11:32 -0500 |
| commit | 27c11c4bb4e5c54282caf49cba666f45cfc590c2 (patch) | |
| tree | 2e6a76cfafcfb976f3a1a0daab808ccc73416332 /nova/testing | |
| parent | d808ce11668c08bd896771f578f70e15f1eeb88d (diff) | |
| download | nova-27c11c4bb4e5c54282caf49cba666f45cfc590c2.tar.gz nova-27c11c4bb4e5c54282caf49cba666f45cfc590c2.tar.xz nova-27c11c4bb4e5c54282caf49cba666f45cfc590c2.zip | |
Remedies LP Bug #928910 - Use libvirt lookupByName() to check existence
Make determining if an instance exists on a host
more efficient by adding an instance_exists() method to the
base virt driver that can be overridden by drivers that
have a more efficient mechanism of looking up an instance
by its ID / name. Modifies the _check_instance_already_created
method of the compute manager to use this new instance_exists() method.
Someone from Citrix should look into how to make the instance_exists()
method in the Xen and VMWare virt drivers more efficient than the
base "loop over all domains and see if the instance ID exists" method
now in the base driver class.
Change-Id: Ibf219788f9c104698057367da89300a060945778
Diffstat (limited to 'nova/testing')
0 files changed, 0 insertions, 0 deletions
