Browse Source

Increase timeouts for the Cobbler container restart

This commit increase timeouts for 'expect' to wait for the
command prompt after the Cobbler container restart which
in some cases takes too long time.

Change-Id: Ic9861cc08f6411f8b126a02432422ad07f49d22a
Closes-Bug: #1542320
Maksim Malchuk 3 years ago
parent
commit
42cc02bd68
1 changed files with 7 additions and 5 deletions
  1. 7
    5
      functions/product.sh

+ 7
- 5
functions/product.sh View File

@@ -219,16 +219,18 @@ enable_outbound_network_for_product_vm() {
219 219
         expect "$prompt"
220 220
         send "/sbin/iptables -I FORWARD 1 --src $master_pub_net/24 -j ACCEPT\r"
221 221
         expect "$prompt"
222
-        send "service iptables save >/dev/null 2>&1\r"
222
+        send "service iptables save &>/dev/null\r"
223 223
         expect "$prompt"
224
-        send "dockerctl restart cobbler >/dev/null 2>&1\r"
224
+        send "dockerctl restart cobbler &>/dev/null\r"
225
+        set timeout 300
225 226
         expect "$prompt"
226
-        send "service network restart >/dev/null 2>&1\r"
227
+        send "service network restart &>/dev/null\r"
227 228
         expect "*OK*"
228 229
         expect "$prompt"
229
-        send "dockerctl restart cobbler >/dev/null 2>&1\r"
230
+        send "dockerctl restart cobbler &>/dev/null\r"
231
+        set timeout 300
230 232
         expect "$prompt"
231
-        send "dockerctl check cobbler >/dev/null 2>&1\r"
233
+        send "dockerctl check cobbler &>/dev/null\r"
232 234
         expect "*ready*"
233 235
         expect "$prompt"
234 236
         send "logout\r"

Loading…
Cancel
Save