cloudstack/scripts/vm
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
..
hypervisor CLOUDSTACK-24: mipn feature for basiczone 2013-03-13 10:24:22 +05:30
network Summary: security_group.py: catch exception when flushing chain 2013-03-14 11:48:47 -07:00
systemvm Use /tmp as temporary location for injecting SSH keys into systemvm.iso 2012-09-27 18:58:31 +02:00
pingtest.sh license header changes for scripts folder from Chip Childers 2012-06-23 00:58:00 -04:00