<div dir="ltr"><div><div>Hi,<br><br>I noticed that now in nova::host_manager.py, the function get_all_host_states() is returnning constructing a state key with host and node. <br><br>def get_all_host_states(self, context):<br>
"""Returns a list of HostStates that represents all the hosts<br> the HostManager knows about. Also, each of the consumable resources<br> in HostState are pre-populated and adjusted based on data in the db.<br>
"""<br><br> # Get resource usage across the available compute nodes:<br> compute_nodes = db.compute_node_get_all(context)<br> seen_nodes = set()<br> for compute in compute_nodes:<br>
service = compute['service']<br> if not service:<br> LOG.warn(_("No service for compute ID %s") % compute['id'])<br> continue<br> host = service['host'] <<<<<<<< <br>
node = compute.get('hypervisor_hostname') <<<<<<<< <br> state_key = (host, node) <<<<<<<<<br><br></div>Can someone show me a case when host and node are different?<br>
<br>Thanks,<br><br>Jay</div></div>