2026-10-09 17:23:33,072 - DEBUG - Parsing Test data successful
2026-10-09 17:23:33,072 - DEBUG - Payload: {'account': 'admin', 'command': 'listUsers', 'response': 'json'}
2026-10-09 17:23:33,072 - DEBUG - ========Sending GET Cmd : listUsers=======
2026-10-09 17:23:33,093 - DEBUG - Response : [{id : 'a672c44f-c3f0-11f1-975d-1e002100023e', username : 'admin', firstname : 'admin', lastname : 'cloud', created : '2026-10-09T14:49:37+0000', state : 'enabled', account : 'admin', accounttype : 1, usersource : 'native', roleid : '728a7b63-c3f0-11f1-975d-1e002100023e', roletype : 'Admin', rolename : 'Root Admin', domainid : '403e1dfc-c3f0-11f1-975d-1e002100023e', domain : 'ROOT', apikey : 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', accountid : 'a6719d11-c3f0-11f1-975d-1e002100023e', iscallerchilddomain : False, isdefault : True, is2faenabled : False, is2famandated : False, apikeyaccess : 'INHERIT'}]
2026-10-09 17:23:33,094 - DEBUG - Payload: {'id': 'a672c44f-c3f0-11f1-975d-1e002100023e', 'command': 'getUserKeys', 'response': 'json'}
2026-10-09 17:23:33,094 - DEBUG - ========Sending GET Cmd : getUserKeys=======
2026-10-09 17:23:33,109 - DEBUG - Response : {apikey : 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', secretkey : 'R6QPwRUz09TVXBjXNwZk7grTjcPtsFRphH6xhN1oPvnc12YUk296t4KHytg8zRLczDA0X5NsLVi4d8rfMMx3yg', apikeyaccess : True}
2026-10-09 17:23:33,109 - DEBUG - ==== Test Client Creation Successful ====
2026-10-09 17:23:33,218 - DEBUG - Payload: {'name': 'pr147-n88-kvm-ubuntu26', 'command': 'listZones', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'g81kcaAPnol/n3AJ8Uiu1h6VYvI='}
2026-10-09 17:23:33,218 - DEBUG - ========Sending GET Cmd : listZones=======
2026-10-09 17:23:33,266 - DEBUG - Response : [{id : 'd0557c3a-5a34-498b-8271-5d5ae55dd07b', name : 'pr147-n88-kvm-ubuntu26', dns1 : '10.0.32.1', dns2 : '8.8.8.8', internaldns1 : '10.0.32.1', internaldns2 : '8.8.4.4', guestcidraddress : '10.1.1.0/24', networktype : 'Advanced', securitygroupsenabled : False, gputotal : 0, gpuused : 0, allocationstate : 'Enabled', zonetoken : '9caf6485-ba87-3697-812a-b093fa5469f5', dhcpprovider : 'VirtualRouter', localstorageenabled : False, tags : [], allowuserspecifyvrmtu : False, routerprivateinterfacemaxmtu : 1500, routerpublicinterfacemaxmtu : 1500, type : 'Core', isnsxenabled : False, ismultiarch : False, asnrange : '', routedmodeenabled : True, hasannotations : False}]
2026-10-09 17:23:33,267 - DEBUG - Payload: {'name': 'ext-2QJ9AG', 'type': 'Orchestrator', 'command': 'createExtension', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'oeWVctIQmCUQ1Qx0aosyy2uNoBg='}
2026-10-09 17:23:33,267 - DEBUG - ========Sending GET Cmd : createExtension=======
2026-10-09 17:23:33,377 - DEBUG - Response : {id : '27de4765-bd52-43e9-85ef-8def15b2b3d4', name : 'ext-2QJ9AG', type : 'Orchestrator', path : '/usr/share/cloudstack-management/extensions/ext-2qj9ag/ext-2qj9ag.sh', pathready : True, isuserdefined : True, state : 'Enabled', created : '2026-10-09T17:23:33+0000'}
2026-10-09 17:23:33,377 - DEBUG - ::::::::::::STARTED : TC: test_01_extension_create_custom_action :::::::::::
2026-10-09 17:23:33,378 - DEBUG - Payload: {'extensionid': '27de4765-bd52-43e9-85ef-8def15b2b3d4', 'name': '5HNWEF', 'details[0].abc': 'xyz', 'parameters[0].name': 'Name', 'parameters[0].type': 'STRING', 'parameters[0].validationformat': 'NONE', 'parameters[0].required': True, 'command': 'addCustomAction', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'HV8TISDqve0T5k7ZFAjFtnv4xA8='}
2026-10-09 17:23:33,378 - DEBUG - ========Sending GET Cmd : addCustomAction=======
2026-10-09 17:23:33,456 - DEBUG - Response : {id : 'a545ff82-26af-42ee-82c1-686e50db32f3', name : '5HNWEF', extensionid : '27de4765-bd52-43e9-85ef-8def15b2b3d4', extensionname : 'ext-2QJ9AG', resourcetype : 'VirtualMachine', allowedroletypes : ['Admin'], timeout : 3, enabled : False, details : {abc : 'xyz'}, parameters : [{name : 'Name', type : 'STRING', validationformat : 'NONE', required : True}], created : '2026-10-09T17:23:33+0000'}
2026-10-09 17:23:33,457 - DEBUG - Payload: {'extensionid': '27de4765-bd52-43e9-85ef-8def15b2b3d4', 'command': 'listCustomActions', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'AwClnMtFjkL53toreJrtyqbQXMQ='}
2026-10-09 17:23:33,457 - DEBUG - ========Sending GET Cmd : listCustomActions=======
2026-10-09 17:23:33,486 - DEBUG - Response : [{id : 'a545ff82-26af-42ee-82c1-686e50db32f3', name : '5HNWEF', extensionid : '27de4765-bd52-43e9-85ef-8def15b2b3d4', extensionname : 'ext-2QJ9AG', resourcetype : 'VirtualMachine', allowedroletypes : ['Admin'], timeout : 3, enabled : False, details : {abc : 'xyz'}, parameters : [{name : 'Name', type : 'STRING', validationformat : 'NONE', required : True}], created : '2026-10-09T17:23:33+0000'}]
2026-10-09 17:23:33,486 - DEBUG - Cleaning up the resources
2026-10-09 17:23:33,487 - DEBUG - Payload: {'id': 'a545ff82-26af-42ee-82c1-686e50db32f3', 'command': 'deleteCustomAction', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'WSs9whsx/gtmcOTVMIJQ/uwUGWY='}
2026-10-09 17:23:33,487 - DEBUG - ========Sending GET Cmd : deleteCustomAction=======
2026-10-09 17:23:33,540 - DEBUG - Response : {success : True}
2026-10-09 17:23:33,541 - DEBUG - TestCaseName: test_01_extension_create_custom_action; Time Taken: 0 Seconds; StartTime: Fri Oct  9 17:23:33 2026; EndTime: Fri Oct  9 17:23:33 2026; Result: SUCCESS
2026-10-09 17:23:33,541 - DEBUG - ::::::::::::STARTED : TC: test_02_extension_create_custom_action_name_fail :::::::::::
2026-10-09 17:23:33,541 - DEBUG - Payload: {'extensionid': '27de4765-bd52-43e9-85ef-8def15b2b3d4', 'name': 'PG7XCO', 'command': 'addCustomAction', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'tFoAc7+R1FMEbSiPqC+NiglnBok='}
2026-10-09 17:23:33,542 - DEBUG - ========Sending GET Cmd : addCustomAction=======
2026-10-09 17:23:33,593 - DEBUG - Response : {id : 'c1aaa6a8-ac8e-4189-81c7-0ed2e0f2f774', name : 'PG7XCO', extensionid : '27de4765-bd52-43e9-85ef-8def15b2b3d4', extensionname : 'ext-2QJ9AG', resourcetype : 'VirtualMachine', allowedroletypes : ['Admin'], timeout : 3, enabled : False, details : {}, parameters : [], created : '2026-10-09T17:23:33+0000'}
2026-10-09 17:23:33,594 - DEBUG - Payload: {'extensionid': '27de4765-bd52-43e9-85ef-8def15b2b3d4', 'name': 'PG7XCO', 'command': 'addCustomAction', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'tFoAc7+R1FMEbSiPqC+NiglnBok='}
2026-10-09 17:23:33,594 - DEBUG - ========Sending GET Cmd : addCustomAction=======
2026-10-09 17:23:33,638 - ERROR - Exception:['Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 309, in __parseAndGetResponse\n    ret = jsonHelper.getResultObj(\n', '  File "/usr/local/lib/python3.9/site-packages/marvin/jsonHelper.py", line 155, in getResultObj\n    raise cloudstackException.CloudstackAPIException(respname, errMsg)\n', 'marvin.cloudstackException.CloudstackAPIException: Execute cmd: addcustomaction failed, due to: errorCode: 530, errorText:Action by name already exists\n']
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 309, in __parseAndGetResponse
    ret = jsonHelper.getResultObj(
  File "/usr/local/lib/python3.9/site-packages/marvin/jsonHelper.py", line 155, in getResultObj
    raise cloudstackException.CloudstackAPIException(respname, errMsg)
marvin.cloudstackException.CloudstackAPIException: Execute cmd: addcustomaction failed, due to: errorCode: 530, errorText:Action by name already exists
2026-10-09 17:23:33,638 - ERROR - marvinRequest : CmdName: <marvin.cloudstackAPI.addCustomAction.addCustomActionCmd object at 0x7f329c95c220> Exception: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 377, in marvinRequest\n    raise self.__lastError\n', '  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 309, in __parseAndGetResponse\n    ret = jsonHelper.getResultObj(\n', '  File "/usr/local/lib/python3.9/site-packages/marvin/jsonHelper.py", line 155, in getResultObj\n    raise cloudstackException.CloudstackAPIException(respname, errMsg)\n', 'marvin.cloudstackException.CloudstackAPIException: Execute cmd: addcustomaction failed, due to: errorCode: 530, errorText:Action by name already exists\n']
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 377, in marvinRequest
    raise self.__lastError
  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 309, in __parseAndGetResponse
    ret = jsonHelper.getResultObj(
  File "/usr/local/lib/python3.9/site-packages/marvin/jsonHelper.py", line 155, in getResultObj
    raise cloudstackException.CloudstackAPIException(respname, errMsg)
marvin.cloudstackException.CloudstackAPIException: Execute cmd: addcustomaction failed, due to: errorCode: 530, errorText:Action by name already exists
2026-10-09 17:23:33,638 - DEBUG - Cleaning up the resources
2026-10-09 17:23:33,638 - DEBUG - TestCaseName: test_02_extension_create_custom_action_name_fail; Time Taken: 0 Seconds; StartTime: Fri Oct  9 17:23:33 2026; EndTime: Fri Oct  9 17:23:33 2026; Result: SUCCESS
2026-10-09 17:23:33,639 - DEBUG - ::::::::::::STARTED : TC: test_03_extension_create_custom_action_resourcetype_fail :::::::::::
2026-10-09 17:23:33,639 - DEBUG - Payload: {'extensionid': '27de4765-bd52-43e9-85ef-8def15b2b3d4', 'name': '321DIY', 'resourcetype': 'Host', 'command': 'addCustomAction', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'qGtdu9LdavjAUSvWZXkG1z3whDE='}
2026-10-09 17:23:33,639 - DEBUG - ========Sending GET Cmd : addCustomAction=======
2026-10-09 17:23:33,672 - ERROR - Exception:['Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 309, in __parseAndGetResponse\n    ret = jsonHelper.getResultObj(\n', '  File "/usr/local/lib/python3.9/site-packages/marvin/jsonHelper.py", line 155, in getResultObj\n    raise cloudstackException.CloudstackAPIException(respname, errMsg)\n', 'marvin.cloudstackException.CloudstackAPIException: Execute cmd: addcustomaction failed, due to: errorCode: 431, errorText:Invalid resource type specified: Host. Valid values are: [VirtualMachine, Network, Vpc]\n']
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 309, in __parseAndGetResponse
    ret = jsonHelper.getResultObj(
  File "/usr/local/lib/python3.9/site-packages/marvin/jsonHelper.py", line 155, in getResultObj
    raise cloudstackException.CloudstackAPIException(respname, errMsg)
marvin.cloudstackException.CloudstackAPIException: Execute cmd: addcustomaction failed, due to: errorCode: 431, errorText:Invalid resource type specified: Host. Valid values are: [VirtualMachine, Network, Vpc]
2026-10-09 17:23:33,673 - ERROR - marvinRequest : CmdName: <marvin.cloudstackAPI.addCustomAction.addCustomActionCmd object at 0x7f329c95c6a0> Exception: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 377, in marvinRequest\n    raise self.__lastError\n', '  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 309, in __parseAndGetResponse\n    ret = jsonHelper.getResultObj(\n', '  File "/usr/local/lib/python3.9/site-packages/marvin/jsonHelper.py", line 155, in getResultObj\n    raise cloudstackException.CloudstackAPIException(respname, errMsg)\n', 'marvin.cloudstackException.CloudstackAPIException: Execute cmd: addcustomaction failed, due to: errorCode: 431, errorText:Invalid resource type specified: Host. Valid values are: [VirtualMachine, Network, Vpc]\n']
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 377, in marvinRequest
    raise self.__lastError
  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 309, in __parseAndGetResponse
    ret = jsonHelper.getResultObj(
  File "/usr/local/lib/python3.9/site-packages/marvin/jsonHelper.py", line 155, in getResultObj
    raise cloudstackException.CloudstackAPIException(respname, errMsg)
marvin.cloudstackException.CloudstackAPIException: Execute cmd: addcustomaction failed, due to: errorCode: 431, errorText:Invalid resource type specified: Host. Valid values are: [VirtualMachine, Network, Vpc]
2026-10-09 17:23:33,673 - DEBUG - Cleaning up the resources
2026-10-09 17:23:33,673 - DEBUG - TestCaseName: test_03_extension_create_custom_action_resourcetype_fail; Time Taken: 0 Seconds; StartTime: Fri Oct  9 17:23:33 2026; EndTime: Fri Oct  9 17:23:33 2026; Result: SUCCESS
2026-10-09 17:23:33,673 - DEBUG - ::::::::::::STARTED : TC: test_04_extension_update_custom_action :::::::::::
2026-10-09 17:23:33,674 - DEBUG - Payload: {'extensionid': '27de4765-bd52-43e9-85ef-8def15b2b3d4', 'name': 'UQNKA9', 'details[0].abc': 'xyz', 'parameters[0].name': 'Name', 'parameters[0].type': 'STRING', 'parameters[0].validationformat': 'NONE', 'parameters[0].required': True, 'command': 'addCustomAction', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'ffGJLVZr2ltdPYUvx/+DOkJAGZ8='}
2026-10-09 17:23:33,674 - DEBUG - ========Sending GET Cmd : addCustomAction=======
2026-10-09 17:23:33,719 - DEBUG - Response : {id : 'f9afaaef-7e02-4298-af2e-694719889ebc', name : 'UQNKA9', extensionid : '27de4765-bd52-43e9-85ef-8def15b2b3d4', extensionname : 'ext-2QJ9AG', resourcetype : 'VirtualMachine', allowedroletypes : ['Admin'], timeout : 3, enabled : False, details : {abc : 'xyz'}, parameters : [{name : 'Name', type : 'STRING', validationformat : 'NONE', required : True}], created : '2026-10-09T17:23:33+0000'}
2026-10-09 17:23:33,719 - DEBUG - Payload: {'description': 'Updated test description', 'enabled': True, 'id': 'f9afaaef-7e02-4298-af2e-694719889ebc', 'details[0].abc': 'xyz', 'details[0].bca': 'yzx', 'parameters[0].name': 'Name', 'parameters[0].type': 'STRING', 'parameters[0].validationformat': 'NONE', 'parameters[0].required': True, 'parameters[1].name': 'COUNT', 'parameters[1].type': 'NUMBER', 'parameters[1].validationformat': 'NONE', 'parameters[1].required': False, 'parameters[1].valueoptions': '10,100,1000', 'command': 'updateCustomAction', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'aEal/5NcHZQogE1Qi5xj1fbYU1s='}
2026-10-09 17:23:33,719 - DEBUG - ========Sending GET Cmd : updateCustomAction=======
2026-10-09 17:23:33,786 - DEBUG - Response : {extensioncustomaction : {id : 'f9afaaef-7e02-4298-af2e-694719889ebc', name : 'UQNKA9', description : 'Updated test description', extensionid : '27de4765-bd52-43e9-85ef-8def15b2b3d4', extensionname : 'ext-2QJ9AG', resourcetype : 'VirtualMachine', allowedroletypes : ['Admin'], timeout : 3, enabled : True, details : {bca : 'yzx', abc : 'xyz'}, parameters : [{name : 'Name', type : 'STRING', validationformat : 'NONE', required : True}, {name : 'COUNT', type : 'NUMBER', validationformat : 'NONE', valueoptions : [10, 100, 1000], required : False}], created : '2026-10-09T17:23:33+0000'}}
2026-10-09 17:23:33,787 - DEBUG - Cleaning up the resources
2026-10-09 17:23:33,787 - DEBUG - Payload: {'id': 'f9afaaef-7e02-4298-af2e-694719889ebc', 'command': 'deleteCustomAction', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'yH9sj3YmTK26iMPghzaiit9K+7E='}
2026-10-09 17:23:33,787 - DEBUG - ========Sending GET Cmd : deleteCustomAction=======
2026-10-09 17:23:33,824 - DEBUG - Response : {success : True}
2026-10-09 17:23:33,824 - DEBUG - TestCaseName: test_04_extension_update_custom_action; Time Taken: 0 Seconds; StartTime: Fri Oct  9 17:23:33 2026; EndTime: Fri Oct  9 17:23:33 2026; Result: SUCCESS
2026-10-09 17:23:33,824 - DEBUG - ::::::::::::STARTED : TC: test_05_extension_run_custom_action_invalid_resource_type_fail :::::::::::
2026-10-09 17:23:33,825 - DEBUG - Payload: {'enabled': True, 'extensionid': '27de4765-bd52-43e9-85ef-8def15b2b3d4', 'name': '37RQAW', 'command': 'addCustomAction', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'hpHSZO0G3/E8jBhNCBT4afChcRA='}
2026-10-09 17:23:33,825 - DEBUG - ========Sending GET Cmd : addCustomAction=======
2026-10-09 17:23:33,873 - DEBUG - Response : {id : 'b3038ab9-0532-49f8-ae4e-32f4185967e9', name : '37RQAW', extensionid : '27de4765-bd52-43e9-85ef-8def15b2b3d4', extensionname : 'ext-2QJ9AG', resourcetype : 'VirtualMachine', allowedroletypes : ['Admin'], timeout : 3, enabled : True, details : {}, parameters : [], created : '2026-10-09T17:23:33+0000'}
2026-10-09 17:23:33,873 - DEBUG - Payload: {'customactionid': 'b3038ab9-0532-49f8-ae4e-32f4185967e9', 'resourceid': 'abcd', 'resourcetype': 'Host', 'command': 'runCustomAction', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'MLaI6UmCp27VqXh0ZAY5E/kLBVE='}
2026-10-09 17:23:33,873 - DEBUG - ========Sending GET Cmd : runCustomAction=======
2026-10-09 17:23:33,931 - DEBUG - === Jobid: c72f2cfc-4bc0-4e19-9bea-cc898a8cfa4b Started ===
2026-10-09 17:23:33,931 - DEBUG - Payload: {'jobid': 'c72f2cfc-4bc0-4e19-9bea-cc898a8cfa4b', 'command': 'queryAsyncJobResult', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'TCtjSMUABtyaWBGb+3c8tPZvh1o='}
2026-10-09 17:23:33,931 - DEBUG - ========Sending GET Cmd : queryAsyncJobResult=======
2026-10-09 17:23:33,976 - DEBUG - Response : {accountid : 'a6719d11-c3f0-11f1-975d-1e002100023e', account : 'admin', domainid : '403e1dfc-c3f0-11f1-975d-1e002100023e', domainpath : 'ROOT', userid : 'a672c44f-c3f0-11f1-975d-1e002100023e', cmd : 'org.apache.cloudstack.framework.extensions.api.RunCustomActionCmd', jobprocstatus : 0, jobresultcode : 530, jobresulttype : 'object', jobresult : {errorcode : 530, errortext : 'Internal error running action'}, created : '2026-10-09T17:23:33+0000', completed : '2026-10-09T17:23:33+0000', jobid : 'c72f2cfc-4bc0-4e19-9bea-cc898a8cfa4b', jobstatus : 2}
2026-10-09 17:23:33,977 - ERROR - ==== __poll: Exception Occurred :Job failed: {accountid : 'a6719d11-c3f0-11f1-975d-1e002100023e', account : 'admin', domainid : '403e1dfc-c3f0-11f1-975d-1e002100023e', domainpath : 'ROOT', userid : 'a672c44f-c3f0-11f1-975d-1e002100023e', cmd : 'org.apache.cloudstack.framework.extensions.api.RunCustomActionCmd', jobprocstatus : 0, jobresultcode : 530, jobresulttype : 'object', jobresult : {errorcode : 530, errortext : 'Internal error running action'}, created : '2026-10-09T17:23:33+0000', completed : '2026-10-09T17:23:33+0000', jobid : 'c72f2cfc-4bc0-4e19-9bea-cc898a8cfa4b', jobstatus : 2} ====
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 104, in __poll
    raise Exception("Job failed: %s"\
Exception: Job failed: {accountid : 'a6719d11-c3f0-11f1-975d-1e002100023e', account : 'admin', domainid : '403e1dfc-c3f0-11f1-975d-1e002100023e', domainpath : 'ROOT', userid : 'a672c44f-c3f0-11f1-975d-1e002100023e', cmd : 'org.apache.cloudstack.framework.extensions.api.RunCustomActionCmd', jobprocstatus : 0, jobresultcode : 530, jobresulttype : 'object', jobresult : {errorcode : 530, errortext : 'Internal error running action'}, created : '2026-10-09T17:23:33+0000', completed : '2026-10-09T17:23:33+0000', jobid : 'c72f2cfc-4bc0-4e19-9bea-cc898a8cfa4b', jobstatus : 2}
2026-10-09 17:23:33,977 - DEBUG - Response : FAILED
2026-10-09 17:23:33,977 - ERROR - marvinRequest : CmdName: <marvin.cloudstackAPI.runCustomAction.runCustomActionCmd object at 0x7f329c95cdc0> Exception: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 377, in marvinRequest\n    raise self.__lastError\n', '  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 104, in __poll\n    raise Exception("Job failed: %s"\\\n', "Exception: Job failed: {accountid : 'a6719d11-c3f0-11f1-975d-1e002100023e', account : 'admin', domainid : '403e1dfc-c3f0-11f1-975d-1e002100023e', domainpath : 'ROOT', userid : 'a672c44f-c3f0-11f1-975d-1e002100023e', cmd : 'org.apache.cloudstack.framework.extensions.api.RunCustomActionCmd', jobprocstatus : 0, jobresultcode : 530, jobresulttype : 'object', jobresult : {errorcode : 530, errortext : 'Internal error running action'}, created : '2026-10-09T17:23:33+0000', completed : '2026-10-09T17:23:33+0000', jobid : 'c72f2cfc-4bc0-4e19-9bea-cc898a8cfa4b', jobstatus : 2}\n"]
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 377, in marvinRequest
    raise self.__lastError
  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 104, in __poll
    raise Exception("Job failed: %s"\
Exception: Job failed: {accountid : 'a6719d11-c3f0-11f1-975d-1e002100023e', account : 'admin', domainid : '403e1dfc-c3f0-11f1-975d-1e002100023e', domainpath : 'ROOT', userid : 'a672c44f-c3f0-11f1-975d-1e002100023e', cmd : 'org.apache.cloudstack.framework.extensions.api.RunCustomActionCmd', jobprocstatus : 0, jobresultcode : 530, jobresulttype : 'object', jobresult : {errorcode : 530, errortext : 'Internal error running action'}, created : '2026-10-09T17:23:33+0000', completed : '2026-10-09T17:23:33+0000', jobid : 'c72f2cfc-4bc0-4e19-9bea-cc898a8cfa4b', jobstatus : 2}
2026-10-09 17:23:33,977 - DEBUG - Cleaning up the resources
2026-10-09 17:23:33,977 - DEBUG - Payload: {'id': 'b3038ab9-0532-49f8-ae4e-32f4185967e9', 'command': 'deleteCustomAction', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'282/0hi/4gvLnscjZU0Wc4xZL+E='}
2026-10-09 17:23:33,977 - DEBUG - ========Sending GET Cmd : deleteCustomAction=======
2026-10-09 17:23:34,015 - DEBUG - Response : {success : True}
2026-10-09 17:23:34,016 - DEBUG - TestCaseName: test_05_extension_run_custom_action_invalid_resource_type_fail; Time Taken: 0 Seconds; StartTime: Fri Oct  9 17:23:33 2026; EndTime: Fri Oct  9 17:23:34 2026; Result: SUCCESS
2026-10-09 17:23:34,016 - DEBUG - ::::::::::::STARTED : TC: test_06_extension_run_custom_action_fail :::::::::::
2026-10-09 17:23:34,017 - DEBUG - Payload: {'enabled': True, 'extensionid': '27de4765-bd52-43e9-85ef-8def15b2b3d4', 'name': 'PORXST', 'command': 'addCustomAction', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'tNJDv/cii+P1Gd8SdqYz3YN1Fn8='}
2026-10-09 17:23:34,017 - DEBUG - ========Sending GET Cmd : addCustomAction=======
2026-10-09 17:23:34,057 - DEBUG - Response : {id : 'ce09acb1-bab3-430a-9e62-0a4eabe8a081', name : 'PORXST', extensionid : '27de4765-bd52-43e9-85ef-8def15b2b3d4', extensionname : 'ext-2QJ9AG', resourcetype : 'VirtualMachine', allowedroletypes : ['Admin'], timeout : 3, enabled : True, details : {}, parameters : [], created : '2026-10-09T17:23:34+0000'}
2026-10-09 17:23:34,057 - DEBUG - Payload: {'customactionid': 'ce09acb1-bab3-430a-9e62-0a4eabe8a081', 'resourceid': 'abcd', 'command': 'runCustomAction', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'ZShWzF47lrepYLaUqeDpHU9pho8='}
2026-10-09 17:23:34,057 - DEBUG - ========Sending GET Cmd : runCustomAction=======
2026-10-09 17:23:34,102 - DEBUG - === Jobid: 9525e332-e30b-4ba3-a823-b02d7edb0cc7 Started ===
2026-10-09 17:23:34,103 - DEBUG - Payload: {'jobid': '9525e332-e30b-4ba3-a823-b02d7edb0cc7', 'command': 'queryAsyncJobResult', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b't3+1Qg/puREXHDJ6pozNo8+aySY='}
2026-10-09 17:23:34,103 - DEBUG - ========Sending GET Cmd : queryAsyncJobResult=======
2026-10-09 17:23:34,161 - DEBUG - Response : {accountid : 'a6719d11-c3f0-11f1-975d-1e002100023e', account : 'admin', domainid : '403e1dfc-c3f0-11f1-975d-1e002100023e', domainpath : 'ROOT', userid : 'a672c44f-c3f0-11f1-975d-1e002100023e', cmd : 'org.apache.cloudstack.framework.extensions.api.RunCustomActionCmd', jobprocstatus : 0, jobresultcode : 530, jobresulttype : 'object', jobresult : {errorcode : 530, errortext : 'Internal error running action'}, created : '2026-10-09T17:23:34+0000', completed : '2026-10-09T17:23:34+0000', jobid : '9525e332-e30b-4ba3-a823-b02d7edb0cc7', jobstatus : 2}
2026-10-09 17:23:34,162 - ERROR - ==== __poll: Exception Occurred :Job failed: {accountid : 'a6719d11-c3f0-11f1-975d-1e002100023e', account : 'admin', domainid : '403e1dfc-c3f0-11f1-975d-1e002100023e', domainpath : 'ROOT', userid : 'a672c44f-c3f0-11f1-975d-1e002100023e', cmd : 'org.apache.cloudstack.framework.extensions.api.RunCustomActionCmd', jobprocstatus : 0, jobresultcode : 530, jobresulttype : 'object', jobresult : {errorcode : 530, errortext : 'Internal error running action'}, created : '2026-10-09T17:23:34+0000', completed : '2026-10-09T17:23:34+0000', jobid : '9525e332-e30b-4ba3-a823-b02d7edb0cc7', jobstatus : 2} ====
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 104, in __poll
    raise Exception("Job failed: %s"\
Exception: Job failed: {accountid : 'a6719d11-c3f0-11f1-975d-1e002100023e', account : 'admin', domainid : '403e1dfc-c3f0-11f1-975d-1e002100023e', domainpath : 'ROOT', userid : 'a672c44f-c3f0-11f1-975d-1e002100023e', cmd : 'org.apache.cloudstack.framework.extensions.api.RunCustomActionCmd', jobprocstatus : 0, jobresultcode : 530, jobresulttype : 'object', jobresult : {errorcode : 530, errortext : 'Internal error running action'}, created : '2026-10-09T17:23:34+0000', completed : '2026-10-09T17:23:34+0000', jobid : '9525e332-e30b-4ba3-a823-b02d7edb0cc7', jobstatus : 2}
2026-10-09 17:23:34,162 - DEBUG - Response : FAILED
2026-10-09 17:23:34,162 - ERROR - marvinRequest : CmdName: <marvin.cloudstackAPI.runCustomAction.runCustomActionCmd object at 0x7f329c95cbe0> Exception: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 377, in marvinRequest\n    raise self.__lastError\n', '  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 104, in __poll\n    raise Exception("Job failed: %s"\\\n', "Exception: Job failed: {accountid : 'a6719d11-c3f0-11f1-975d-1e002100023e', account : 'admin', domainid : '403e1dfc-c3f0-11f1-975d-1e002100023e', domainpath : 'ROOT', userid : 'a672c44f-c3f0-11f1-975d-1e002100023e', cmd : 'org.apache.cloudstack.framework.extensions.api.RunCustomActionCmd', jobprocstatus : 0, jobresultcode : 530, jobresulttype : 'object', jobresult : {errorcode : 530, errortext : 'Internal error running action'}, created : '2026-10-09T17:23:34+0000', completed : '2026-10-09T17:23:34+0000', jobid : '9525e332-e30b-4ba3-a823-b02d7edb0cc7', jobstatus : 2}\n"]
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 377, in marvinRequest
    raise self.__lastError
  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 104, in __poll
    raise Exception("Job failed: %s"\
Exception: Job failed: {accountid : 'a6719d11-c3f0-11f1-975d-1e002100023e', account : 'admin', domainid : '403e1dfc-c3f0-11f1-975d-1e002100023e', domainpath : 'ROOT', userid : 'a672c44f-c3f0-11f1-975d-1e002100023e', cmd : 'org.apache.cloudstack.framework.extensions.api.RunCustomActionCmd', jobprocstatus : 0, jobresultcode : 530, jobresulttype : 'object', jobresult : {errorcode : 530, errortext : 'Internal error running action'}, created : '2026-10-09T17:23:34+0000', completed : '2026-10-09T17:23:34+0000', jobid : '9525e332-e30b-4ba3-a823-b02d7edb0cc7', jobstatus : 2}
2026-10-09 17:23:34,162 - DEBUG - Cleaning up the resources
2026-10-09 17:23:34,163 - DEBUG - Payload: {'id': 'ce09acb1-bab3-430a-9e62-0a4eabe8a081', 'command': 'deleteCustomAction', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'uGm/ZBt2rhrjqZoOZUK77VrlOko='}
2026-10-09 17:23:34,163 - DEBUG - ========Sending GET Cmd : deleteCustomAction=======
2026-10-09 17:23:34,203 - DEBUG - Response : {success : True}
2026-10-09 17:23:34,204 - DEBUG - TestCaseName: test_06_extension_run_custom_action_fail; Time Taken: 0 Seconds; StartTime: Fri Oct  9 17:23:34 2026; EndTime: Fri Oct  9 17:23:34 2026; Result: SUCCESS
2026-10-09 17:23:34,204 - DEBUG - Cleaning up the resources
2026-10-09 17:23:34,204 - DEBUG - Payload: {'id': '27de4765-bd52-43e9-85ef-8def15b2b3d4', 'command': 'listExtensions', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'uFI8YnERS7ucaprd3YcmeV6QRSk='}
2026-10-09 17:23:34,204 - DEBUG - ========Sending GET Cmd : listExtensions=======
2026-10-09 17:23:34,232 - DEBUG - Response : [{id : '27de4765-bd52-43e9-85ef-8def15b2b3d4', name : 'ext-2QJ9AG', type : 'Orchestrator', path : '/usr/share/cloudstack-management/extensions/ext-2qj9ag/ext-2qj9ag.sh', pathready : True, isuserdefined : True, state : 'Enabled', created : '2026-10-09T17:23:33+0000'}]
2026-10-09 17:23:34,233 - DEBUG - Payload: {'extensionid': '27de4765-bd52-43e9-85ef-8def15b2b3d4', 'command': 'listCustomActions', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'AwClnMtFjkL53toreJrtyqbQXMQ='}
2026-10-09 17:23:34,233 - DEBUG - ========Sending GET Cmd : listCustomActions=======
2026-10-09 17:23:34,259 - DEBUG - Response : [{id : 'c1aaa6a8-ac8e-4189-81c7-0ed2e0f2f774', name : 'PG7XCO', extensionid : '27de4765-bd52-43e9-85ef-8def15b2b3d4', extensionname : 'ext-2QJ9AG', resourcetype : 'VirtualMachine', allowedroletypes : ['Admin'], timeout : 3, enabled : False, details : {}, parameters : [], created : '2026-10-09T17:23:33+0000'}]
2026-10-09 17:23:34,259 - DEBUG - Payload: {'id': 'c1aaa6a8-ac8e-4189-81c7-0ed2e0f2f774', 'command': 'deleteCustomAction', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'eucpUWNB4fd+Fr5JBx8Wi4IV92I='}
2026-10-09 17:23:34,259 - DEBUG - ========Sending GET Cmd : deleteCustomAction=======
2026-10-09 17:23:34,302 - DEBUG - Response : {success : True}
2026-10-09 17:23:34,303 - DEBUG - Payload: {'cleanup': True, 'id': '27de4765-bd52-43e9-85ef-8def15b2b3d4', 'command': 'deleteExtension', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'902gmXgvM9dqAXR/SUTQhg62Dp0='}
2026-10-09 17:23:34,303 - DEBUG - ========Sending GET Cmd : deleteExtension=======
2026-10-09 17:23:34,378 - DEBUG - Response : {success : True}
