You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by karuturi <gi...@git.apache.org> on 2015/09/21 12:51:12 UTC

[GitHub] cloudstack pull request: CLOUDSTACK-8889: delete volume doesnt dec...

GitHub user karuturi opened a pull request:

    https://github.com/apache/cloudstack/pull/860

    CLOUDSTACK-8889: delete volume doesnt decrement primary store resource count

    Primary Storage count for an account does not decrease when a Data Disk
    is deleted belonging to the account unless the VM to which volume
    belonged is destroyed
    
    The resource counts are updated even before the disk is actually deleted
    resulting in the same value.
    Moved the resource counts updation to after the expunge operation as
    thats when the disk is actually deleted.
    
    Testing:
     Earlier, test_create_multiple_volumes in test/integration/component/test_ps_limits.py failed  with error AssertionError: Resource count 37 should match with the expected resource count 32
    
    Before
    
    Test create multiple volumes ... === TestName: test_create_multiple_volumes_1_root_domain_admin | Status : FAILED ===
    FAIL
    Test create multiple volumes ... === TestName: test_create_multiple_volumes_2_child_domain_admin | Status : FAILED ===
    FAIL
    
    After the Fix
    
    Test create multiple volumes ... === TestName: test_create_multiple_volumes_1_root_domain_admin | Status : SUCCESS ===
    ok
    Test create multiple volumes ... === TestName: test_create_multiple_volumes_2_child_domain_admin | Status : SUCCESS ===
    ok
    
    ----------------------------------------------------------------------
    Ran 2 tests in 334.823s
    
    OK

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/karuturi/cloudstack CLOUDSTACK-8889

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/860.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #860
    
----
commit 4e56dfbfbfa82802f71717b333728d8b03d7892a
Author: Rajani Karuturi <ra...@citrix.com>
Date:   2015-09-21T10:41:15Z

    CLOUDSTACK-8889: delete volume doesnt decrement primary store resource count
    
    Primary Storage count for an account does not decrease when a Data Disk
    is deleted belonging to the account unless the VM to which volume
    belonged is destroyed
    
    The resource counts are updated even before the disk is actually deleted
    resulting in the same value.
    Moved the resource counts updation to after the expunge operation as
    thats when the disk is actually deleted.
    
    all the tests in test/integration/component/test_ps_limits.py now pass

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: CLOUDSTACK-8889: delete volume doesnt dec...

Posted by borisroman <gi...@git.apache.org>.
Github user borisroman commented on the pull request:

    https://github.com/apache/cloudstack/pull/860#issuecomment-150681274
  
    @karuturi @remibergsma Is this still actual? If so, could you please rebase? I'll then test it and it can be a bugfix for 4.6 :)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: CLOUDSTACK-8889: delete volume doesnt dec...

Posted by koushik-das <gi...@git.apache.org>.
Github user koushik-das commented on the pull request:

    https://github.com/apache/cloudstack/pull/860#issuecomment-142174642
  
    LGTM


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: CLOUDSTACK-8889: delete volume doesnt dec...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/cloudstack/pull/860


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: CLOUDSTACK-8889: delete volume doesnt dec...

Posted by borisroman <gi...@git.apache.org>.
Github user borisroman commented on the pull request:

    https://github.com/apache/cloudstack/pull/860#issuecomment-151096159
  
    @karuturi Jenkins failed;
    
    [ERROR] Error in Cobertura Report generation: Unable to execute Cobertura.
    
    Could maybe force push again?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: CLOUDSTACK-8889: delete volume doesnt dec...

Posted by borisroman <gi...@git.apache.org>.
Github user borisroman commented on the pull request:

    https://github.com/apache/cloudstack/pull/860#issuecomment-151089307
  
    @remibergsma @karuturi I tested this PR with the changes in #979. Results:
    
    ```
    nosetests --with-marvin --marvin-config=/data/shared/marvin/mct-zone1-kvm1-basic.cfg -s -a tags=basic,required_hardware=false smoke/test_vm_life_cycle.py
    ```
    ```
    ==== Marvin Init Started ====
    
    === Marvin Parse Config Successful ===
    
    === Marvin Setting TestData Successful===
    
    ==== Log Folder Path: /tmp//MarvinLogs//Oct_26_2015_09_55_20_4UDZRZ. All logs will be available here ====
    
    === Marvin Init Logging Successful===
    
    ==== Marvin Init Successful ====
    === TestName: test_deploy_vm | Status : SUCCESS ===
    
    === TestName: test_deploy_vm_multiple | Status : SUCCESS ===
    
    === TestName: test_01_stop_vm | Status : SUCCESS ===
    
    === TestName: test_02_start_vm | Status : SUCCESS ===
    
    === TestName: test_03_reboot_vm | Status : SUCCESS ===
    
    === TestName: test_06_destroy_vm | Status : SUCCESS ===
    
    === TestName: test_07_restore_vm | Status : SUCCESS ===
    
    === TestName: test_09_expunge_vm | Status : SUCCESS ===
    
    ===final results are now copied to: /tmp//MarvinLogs/test_vm_life_cycle_2GU6K4===
    ```
    ```
    nosetests --with-marvin --marvin-config=/data/shared/marvin/mct-zone1-kvm1-basic.cfg -s -a tags=basic,required_hardware=false component/test_ps_limits.py 
    ```
    ```
    ==== Marvin Init Started ====
    
    === Marvin Parse Config Successful ===
    
    === Marvin Setting TestData Successful===
    
    ==== Log Folder Path: /tmp//MarvinLogs//Oct_26_2015_10_19_51_ZY3KD5. All logs will be available here ====
    
    === Marvin Init Logging Successful===
    
    ==== Marvin Init Successful ====
    === TestName: test_assign_vm_different_account_1_root_domain_admin | Status : SUCCESS ===
    
    === TestName: test_assign_vm_different_account_2_child_domain_admin | Status : SUCCESS ===
    
    === TestName: test_attach_detach_volume_1_root_domain_admin | Status : SUCCESS ===
    
    === TestName: test_attach_detach_volume_2_child_domain_admin | Status : SUCCESS ===
    
    === TestName: test_create_multiple_volumes_1_root_domain_admin | Status : SUCCESS ===
    
    === TestName: test_create_multiple_volumes_2_child_domain_admin | Status : SUCCESS ===
    
    === TestName: test_deploy_multiple_vm_1_root_domain_admin | Status : SUCCESS ===
    
    === TestName: test_deploy_multiple_vm_2_child_domain_admin | Status : SUCCESS ===
    
    === TestName: test_stop_start_vm_1_root_domain_admin | Status : SUCCESS ===
    
    === TestName: test_stop_start_vm_2_child_domain_admin | Status : SUCCESS ===
    
    ===final results are now copied to: /tmp//MarvinLogs/test_ps_limits_0E1HFP===
    ```
    
    Based on the test: LGTM :+1: 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: CLOUDSTACK-8889: delete volume doesnt dec...

Posted by karuturi <gi...@git.apache.org>.
Github user karuturi commented on the pull request:

    https://github.com/apache/cloudstack/pull/860#issuecomment-151047752
  
    @borisroman yes this is real :) . I think this might exist in 4.5 as well. Haven't tested it there.
    I rebased with the current master


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: CLOUDSTACK-8889: delete volume doesnt dec...

Posted by wilderrodrigues <gi...@git.apache.org>.
Github user wilderrodrigues commented on the pull request:

    https://github.com/apache/cloudstack/pull/860#issuecomment-151214062
  
    Ping @karuturi @remibergsma ... time to get this on in? :)
    
    Cheers,
    Wilder


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: CLOUDSTACK-8889: delete volume doesnt dec...

Posted by karuturi <gi...@git.apache.org>.
Github user karuturi commented on the pull request:

    https://github.com/apache/cloudstack/pull/860#issuecomment-151096712
  
    3rd attempt. I hope it succeeds this time. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---