Hello community,

here is the log from the commit of package habootstrap-formula for 
openSUSE:Factory checked in at 2020-09-12 00:11:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/habootstrap-formula (Old)
 and      /work/SRC/openSUSE:Factory/.habootstrap-formula.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "habootstrap-formula"

Sat Sep 12 00:11:58 2020 rev:12 rq:833770 version:0.3.8+git.1599825027.ca5817c

Changes:
--------
--- /work/SRC/openSUSE:Factory/habootstrap-formula/habootstrap-formula.changes  
2020-08-20 22:31:30.904056706 +0200
+++ 
/work/SRC/openSUSE:Factory/.habootstrap-formula.new.4249/habootstrap-formula.changes
        2020-09-12 00:12:53.021235447 +0200
@@ -1,0 +2,6 @@
+Thu Sep  3 06:37:50 UTC 2020 - Xabier Arbulu <[email protected]>
+
+- Add lock mechanism to the cluster join process to avoid issues
+  when multiple nodes are joining in parallel 
+
+-------------------------------------------------------------------

Old:
----
  habootstrap-formula-0.3.8+git.1597913606.d7bf629.tar.gz

New:
----
  habootstrap-formula-0.3.8+git.1599825027.ca5817c.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ habootstrap-formula.spec ++++++
--- /var/tmp/diff_new_pack.4Wk55d/_old  2020-09-12 00:12:55.513237831 +0200
+++ /var/tmp/diff_new_pack.4Wk55d/_new  2020-09-12 00:12:55.517237836 +0200
@@ -20,7 +20,7 @@
 
 Name:           habootstrap-formula
 Group:          System/Packages
-Version:        0.3.8+git.1597913606.d7bf629
+Version:        0.3.8+git.1599825027.ca5817c
 Release:        0
 Summary:        HA cluster (crmsh) deployment salt formula
 

++++++ _service ++++++
--- /var/tmp/diff_new_pack.4Wk55d/_old  2020-09-12 00:12:55.545237863 +0200
+++ /var/tmp/diff_new_pack.4Wk55d/_new  2020-09-12 00:12:55.549237866 +0200
@@ -5,7 +5,7 @@
     <param name="exclude">.git</param>
     <param name="filename">habootstrap-formula</param>
     <param name="versionformat">0.3.8+git.%ct.%h</param>
-    <param name="revision">d7bf6291f77adf5653a0b7acbdcda81977f6b79d</param>
+    <param name="revision">ca5817cc644143c838dd005d2a2edf46c0f976d1</param>
   </service>
 
   <service name="recompress" mode="disabled">

++++++ habootstrap-formula-0.3.8+git.1597913606.d7bf629.tar.gz -> 
habootstrap-formula-0.3.8+git.1599825027.ca5817c.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/habootstrap-formula-0.3.8+git.1597913606.d7bf629/cluster/join.sls 
new/habootstrap-formula-0.3.8+git.1599825027.ca5817c/cluster/join.sls
--- old/habootstrap-formula-0.3.8+git.1597913606.d7bf629/cluster/join.sls       
2020-08-20 10:53:26.000000000 +0200
+++ new/habootstrap-formula-0.3.8+git.1599825027.ca5817c/cluster/join.sls       
2020-09-11 13:50:27.000000000 +0200
@@ -1,5 +1,7 @@
 {%- from "cluster/map.jinja" import cluster with context -%}
 
+{% set lock_dir = '/var/tmp/habootstrap_join.lock' %}
+
 wait-for-cluster:
   http.wait_for_successful_query:
     - name: 'https://{{ cluster.init }}:7630/monitor?0'
@@ -14,6 +16,21 @@
     - require:
       - wait-for-cluster
 
+check-ssh-connection-availability:
+  cmd.run:
+    - name: ssh -o StrictHostKeyChecking=no -o EscapeChar=none -o 
ConnectTimeout=15 -T -o Batchmode=yes {{ cluster.init }} true
+    - require:
+      - wait-for-total-initialization
+
+acquire-lock-cluster:
+  cmd.run:
+    - name: until ssh -T root@{{ cluster.init }} -o StrictHostKeyChecking=no 
'mkdir {{ lock_dir }}';do sleep 10;done
+    - timeout: {{ cluster.join_timeout }}
+    - output_loglevel: quiet
+    - hide_output: True
+    - require:
+      - check-ssh-connection-availability
+
 join-the-cluster:
   crm.cluster_joined:
      - name: {{ cluster.init }}
@@ -26,7 +43,13 @@
      - interface: {{ cluster.interface }}
      {% endif %}
      - require:
-         - wait-for-total-initialization
+       - acquire-lock-cluster
+
+release-lock-cluster:
+  cmd.run:
+    - name: ssh -T root@{{ cluster.init }} -o StrictHostKeyChecking=no 'rm -rf 
{{ lock_dir }}'
+    - require:
+      - acquire-lock-cluster
 
 hawk:
   service.running:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/habootstrap-formula-0.3.8+git.1597913606.d7bf629/habootstrap-formula.changes
 
new/habootstrap-formula-0.3.8+git.1599825027.ca5817c/habootstrap-formula.changes
--- 
old/habootstrap-formula-0.3.8+git.1597913606.d7bf629/habootstrap-formula.changes
    2020-08-20 10:53:26.000000000 +0200
+++ 
new/habootstrap-formula-0.3.8+git.1599825027.ca5817c/habootstrap-formula.changes
    2020-09-11 13:50:27.000000000 +0200
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Thu Sep  3 06:37:50 UTC 2020 - Xabier Arbulu <[email protected]>
+
+- Add lock mechanism to the cluster join process to avoid issues
+  when multiple nodes are joining in parallel 
+
+-------------------------------------------------------------------
 Thu Aug 20 00:56:44 UTC 2020 - Simranpal Singh <[email protected]>
 
 - Version bump 0.3.8


Reply via email to