Did I find the right examples for you? yes no

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)

src/n/o/nova-HEAD/nova/compute/manager.py   nova(Download)
        image_service, image_id = glance.get_remote_image_service(
            context, rescue_image_ref)
        image_meta = compute_utils.get_image_metadata(context, image_service,
                                                      rescue_image_ref,
                                                      instance)
            context, image_ref)
        image_meta = compute_utils.get_image_metadata(
            context, image_service, image_ref, instance)
 
        self.driver.attach_interface(instance, image_meta, network_info[0])

src/n/o/nova-HEAD/nova/conductor/manager.py   nova(Download)
    def _cold_migrate(self, context, instance, flavor, filter_properties,
                      reservations):
        image_ref = instance.image_ref
        image = compute_utils.get_image_metadata(
            context, self.image_service, image_ref, instance)

src/n/o/nova-HEAD/nova/compute/api.py   nova(Download)
        image_ref = instance.image_ref
        sent_meta = compute_utils.get_image_metadata(
            context, self.image_service, image_ref, instance)
 
        sent_meta['name'] = name

src/n/o/nova-HEAD/nova/virt/libvirt/driver.py   nova(Download)
 
        base = compute_utils.get_image_metadata(
            context, image_service, image_id, instance)
 
        _image_service = glance.get_remote_image_service(context, image_href)
            service, image_id = glance.get_remote_image_service(context,
                                                                image_ref)
            image_meta = compute_utils.get_image_metadata(context,
                                                          service,
                                                          image_id,
                                            context, instance['image_ref'])
            image_meta = compute_utils.get_image_metadata(
                                context, image_service, image_id, instance)
        # NOTE(danms): Stringifying a NetworkInfo will take a lock. Do
        # this ahead of time so that we don't acquire it while also

src/n/o/nova-HEAD/nova/conductor/tasks/live_migrate.py   nova(Download)
        image = None
        if self.instance.image_ref:
            image = compute_utils.get_image_metadata(self.context,
                                                     self.image_service,
                                                     self.instance.image_ref,

src/n/o/nova-HEAD/nova/tests/compute/test_compute_utils.py   nova(Download)
    def test_get_image_meta(self):
        image_meta = compute_utils.get_image_metadata(
            self.ctx, self.image_service, 'fake-image', self.instance_obj)
 
        self.image['properties'] = 'DONTCARE'
 
        image_meta = compute_utils.get_image_metadata(
            self.ctx, self.image_service, 'fake-image', self.instance_obj)
 
        self.image['properties'] = 'DONTCARE'
 
        image_meta = compute_utils.get_image_metadata(
            self.ctx, self.image_service, 'fake-image', self.instance_obj)
 
        self.image['properties'] = 'DONTCARE'
 
        image_meta = compute_utils.get_image_metadata(
            self.ctx, self.image_service, 'fake-image', self.instance_obj)
 
        expected = {'properties': 'DONTCARE'}