mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 13647: adding iptables rules failed, sleep and retry
status 13647: resolved fixed Reviewed-by: Frank
This commit is contained in:
parent
3536a2e941
commit
f9a62145f0
@ -535,6 +535,15 @@ class firewallConfigBase(serviceCfgBase):
|
||||
pass
|
||||
|
||||
if not status:
|
||||
redo = False
|
||||
result = True
|
||||
try:
|
||||
result = bash("iptables -I INPUT -p tcp -m tcp --dport %s -j ACCEPT"%port).isSuccess()
|
||||
except:
|
||||
redo = True
|
||||
|
||||
if not result or redo:
|
||||
bash("sleep 30")
|
||||
bash("iptables -I INPUT -p tcp -m tcp --dport %s -j ACCEPT"%port)
|
||||
|
||||
def config(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user