def get_host_other_than(self, server_id):
    source_host = self.get_host_for_server(server_id)
    svcs = self.os_admin.services_client.list_services(binary='nova-compute')['services']
    hosts = []
    for svc in svcs:
        if ((svc['state'] == 'up') and (svc['status'] == 'enabled')):
            if CONF.compute.compute_volume_common_az:
                if (svc['zone'] == CONF.compute.compute_volume_common_az):
                    hosts.append(svc['host'])
            else:
                hosts.append(svc['host'])
    for target_host in hosts:
        if (source_host != target_host):
            return target_host
def get_host_other_than(self, server_id):
    source_host = self.get_host_for_server(server_id)
    svcs = self.os_admin.services_client.list_services(binary='nova-compute')['services']
    hosts = []
    for svc in svcs:
        if ((svc['state'] == 'up') and (svc['status'] == 'enabled')):
            if CONF.compute.compute_volume_common_az:
                if (svc['zone'] == CONF.compute.compute_volume_common_az):
                    hosts.append(svc['host'])
            else:
                hosts.append(svc['host'])
    for target_host in hosts:
        if (source_host != target_host):
            return target_host