-
Notifications
You must be signed in to change notification settings - Fork 47
USL Setup on Single Node Deployment on VM
-
Setup and Install third party software : Refer wiki Setup and Install third party software
-
Install UDS and dependent rpms. You can find these rpms in any latest stable or main builds.
- Fetch Machine ID of VM using Following Command:
$ cat /etc/machine-id
- Generate key material required for uds configuration:
- Create directory for key material storage with required permission
install -d -m 0700 -o cortxub -g cortxub /var/csm/tls
- Switch to user
su - cortxub
- Then, as user cortxub, generate native key materila with required permissions:
(umask 0177 && openssl req -x509 -newkey rsa:4096 -keyout /var/csm/tls/native.key -nodes -out /var/csm/tls/native.crt -days 365 -subj '/C=/ST=/L=/O=/OU=/CN=/')
-
Update configuration templates for each phase as given below:
a.
post_install
- Template file path:
/opt/seagate/cortx/csm/conf/usl.post_install.tmpl.1-node
- Sample template for reference: usl.post_install.tmpl.1-node.sample
b.
prepare
- Template file path:
/opt/seagate/cortx/csm/conf/usl.prepare.tmpl.1-node
- Replace template fields with their corresponding values:
- Replace
TMPL_MACHINE_ID
with machine-id of node. Refer Step 3. - Replace
TMPL_CLUSTER_ID
with with UUID of node.
- Replace
- Sample template for reference: usl.prepare.tmpl.1-node.sample
b.
config
- Template file path:
/opt/seagate/cortx/csm/conf/usl.config.tmpl.1-node
- Replace template fields with their corresponding values:
- Replace
TMPL_MACHINE_ID
with machine-id of node. Refer Step 3. - Replace
TMPL_CLUSTER_ID
with with UUID of node.
- Replace
- Sample template for reference: usl.config.tmpl.1-node.sample
b.
init
- Template file path:
/opt/seagate/cortx/csm/conf/usl.init.tmpl.1-node
- Replace template fields with their corresponding values:
- Replace
TMPL_MACHINE_ID
with machine-id of node. Refer Step 3. - Replace
TMPL_CLUSTER_ID
with with UUID of node.
- Replace
- Sample template for reference: usl.init.tmpl.1-node.sample
- Template file path:
-
Execute usl_setup mini provisioning steps
usl_setup post_install --config json:///opt/seagate/cortx/csm/conf/usl.post_install.tmpl.1-node
usl_setup prepare --config json:///opt/seagate/cortx/csm/conf/usl.prepare.tmpl.1-node
usl_setup config --config json:///opt/seagate/cortx/csm/conf/usl.config.tmpl.1-node
usl_setup init --config json:///opt/seagate/cortx/csm/conf/usl.init.tmpl.1-node