2026-10-27 12:49:18,719 - DEBUG - Parsing Test data successful
2026-10-27 12:49:18,719 - DEBUG - Payload: {'account': 'admin', 'command': 'listUsers', 'response': 'json'}
2026-10-27 12:49:18,720 - DEBUG - ========Sending GET Cmd : listUsers=======
2026-10-27 12:49:18,777 - DEBUG - Response : [{id : 'c1166b9d-d1fe-11f1-81aa-1e0044000301', username : 'admin', firstname : 'admin', lastname : 'cloud', created : '2026-10-27T12:05:51+0000', state : 'enabled', account : 'admin', accounttype : 1, usersource : 'native', roleid : '87d83eed-d1fe-11f1-81aa-1e0044000301', roletype : 'Admin', rolename : 'Root Admin', domainid : '54e5326a-d1fe-11f1-81aa-1e0044000301', domain : 'ROOT', apikey : 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', accountid : 'c1154605-d1fe-11f1-81aa-1e0044000301', iscallerchilddomain : False, isdefault : True, is2faenabled : False, is2famandated : False, apikeyaccess : 'INHERIT'}]
2026-10-27 12:49:18,777 - DEBUG - Payload: {'id': 'c1166b9d-d1fe-11f1-81aa-1e0044000301', 'command': 'getUserKeys', 'response': 'json'}
2026-10-27 12:49:18,777 - DEBUG - ========Sending GET Cmd : getUserKeys=======
2026-10-27 12:49:18,798 - DEBUG - Response : {apikey : 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', secretkey : 'R6QPwRUz09TVXBjXNwZk7grTjcPtsFRphH6xhN1oPvnc12YUk296t4KHytg8zRLczDA0X5NsLVi4d8rfMMx3yg', apikeyaccess : True}
2026-10-27 12:49:18,799 - DEBUG - ==== Test Client Creation Successful ====
2026-10-27 12:49:19,092 - DEBUG - Payload: {'command': 'listDomains', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'taHWwbdB2MfrjDaU2iur/dKK3ew='}
2026-10-27 12:49:19,092 - DEBUG - ========Sending GET Cmd : listDomains=======
2026-10-27 12:49:19,125 - DEBUG - Response : [{id : '54e5326a-d1fe-11f1-81aa-1e0044000301', name : 'ROOT', level : 0, haschild : False, path : 'ROOT', state : 'Active', vmlimit : 'Unlimited', vmtotal : 0, vmavailable : 'Unlimited', iplimit : 'Unlimited', iptotal : 0, ipavailable : 'Unlimited', volumelimit : 'Unlimited', volumetotal : 2, volumeavailable : 'Unlimited', snapshotlimit : 'Unlimited', snapshottotal : 0, snapshotavailable : 'Unlimited', backuplimit : 'Unlimited', backuptotal : 0, backupavailable : 'Unlimited', backupstoragelimit : 'Unlimited', backupstoragetotal : 0, backupstorageavailable : 'Unlimited', templatelimit : 'Unlimited', templatetotal : 13, templateavailable : 'Unlimited', projectlimit : 'Unlimited', projecttotal : 0, projectavailable : 'Unlimited', networklimit : 'Unlimited', networktotal : 0, networkavailable : 'Unlimited', vpclimit : 'Unlimited', vpctotal : 0, vpcavailable : 'Unlimited', cpulimit : 'Unlimited', cputotal : 0, cpuavailable : 'Unlimited', memorylimit : 'Unlimited', memorytotal : 0, memoryavailable : 'Unlimited', gpulimit : 'Unlimited', gputotal : 0, gpuavailable : 'Unlimited', primarystoragelimit : 'Unlimited', primarystoragetotal : 9, primarystorageavailable : 'Unlimited', secondarystoragelimit : 'Unlimited', secondarystoragetotal : 12.8828125, secondarystorageavailable : 'Unlimited', bucketlimit : 'Unlimited', buckettotal : 0, bucketavailable : 'Unlimited', objectstoragelimit : 'Unlimited', objectstoragetotal : 0, objectstorageavailable : 'Unlimited', hasannotations : False}]
2026-10-27 12:49:19,125 - DEBUG - Payload: {'name': 'pr14320-n151-kvm-ubuntu26', 'command': 'listZones', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'XMCUV0BgKtT0u2lrAUb+/yrR07A='}
2026-10-27 12:49:19,125 - DEBUG - ========Sending GET Cmd : listZones=======
2026-10-27 12:49:19,157 - DEBUG - Response : [{id : 'f630bd38-52a4-422f-9829-a3efc24896fe', name : 'pr14320-n151-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 : '0808943c-497a-3662-b9bc-14ca6b8458e6', dhcpprovider : 'VirtualRouter', localstorageenabled : False, tags : [], allowuserspecifyvrmtu : False, routerprivateinterfacemaxmtu : 1500, routerpublicinterfacemaxmtu : 1500, type : 'Core', isnsxenabled : False, ismultiarch : False, asnrange : '', routedmodeenabled : True, hasannotations : False}]
2026-10-27 12:49:19,158 - DEBUG - ::::::::::::STARTED : TC: test_2FA_enabled :::::::::::
2026-10-27 12:49:19,158 - DEBUG - Enabling 2FA in global setting
2026-10-27 12:49:19,158 - DEBUG - Payload: {'name': 'enable.user.2fa', 'value': 'true', 'command': 'updateConfiguration', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'u6UAhBSoKTeuIsVH45syXtAYUR4='}
2026-10-27 12:49:19,158 - DEBUG - ========Sending GET Cmd : updateConfiguration=======
2026-10-27 12:49:19,234 - DEBUG - Response : {category : 'Advanced', group : 'Miscellaneous', subgroup : 'Others', name : 'enable.user.2fa', value : 'true', defaultvalue : 'false', description : 'Determines whether two factor authentication is enabled or not. This can also be configured at domain level.', isdynamic : True, component : 'AccountManager', displaytext : 'Enable user 2fa', type : 'Boolean'}
2026-10-27 12:49:19,235 - DEBUG - Mandate 2FA in global setting
2026-10-27 12:49:19,235 - DEBUG - Payload: {'name': 'mandate.user.2fa', 'value': 'true', 'command': 'updateConfiguration', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'wG+gnc9/yVr79KxBAhioECBoo3g='}
2026-10-27 12:49:19,235 - DEBUG - ========Sending GET Cmd : updateConfiguration=======
2026-10-27 12:49:19,279 - DEBUG - Response : {category : 'Advanced', group : 'Miscellaneous', subgroup : 'Others', name : 'mandate.user.2fa', value : 'true', defaultvalue : 'false', description : 'Determines whether to make the two factor authentication mandatory or not. This setting is applicable only when enable.user.2fa is true. This can also be configured at domain level.', isdynamic : True, component : 'AccountManager', displaytext : 'Mandate user 2fa', type : 'Boolean'}
2026-10-27 12:49:19,279 - DEBUG - Creating an user account..
2026-10-27 12:49:19,280 - DEBUG - Payload: {'accounttype': 0, 'domainid': '54e5326a-d1fe-11f1-81aa-1e0044000301', 'email': 'test@test.com', 'firstname': 'Test', 'lastname': 'User', 'password': 'fr3sca', 'username': 'test-TestUserLogin-test_2FA_enabled-16YUXW', 'command': 'createAccount', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'6EjtfYNQsuKCt4ghoMwp4R+PYiw='}
2026-10-27 12:49:19,280 - DEBUG - ========Sending GET Cmd : createAccount=======
2026-10-27 12:49:22,246 - DEBUG - Response : {id : '98ae2006-3822-42b2-9b0c-f1757ce9b6fb', name : 'test-TestUserLogin-test_2FA_enabled-16YUXW', accounttype : 0, roleid : '87d88f8c-d1fe-11f1-81aa-1e0044000301', roletype : 'User', rolename : 'User', domainid : '54e5326a-d1fe-11f1-81aa-1e0044000301', domain : 'ROOT', domainpath : 'ROOT', vmlimit : '20', vmtotal : 0, vmavailable : '20', iplimit : '20', iptotal : 0, ipavailable : '18', volumelimit : '20', volumetotal : 0, volumeavailable : '20', snapshotlimit : '20', snapshottotal : 0, snapshotavailable : '20', backuplimit : '20', backuptotal : 0, backupavailable : '20', backupstoragelimit : '400', backupstoragetotal : 0, backupstorageavailable : '400', templatelimit : '20', templatetotal : 0, templateavailable : '20', vmstopped : 0, vmrunning : 0, projectlimit : '10', projecttotal : 0, projectavailable : '10', networklimit : '20', networktotal : 0, networkavailable : '20', vpclimit : '20', vpctotal : 0, vpcavailable : '20', cpulimit : '40', cputotal : 0, cpuavailable : '40', memorylimit : '40960', memorytotal : 0, memoryavailable : '40960', gpulimit : '20', gputotal : 0, gpuavailable : '20', primarystoragelimit : '200', primarystoragetotal : 0, primarystorageavailable : '200', secondarystoragelimit : '400', secondarystoragetotal : 0.0, secondarystorageavailable : '400.0', bucketlimit : '20', buckettotal : 0, bucketavailable : '20', objectstoragelimit : '400', objectstoragetotal : 0, objectstorageavailable : '400', state : 'enabled', created : '2026-10-27T12:49:33+0000', user : [{id : '33249f14-6987-4531-bb20-c9b9a9ed858e', username : 'test-TestUserLogin-test_2FA_enabled-16YUXW', firstname : 'Test', lastname : 'User', email : 'test@test.com', created : '2026-10-27T12:49:33+0000', state : 'enabled', account : 'test-TestUserLogin-test_2FA_enabled-16YUXW', accounttype : 0, usersource : 'native', roleid : '87d88f8c-d1fe-11f1-81aa-1e0044000301', roletype : 'User', rolename : 'User', domainid : '54e5326a-d1fe-11f1-81aa-1e0044000301', domain : 'ROOT', accountid : '98ae2006-3822-42b2-9b0c-f1757ce9b6fb', iscallerchilddomain : False, isdefault : False, is2faenabled : False, is2famandated : True}], isdefault : False, groups : [], apikeyaccess : 'INHERIT'}
2026-10-27 12:49:22,247 - DEBUG - Logging into the cloudstack with login API
2026-10-27 12:49:22,247 - DEBUG - Payload: {'password': 'fr3sca', 'username': 'test-TestUserLogin-test_2FA_enabled-16YUXW', 'command': 'login', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'SKpOj/ZHrMkScseQtuXJmntP/ZU='}
2026-10-27 12:49:22,247 - DEBUG - =======Sending POST Cmd : login=======
2026-10-27 12:49:22,678 - DEBUG - =======Got POST response : <Response [200]>=======
2026-10-27 12:49:22,679 - DEBUG - Response : {username : 'test-TestUserLogin-test_2FA_enabled-16YUXW', userid : '33249f14-6987-4531-bb20-c9b9a9ed858e', domainid : '54e5326a-d1fe-11f1-81aa-1e0044000301', timeout : 1800, account : 'test-TestUserLogin-test_2FA_enabled-16YUXW', firstname : 'Test', lastname : 'User', type : '0', timezone : 'UTC', timezoneoffset : '0.0', registered : 'false', sessionkey : 'f1wfnwPxmGgZauwSdGDJPXjLz18', is2faenabled : 'true', is2faverified : 'false', issuerfor2fa : 'CloudStack'}
2026-10-27 12:49:22,679 - DEBUG - Login API response: {username : 'test-TestUserLogin-test_2FA_enabled-16YUXW', userid : '33249f14-6987-4531-bb20-c9b9a9ed858e', domainid : '54e5326a-d1fe-11f1-81aa-1e0044000301', timeout : 1800, account : 'test-TestUserLogin-test_2FA_enabled-16YUXW', firstname : 'Test', lastname : 'User', type : '0', timezone : 'UTC', timezoneoffset : '0.0', registered : 'false', sessionkey : 'f1wfnwPxmGgZauwSdGDJPXjLz18', is2faenabled : 'true', is2faverified : 'false', issuerfor2fa : 'CloudStack'}
2026-10-27 12:49:22,679 - DEBUG - Remove mandating 2FA in global setting
2026-10-27 12:49:22,679 - DEBUG - Payload: {'name': 'mandate.user.2fa', 'value': 'false', 'command': 'updateConfiguration', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'Jb9FpNM7Q9v+qf4aDZ8vAMQvxb0='}
2026-10-27 12:49:22,680 - DEBUG - ========Sending GET Cmd : updateConfiguration=======
2026-10-27 12:49:22,720 - DEBUG - Response : {category : 'Advanced', group : 'Miscellaneous', subgroup : 'Others', name : 'mandate.user.2fa', value : 'false', defaultvalue : 'false', description : 'Determines whether to make the two factor authentication mandatory or not. This setting is applicable only when enable.user.2fa is true. This can also be configured at domain level.', isdynamic : True, component : 'AccountManager', displaytext : 'Mandate user 2fa', type : 'Boolean'}
2026-10-27 12:49:22,721 - DEBUG - Disable 2FA in global setting
2026-10-27 12:49:22,721 - DEBUG - Payload: {'name': 'enable.user.2fa', 'value': 'false', 'command': 'updateConfiguration', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'Cb3GmJ99yFv9Z++QbrVTkAvPW4A='}
2026-10-27 12:49:22,722 - DEBUG - ========Sending GET Cmd : updateConfiguration=======
2026-10-27 12:49:22,765 - DEBUG - Response : {category : 'Advanced', group : 'Miscellaneous', subgroup : 'Others', name : 'enable.user.2fa', value : 'false', defaultvalue : 'false', description : 'Determines whether two factor authentication is enabled or not. This can also be configured at domain level.', isdynamic : True, component : 'AccountManager', displaytext : 'Enable user 2fa', type : 'Boolean'}
2026-10-27 12:49:22,766 - DEBUG - Cleaning up the resources
2026-10-27 12:49:22,766 - DEBUG - Payload: {'id': '98ae2006-3822-42b2-9b0c-f1757ce9b6fb', 'command': 'deleteAccount', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'au74Z+pNb2s5yymjxbTr4pQJmEA='}
2026-10-27 12:49:22,767 - DEBUG - ========Sending GET Cmd : deleteAccount=======
2026-10-27 12:49:22,825 - DEBUG - === Jobid: 9c00a75b-04e5-4869-b6e7-981e3a8e6f80 Started ===
2026-10-27 12:49:22,826 - DEBUG - Payload: {'jobid': '9c00a75b-04e5-4869-b6e7-981e3a8e6f80', 'command': 'queryAsyncJobResult', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'PVJRpUgYs0YSwH6NlF3txzQxIYI='}
2026-10-27 12:49:22,826 - DEBUG - ========Sending GET Cmd : queryAsyncJobResult=======
2026-10-27 12:49:22,898 - DEBUG - Response : {accountid : 'c1154605-d1fe-11f1-81aa-1e0044000301', account : 'admin', domainid : '54e5326a-d1fe-11f1-81aa-1e0044000301', domainpath : 'ROOT', userid : 'c1166b9d-d1fe-11f1-81aa-1e0044000301', cmd : 'org.apache.cloudstack.api.command.admin.account.DeleteAccountCmd', jobprocstatus : 0, jobresultcode : 0, jobinstancetype : 'Account', jobinstanceid : '98ae2006-3822-42b2-9b0c-f1757ce9b6fb', managementserverid : 'cdce5814-bb52-42f8-9ce6-85d2cdb65e27', managementservername : 'pr14320-n151-kvm-ubuntu26-mgmt1.sofia.shapeblue.com', created : '2026-10-27T12:49:34+0000', jobid : '9c00a75b-04e5-4869-b6e7-981e3a8e6f80', jobstatus : 0}
2026-10-27 12:49:23,900 - DEBUG - === JobId:9c00a75b-04e5-4869-b6e7-981e3a8e6f80 is Still Processing, Will TimeOut in:3599 ====
2026-10-27 12:49:23,901 - DEBUG - Payload: {'jobid': '9c00a75b-04e5-4869-b6e7-981e3a8e6f80', 'command': 'queryAsyncJobResult', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'PVJRpUgYs0YSwH6NlF3txzQxIYI='}
2026-10-27 12:49:23,902 - DEBUG - ========Sending GET Cmd : queryAsyncJobResult=======
2026-10-27 12:49:23,939 - DEBUG - Response : {accountid : 'c1154605-d1fe-11f1-81aa-1e0044000301', account : 'admin', domainid : '54e5326a-d1fe-11f1-81aa-1e0044000301', domainpath : 'ROOT', userid : 'c1166b9d-d1fe-11f1-81aa-1e0044000301', cmd : 'org.apache.cloudstack.api.command.admin.account.DeleteAccountCmd', jobprocstatus : 0, jobresultcode : 0, jobresulttype : 'object', jobresult : {success : True}, jobinstancetype : 'Account', jobinstanceid : '98ae2006-3822-42b2-9b0c-f1757ce9b6fb', created : '2026-10-27T12:49:34+0000', completed : '2026-10-27T12:49:35+0000', jobid : '9c00a75b-04e5-4869-b6e7-981e3a8e6f80', jobstatus : 1}
2026-10-27 12:49:23,940 - DEBUG - ===Jobid:9c00a75b-04e5-4869-b6e7-981e3a8e6f80 ; StartTime:Tue Oct 27 12:49:22 2026 ; EndTime:Tue Oct 27 12:49:23 2026 ; TotalTime:-1===
2026-10-27 12:49:23,940 - DEBUG - Response : {accountid : 'c1154605-d1fe-11f1-81aa-1e0044000301', account : 'admin', domainid : '54e5326a-d1fe-11f1-81aa-1e0044000301', domainpath : 'ROOT', userid : 'c1166b9d-d1fe-11f1-81aa-1e0044000301', cmd : 'org.apache.cloudstack.api.command.admin.account.DeleteAccountCmd', jobprocstatus : 0, jobresultcode : 0, jobresulttype : 'object', jobresult : {success : True}, jobinstancetype : 'Account', jobinstanceid : '98ae2006-3822-42b2-9b0c-f1757ce9b6fb', created : '2026-10-27T12:49:34+0000', completed : '2026-10-27T12:49:35+0000', jobid : '9c00a75b-04e5-4869-b6e7-981e3a8e6f80', jobstatus : 1}
2026-10-27 12:49:23,941 - DEBUG - TestCaseName: test_2FA_enabled; Time Taken: 4 Seconds; StartTime: Tue Oct 27 12:49:19 2026; EndTime: Tue Oct 27 12:49:23 2026; Result: SUCCESS
2026-10-27 12:49:23,941 - DEBUG - ::::::::::::STARTED : TC: test_2FA_setup :::::::::::
2026-10-27 12:49:23,941 - DEBUG - Enabling 2FA in global setting
2026-10-27 12:49:23,941 - DEBUG - Payload: {'name': 'enable.user.2fa', 'value': 'true', 'command': 'updateConfiguration', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'u6UAhBSoKTeuIsVH45syXtAYUR4='}
2026-10-27 12:49:23,942 - DEBUG - ========Sending GET Cmd : updateConfiguration=======
2026-10-27 12:49:23,983 - DEBUG - Response : {category : 'Advanced', group : 'Miscellaneous', subgroup : 'Others', name : 'enable.user.2fa', value : 'true', defaultvalue : 'false', description : 'Determines whether two factor authentication is enabled or not. This can also be configured at domain level.', isdynamic : True, component : 'AccountManager', displaytext : 'Enable user 2fa', type : 'Boolean'}
2026-10-27 12:49:23,984 - DEBUG - Mandate 2FA in global setting
2026-10-27 12:49:23,984 - DEBUG - Payload: {'name': 'mandate.user.2fa', 'value': 'true', 'command': 'updateConfiguration', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'wG+gnc9/yVr79KxBAhioECBoo3g='}
2026-10-27 12:49:23,984 - DEBUG - ========Sending GET Cmd : updateConfiguration=======
2026-10-27 12:49:24,023 - DEBUG - Response : {category : 'Advanced', group : 'Miscellaneous', subgroup : 'Others', name : 'mandate.user.2fa', value : 'true', defaultvalue : 'false', description : 'Determines whether to make the two factor authentication mandatory or not. This setting is applicable only when enable.user.2fa is true. This can also be configured at domain level.', isdynamic : True, component : 'AccountManager', displaytext : 'Mandate user 2fa', type : 'Boolean'}
2026-10-27 12:49:24,023 - DEBUG - Creating an user account..
2026-10-27 12:49:24,024 - DEBUG - Payload: {'accounttype': 0, 'domainid': '54e5326a-d1fe-11f1-81aa-1e0044000301', 'email': 'test@test.com', 'firstname': 'Test', 'lastname': 'User', 'password': 'fr3sca', 'username': 'test-TestUserLogin-test_2FA_setup-Z23BPH', 'command': 'createAccount', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'uHABjnECmYNFTOnZBKXsDnUOB2M='}
2026-10-27 12:49:24,024 - DEBUG - ========Sending GET Cmd : createAccount=======
2026-10-27 12:49:26,796 - DEBUG - Response : {id : 'f4e00368-25ed-4686-b3f6-a7905974f125', name : 'test-TestUserLogin-test_2FA_setup-Z23BPH', accounttype : 0, roleid : '87d88f8c-d1fe-11f1-81aa-1e0044000301', roletype : 'User', rolename : 'User', domainid : '54e5326a-d1fe-11f1-81aa-1e0044000301', domain : 'ROOT', domainpath : 'ROOT', vmlimit : '20', vmtotal : 0, vmavailable : '20', iplimit : '20', iptotal : 0, ipavailable : '18', volumelimit : '20', volumetotal : 0, volumeavailable : '20', snapshotlimit : '20', snapshottotal : 0, snapshotavailable : '20', backuplimit : '20', backuptotal : 0, backupavailable : '20', backupstoragelimit : '400', backupstoragetotal : 0, backupstorageavailable : '400', templatelimit : '20', templatetotal : 0, templateavailable : '20', vmstopped : 0, vmrunning : 0, projectlimit : '10', projecttotal : 0, projectavailable : '10', networklimit : '20', networktotal : 0, networkavailable : '20', vpclimit : '20', vpctotal : 0, vpcavailable : '20', cpulimit : '40', cputotal : 0, cpuavailable : '40', memorylimit : '40960', memorytotal : 0, memoryavailable : '40960', gpulimit : '20', gputotal : 0, gpuavailable : '20', primarystoragelimit : '200', primarystoragetotal : 0, primarystorageavailable : '200', secondarystoragelimit : '400', secondarystoragetotal : 0.0, secondarystorageavailable : '400.0', bucketlimit : '20', buckettotal : 0, bucketavailable : '20', objectstoragelimit : '400', objectstoragetotal : 0, objectstorageavailable : '400', state : 'enabled', created : '2026-10-27T12:49:38+0000', user : [{id : '1e18c5df-1b9b-4e49-b7a9-46bf934ae740', username : 'test-TestUserLogin-test_2FA_setup-Z23BPH', firstname : 'Test', lastname : 'User', email : 'test@test.com', created : '2026-10-27T12:49:38+0000', state : 'enabled', account : 'test-TestUserLogin-test_2FA_setup-Z23BPH', accounttype : 0, usersource : 'native', roleid : '87d88f8c-d1fe-11f1-81aa-1e0044000301', roletype : 'User', rolename : 'User', domainid : '54e5326a-d1fe-11f1-81aa-1e0044000301', domain : 'ROOT', accountid : 'f4e00368-25ed-4686-b3f6-a7905974f125', iscallerchilddomain : False, isdefault : False, is2faenabled : False, is2famandated : True}], isdefault : False, groups : [], apikeyaccess : 'INHERIT'}
2026-10-27 12:49:26,797 - DEBUG - Logging into the cloudstack with login API
2026-10-27 12:49:26,798 - DEBUG - Payload: {'password': 'fr3sca', 'username': 'test-TestUserLogin-test_2FA_setup-Z23BPH', 'command': 'login', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'oYFibbKhjUnNZ41vZEj6uPAaWz4='}
2026-10-27 12:49:26,798 - DEBUG - =======Sending POST Cmd : login=======
2026-10-27 12:49:27,099 - DEBUG - =======Got POST response : <Response [200]>=======
2026-10-27 12:49:27,099 - DEBUG - Response : {username : 'test-TestUserLogin-test_2FA_setup-Z23BPH', userid : '1e18c5df-1b9b-4e49-b7a9-46bf934ae740', domainid : '54e5326a-d1fe-11f1-81aa-1e0044000301', timeout : 1800, account : 'test-TestUserLogin-test_2FA_setup-Z23BPH', firstname : 'Test', lastname : 'User', type : '0', timezone : 'UTC', timezoneoffset : '0.0', registered : 'false', sessionkey : 'DJyeFgpW-FFo5DwLR3MkOR40rJ0', is2faenabled : 'true', is2faverified : 'false', issuerfor2fa : 'CloudStack'}
2026-10-27 12:49:27,100 - DEBUG - Login API response: {username : 'test-TestUserLogin-test_2FA_setup-Z23BPH', userid : '1e18c5df-1b9b-4e49-b7a9-46bf934ae740', domainid : '54e5326a-d1fe-11f1-81aa-1e0044000301', timeout : 1800, account : 'test-TestUserLogin-test_2FA_setup-Z23BPH', firstname : 'Test', lastname : 'User', type : '0', timezone : 'UTC', timezoneoffset : '0.0', registered : 'false', sessionkey : 'DJyeFgpW-FFo5DwLR3MkOR40rJ0', is2faenabled : 'true', is2faverified : 'false', issuerfor2fa : 'CloudStack'}
2026-10-27 12:49:27,100 - DEBUG - Payload: {'name': 'ROOT', 'command': 'listDomains', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'FUkLFPJq0p6AOaVYSkY//WIQFBk='}
2026-10-27 12:49:27,100 - DEBUG - ========Sending GET Cmd : listDomains=======
2026-10-27 12:49:27,146 - DEBUG - Response : [{id : '54e5326a-d1fe-11f1-81aa-1e0044000301', name : 'ROOT', level : 0, haschild : False, path : 'ROOT', state : 'Active', vmlimit : 'Unlimited', vmtotal : 0, vmavailable : 'Unlimited', iplimit : 'Unlimited', iptotal : 0, ipavailable : 'Unlimited', volumelimit : 'Unlimited', volumetotal : 2, volumeavailable : 'Unlimited', snapshotlimit : 'Unlimited', snapshottotal : 0, snapshotavailable : 'Unlimited', backuplimit : 'Unlimited', backuptotal : 0, backupavailable : 'Unlimited', backupstoragelimit : 'Unlimited', backupstoragetotal : 0, backupstorageavailable : 'Unlimited', templatelimit : 'Unlimited', templatetotal : 13, templateavailable : 'Unlimited', projectlimit : 'Unlimited', projecttotal : 0, projectavailable : 'Unlimited', networklimit : 'Unlimited', networktotal : 0, networkavailable : 'Unlimited', vpclimit : 'Unlimited', vpctotal : 0, vpcavailable : 'Unlimited', cpulimit : 'Unlimited', cputotal : 0, cpuavailable : 'Unlimited', memorylimit : 'Unlimited', memorytotal : 0, memoryavailable : 'Unlimited', gpulimit : 'Unlimited', gputotal : 0, gpuavailable : 'Unlimited', primarystoragelimit : 'Unlimited', primarystoragetotal : 9, primarystorageavailable : 'Unlimited', secondarystoragelimit : 'Unlimited', secondarystoragetotal : 12.8828125, secondarystorageavailable : 'Unlimited', bucketlimit : 'Unlimited', buckettotal : 0, bucketavailable : 'Unlimited', objectstoragelimit : 'Unlimited', objectstoragetotal : 0, objectstorageavailable : 'Unlimited', hasannotations : False}]
2026-10-27 12:49:27,147 - DEBUG - Payload: {'listall': True, 'name': '54e5326a-d1fe-11f1-81aa-1e0044000301', 'command': 'listDomains', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'7XFrK70MY9n4B3d6Jrp8/qbqwG8='}
2026-10-27 12:49:27,147 - DEBUG - ========Sending GET Cmd : listDomains=======
2026-10-27 12:49:27,168 - DEBUG - Response : None
2026-10-27 12:49:27,169 - DEBUG - Payload: {'name': '54e5326a-d1fe-11f1-81aa-1e0044000301', 'command': 'createDomain', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'yRrxESUIVNZZM72XAXeNp32xZ4E='}
2026-10-27 12:49:27,169 - DEBUG - ========Sending GET Cmd : createDomain=======
2026-10-27 12:49:27,247 - DEBUG - Response : {id : '16151933-f869-44a9-bd9f-2a3104723785', name : '54e5326a-d1fe-11f1-81aa-1e0044000301', level : 1, parentdomainid : '54e5326a-d1fe-11f1-81aa-1e0044000301', parentdomainname : 'ROOT', haschild : False, path : 'ROOT/54e5326a-d1fe-11f1-81aa-1e0044000301', secondarystoragetotal : 0.0}
2026-10-27 12:49:27,248 - DEBUG - Payload: {'domainid': '16151933-f869-44a9-bd9f-2a3104723785', 'listall': True, 'name': 'test-TestUserLogin-test_2FA_setup-Z23BPH', 'command': 'listAccounts', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'1g2QMWDlAhWiFpP/JP888XnSgH0='}
2026-10-27 12:49:27,248 - DEBUG - ========Sending GET Cmd : listAccounts=======
2026-10-27 12:49:27,276 - DEBUG - Response : None
2026-10-27 12:49:27,277 - DEBUG - Payload: {'accounttype': 0, 'domainid': '16151933-f869-44a9-bd9f-2a3104723785', 'email': 'test-36M48Z@cloudstack.org', 'firstname': 'test-TestUserLogin-test_2FA_setup-Z23BPH', 'lastname': 'test-TestUserLogin-test_2FA_setup-Z23BPH', 'password': 'password', 'username': 'test-TestUserLogin-test_2FA_setup-Z23BPH', 'command': 'createAccount', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'7ioafVysFDzCqc373x+UcQkAL3Y='}
2026-10-27 12:49:27,277 - DEBUG - ========Sending GET Cmd : createAccount=======
2026-10-27 12:49:29,954 - DEBUG - Response : {id : '305b5f5e-1ad5-4b36-afd5-ccbe0ce6f461', name : 'test-TestUserLogin-test_2FA_setup-Z23BPH', accounttype : 0, roleid : '87d88f8c-d1fe-11f1-81aa-1e0044000301', roletype : 'User', rolename : 'User', domainid : '16151933-f869-44a9-bd9f-2a3104723785', domain : '54e5326a-d1fe-11f1-81aa-1e0044000301', domainpath : 'ROOT/54e5326a-d1fe-11f1-81aa-1e0044000301', vmlimit : '20', vmtotal : 0, vmavailable : '20', iplimit : '20', iptotal : 0, ipavailable : '18', volumelimit : '20', volumetotal : 0, volumeavailable : '20', snapshotlimit : '20', snapshottotal : 0, snapshotavailable : '20', backuplimit : '20', backuptotal : 0, backupavailable : '20', backupstoragelimit : '400', backupstoragetotal : 0, backupstorageavailable : '400', templatelimit : '20', templatetotal : 0, templateavailable : '20', vmstopped : 0, vmrunning : 0, projectlimit : '10', projecttotal : 0, projectavailable : '10', networklimit : '20', networktotal : 0, networkavailable : '20', vpclimit : '20', vpctotal : 0, vpcavailable : '20', cpulimit : '40', cputotal : 0, cpuavailable : '40', memorylimit : '40960', memorytotal : 0, memoryavailable : '40960', gpulimit : '20', gputotal : 0, gpuavailable : '20', primarystoragelimit : '200', primarystoragetotal : 0, primarystorageavailable : '200', secondarystoragelimit : '400', secondarystoragetotal : 0.0, secondarystorageavailable : '400.0', bucketlimit : '20', buckettotal : 0, bucketavailable : '20', objectstoragelimit : '400', objectstoragetotal : 0, objectstorageavailable : '400', state : 'enabled', created : '2026-10-27T12:49:41+0000', user : [{id : 'f59a82a9-83d8-4249-9d00-f7e5120ae933', username : 'test-TestUserLogin-test_2FA_setup-Z23BPH', firstname : 'test-TestUserLogin-test_2FA_setup-Z23BPH', lastname : 'test-TestUserLogin-test_2FA_setup-Z23BPH', email : 'test-36M48Z@cloudstack.org', created : '2026-10-27T12:49:41+0000', state : 'enabled', account : 'test-TestUserLogin-test_2FA_setup-Z23BPH', accounttype : 0, usersource : 'native', roleid : '87d88f8c-d1fe-11f1-81aa-1e0044000301', roletype : 'User', rolename : 'User', domainid : '16151933-f869-44a9-bd9f-2a3104723785', domain : '54e5326a-d1fe-11f1-81aa-1e0044000301', accountid : '305b5f5e-1ad5-4b36-afd5-ccbe0ce6f461', iscallerchilddomain : False, isdefault : False, is2faenabled : False, is2famandated : True}], isdefault : False, groups : [], apikeyaccess : 'INHERIT'}
2026-10-27 12:49:29,955 - DEBUG - Payload: {'domainid': '16151933-f869-44a9-bd9f-2a3104723785', 'listall': True, 'username': 'test-TestUserLogin-test_2FA_setup-Z23BPH', 'command': 'listUsers', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'jCCcNeG6QpX9+rrjsi6lx+DOHUE='}
2026-10-27 12:49:29,955 - DEBUG - ========Sending GET Cmd : listUsers=======
2026-10-27 12:49:29,983 - DEBUG - Response : [{id : 'f59a82a9-83d8-4249-9d00-f7e5120ae933', username : 'test-TestUserLogin-test_2FA_setup-Z23BPH', firstname : 'test-TestUserLogin-test_2FA_setup-Z23BPH', lastname : 'test-TestUserLogin-test_2FA_setup-Z23BPH', email : 'test-36M48Z@cloudstack.org', created : '2026-10-27T12:49:41+0000', state : 'enabled', account : 'test-TestUserLogin-test_2FA_setup-Z23BPH', accounttype : 0, usersource : 'native', roleid : '87d88f8c-d1fe-11f1-81aa-1e0044000301', roletype : 'User', rolename : 'User', domainid : '16151933-f869-44a9-bd9f-2a3104723785', domain : '54e5326a-d1fe-11f1-81aa-1e0044000301', accountid : '305b5f5e-1ad5-4b36-afd5-ccbe0ce6f461', iscallerchilddomain : True, isdefault : False, is2faenabled : False, is2famandated : True, apikeyaccess : 'INHERIT'}]
2026-10-27 12:49:29,985 - DEBUG - Payload: {'id': 'f59a82a9-83d8-4249-9d00-f7e5120ae933', 'command': 'getUserKeys', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'fVt+e/WMJETqPtME97yvnEBKcNU='}
2026-10-27 12:49:29,985 - DEBUG - ========Sending GET Cmd : getUserKeys=======
2026-10-27 12:49:30,009 - DEBUG - Response : {apikeyaccess : True}
2026-10-27 12:49:30,009 - ERROR - __createApiClient: API Client Creation Failed
2026-10-27 12:49:30,010 - DEBUG - Payload: {'id': 'f59a82a9-83d8-4249-9d00-f7e5120ae933', 'name': 'keypair-f59a82a9-83d8-4249-9d00-f7e5120ae933', 'command': 'registerUserKeys', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'h3SUknaQqY13xfIHIxVCIXDeM+o='}
2026-10-27 12:49:30,010 - DEBUG - ========Sending GET Cmd : registerUserKeys=======
2026-10-27 12:49:31,326 - DEBUG - Response : {name : 'keypair-f59a82a9-83d8-4249-9d00-f7e5120ae933', apikey : '3Ic-BnO2-xiBy7Fcq5ER7XTjVocdlzEaRJ-gn4MZ_uNmCfUEDNYxw1ESc8a-cK-wJ9gLIj4SfFD75rqS_qe3KA', secretkey : '_Xitn-d-OA8_ARtkCMqlbWdvoXrWUan28Lyhe3huaUDfcySaQkH_ON7V-kA2knfKhQNrHnv_uT7SoSrzmcPslw', userid : 'f59a82a9-83d8-4249-9d00-f7e5120ae933', username : 'test-TestUserLogin-test_2FA_setup-Z23BPH', id : '5b79ea12-913d-48e5-9063-4aeb73d45586', created : '2026-10-27T12:49:42+0000', accounttype : 'NORMAL', accountid : '305b5f5e-1ad5-4b36-afd5-ccbe0ce6f461', accountname : 'test-TestUserLogin-test_2FA_setup-Z23BPH', roleid : '87d88f8c-d1fe-11f1-81aa-1e0044000301', roletype : 'User', rolename : 'User', domainid : '16151933-f869-44a9-bd9f-2a3104723785', domain : '54e5326a-d1fe-11f1-81aa-1e0044000301', domainpath : 'ROOT/54e5326a-d1fe-11f1-81aa-1e0044000301', state : 'ENABLED'}
2026-10-27 12:49:31,327 - DEBUG - Payload: {'id': 'f59a82a9-83d8-4249-9d00-f7e5120ae933', 'command': 'getUserKeys', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'fVt+e/WMJETqPtME97yvnEBKcNU='}
2026-10-27 12:49:31,327 - DEBUG - ========Sending GET Cmd : getUserKeys=======
2026-10-27 12:49:31,680 - DEBUG - Response : {apikey : '3Ic-BnO2-xiBy7Fcq5ER7XTjVocdlzEaRJ-gn4MZ_uNmCfUEDNYxw1ESc8a-cK-wJ9gLIj4SfFD75rqS_qe3KA', secretkey : '_Xitn-d-OA8_ARtkCMqlbWdvoXrWUan28Lyhe3huaUDfcySaQkH_ON7V-kA2knfKhQNrHnv_uT7SoSrzmcPslw', apikeyaccess : True}
2026-10-27 12:49:31,681 - DEBUG - Payload: {'provider': 'staticpin', 'command': 'setupUserTwoFactorAuthentication', 'response': 'json', 'apiKey': '3Ic-BnO2-xiBy7Fcq5ER7XTjVocdlzEaRJ-gn4MZ_uNmCfUEDNYxw1ESc8a-cK-wJ9gLIj4SfFD75rqS_qe3KA', 'signature': b'L737ysZQKEdT1Tf+Txg/Iv4cCAc='}
2026-10-27 12:49:31,681 - DEBUG - ========Sending GET Cmd : setupUserTwoFactorAuthentication=======
2026-10-27 12:49:31,833 - DEBUG - Response : {id : 'f59a82a9-83d8-4249-9d00-f7e5120ae933', username : 'test-TestUserLogin-test_2FA_setup-Z23BPH', secretcode : '709733'}
2026-10-27 12:49:31,833 - DEBUG - Payload: {'enable': 'false', 'command': 'setupUserTwoFactorAuthentication', 'response': 'json', 'apiKey': '3Ic-BnO2-xiBy7Fcq5ER7XTjVocdlzEaRJ-gn4MZ_uNmCfUEDNYxw1ESc8a-cK-wJ9gLIj4SfFD75rqS_qe3KA', 'signature': b'Nem3uTGMWQqsFxjmgWH92oIrFm4='}
2026-10-27 12:49:31,834 - DEBUG - ========Sending GET Cmd : setupUserTwoFactorAuthentication=======
2026-10-27 12:49:31,948 - DEBUG - Response : {id : 'f59a82a9-83d8-4249-9d00-f7e5120ae933', username : 'test-TestUserLogin-test_2FA_setup-Z23BPH'}
2026-10-27 12:49:31,948 - DEBUG - Remove mandating 2FA in global setting
2026-10-27 12:49:31,949 - DEBUG - Payload: {'name': 'mandate.user.2fa', 'value': 'false', 'command': 'updateConfiguration', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'Jb9FpNM7Q9v+qf4aDZ8vAMQvxb0='}
2026-10-27 12:49:31,949 - DEBUG - ========Sending GET Cmd : updateConfiguration=======
2026-10-27 12:49:31,984 - DEBUG - Response : {category : 'Advanced', group : 'Miscellaneous', subgroup : 'Others', name : 'mandate.user.2fa', value : 'false', defaultvalue : 'false', description : 'Determines whether to make the two factor authentication mandatory or not. This setting is applicable only when enable.user.2fa is true. This can also be configured at domain level.', isdynamic : True, component : 'AccountManager', displaytext : 'Mandate user 2fa', type : 'Boolean'}
2026-10-27 12:49:31,984 - DEBUG - Disable 2FA in global setting
2026-10-27 12:49:31,985 - DEBUG - Payload: {'name': 'enable.user.2fa', 'value': 'false', 'command': 'updateConfiguration', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'Cb3GmJ99yFv9Z++QbrVTkAvPW4A='}
2026-10-27 12:49:31,985 - DEBUG - ========Sending GET Cmd : updateConfiguration=======
2026-10-27 12:49:32,018 - DEBUG - Response : {category : 'Advanced', group : 'Miscellaneous', subgroup : 'Others', name : 'enable.user.2fa', value : 'false', defaultvalue : 'false', description : 'Determines whether two factor authentication is enabled or not. This can also be configured at domain level.', isdynamic : True, component : 'AccountManager', displaytext : 'Enable user 2fa', type : 'Boolean'}
2026-10-27 12:49:32,019 - DEBUG - Cleaning up the resources
2026-10-27 12:49:32,020 - DEBUG - Payload: {'id': 'f4e00368-25ed-4686-b3f6-a7905974f125', 'command': 'deleteAccount', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'zBWQR1ADq8Bg4Q9koqhO2mfqQkA='}
2026-10-27 12:49:32,020 - DEBUG - ========Sending GET Cmd : deleteAccount=======
2026-10-27 12:49:32,081 - DEBUG - === Jobid: a112e486-ab26-450f-ac36-92c24f40367f Started ===
2026-10-27 12:49:32,081 - DEBUG - Payload: {'jobid': 'a112e486-ab26-450f-ac36-92c24f40367f', 'command': 'queryAsyncJobResult', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'uSBlWtZUbnNgmm7mUO1hUoHW2SQ='}
2026-10-27 12:49:32,081 - DEBUG - ========Sending GET Cmd : queryAsyncJobResult=======
2026-10-27 12:49:32,120 - DEBUG - Response : {accountid : 'c1154605-d1fe-11f1-81aa-1e0044000301', account : 'admin', domainid : '54e5326a-d1fe-11f1-81aa-1e0044000301', domainpath : 'ROOT', userid : 'c1166b9d-d1fe-11f1-81aa-1e0044000301', cmd : 'org.apache.cloudstack.api.command.admin.account.DeleteAccountCmd', jobprocstatus : 0, jobresultcode : 0, jobinstancetype : 'Account', jobinstanceid : 'f4e00368-25ed-4686-b3f6-a7905974f125', managementserverid : 'cdce5814-bb52-42f8-9ce6-85d2cdb65e27', managementservername : 'pr14320-n151-kvm-ubuntu26-mgmt1.sofia.shapeblue.com', created : '2026-10-27T12:49:43+0000', jobid : 'a112e486-ab26-450f-ac36-92c24f40367f', jobstatus : 0}
2026-10-27 12:49:33,122 - DEBUG - === JobId:a112e486-ab26-450f-ac36-92c24f40367f is Still Processing, Will TimeOut in:3599 ====
2026-10-27 12:49:33,123 - DEBUG - Payload: {'jobid': 'a112e486-ab26-450f-ac36-92c24f40367f', 'command': 'queryAsyncJobResult', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'uSBlWtZUbnNgmm7mUO1hUoHW2SQ='}
2026-10-27 12:49:33,123 - DEBUG - ========Sending GET Cmd : queryAsyncJobResult=======
2026-10-27 12:49:33,167 - DEBUG - Response : {accountid : 'c1154605-d1fe-11f1-81aa-1e0044000301', account : 'admin', domainid : '54e5326a-d1fe-11f1-81aa-1e0044000301', domainpath : 'ROOT', userid : 'c1166b9d-d1fe-11f1-81aa-1e0044000301', cmd : 'org.apache.cloudstack.api.command.admin.account.DeleteAccountCmd', jobprocstatus : 0, jobresultcode : 0, jobresulttype : 'object', jobresult : {success : True}, jobinstancetype : 'Account', jobinstanceid : 'f4e00368-25ed-4686-b3f6-a7905974f125', created : '2026-10-27T12:49:43+0000', completed : '2026-10-27T12:49:43+0000', jobid : 'a112e486-ab26-450f-ac36-92c24f40367f', jobstatus : 1}
2026-10-27 12:49:33,167 - DEBUG - ===Jobid:a112e486-ab26-450f-ac36-92c24f40367f ; StartTime:Tue Oct 27 12:49:32 2026 ; EndTime:Tue Oct 27 12:49:33 2026 ; TotalTime:-1===
2026-10-27 12:49:33,167 - DEBUG - Response : {accountid : 'c1154605-d1fe-11f1-81aa-1e0044000301', account : 'admin', domainid : '54e5326a-d1fe-11f1-81aa-1e0044000301', domainpath : 'ROOT', userid : 'c1166b9d-d1fe-11f1-81aa-1e0044000301', cmd : 'org.apache.cloudstack.api.command.admin.account.DeleteAccountCmd', jobprocstatus : 0, jobresultcode : 0, jobresulttype : 'object', jobresult : {success : True}, jobinstancetype : 'Account', jobinstanceid : 'f4e00368-25ed-4686-b3f6-a7905974f125', created : '2026-10-27T12:49:43+0000', completed : '2026-10-27T12:49:43+0000', jobid : 'a112e486-ab26-450f-ac36-92c24f40367f', jobstatus : 1}
2026-10-27 12:49:33,168 - DEBUG - TestCaseName: test_2FA_setup; Time Taken: 9 Seconds; StartTime: Tue Oct 27 12:49:23 2026; EndTime: Tue Oct 27 12:49:33 2026; Result: SUCCESS
2026-10-27 12:49:33,168 - DEBUG - Cleaning up the resources
