'Get the list of nova instance uuids for VMs found on the
hypervisor.'

def list_instance_uuids(self):

    nova_uuids = []
    for (vm_ref, vm_rec) in vm_utils.list_vms(self._session):
        other_config = vm_rec['other_config']
        nova_uuid = other_config.get('nova_uuid')
        if nova_uuid:
            nova_uuids.append(nova_uuid)
    return nova_uuids
