SUSE / salt-shaptools

Salt execution module and state to manage SAP Applications (HANA only at the moment) and SUSE Linux Enterprise High Availability components
Apache License 2.0
14 stars 11 forks source link

cluster initialisation is not idempotent #76

Open aleksei-burlakov opened 3 years ago

aleksei-burlakov commented 3 years ago

When there is a cluster existing and running on a node and we run the _states/crmshmod.py:crm.cluster_initialized it won't alter the parameters of the existing cluster.

For example, you have manually initialized a cluster with the name foo $ crm cluster init -n foo -y Then when you create a new cluster by _states/crmshmod.py:crm.cluster_initialized with the name bar, it will NOT alter its name. There are also other parameters (watchdog, interface,...), and cluster components (e.g. sbd- and qdevice) that will behave the same way.

aleksei-burlakov commented 3 years ago

Regarding the qdevice https://github.com/SUSE/salt-shaptools/pull/74#discussion_r543118958