

def _set_metadata(self, volume, sets=10, set_size=3):
    'Set volume metadata.\n\n        :param volume: The volume to set metadata on\n        :param sets: how many operations to perform\n        :param set_size: number of metadata keys to set in each operation\n        :returns: A list of keys that were set\n        '
    key = ('cinder.set_%s_metadatas_%s_times' % (set_size, sets))
    with atomic.ActionTimer(self, key):
        keys = []
        for i in range(sets):
            metadata = {
                
            }
            for j in range(set_size):
                key = self.generate_random_name()
                keys.append(key)
                metadata[key] = self.generate_random_name()
            self.clients('cinder').volumes.set_metadata(volume, metadata)
        return keys

dataset/ETHPy150Open openstack/rally/rally/plugins/openstack/scenarios/cinder/utils.py CinderScenario._set_metadata/original