Adding instance metadata into cluster data model

This patch adds instance metadata in the cluster data model. This
is needed for Noisy Neighbor strategy.

Change-Id: Ia92a9f97ba1457ba844cc37a4d443ca4354069e3
This commit is contained in:
Prudhvi Rao Shedimbi
2017-03-02 21:54:57 +00:00
parent 5afcf7a7f4
commit e2d2fc6227
4 changed files with 8 additions and 1 deletions

View File

@@ -54,6 +54,7 @@ class TestNovaClusterDataModelCollector(base.TestCase):
id='ef500f7e-dac8-470f-960c-169486fce71b',
human_id='fake_instance',
flavor={'ram': 333, 'disk': 222, 'vcpus': 4, 'id': 1},
metadata={'hi': 'hello'},
)
setattr(fake_instance, 'OS-EXT-STS:vm_state', 'VM_STATE')
m_nova_helper.get_compute_node_list.return_value = [fake_compute_node]