Prasanna Santhanam created CLOUDSTACK-4086:
----------------------------------------------
Summary: test_project_resources: cannot update template
permissions for project under non-root domain
Key: CLOUDSTACK-4086
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4086
Project: CloudStack
Issue Type: Test
Security Level: Public (Anyone can view this level - this is the default.)
Reporter: Prasanna Santhanam
Priority: Critical
nosetests --with-marvin --marvin-config=setup/dev/advanced.cfg
test/integration/component/test_project_resources.py --load
on 4.2 branch when updating template permissions to turn the template to
private the API call fails with
"unable to grant permission"
This is noticed whenever the domain of the project is non-ROOT.
Test use of private template in a project ... ERROR
ERROR
======================================================================
ERROR: Test use of private template in a project
Traceback (most recent call last):
File
"/Users/tsp/workspace/cloudstack/incubator-cloudstack/test/integration/component/test_project_resources.py",
line 720, in test_05_use_private_template_in_project
projectids=self.project.id
File "/Library/Python/2.7/site-packages/marvin/integration/lib/base.py", line
973, in updatePermissions
return(apiclient.updateTemplatePermissions(cmd))
File
"/Library/Python/2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py",
line 2326, in updateTemplatePermissions
response = self.connection.marvin_request(command, response_type=response,
method=method)
File "/Library/Python/2.7/site-packages/marvin/cloudstackConnection.py", line
222, in marvin_request
response = jsonHelper.getResultObj(response.json(), response_type)
File "/Library/Python/2.7/site-packages/marvin/jsonHelper.py", line 148, in
getResultObj
raise cloudstackException.cloudstackAPIException(respname, errMsg)
cloudstackAPIException: Execute cmd: updatetemplatepermissions failed, due to:
errorCode: 431, errorText:Unable to grant a launch permission to account
PrjAcct-Project-P32QXV-6, account not found. No permissions updated, please
verify the account names and retry.
test_05_use_private_template_in_project
(integration.component.test_project_resources.TestTemplates): DEBUG: Deploying
VM for with public template: 3b9b95b4-fd9d-11e2-b0f6-9f7a842a44d9
test_05_use_private_template_in_project
(integration.component.test_project_resources.TestTemplates): DEBUG: Stopping
the VM: 215528c7-e3b1-461b-a634-597725ec1e31
test_05_use_private_template_in_project
(integration.component.test_project_resources.TestTemplates): DEBUG: Creating
template from volume: 643a1213-2a86-4e2e-88db-f308dcab33a0
test_05_use_private_template_in_project
(integration.component.test_project_resources.TestTemplates): DEBUG: Updating
template permissions:1ea32816-1747-4ea8-89c6-7394ab6612bf to grant access to
project: e816e05a-60fc-429d-8a95-27a316872608
======================================================================
ERROR: Test use of private template in a project
Traceback (most recent call last):
File
"/Users/tsp/workspace/cloudstack/incubator-cloudstack/test/integration/component/test_project_resources.py",
line 589, in tearDown
raise Exception("Warning: Exception during cleanup : %s" % e)
Exception: Warning: Exception during cleanup : Execute cmd: asyncquery failed,
due to: {errorcode : 530, errortext : u'Failed to delete template'}
test_05_use_private_template_in_project
(integration.component.test_project_resources.TestTemplates): DEBUG: Deploying
VM for with public template: 3b9b95b4-fd9d-11e2-b0f6-9f7a842a44d9
test_05_use_private_template_in_project
(integration.component.test_project_resources.TestTemplates): DEBUG: Stopping
the VM: 215528c7-e3b1-461b-a634-597725ec1e31
test_05_use_private_template_in_project
(integration.component.test_project_resources.TestTemplates): DEBUG: Creating
template from volume: 643a1213-2a86-4e2e-88db-f308dcab33a0
test_05_use_private_template_in_project
(integration.component.test_project_resources.TestTemplates): DEBUG: Updating
template permissions:1ea32816-1747-4ea8-89c6-7394ab6612bf to grant access to
project: e816e05a-60fc-429d-8a95-27a316872608
Ran 1 test in 30.953s
FAILED (errors=2)
--
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