----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/5806/ -----------------------------------------------------------
(Updated Sept. 8, 2012, 9:50 a.m.) Review request for cloudstack. Changes ------- Changes made based on review comments. Verified locally for clustered management servers Description ------- Change: 1. Before creating the snapshot, we synchronized checkResourcelimit to allow the users to create the snapshot and increment the resource count. 2. Depending on the failure of snapshot creation/ backup, we are decrementing the resource count. This addresses bug CS-15430. Diffs (updated) ----- api/src/com/cloud/user/ResourceLimitService.java 98dfc11 server/src/com/cloud/resourcelimit/ResourceLimitManagerImpl.java 7f446d7 server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java 8ae8ddc Diff: https://reviews.apache.org/r/5806/diff/ Testing ------- Steps to verify: 1.Login as admin, set snapshot limit '3' for a user account 2.login as user, create a VM1 with data volume 3.trigger 3 create snapshot command from the above data volume, succeeded 4.create one more snapshot, failed, "maximum limit exceeded for account user" Thanks, deepti dohare
