Bug #3364

CoovaChilli does not start at init

Added by Giovanni Bezicheri over 5 years ago. Updated over 5 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:coova-chilli
Target version:v6.7
Security class: Resolution:
Affected version:v6.7 NEEDINFO:No

Description

CoovaChilli executes a dns resolution test on google (www.google.it). If it fails CoovaChilli does not start because it cannot work without a network connection.
This bug triggers when the system executes CoovaChilli init script while connectivity is not being ready.
The workaround is to introduce some retry attempts, like following:

@@ -47,8 +47,17 @@

     check_required

-    ping -c 1 www.google.it -W 5 > /dev/null 2> /dev/null
-    retval=$?
+    #Start hotspot service ONLY if connectivity is present. Worst case: 15 seconds to wait
+    attempts=0
+    retval=1
+    while [ $retval -ne 0 ] && [ $attempts -lt 15 ]
+    do
+      ping -c 1 www.google.it > /dev/null 2> /dev/null
+      retval=$?
+      [ $retval -eq 0 ] && break
+      ((attempts++))
+      sleep 1
+    done
     [ $retval -eq 0 ] || return $retval

     /sbin/modprobe tun >/dev/null 2>&1

Associated revisions

Revision e2d8521f
Added by Giacomo Sanchietti over 5 years ago

Init: wait for network to start. Refs #3364

History

#1 Updated by Giovanni Bezicheri over 5 years ago

  • Description updated (diff)

#2 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#3 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

#4 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
In nethserver-testing:
  • coova-chilli-1.3.1.4-1.1.ge2d8521.ns6.x86_64.rpm
Test case
  • Check the bug is not reproducible

#5 Updated by Luca Gasparini over 5 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90

#6 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • ccoova-chilli-1.3.1.5-1.ns6.x86_64.rpm

Also available in: Atom PDF