cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sw...@apache.org
Subject [2/2] git commit: updated refs/heads/master to 62d2954
Date Wed, 04 May 2016 14:33:10 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 security_group.py
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 <williamstevens@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/62d2954f
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/62d2954f
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/62d2954f

Branch: refs/heads/master
Commit: 62d2954f51e843300bccbb2b6d4597d1433c7e2b
Parents: 7ce0e10 26becef
Author: Will Stevens <williamstevens@gmail.com>
Authored: Wed May 4 10:32:47 2016 -0400
Committer: Will Stevens <williamstevens@gmail.com>
Committed: Wed May 4 10:32:48 2016 -0400

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



Mime
View raw message