-
Notifications
You must be signed in to change notification settings - Fork 85
cortx py utils multi node manual provisioning
- Kafka server has been installed at path /opt/kafka. Kafka configuration is complete and it is running. For more details refer Kafka setup. Note that kafka may not be installed on all the nodes in CORTX cluster.
Refer required python packages from list 1 and list 2 to get the list of required python packages.
(Use the above mentioned requirements files in the same order).
Download these files and use below commands to install these python packages
# sudo pip3 install -r <local-path>/python_requirements.txt
# sudo pip3 install -r <local-path>/python_requirements.ext.txt
Get the rpm.
#yum install -y cortx-py-utils-2.0.0-90_8b3c613.noarch.rpm
<== RPM name would be different
- Edit this template with required keys for respective phase and store the filled in value /tmp/utils.miniprovisioning.tmpl.1-node
- Update these values for Post Install
cortx>common>storage>log
==> This indicates log pathcortx>common>storage>local
==> This indicates local storage pathnode>TMPL_MACHINE_ID
==> This indicates the unique machine ID of the local system.node>TMPL_MACHINE_ID>hostname
==> This indicates the hostname of the local system.node>TMPL_MACHINE_ID>name
==> This indicates the name of node eg. srvnode-1, srvnode-2, etc.
**NOTE : Add node>TMPL_MACHINE_ID
, node>TMPL_MACHINE_ID>hostname
& node>TMPL_MACHINE_ID>name
for all the nodes in the cluster
- Run post install command
- Update these values for Config
/opt/seagate/cortx/utils/bin/utils_setup post_install --config yaml:///tmp/utils.miniprovisioning.tmpl.1-node
- Update these values for Config
cortx>common>storage>log
==> This indicates log pathcortx>common>storage>local
==> This indicates local storage pathcortx>utils>message_bus_backend
==> This indicates message bus type. Currently only "kafka" is supported.cortx>external>kafka>endpoints
==> This key holds an array of values in format<protocol>://<FQDN>:<port>
. Port is optional.node>TMPL_MACHINE_ID
==> This indicates the unique machine ID of the local system.node>TMPL_MACHINE_ID>site_id
==> A numeric string value identifies a single data center site.node>TMPL_MACHINE_ID>rack_id
==> A numeric string value that identifies a single Rack in a single site.node>TMPL_MACHINE_ID>node_id
==> A numeric string value that indicates node ID (UUID)
**NOTE : Add node>TMPL_MACHINE_ID
, node>TMPL_MACHINE_ID>hostname
& node>TMPL_MACHINE_ID>name
for all the nodes in the cluster
- Run config command
/opt/seagate/cortx/utils/bin/utils_setup config --config yaml:///tmp/utils.miniprovisioning.tmpl.1-node
NOTE: Config creates /etc/cortx/message_bus.conf and /etc/cortx/cluster.conf
- Update these values for Init
cortx>common>storage>log
==> This indicates log pathcortx>common>storage>local
==> This indicates local storage pathcortx>utils>message_bus_backend
==> This indicates message bus type. Currently only "kafka" is supported.cortx>external>kafka>endpoints
==> This key holds an array of values in format<protocol>://<FQDN>:<port>
. Port is optional.
- Run init command
/opt/seagate/cortx/utils/bin/utils_setup init --config yaml:///tmp/utils.miniprovisioning.tmpl.1-node
- Update these values for Test
cortx>common>storage>log
==> This indicates log pathcortx>common>storage>local
==> This indicates local storage path
-
Run the test command
/opt/seagate/cortx/utils/bin/utils_setup test --config yaml:///tmp/utils.miniprovisioning.tmpl.1-node --plan sanity
-
In test phase, with sanity as a plan argument, it will run the sanity test cases present in py-utils-test.
refer Procedure to run tests
- Update these values for Reset
cortx>common>storage>log
==> This indicates log pathcortx>common>storage>local
==> This indicates local storage pathcortx>utils>message_bus_backend
==> This indicates message bus type. Currently only "kafka" is supported.cortx>external>kafka>endpoints
==> This key holds an array of values in format<protocol>://<FQDN>:<port>
. Port is optional.
-
Run the reset command
/opt/seagate/cortx/utils/bin/utils_setup reset --config yaml:///tmp/utils.miniprovisioning.tmpl.1-node
-
In reset phase:
- It deletes all messages from all message_types from node.
- Clears all log files from '/var/log/cortx/utils/' directory.
- Update these values for Config
cortx>common>storage>log
==> This indicates log pathcortx>common>storage>local
==> This indicates local storage pathcortx>utils>message_bus_backend
==> This indicates message bus type. Currently only "kafka" is supported.cortx>external>kafka>endpoints
==> This key holds an array of values in format<protocol>://<FQDN>:<port>
. Port is optional.
-
Run the cleanup command
/opt/seagate/cortx/utils/bin/utils_setup cleanup --config yaml:///tmp/utils.miniprovisioning.tmpl.1-node
-
In cleanup phase:
- It deletes all message_types from node
- It deletes the config files created by config phase