ocs_ci/deployment/aws.py
def add_volume(self, size=100):
        """
        Add a new volume to all the workers

        Args:
            size (int): Size of volume in GB (default: 100)
        """
        tfvars_file = "terraform.tfvars.json"
        with open(os.path.join(self.cluster_path, tfvars_file)) as f:
            tfvars = json.load(f)

        cluster_id = tfvars['cluster_id']
        worker_pattern = f'{cluster_id}-worker*'
        logger.info(f'Worker pattern: {worker_pattern}')
        self.create_ebs_volumes(worker_pattern, size)

        Add a new volume to all the workers

        Args:
            size (int): Size of volume in GB (default: 100)
        
Add a new volume to all the workers
Add a new volume to all the workers
def add_volume(self, size=100):
        tfvars_file = "terraform.tfvars.json"
        with open(os.path.join(self.cluster_path, tfvars_file)) as f:
            tfvars = json.load(f)
        cluster_id = tfvars['cluster_id']
        worker_pattern = f'{cluster_id}-worker*'
        logger.info(f'Worker pattern: {worker_pattern}')
        self.create_ebs_volumes(worker_pattern, size)
def add_volume ( self , size = 100 ) : tfvars_file = "terraform.tfvars.json" with open ( os . path . join ( self . cluster_path , tfvars_file ) ) as f : tfvars = json . load ( f ) cluster_id = tfvars [ 'cluster_id' ] worker_pattern = f'{cluster_id}-worker*' logger . info ( f'Worker pattern: {worker_pattern}' ) self . create_ebs_volumes ( worker_pattern , size )
Add a new volume to all the workers
Add a new volume to all the workers
"""
        Add a new volume to all the workers

        Args:
            size (int): Size of volume in GB (default: 100)
        """
self
size
Size of volume in GB (default: 100)
Size of volume in GB ( default : 100 )