2026-10-27 21:55:11,883 - DEBUG - Parsing Test data successful
2026-10-27 21:55:11,883 - DEBUG - Payload: {'account': 'admin', 'command': 'listUsers', 'response': 'json'}
2026-10-27 21:55:11,883 - DEBUG - ========Sending GET Cmd : listUsers=======
2026-10-27 21:55:11,904 - 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 21:55:11,904 - DEBUG - Payload: {'id': 'c1166b9d-d1fe-11f1-81aa-1e0044000301', 'command': 'getUserKeys', 'response': 'json'}
2026-10-27 21:55:11,904 - DEBUG - ========Sending GET Cmd : getUserKeys=======
2026-10-27 21:55:11,922 - DEBUG - Response : {apikey : 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', secretkey : 'R6QPwRUz09TVXBjXNwZk7grTjcPtsFRphH6xhN1oPvnc12YUk296t4KHytg8zRLczDA0X5NsLVi4d8rfMMx3yg', apikeyaccess : True}
2026-10-27 21:55:11,922 - DEBUG - ==== Test Client Creation Successful ====
2026-10-27 21:55:12,061 - DEBUG - ::::::::::::STARTED : TC: test_create_pvlan_network :::::::::::
2026-10-27 21:55:12,061 - DEBUG - Payload: {'displayText': 'Offering for Shared networks', 'name': 'DefaultSharedNetworkOffering', 'command': 'listNetworkOfferings', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'1RBfp4vpu7Cv5UVJaxYhEoG4Tyo='}
2026-10-27 21:55:12,061 - DEBUG - ========Sending GET Cmd : listNetworkOfferings=======
2026-10-27 21:55:12,111 - DEBUG - Response : [{id : 'af726506-9b79-4a1c-82e4-65fc1389dd2b', name : 'DefaultSharedNetworkOffering', displaytext : 'Offering for Shared networks', created : '2026-10-27T12:05:54+0000', traffictype : 'Guest', isdefault : True, specifyvlan : True, conservemode : True, specifyipranges : True, availability : 'Optional', networkrate : 200, state : 'Enabled', guestiptype : 'Shared', serviceofferingid : '6fe28202-bd38-4974-a65f-2f9bd1e70a59', serviceofferingname : 'System Offering For Software Router', service : [{name : 'Dhcp', provider : [{name : 'VirtualRouter'}]}, {name : 'Dns', provider : [{name : 'VirtualRouter'}]}, {name : 'UserData', 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-27 21:55:12,112 - DEBUG - Test create pvlan network
2026-10-27 21:55:12,112 - DEBUG - Payload: {'displaytext': 'pvlan network', 'gateway': '10.10.10.20', 'isolatedpvlan': 864, 'name': 'pvlan network', 'netmask': '255.255.255.0', 'networkofferingid': 'af726506-9b79-4a1c-82e4-65fc1389dd2b', 'startip': '10.10.10.10', 'vlan': 2468, 'zoneid': 1, 'command': 'createNetwork', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'z/sA5GV8b5Tq1Pr9YSdWjblVC38='}
2026-10-27 21:55:12,112 - DEBUG - ========Sending GET Cmd : createNetwork=======
2026-10-27 21:55:12,363 - DEBUG - Response : {id : '5ecc0d5d-c877-4243-968b-7a24f26c9b12', 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 : 'f630bd38-52a4-422f-9829-a3efc24896fe', zonename : 'pr14320-n151-kvm-ubuntu26', networkofferingid : 'af726506-9b79-4a1c-82e4-65fc1389dd2b', networkofferingname : 'DefaultSharedNetworkOffering', networkofferingdisplaytext : 'Offering for Shared networks', networkofferingconservemode : True, networkofferingavailability : 'Optional', issystem : False, state : 'Setup', related : '5ecc0d5d-c877-4243-968b-7a24f26c9b12', broadcasturi : 'pvlan://2468-i864', dns1 : '10.0.32.1', dns2 : '8.8.8.8', type : 'Shared', vlan : 'N/A', acltype : 'Domain', subdomainaccess : True, domainid : '54e5326a-d1fe-11f1-81aa-1e0044000301', domain : 'ROOT', domainpath : 'ROOT', service : [{name : 'Dhcp', provider : [{name : 'VirtualRouter'}], capability : [{name : 'DhcpAccrossMultipleSubnets', value : 'true', canchooseservicecapability : False}]}, {name : 'Dns', provider : [{name : 'VirtualRouter'}], capability : [{name : 'AllowDnsSuffixModification', value : 'true', canchooseservicecapability : False}]}, {name : 'UserData', provider : [{name : 'VirtualRouter'}], capability : []}], networkdomain : 'cs1cloud.internal', physicalnetworkid : '9fb1b090-fec6-493e-a2e2-49f6bed8fe5b', 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-27T21:55:12+0000', receivedbytes : 0, sentbytes : 0, publicmtu : 1500, privatemtu : 1500, hasannotations : False}
2026-10-27 21:55:12,363 - DEBUG - Clean up test pvlan network
2026-10-27 21:55:12,364 - DEBUG - Payload: {'id': '5ecc0d5d-c877-4243-968b-7a24f26c9b12', 'command': 'deleteNetwork', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'WqUX0frQ0K2DWjDgEe+LLUAhnGc='}
2026-10-27 21:55:12,364 - DEBUG - ========Sending GET Cmd : deleteNetwork=======
2026-10-27 21:55:13,213 - DEBUG - === Jobid: 2f9e0b2b-49eb-4bb7-bf22-30ad5d30b270 Started ===
2026-10-27 21:55:13,214 - DEBUG - Payload: {'jobid': '2f9e0b2b-49eb-4bb7-bf22-30ad5d30b270', 'command': 'queryAsyncJobResult', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'Q4yG6Yikjkaf/FK1tpGiKRS8Bsk='}
2026-10-27 21:55:13,214 - DEBUG - ========Sending GET Cmd : queryAsyncJobResult=======
2026-10-27 21:55:13,308 - 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.user.network.DeleteNetworkCmd', jobprocstatus : 0, jobresultcode : 0, jobinstancetype : 'Network', managementserverid : 'cdce5814-bb52-42f8-9ce6-85d2cdb65e27', managementservername : 'pr14320-n151-kvm-ubuntu26-mgmt1.sofia.shapeblue.com', created : '2026-10-27T21:55:13+0000', jobid : '2f9e0b2b-49eb-4bb7-bf22-30ad5d30b270', jobstatus : 0}
2026-10-27 21:55:14,310 - DEBUG - === JobId:2f9e0b2b-49eb-4bb7-bf22-30ad5d30b270 is Still Processing, Will TimeOut in:3599 ====
2026-10-27 21:55:14,310 - DEBUG - Payload: {'jobid': '2f9e0b2b-49eb-4bb7-bf22-30ad5d30b270', 'command': 'queryAsyncJobResult', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'Q4yG6Yikjkaf/FK1tpGiKRS8Bsk='}
2026-10-27 21:55:14,310 - DEBUG - ========Sending GET Cmd : queryAsyncJobResult=======
2026-10-27 21:55:14,359 - 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.user.network.DeleteNetworkCmd', jobprocstatus : 0, jobresultcode : 0, jobresulttype : 'object', jobresult : {success : True}, jobinstancetype : 'Network', created : '2026-10-27T21:55:13+0000', completed : '2026-10-27T21:55:13+0000', jobid : '2f9e0b2b-49eb-4bb7-bf22-30ad5d30b270', jobstatus : 1}
2026-10-27 21:55:14,360 - DEBUG - ===Jobid:2f9e0b2b-49eb-4bb7-bf22-30ad5d30b270 ; StartTime:Tue Oct 27 21:55:13 2026 ; EndTime:Tue Oct 27 21:55:14 2026 ; TotalTime:-1===
2026-10-27 21:55:14,360 - 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.user.network.DeleteNetworkCmd', jobprocstatus : 0, jobresultcode : 0, jobresulttype : 'object', jobresult : {success : True}, jobinstancetype : 'Network', created : '2026-10-27T21:55:13+0000', completed : '2026-10-27T21:55:13+0000', jobid : '2f9e0b2b-49eb-4bb7-bf22-30ad5d30b270', jobstatus : 1}
2026-10-27 21:55:14,361 - 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': 'af726506-9b79-4a1c-82e4-65fc1389dd2b', 'startip': '10.10.10.10', 'startipv6': 'fc00:1234::10', 'vlan': 2468, 'zoneid': 1, 'command': 'createNetwork', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'XS23bbn8q26m8dPEa3IsHCs2z+w='}
2026-10-27 21:55:14,361 - DEBUG - ========Sending GET Cmd : createNetwork=======
2026-10-27 21:55:14,455 - 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-27 21:55:14,455 - ERROR - marvinRequest : CmdName: <marvin.cloudstackAPI.createNetwork.createNetworkCmd object at 0x7fc78e905c40> 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-27 21:55:14,456 - DEBUG - Cleaning up the resources
2026-10-27 21:55:14,456 - DEBUG - TestCaseName: test_create_pvlan_network; Time Taken: 2 Seconds; StartTime: Tue Oct 27 21:55:12 2026; EndTime: Tue Oct 27 21:55:14 2026; Result: SUCCESS
2026-10-27 21:55:14,456 - DEBUG - Cleaning up the resources
