cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [09/50] [abbrv] git commit: updated refs/heads/4.9-bountycastle-daan to 4817cb6
Date Wed, 11 May 2016 09:42:57 GMT
Merge pull request #1408 from wido/security-group-lock

kvm: Aqcuire lock when running security group Python scriptIt could happen that when multiple
instances are starting at the same
time on a KVM host the Agent spawns multiple instances of
which both try to modify iptables/ebtables rules.

This fails with on of the two processes failing.

The instance is still started, but it doesn't have any IP connectivity due
to the failed programming of the security groups.

This modification lets the script aqcuire a exclusive lock on a file so that
only one instance of the scripts talks to iptables/ebtables at once.

Other instances of the script which start will poll every 500ms if they can
obtain the lock and otherwise execute anyway after 15 seconds.

* pr/1408:
  kvm: Aqcuire lock when running security group Python script

Signed-off-by: Will Stevens <>


Branch: refs/heads/4.9-bountycastle-daan
Commit: 62d2954f51e843300bccbb2b6d4597d1433c7e2b
Parents: 7ce0e10 26becef
Author: Will Stevens <>
Authored: Wed May 4 10:32:47 2016 -0400
Committer: Will Stevens <>
Committed: Wed May 4 10:32:48 2016 -0400

 scripts/vm/network/ | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

View raw message