[ https://issues.apache.org/jira/browse/CLOUDSTACK-4030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13727616#comment-13727616 ]
Gaurav Aradhye commented on CLOUDSTACK-4030: -------------------------------------------- After deleting the project, volume is still present and can be listed by passing volumeid to listVolumes API. However, if projectid is passed, then it won't return anything because it can't find project id now. So the volume is still present, not ideal behaviour as discussed with prasanna. The issue in test case, if any remains, will be taken care of once 4044 is resolved. > [Automation] Failed to delete volume and test case > TestProjectResources.test_08_cleanup_after_project_delete failed > -------------------------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-4030 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4030 > Project: CloudStack > Issue Type: Test > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Automation > Affects Versions: 4.2.0 > Reporter: Rayees Namathponnan > Assignee: Prasanna Santhanam > Fix For: 4.2.0 > > > Test case > integration.component.test_projects.TestProjectResources.test_08_cleanup_after_project_delete > failed, observed below error > Error Message > Resources (volume) should be deleted as part of cleanup > -------------------- >> begin captured logging << -------------------- > testclient.testcase.TestProjectResources: DEBUG: Created project with domain > admin with ID: 711e38d6-84b3-4320-aaa6-19929bd189d3 > testclient.testcase.TestProjectResources: DEBUG: Adding > test-test_project-0395ZC user to project: Project-MNTOI6 > testclient.testcase.TestProjectResources: DEBUG: Created a volume: > c55d1ca0-4be3-4d68-b053-20a03008ef1e for project: Project-MNTOI6 > testclient.testcase.TestProjectResources: DEBUG: Deleting project: > Project-MNTOI6 > testclient.testcase.TestProjectResources: DEBUG: Successfully deleted > project: Project-MNTOI6 > --------------------- >> end captured logging << --------------------- > Stacktrace > File "/usr/local/lib/python2.7/unittest/case.py", line 318, in run > testMethod() > File > "/Repo_30X/ipcl/cloudstack/test/integration/component/test_projects.py", line > 1430, in test_08_cleanup_after_project_delete > "Resources (volume) should be deleted as part of cleanup" > File "/usr/local/lib/python2.7/unittest/case.py", line 494, in assertEqual > assertion_func(first, second, msg=msg) > File "/usr/local/lib/python2.7/unittest/case.py", line 487, in > _baseAssertEqual > raise self.failureException(msg) > Resources (volume) should be deleted as part of cleanup > -------------------- >> begin captured logging << -------------------- > testclient.testcase.TestProjectResources: DEBUG: Created project with domain > admin with ID: 711e38d6-84b3-4320-aaa6-19929bd189d3 > testclient.testcase.TestProjectResources: DEBUG: Adding > test-test_project-0395ZC user to project: Project-MNTOI6 > testclient.testcase.TestProjectResources: DEBUG: Created a volume: > c55d1ca0-4be3-4d68-b053-20a03008ef1e for project: Project-MNTOI6 > testclient.testcase.TestProjectResources: DEBUG: Deleting project: > Project-MNTOI6 > testclient.testcase.TestProjectResources: DEBUG: Successfully deleted > project: Project-MNTOI6 > --------------------- >> end captured logging << --------------------- -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira