OIM Cleanup
The oim_cleanup.yml playbook can be utilized to roll back any configurations made on the OIM.
Tasks performed by the playbook
The oim_cleanup.yml playbook performs the following tasks:
Clean up all containers, log files, and metadata on the OIM node.
Clean up any PostgreSQL database deployed as part of BuildstreaM on the OIM.
Rollback the firewall ports on the OIM node to its default setting.
Steps
To clean up the OIM and the PostgreSQL database which is deployed as part of BuildStreaM, perform one of the following:
If the BuildStreaM PostgreSQL database is not deployed on the OIM node, and you want to clean up the OIM, run the following command:
ssh omnia_core cd /omnia/utils ansible-playbook utils/oim_cleanup.yml
If the BuildStreaM PostgreSQL database is deployed on the OIM node, and you want to clean up the OIM and the PostgreSQL database, run the following command:
ssh omnia_core cd /omnia/utils ansible-playbook utils/oim_cleanup.yml -e postgres_backup=false
Note
The
postgres_backupparameter determines whether the PostgreSQL database should be backed up before cleanup.If
postgres_backupis set totrue, the database will be backed up before cleanup.If
postgres_backupis set tofalse, the database will not be backed up before cleanup.
If the BuildStreaM PostgreSQL database is deployed on the OIM node, and you want to clean up the OIM but retain the PostgreSQL database, run the following command:
ssh omnia_core cd /omnia/utils ansible-playbook utils/oim_cleanup.yml -e postgres_backup=true
Important
When prompted to back up the PostgreSQL database that you want to retain, record the database credentials. These credentials are required to restore the database when running the
prepare_oim.ymlplaybook.After running the
oim_cleanup.ymlplaybook, do the following:Reboot the OIM node to ensure all changes take effect.
The playbook does not remove data stored under the NFS
server_share_path(Seestorage_config.yml).Reusing the same
server_share_pathfor new deployments can cause deployment failures or inconsistent Kubernetes/Slurm behavior.For a fresh deployment, either manually clean this directory or use a new NFS export/path.
The
omnia_corecontainer is not removed byoim_cleanup.yml.To delete it, log in to the OIM node and run:
omnia.sh --uninstall
Caution
After a clean-up, when re-provisioning your cluster by re-running the
discovery.ymlplaybook, ensure to use a differentadmin_nic_subnetininput/provision_config.ymlto avoid a conflict with newly assigned servers. Alternatively, disable any OS available in theBoot Option Enable/Disablesection of your BIOS settings (BIOS Settings>Boot Settings>UEFI Boot Settings) on all target nodes.On subsequent runs of
discovery.yml, if users are unable to log into the server, refresh the ssh key manually and retry.ssh-keygen -R <node IP>
If you have any feedback about Omnia documentation, please reach out at omnia.readme@dell.com.