This label is set for nodes. While creating the Storage pool, don't allow the creation if the export directories are from different regions.
Support setting this label while adding a node or as a separate command.
kadalu node add server1.example.com --region blr1
kadalu node region blr1
General label support:
Add label to any resource. Some of the labels are inherited or automatic(Ex: region label of Storage pool and volume is inherited from the nodes, pool type as label, FS type as label to the Storage unit).
kadalu label list <resource> <identifier>
kadalu label list pool pool1
Remove labels
kadalu label remove <resource> <identifier> <label1>,<label2>..
kadalu label remove pool pool1 fast
Reset all the labels (Remove all labels)
kadalu label reset <resource> <identifier>
kadalu label reset pool pool1
These labels will be used in various places like:
Storage pool create validations
Automatic provisioning the volumes. Ex: kadalu volume create vol1 -s 10G --filter fast,mirror3 automatically selects the Storage pool that satisfies the filters and creates a volume out of it.
Region
This label is set for nodes. While creating the Storage pool, don't allow the creation if the export directories are from different regions.
Support setting this label while adding a node or as a separate command.
General label support:
Add label to any resource. Some of the labels are inherited or automatic(Ex: region label of Storage pool and volume is inherited from the nodes, pool type as label, FS type as label to the Storage unit).
List all the labels of an resource
Remove labels
Reset all the labels (Remove all labels)
These labels will be used in various places like:
kadalu volume create vol1 -s 10G --filter fast,mirror3
automatically selects the Storage pool that satisfies the filters and creates a volume out of it.