@atomic.action_timer("manila.create_share")
    def _create_share(self, share_proto, size=1, **kwargs):
        if self.context:
            share_networks = self.context.get("tenant", {}).get(
                consts.SHARE_NETWORKS_CONTEXT_NAME, {}).get(
                    "share_networks", [])
            if share_networks and not kwargs.get("share_network"):
                index = next(self.context.get("tenant", {}).get(
                    consts.SHARE_NETWORKS_CONTEXT_NAME, {}).get(
                        "sn_iterator")) % len(share_networks)
                kwargs["share_network"] = share_networks[index]

        if not kwargs.get("name"):
            kwargs["name"] = self.generate_random_name()

        share = self.clients("manila").shares.create(
            share_proto, size, **kwargs)
        time.sleep(CONF.benchmark.manila_share_create_prepoll_delay)
        share = utils.wait_for(
            share,
            ready_statuses=["available"],
            update_resource=utils.get_from_manager(),
            timeout=CONF.benchmark.manila_share_create_timeout,
            check_interval=CONF.benchmark.manila_share_create_poll_interval,
        )
        return share
Create a share.
dataset/ETHPy150Open openstack/rally/rally/plugins/openstack/scenarios/manila/utils.py/ManilaScenario._create_share