

@atomic.action_timer('nova.create_image')
def _create_image(self, server):
    'Create an image from the given server\n\n        Uses the server name to name the created image. Returns when the image\n        is actually created and is in the "Active" state.\n\n        :param server: Server object for which the image will be created\n\n        :returns: Created image object\n        '
    image_uuid = self.clients('nova').servers.create_image(server, server.name)
    image = self.clients('nova').images.get(image_uuid)
    check_interval = CONF.benchmark.nova_server_image_create_poll_interval
    image = utils.wait_for(image, ready_statuses=['ACTIVE'], update_resource=utils.get_from_manager(), timeout=CONF.benchmark.nova_server_image_create_timeout, check_interval=check_interval)
    return image

dataset/ETHPy150Open openstack/rally/rally/plugins/openstack/scenarios/nova/utils.py NovaScenario._create_image/original