cloudstack/scripts
John Kinsella 08a0788b38 Summary: security_group.py: catch exception when flushing chain
Detail: Added exception handling around iptables chain flushing, along
with a call to default_network_rules() to re-initialize.

Testing:
On agent, ls /var/run/cloud and pick one of the VMs to test with. Make a
backup of it's logfile (eg cp /var/run/cloud/i-2-1722.log /tmp )
Destroy the firewall ruleset for that VM with
/usr/lib64/cloud/common/scripts/vm/network/security_group.py destroy_network_rules_for_vm --vmname i-2-1722-VM --vif vnet10
Now copy the log file back, edit the file and decrement the last field by 1
ACS should notice the out-of-date sequence ID and push a new ruleset for
the VM within 60 seconds.

BUG-ID: CLOUDSTACK-1685
Bugfix-for: John Kinsella
Reviewed-by:
Reported-by:
Signed-off-by: John Kinsella <jlk@stratosec.co> 1363286927 -0700
2013-03-14 11:48:47 -07:00
..
installer license header changes for scripts folder from Chip Childers 2012-06-23 00:58:00 -04:00
network CLOUDSTACK-1461: Don't set dns server for non-default ipv6 network 2013-03-08 17:43:23 -08:00
storage CLOUDSTACK-1651 - point agent scripts to correct logging location, due to move 2013-03-12 12:20:22 -06:00
util CloudStack CLOUDSTACK-774 2013-02-21 15:46:11 -08:00
vm Summary: security_group.py: catch exception when flushing chain 2013-03-14 11:48:47 -07:00
.pydevproject License header updates for the scripts folder. 2012-08-03 09:38:28 -04:00