This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EOS-23494: Re-deployment fails on VM after running cortx_setup cluste…
…r reset --type all (#6038) * EOS-23494: Re-deployment fails on VM after running cortx_setup cluster reset --type all Signed-off-by: Tanuja Shinde <[email protected]> * EOS-23494: Re-deployment fails on VM after running cortx_setup cluster reset --type all Signed-off-by: Tanuja Shinde <[email protected]> * EOS-23494: Re-deployment fails on VM after running cortx_setup cluster reset --type all Signed-off-by: Tanuja Shinde <[email protected]> * EOS-23494: Re-deployment fails on VM after running cortx_setup cluster reset --type all Signed-off-by: Tanuja Shinde <[email protected]> * EOS-23494: Re-deployment fails on VM after running cortx_setup cluster reset --type all Signed-off-by: Tanuja Shinde <[email protected]> * EOS-23494: Re-deployment fails on VM after running cortx_setup cluster reset --type all Signed-off-by: Tanuja Shinde <[email protected]> Co-authored-by: Pritam Bhavsar <[email protected]>
- Loading branch information
1 parent
538ef0a
commit 6836e08
Showing
15 changed files
with
589 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# | ||
# Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as published | ||
# by the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
# For any questions about this software or licensing, | ||
# please email [email protected] or [email protected]. | ||
# | ||
|
||
Remove user and group: | ||
user.absent: | ||
- name: hacluster | ||
- purge: True | ||
- force: True | ||
|
||
{% for serv in ["corosync", "pacemaker", "pcsd"] %} | ||
Stop service {{ serv }}: | ||
service.dead: | ||
- name: {{ serv }} | ||
- enable: False | ||
{% endfor %} | ||
|
||
Remove pcs package: | ||
cmd.run: | ||
- name: "rpm -e --nodeps pcs pacemaker corosync fence-agents-ipmilan" | ||
|
||
# Remove configuration directory: | ||
# file.absent: | ||
# - names: | ||
# - /etc/corosync | ||
# - /etc/pacemaker | ||
|
||
Remove corosync-pacemaker data: | ||
file.absent: | ||
- names: | ||
- /var/lib/corosync | ||
- /var/lib/pacemaker | ||
- /var/lib/pcsd | ||
- /var/log/pcsd | ||
|
||
# Enable and Start Firewall: | ||
# cmd.run: | ||
# - names: | ||
# - systemctl enable firewalld | ||
# - systemctl start firewalld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# | ||
# Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as published | ||
# by the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
# For any questions about this software or licensing, | ||
# please email [email protected] or [email protected]. | ||
# | ||
|
||
Disable rsyslog: | ||
service.dead: | ||
- name: rsyslog | ||
- enable: False | ||
|
||
Remove haproxy config: | ||
file.absent: | ||
- name: /etc/haproxy | ||
|
||
Remove haproxy 503 error code to http file: | ||
file.absent: | ||
- name: /etc/haproxy/errors/503.http | ||
|
||
Remove haproxy config to enable logs: | ||
file.absent: | ||
- name: /etc/rsyslog.d/haproxy.conf | ||
|
||
Remove logrotate config for haproxy to run hourly: | ||
file.absent: | ||
- name: /etc/cron.hourly/logrotate | ||
|
||
Clean existing logrotate configuration to run daily: | ||
file.absent: | ||
- name: /etc/cron.daily/logrotate | ||
|
||
Remove logrotate config for haproxy: | ||
file.absent: | ||
- name: /etc/logrotate.d/haproxy | ||
|
||
Remove pcs package: | ||
cmd.run: | ||
- name: "rpm -e --nodeps haproxy" | ||
|
||
Remove user haproxy: | ||
user.absent: | ||
- name: haproxy | ||
- purge: True | ||
- force: True | ||
|
||
Reset selinux bool for haproxy: | ||
selinux.boolean: | ||
- name: haproxy_connect_any | ||
- value: 0 | ||
- persist: True | ||
|
||
Reset selinux bool for httpd: | ||
selinux.boolean: | ||
- name: httpd_can_network_connect | ||
- value: false | ||
- persist: True | ||
|
||
Remove haproxy user to certs group: | ||
group.present: | ||
- name: certs | ||
- delusers: | ||
- haproxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# | ||
# Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as published | ||
# by the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
# For any questions about this software or licensing, | ||
# please email [email protected] or [email protected]. | ||
# | ||
|
||
include: | ||
- components.misc_pkgs.consul.stop | ||
|
||
# Remove Consul: | ||
# file.absent: | ||
# - name: /opt/consul | ||
|
||
# Remove consul from bash_profile: | ||
# file.blockreplace: | ||
# - name: ~/.bashrc | ||
# - marker_start: '# DO NOT EDIT: Consul binaries' | ||
# - marker_end: '# DO NOT EDIT: End' | ||
# - content: '' | ||
|
||
# Source bash_profile for consul cleanup: | ||
# cmd.run: | ||
# - name: source ~/.bashrc | ||
|
||
# Remove Consul data directory: | ||
# file.absent: | ||
# - name: /opt/consul/data | ||
|
||
# Remove Consul config directory: | ||
# file.absent: | ||
# - name: /etc/consul.d | ||
|
||
# Remove Consul agent config file: | ||
# file.absent: | ||
# - name: /etc/consul.d/consul.json | ||
|
||
# Remove Consul server config file: | ||
# file.absent: | ||
# - name: /etc/consul.d/consul_server.json | ||
# - source: salt://components/misc_pkgs/consul/files/consul_server.json | ||
# - mode: 640 | ||
# - template: jinja | ||
|
||
# Remove Consul Agent Service: | ||
# file.absent: | ||
# - name: /etc/systemd/system/consul.service | ||
# - source: salt://components/misc_pkgs/consul/files/consul.service | ||
# - makedirs: True | ||
# - mode: 644 | ||
|
||
# Reload service daemons post consul-agent.service removal: | ||
# cmd.run: | ||
# - name: systemctl daemon-reload | ||
|
||
# Remove Consul user: | ||
# user.absent: | ||
# - name: consul | ||
|
||
Remove Consul package: | ||
cmd.run: | ||
- name: "rpm -e --nodeps consul" | ||
|
||
Delete consul checkpoint flag: | ||
file.absent: | ||
- name: /opt/seagate/cortx_configs/provisioner_generated/{{ grains['id'] }}.consul |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# | ||
# Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as published | ||
# by the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
# For any questions about this software or licensing, | ||
# please email [email protected] or [email protected]. | ||
# | ||
|
||
include: | ||
- components.misc_pkgs.elasticsearch.stop | ||
|
||
Remove elasticsearch package: | ||
cmd.run: | ||
- name: "rpm -e --nodeps rsyslog-elasticsearch rsyslog-mmjsonparse opendistroforelasticsearch elasticsearch-oss opendistro-sql" | ||
|
||
Remove opendistro package: | ||
cmd.run: | ||
- name: "rpm -e --nodeps opendistro-alerting opendistro-anomaly-detection opendistro-index-management opendistro-job-scheduler opendistro-knn opendistro-knnlib opendistro-performance-analyzer opendistro-reports-scheduler opendistro-security " | ||
|
||
Remove elasticsearch config: | ||
file.absent: | ||
- name: /etc/elasticsearch | ||
|
||
Remove elasticsearch data: | ||
file.absent: | ||
- name: /var/lib/elasticsearch | ||
|
||
Remove elasticsearch logs: | ||
file.absent: | ||
- name: /var/log/elasticsearch | ||
|
||
Delete elasticsearch checkpoint flag: | ||
file.absent: | ||
- name: /opt/seagate/cortx_configs/provisioner_generated/{{ grains['id'] }}.elasticsearch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# | ||
# Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as published | ||
# by the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
# For any questions about this software or licensing, | ||
# please email [email protected] or [email protected]. | ||
# | ||
|
||
|
||
include: | ||
- .stop | ||
|
||
Remove kafka package: | ||
cmd.run: | ||
- name: "rpm -e --nodeps kafka" | ||
|
||
Remove kafka directory: | ||
file.absent: | ||
- name: /opt/kafka | ||
|
||
Remove zookeeper data directory: | ||
file.absent: | ||
- name: /var/lib/zookeeper | ||
|
||
Remove zookeeper log directory: | ||
file.absent: | ||
- name: /var/log/zookeeper | ||
|
||
Remove kafka log directory: | ||
file.absent: | ||
- name: /var/log/kafka | ||
|
||
Remove kafka flag: | ||
file.absent: | ||
- name: /opt/seagate/cortx_configs/provisioner_generated/{{ grains['id'] }}.kafka |
Oops, something went wrong.