You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ya...@apache.org on 2013/05/25 02:12:25 UTC
[1/2] git commit: updated refs/heads/master to a21a4e5
Updated Branches:
refs/heads/master a1437ae82 -> a21a4e5ac
CLOUDSTACK-2681: Suppress failed to apply port forwarding rule error when rollback
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/e3a32867
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e3a32867
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e3a32867
Branch: refs/heads/master
Commit: e3a32867586bbcebe04b009755bfcc116eb1a296
Parents: a1437ae
Author: Sheng Yang <sh...@citrix.com>
Authored: Fri May 24 17:08:31 2013 -0700
Committer: Sheng Yang <sh...@citrix.com>
Committed: Fri May 24 17:08:31 2013 -0700
----------------------------------------------------------------------
.../user/firewall/CreatePortForwardingRuleCmd.java | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e3a32867/api/src/org/apache/cloudstack/api/command/user/firewall/CreatePortForwardingRuleCmd.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/command/user/firewall/CreatePortForwardingRuleCmd.java b/api/src/org/apache/cloudstack/api/command/user/firewall/CreatePortForwardingRuleCmd.java
index 4012852..549de76 100644
--- a/api/src/org/apache/cloudstack/api/command/user/firewall/CreatePortForwardingRuleCmd.java
+++ b/api/src/org/apache/cloudstack/api/command/user/firewall/CreatePortForwardingRuleCmd.java
@@ -198,7 +198,11 @@ public class CreatePortForwardingRuleCmd extends BaseAsyncCreateCmd implements P
_firewallService.revokeRelatedFirewallRule(getEntityId(), true);
}
- _rulesService.revokePortForwardingRule(getEntityId(), true);
+ try {
+ _rulesService.revokePortForwardingRule(getEntityId(), true);
+ } catch (Exception ex){
+ //Ignore e.g. failed to apply rules to device error
+ }
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to apply port forwarding rule");
}
[2/2] git commit: updated refs/heads/master to a21a4e5
Posted by ya...@apache.org.
CLOUDSTACK-2682: Sleep 1 second before switch to BACKUP
To prevent backup.sh preempt master.sh when keepalived switch to MASTER then
back to BACKUP immediately.
Since it would take at least 3 seconds for BACKUP to switch to MASTER(vrrp
timeout), the fix won't cause chaos when keepalive try to switch to MASTER.
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a21a4e5a
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a21a4e5a
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a21a4e5a
Branch: refs/heads/master
Commit: a21a4e5ac43af0f225b6e56e3e73ea7e570510d9
Parents: e3a3286
Author: Sheng Yang <sh...@citrix.com>
Authored: Fri May 24 17:10:55 2013 -0700
Committer: Sheng Yang <sh...@citrix.com>
Committed: Fri May 24 17:10:55 2013 -0700
----------------------------------------------------------------------
.../config/root/redundant_router/backup.sh.templ | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a21a4e5a/patches/systemvm/debian/config/root/redundant_router/backup.sh.templ
----------------------------------------------------------------------
diff --git a/patches/systemvm/debian/config/root/redundant_router/backup.sh.templ b/patches/systemvm/debian/config/root/redundant_router/backup.sh.templ
index 7a1bd44..32c811b 100644
--- a/patches/systemvm/debian/config/root/redundant_router/backup.sh.templ
+++ b/patches/systemvm/debian/config/root/redundant_router/backup.sh.templ
@@ -16,6 +16,8 @@
# specific language governing permissions and limitations
# under the License.
+sleep 1
+
source /root/func.sh
lock="biglock"