Auto-generated documentation for ocs_ci.ocs.machine module.
def add_capacity(
count,
storagecluster_name,
namespace=defaults.ROOK_CLUSTER_NAMESPACE,
):
Add capacity to the cluster
storagecluster_name
str - Name of a storage clustercount
int - Count of osds to add, for ex: if total count of osds is 3, it will add 3 osds more
bool
- True if commands executes successfully
def add_node(machine_set, count):
Add new node to the cluster
machine_set
str - Name of a machine set to get increase replica countcount
int - Count to increase
bool
- True if commands executes successfully
def delete_machine(machine_name):
Deletes a machine
machine_name
str - Name of the machine you want to delete
CommandFailed
- In case yaml_file and resource_name wasn't provided
def delete_machine_and_check_state_of_new_spinned_machine(machine_name):
Deletes a machine and checks the state of the newly spinned machine
machine_name
str - Name of the machine you want to delete
bool
- True in case of success, False otherwise
def get_machine_objs(machine_names=None):
Get machine objects by machine names
machine_names
list - The machine names to get their objects If None, will return all cluster machines
list
- Cluster machine OCS objects
def get_machine_type(machine_name):
Get the machine type (e.g. worker, master)
machine_name
str - Name of the machine
str
- Type of the machine
def get_machines(machine_type=constants.WORKER_MACHINE):
Get cluster's machines according to the machine type (e.g. worker, master)
machine_type
str - The machine type (e.g. worker, master)
list
- The nodes OCP instances
def get_machinesets():
Get machine sets
machine_sets
list - list of machine sets
def get_replica_count(machine_set):
Get replica count of a machine set
machine_set
str - Name of a machine set to get replica count
replica count (int): replica count of a machine set
def get_storage_cluster(namespace=defaults.ROOK_CLUSTER_NAMESPACE):
Get storage cluster name
namespace
str - Namespace of the resource
str
- Storage cluster name