2026-10-09 23:49:12,184 - DEBUG - Parsing Test data successful
2026-10-09 23:49:12,185 - DEBUG - Payload: {'account': 'admin', 'command': 'listUsers', 'response': 'json'}
2026-10-09 23:49:12,185 - DEBUG - ========Sending GET Cmd : listUsers=======
2026-10-09 23:49:12,229 - 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 23:49:12,229 - DEBUG - Payload: {'id': 'a672c44f-c3f0-11f1-975d-1e002100023e', 'command': 'getUserKeys', 'response': 'json'}
2026-10-09 23:49:12,229 - DEBUG - ========Sending GET Cmd : getUserKeys=======
2026-10-09 23:49:12,263 - DEBUG - Response : {apikey : 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', secretkey : 'R6QPwRUz09TVXBjXNwZk7grTjcPtsFRphH6xhN1oPvnc12YUk296t4KHytg8zRLczDA0X5NsLVi4d8rfMMx3yg', apikeyaccess : True}
2026-10-09 23:49:12,264 - DEBUG - ==== Test Client Creation Successful ====
2026-10-09 23:49:12,387 - DEBUG - ::::::::::::STARTED : TC: test_create_pvlan_network :::::::::::
2026-10-09 23:49:12,387 - DEBUG - Payload: {'displayText': 'Offering for Shared networks', 'name': 'DefaultSharedNetworkOffering', 'command': 'listNetworkOfferings', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'1RBfp4vpu7Cv5UVJaxYhEoG4Tyo='}
2026-10-09 23:49:12,387 - DEBUG - ========Sending GET Cmd : listNetworkOfferings=======
2026-10-09 23:49:12,490 - DEBUG - Response : [{id : '2326aa6b-b011-41db-a5b4-00194cee7c0f', name : 'DefaultSharedNetworkOffering', displaytext : 'Offering for Shared networks', created : '2026-10-09T14:49:39+0000', traffictype : 'Guest', isdefault : True, specifyvlan : True, conservemode : True, specifyipranges : True, availability : 'Optional', networkrate : 200, state : 'Enabled', guestiptype : 'Shared', serviceofferingid : 'cc941799-c990-4772-93e7-ccc8a5df1abc', service : [{name : 'Dns', provider : [{name : 'VirtualRouter'}]}, {name : 'UserData', provider : [{name : 'VirtualRouter'}]}, {name : 'Dhcp', provider : [{name : 'VirtualRouter'}]}], forvpc : False, fornsx : False, fortungsten : False, ispersistent : False, egressdefaultpolicy : False, supportsstrechedl2subnet : False, supportspublicaccess : False, supportsinternallb : False, internetprotocol : 'IPv4', specifyasnumber : False, hasannotations : False}]
2026-10-09 23:49:12,491 - DEBUG - Test create pvlan network
2026-10-09 23:49:12,491 - DEBUG - Payload: {'displaytext': 'pvlan network', 'gateway': '10.10.10.20', 'isolatedpvlan': 864, 'name': 'pvlan network', 'netmask': '255.255.255.0', 'networkofferingid': '2326aa6b-b011-41db-a5b4-00194cee7c0f', 'startip': '10.10.10.10', 'vlan': 2468, 'zoneid': 1, 'command': 'createNetwork', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'b758fkotNKWS7c9QSQ1lDeFvm3k='}
2026-10-09 23:49:12,491 - DEBUG - ========Sending GET Cmd : createNetwork=======
2026-10-09 23:49:13,080 - DEBUG - Response : {id : '4b6bc4cb-e358-4c96-afbd-36ed81dcbdc8', name : 'pvlan network', displaytext : 'pvlan network', broadcastdomaintype : 'Pvlan', traffictype : 'Guest', gateway : '10.10.10.20', netmask : '255.255.255.0', cidr : '10.10.10.0/24', zoneid : 'd0557c3a-5a34-498b-8271-5d5ae55dd07b', zonename : 'pr147-n88-kvm-ubuntu26', networkofferingid : '2326aa6b-b011-41db-a5b4-00194cee7c0f', networkofferingname : 'DefaultSharedNetworkOffering', networkofferingdisplaytext : 'Offering for Shared networks', networkofferingconservemode : True, networkofferingavailability : 'Optional', issystem : False, state : 'Setup', related : '4b6bc4cb-e358-4c96-afbd-36ed81dcbdc8', broadcasturi : 'pvlan://2468-i864', dns1 : '10.0.32.1', dns2 : '8.8.8.8', type : 'Shared', vlan : 'N/A', acltype : 'Domain', subdomainaccess : True, domainid : '403e1dfc-c3f0-11f1-975d-1e002100023e', domain : 'ROOT', domainpath : 'ROOT', service : [{name : 'Dns', provider : [{name : 'VirtualRouter'}], capability : [{name : 'AllowDnsSuffixModification', value : 'true', canchooseservicecapability : False}]}, {name : 'UserData', provider : [{name : 'VirtualRouter'}], capability : []}, {name : 'Dhcp', provider : [{name : 'VirtualRouter'}], capability : [{name : 'DhcpAccrossMultipleSubnets', value : 'true', canchooseservicecapability : False}]}], networkdomain : 'cs1cloud.internal', physicalnetworkid : '0b5199f1-d3a2-40db-8fe1-4712e0955664', restartrequired : False, specifyvlan : True, specifyipranges : True, canusefordeploy : True, ispersistent : False, tags : [], details : {isolatedpvlantype : 'Isolated'}, displaynetwork : True, strechedl2subnet : False, redundantrouter : False, supportsvmautoscaling : False, created : '2026-10-09T23:49:12+0000', receivedbytes : 0, sentbytes : 0, publicmtu : 1500, privatemtu : 1500, hasannotations : False}
2026-10-09 23:49:13,081 - DEBUG - Clean up test pvlan network
2026-10-09 23:49:13,081 - DEBUG - Payload: {'id': '4b6bc4cb-e358-4c96-afbd-36ed81dcbdc8', 'command': 'deleteNetwork', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'wnEai6EZRqgg2ajjH+eFBCRCczo='}
2026-10-09 23:49:13,081 - DEBUG - ========Sending GET Cmd : deleteNetwork=======
2026-10-09 23:49:13,196 - DEBUG - === Jobid: 5e863973-4992-4ed5-a298-2cb7991314fb Started ===
2026-10-09 23:49:13,196 - DEBUG - Payload: {'jobid': '5e863973-4992-4ed5-a298-2cb7991314fb', 'command': 'queryAsyncJobResult', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'+a6r+4d9rvdYdvDjj8lMSQQV/l0='}
2026-10-09 23:49:13,196 - DEBUG - ========Sending GET Cmd : queryAsyncJobResult=======
2026-10-09 23:49:13,281 - 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.api.command.user.network.DeleteNetworkCmd', jobprocstatus : 0, jobresultcode : 0, jobinstancetype : 'Network', managementserverid : 'a4ee800f-a5d4-4d74-bbba-6f1148e2f85e', managementservername : 'pr147-n88-kvm-ubuntu26-mgmt1.sofia.shapeblue.com', created : '2026-10-09T23:49:13+0000', jobid : '5e863973-4992-4ed5-a298-2cb7991314fb', jobstatus : 0}
2026-10-09 23:49:14,283 - DEBUG - === JobId:5e863973-4992-4ed5-a298-2cb7991314fb is Still Processing, Will TimeOut in:3599 ====
2026-10-09 23:49:14,283 - DEBUG - Payload: {'jobid': '5e863973-4992-4ed5-a298-2cb7991314fb', 'command': 'queryAsyncJobResult', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'+a6r+4d9rvdYdvDjj8lMSQQV/l0='}
2026-10-09 23:49:14,283 - DEBUG - ========Sending GET Cmd : queryAsyncJobResult=======
2026-10-09 23:49:14,343 - 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.api.command.user.network.DeleteNetworkCmd', jobprocstatus : 0, jobresultcode : 0, jobresulttype : 'object', jobresult : {success : True}, jobinstancetype : 'Network', created : '2026-10-09T23:49:13+0000', completed : '2026-10-09T23:49:13+0000', jobid : '5e863973-4992-4ed5-a298-2cb7991314fb', jobstatus : 1}
2026-10-09 23:49:14,343 - DEBUG - ===Jobid:5e863973-4992-4ed5-a298-2cb7991314fb ; StartTime:Fri Oct  9 23:49:13 2026 ; EndTime:Fri Oct  9 23:49:14 2026 ; TotalTime:-1===
2026-10-09 23:49:14,343 - 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.api.command.user.network.DeleteNetworkCmd', jobprocstatus : 0, jobresultcode : 0, jobresulttype : 'object', jobresult : {success : True}, jobinstancetype : 'Network', created : '2026-10-09T23:49:13+0000', completed : '2026-10-09T23:49:13+0000', jobid : '5e863973-4992-4ed5-a298-2cb7991314fb', jobstatus : 1}
2026-10-09 23:49:14,344 - DEBUG - Payload: {'displaytext': 'pvlan network', 'endipv6': 'fc00:1234::20', 'gateway': '10.10.10.20', 'ip6cidr': 'fc00:1234::/64', 'ip6gateway': 'fc00:1234::1', 'isolatedpvlan': 864, 'name': 'pvlan network', 'netmask': '255.255.255.0', 'networkofferingid': '2326aa6b-b011-41db-a5b4-00194cee7c0f', 'startip': '10.10.10.10', 'startipv6': 'fc00:1234::10', 'vlan': 2468, 'zoneid': 1, 'command': 'createNetwork', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'QXaFlosAIEB4Aa6oMkRLJCCR7XI='}
2026-10-09 23:49:14,344 - DEBUG - ========Sending GET Cmd : createNetwork=======
2026-10-09 23:49:14,446 - 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: createnetwork failed, due to: errorCode: 431, errorText:Can only create IPv6 network if the zone has IPv6 DNS! Please configure the zone IPv6 DNS1 and/or IPv6 DNS2.\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: createnetwork failed, due to: errorCode: 431, errorText:Can only create IPv6 network if the zone has IPv6 DNS! Please configure the zone IPv6 DNS1 and/or IPv6 DNS2.
2026-10-09 23:49:14,446 - ERROR - marvinRequest : CmdName: <marvin.cloudstackAPI.createNetwork.createNetworkCmd object at 0x7fb8496f8850> 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: createnetwork failed, due to: errorCode: 431, errorText:Can only create IPv6 network if the zone has IPv6 DNS! Please configure the zone IPv6 DNS1 and/or IPv6 DNS2.\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: createnetwork failed, due to: errorCode: 431, errorText:Can only create IPv6 network if the zone has IPv6 DNS! Please configure the zone IPv6 DNS1 and/or IPv6 DNS2.
2026-10-09 23:49:14,447 - DEBUG - Cleaning up the resources
2026-10-09 23:49:14,447 - DEBUG - TestCaseName: test_create_pvlan_network; Time Taken: 2 Seconds; StartTime: Fri Oct  9 23:49:12 2026; EndTime: Fri Oct  9 23:49:14 2026; Result: SUCCESS
2026-10-09 23:49:14,447 - DEBUG - Cleaning up the resources
