You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Gaurav Aradhye <ga...@clogeny.com> on 2013/11/19 11:26:02 UTC

Review Request 15668: CLOUDSTACK-5201: Corrected code related to schedule of recurring snapshot policy

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15668/
-----------------------------------------------------------

Review request for cloudstack, Girish Shilamkar and SrikanteswaraRao Talluri.


Bugs: CLOUDSTACK-5201
    https://issues.apache.org/jira/browse/CLOUDSTACK-5201


Repository: cloudstack-git


Description
-------

The test case was failing while getting snapshots' list because minutes were passed in the schedule of snapshot policy when the intervalType is "Hourly". Passes hours and changed wait time accordingly to get the snapshots list.


Diffs
-----

  test/integration/component/test_base_image_updation.py b70bea5 

Diff: https://reviews.apache.org/r/15668/diff/


Testing
-------

Tested locally on KVM advanced. No Xen advanced up right now.

Log:
test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) ...
==> client.log <==
2013-11-18 20:25:06,863 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Creating recurring snapshot policy fo
r root disk on vm created with IsVolatile=True
2013-11-18 20:25:06,863 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Snapshot Policy - Type : HOURLY Sched
uled Hours : 1
2013-11-18 20:25:06,959 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Sleeping for 70 minutes till the volu
me is snapshoted
2013-11-18 21:35:57,329 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Checking whether root disk of VM with
 isVolatile=True was destroyed
2013-11-18 21:35:57,398 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Checking whether snapshot rule for VM
 with isVolatile=True was destroyed                    Here we are passing root disk id of vm before reboot which does not exist hence                   listing
 should fail

==> result.log <==
ok

----------------------------------------------------------------------
Ran 4 tests in 4507.963s

OK (skipped=3)


Thanks,

Gaurav Aradhye


Re: Review Request 15668: CLOUDSTACK-5201: Corrected code related to schedule of recurring snapshot policy

Posted by ASF Subversion and Git Services <as...@urd.zones.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15668/#review29218
-----------------------------------------------------------


Commit 2f308cc988bb3c82c753d99daade5f6bfafd26e5 in branch refs/heads/4.2 from Gaurav Aradhye
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=2f308cc ]

CLOUDSTACK-5201: Correcting code related to schedule of
 recurring snapshot policy


- ASF Subversion and Git Services


On Nov. 19, 2013, 10:25 a.m., Gaurav Aradhye wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/15668/
> -----------------------------------------------------------
> 
> (Updated Nov. 19, 2013, 10:25 a.m.)
> 
> 
> Review request for cloudstack, Girish Shilamkar and SrikanteswaraRao Talluri.
> 
> 
> Bugs: CLOUDSTACK-5201
>     https://issues.apache.org/jira/browse/CLOUDSTACK-5201
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> -------
> 
> The test case was failing while getting snapshots' list because minutes were passed in the schedule of snapshot policy when the intervalType is "Hourly". Passes hours and changed wait time accordingly to get the snapshots list.
> 
> 
> Diffs
> -----
> 
>   test/integration/component/test_base_image_updation.py b70bea5 
> 
> Diff: https://reviews.apache.org/r/15668/diff/
> 
> 
> Testing
> -------
> 
> Tested locally on KVM advanced. No Xen advanced up right now.
> 
> Log:
> test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) ...
> ==> client.log <==
> 2013-11-18 20:25:06,863 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Creating recurring snapshot policy fo
> r root disk on vm created with IsVolatile=True
> 2013-11-18 20:25:06,863 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Snapshot Policy - Type : HOURLY Sched
> uled Hours : 1
> 2013-11-18 20:25:06,959 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Sleeping for 70 minutes till the volu
> me is snapshoted
> 2013-11-18 21:35:57,329 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Checking whether root disk of VM with
>  isVolatile=True was destroyed
> 2013-11-18 21:35:57,398 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Checking whether snapshot rule for VM
>  with isVolatile=True was destroyed                    Here we are passing root disk id of vm before reboot which does not exist hence                   listing
>  should fail
> 
> ==> result.log <==
> ok
> 
> ----------------------------------------------------------------------
> Ran 4 tests in 4507.963s
> 
> OK (skipped=3)
> 
> 
> Thanks,
> 
> Gaurav Aradhye
> 
>


Re: Review Request 15668: CLOUDSTACK-5201: Corrected code related to schedule of recurring snapshot policy

Posted by Girish Shilamkar <gi...@clogeny.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15668/#review29220
-----------------------------------------------------------

Ship it!


Committed to 4.2, 4.3 and master.

- Girish Shilamkar


On Nov. 19, 2013, 10:25 a.m., Gaurav Aradhye wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/15668/
> -----------------------------------------------------------
> 
> (Updated Nov. 19, 2013, 10:25 a.m.)
> 
> 
> Review request for cloudstack, Girish Shilamkar and SrikanteswaraRao Talluri.
> 
> 
> Bugs: CLOUDSTACK-5201
>     https://issues.apache.org/jira/browse/CLOUDSTACK-5201
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> -------
> 
> The test case was failing while getting snapshots' list because minutes were passed in the schedule of snapshot policy when the intervalType is "Hourly". Passes hours and changed wait time accordingly to get the snapshots list.
> 
> 
> Diffs
> -----
> 
>   test/integration/component/test_base_image_updation.py b70bea5 
> 
> Diff: https://reviews.apache.org/r/15668/diff/
> 
> 
> Testing
> -------
> 
> Tested locally on KVM advanced. No Xen advanced up right now.
> 
> Log:
> test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) ...
> ==> client.log <==
> 2013-11-18 20:25:06,863 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Creating recurring snapshot policy fo
> r root disk on vm created with IsVolatile=True
> 2013-11-18 20:25:06,863 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Snapshot Policy - Type : HOURLY Sched
> uled Hours : 1
> 2013-11-18 20:25:06,959 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Sleeping for 70 minutes till the volu
> me is snapshoted
> 2013-11-18 21:35:57,329 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Checking whether root disk of VM with
>  isVolatile=True was destroyed
> 2013-11-18 21:35:57,398 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Checking whether snapshot rule for VM
>  with isVolatile=True was destroyed                    Here we are passing root disk id of vm before reboot which does not exist hence                   listing
>  should fail
> 
> ==> result.log <==
> ok
> 
> ----------------------------------------------------------------------
> Ran 4 tests in 4507.963s
> 
> OK (skipped=3)
> 
> 
> Thanks,
> 
> Gaurav Aradhye
> 
>


Re: Review Request 15668: CLOUDSTACK-5201: Corrected code related to schedule of recurring snapshot policy

Posted by ASF Subversion and Git Services <as...@urd.zones.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15668/#review29217
-----------------------------------------------------------


Commit 138cee401ff6973a43302da2ba323b7e85321a19 in branch refs/heads/master from Gaurav Aradhye
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=138cee4 ]

CLOUDSTACK-5201: Correcting code related to schedule of
 recurring snapshot policy


- ASF Subversion and Git Services


On Nov. 19, 2013, 10:25 a.m., Gaurav Aradhye wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/15668/
> -----------------------------------------------------------
> 
> (Updated Nov. 19, 2013, 10:25 a.m.)
> 
> 
> Review request for cloudstack, Girish Shilamkar and SrikanteswaraRao Talluri.
> 
> 
> Bugs: CLOUDSTACK-5201
>     https://issues.apache.org/jira/browse/CLOUDSTACK-5201
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> -------
> 
> The test case was failing while getting snapshots' list because minutes were passed in the schedule of snapshot policy when the intervalType is "Hourly". Passes hours and changed wait time accordingly to get the snapshots list.
> 
> 
> Diffs
> -----
> 
>   test/integration/component/test_base_image_updation.py b70bea5 
> 
> Diff: https://reviews.apache.org/r/15668/diff/
> 
> 
> Testing
> -------
> 
> Tested locally on KVM advanced. No Xen advanced up right now.
> 
> Log:
> test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) ...
> ==> client.log <==
> 2013-11-18 20:25:06,863 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Creating recurring snapshot policy fo
> r root disk on vm created with IsVolatile=True
> 2013-11-18 20:25:06,863 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Snapshot Policy - Type : HOURLY Sched
> uled Hours : 1
> 2013-11-18 20:25:06,959 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Sleeping for 70 minutes till the volu
> me is snapshoted
> 2013-11-18 21:35:57,329 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Checking whether root disk of VM with
>  isVolatile=True was destroyed
> 2013-11-18 21:35:57,398 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Checking whether snapshot rule for VM
>  with isVolatile=True was destroyed                    Here we are passing root disk id of vm before reboot which does not exist hence                   listing
>  should fail
> 
> ==> result.log <==
> ok
> 
> ----------------------------------------------------------------------
> Ran 4 tests in 4507.963s
> 
> OK (skipped=3)
> 
> 
> Thanks,
> 
> Gaurav Aradhye
> 
>


Re: Review Request 15668: CLOUDSTACK-5201: Corrected code related to schedule of recurring snapshot policy

Posted by ASF Subversion and Git Services <as...@urd.zones.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15668/#review29219
-----------------------------------------------------------


Commit b43b4b28b6780454405062d0963dae4af80e497b in branch refs/heads/4.3 from Gaurav Aradhye
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=b43b4b2 ]

CLOUDSTACK-5201: Correcting code related to schedule of
 recurring snapshot policy


- ASF Subversion and Git Services


On Nov. 19, 2013, 10:25 a.m., Gaurav Aradhye wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/15668/
> -----------------------------------------------------------
> 
> (Updated Nov. 19, 2013, 10:25 a.m.)
> 
> 
> Review request for cloudstack, Girish Shilamkar and SrikanteswaraRao Talluri.
> 
> 
> Bugs: CLOUDSTACK-5201
>     https://issues.apache.org/jira/browse/CLOUDSTACK-5201
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> -------
> 
> The test case was failing while getting snapshots' list because minutes were passed in the schedule of snapshot policy when the intervalType is "Hourly". Passes hours and changed wait time accordingly to get the snapshots list.
> 
> 
> Diffs
> -----
> 
>   test/integration/component/test_base_image_updation.py b70bea5 
> 
> Diff: https://reviews.apache.org/r/15668/diff/
> 
> 
> Testing
> -------
> 
> Tested locally on KVM advanced. No Xen advanced up right now.
> 
> Log:
> test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) ...
> ==> client.log <==
> 2013-11-18 20:25:06,863 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Creating recurring snapshot policy fo
> r root disk on vm created with IsVolatile=True
> 2013-11-18 20:25:06,863 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Snapshot Policy - Type : HOURLY Sched
> uled Hours : 1
> 2013-11-18 20:25:06,959 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Sleeping for 70 minutes till the volu
> me is snapshoted
> 2013-11-18 21:35:57,329 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Checking whether root disk of VM with
>  isVolatile=True was destroyed
> 2013-11-18 21:35:57,398 - DEBUG - test_04_reoccuring_snapshot_rules (test_base_image_updation_fixed.TestBaseImageUpdate) - Checking whether snapshot rule for VM
>  with isVolatile=True was destroyed                    Here we are passing root disk id of vm before reboot which does not exist hence                   listing
>  should fail
> 
> ==> result.log <==
> ok
> 
> ----------------------------------------------------------------------
> Ran 4 tests in 4507.963s
> 
> OK (skipped=3)
> 
> 
> Thanks,
> 
> Gaurav Aradhye
> 
>