def _get_flavor_info(self, nova, backend_instance):
        try:
            flavor_id = backend_instance.flavor['id']
            flavor = nova.flavors.get(flavor_id)
        except (__HOLE__, AttributeError):
            logger.info('Skipping instance %s, failed to infer flavor info',
                        backend_instance.id)
            raise LookupError
        except nova_exceptions.ClientException as e:
            logger.info('Skipping instance %s, failed to infer flavor info',
                        backend_instance.id)
            six.reraise(LookupError, e)
        else:
            cores = flavor.vcpus
            ram = self.get_core_ram_size(flavor.ram)
            return cores, ram, flavor.name
dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/iaas/backend.py/OpenStackBackend._get_flavor_info