diff options
author | Devananda van der Veen <devananda.vdv@gmail.com> | 2013-02-09 11:51:20 -0800 |
---|---|---|
committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2013-02-20 11:52:00 -0800 |
commit | f3b673a19f393b06d023981dc8e3bc77e961b9e3 (patch) | |
tree | 24d90beddbcf46b80adb04504457b13b8ed53c0b /nova/exception.py | |
parent | c3282de31a806907433af6962867aab4a860753b (diff) | |
download | nova-f3b673a19f393b06d023981dc8e3bc77e961b9e3.tar.gz nova-f3b673a19f393b06d023981dc8e3bc77e961b9e3.tar.xz nova-f3b673a19f393b06d023981dc8e3bc77e961b9e3.zip |
Improve performance of baremetal list_instances.
This patch adds two new methods to baremetal/db/api:
- bm_node_get_associated
- bm_node_get_unassociated
which return a list of nodes either associated or not associated to a
Nova instance, as determined by the instance_uuid field, respectively.
Now, list_instances and get_available_nodes methods only fetch assocated
and unassociated nodes from the baremetal database, instead of fetching
all nodes.
Change-Id: Ib875d26d7b85a9dbf08c925a89802e2cd614e363
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions